Problem p02983 (python)

Fixed submission:
import numpy as np

L, R = map(int, input().split(" "))
#L, R = 2020, 4000000000
if R - L > 2019:
    print(0)
else:
    arr = np.array(np.arange(L, R+1))
    mod_list = []
    min_mod_list = []
    
    if (0 in (arr % 2019)) or (0 in arr):
        print(0)
    else:
    
        for i in arr:
            mod_list = []
            index_ = np.where(arr==i)
            if i == arr[-1]:
                break
            
            for j in arr[int(index_[0])+1:]:
                mod_list.append((i * j) % 2019)
     
            min_mod_list.append(min(mod_list))
            if min(mod_list) == 0:
                break
    
    
        print(min(min_mod_list))

Buggy submission (verdict: Runtime Error):
import numpy as np

L, R = map(int, input().split(" "))
arr = np.array(np.arange(L, R+1))
mod_list = []
min_mod_list = []

if (0 in (arr % 2019)) or (0 in arr):
  print(0)
else:
  for i in arr:
    mod_list = []
    index_ = np.where(arr==i)
    if i == arr[-1]:
      break

    for j in arr[int(index_[0])+1:]:
      mod_list.append((i * j) % 2019)
     
    min_mod_list.append(min(mod_list))
    if min(mod_list) == 0:
      break
    
    
  print(min(min_mod_list))

Buggy submission (verdict: Runtime Error):
import numpy as np

L, R = map(int, input().split(" "))
arr = np.array(np.arange(L, R+1))
mod_list = []
min_mod_list = []

if (0 in (arr % 2019)) or (0 in arr):
  print(0)
else:
  for i in arr:
    mod_list = []
    index_ = np.where(arr==i)
    if i == arr[-1]:
      break

    for j in arr[int(index_[0])+1:]:
      mod_list.append((i * j) % 2019)
    
    min_mod_list.append(min(mod_list))
    
  
  print(min(min_mod_list))

Buggy submission (verdict: Runtime Error):
import numpy as np
L, R = map(int, input().split(" "))
arr = np.array(np.arange(L, R+1))
mod_list = []
min_mod_list = []
if (0 in (arr % 2019)) or (0 in arr):
  print(0)
else:
  for i in arr:
#    index_ = np.extract(i, arr)
    index_ = np.where(arr==i)
    for j in arr[int(index_[0])+1:]:
      mod_list.append(((i * j) % 2019))
    
    min_mod_list.append(min(mod_list))
    del mod_list
    mod_list = []
  
  
  print(min(min_mod_list))

Buggy submission (verdict: Runtime Error):
import numpy as np
L, R = map(int, input().split(" "))
arr = np.array(np.arange(L, R+1))
mod_list = []
min_mod_list = []
if (0 in (arr % 2019)) or (0 in arr):
  print(0)
else:
  for i in arr:
#    index_ = np.extract(i, arr)
    index_ = np.where(arr==i)
    for j in arr[int(index_[0]):]:
      mod_list.append(((i * j) % 2019))
    
    min_mod_list.append(min(mod_list))
    del mod_list
    mod_list = []
  
  
  print(min(min_mod_list))

Buggy submission (verdict: Runtime Error):
import numpy as np
L, R = map(int, input().split(" "))
arr = np.array(np.arange(L, R+1))
mod_list = []
min_mod_list = []
if (0 in (arr % 2019)) or (0 in arr):
  print(0)
else:
  for i in arr:
    
    for j in arr[arr != i]:
      mod_list.append(((i * j) % 2019))
    
    min_mod_list.append(min(mod_list))
    del mod_list
    mod_list = []
  
  
  print(min(min_mod_list))

Buggy submission (verdict: Runtime Error):
import numpy as np
L, R = map(int, input().split(" "))
arr = np.array(np.arange(L, R+1))
mod_list = []
min_mod_list = []
if (0 in (arr % 2019)) or (0 in arr):
  print(0)
else:
  for i in arr:
    
    for j in arr[arr != i]:
      mod_list.append(((i * j) % 2019))
    
    min_mod_list.append(min(mod_list))
    mod_list = []
  
  
  print(min(min_mod_list))

Buggy submission (verdict: Runtime Error):
import numpy as np
L, R = map(int, input().split(" "))
arr = np.array(np.arange(L, R+1))
mod_list = []

if (0 in (arr % 2019)) or (0 in arr):
  print(0)
else:
  for i in arr:
    for j in arr[arr != i]:
      mod_list.append(((i * j) % 2019))
      
  print(min(mod_list))