Submission #6279016


Source Code Expand

Copy
import numpy as np
L,R = (int(x) for x in input().split())

if R - L > 3000:
  print(0)
  exit()
  
x = np.arange(L,R+1,dtype=np.int64)
y = x[:,None] * x[None,:] % 2019
for i in range(len(x)):
  y[i,i] = 3000
answer = y.min()
print(answer)

Submission Info

Submission Time
Task C - Remainder Minimization 2019
User maspy
Language Python (3.4.3)
Score 300
Code Size 251 Byte
Status AC
Exec Time 218 ms
Memory 76128 KB

Judge Result

Set Name All Sample
Score / Max Score 300 / 300 0 / 0
Status
AC × 16
AC × 2
Set Name Test Cases
All max_ans, max_range, max_val, min_diff_01, min_diff_02, min_diff_03, min_diff_04, min_diff_05, one_01, one_02, random_max_01, random_max_02, sample_01, sample_02, stride_zero_01, stride_zero_02
Sample sample_01, sample_02
Case Name Status Exec Time Memory
max_ans AC 148 ms 12400 KB
max_range AC 218 ms 76128 KB
max_val AC 146 ms 12400 KB
min_diff_01 AC 147 ms 12276 KB
min_diff_02 AC 146 ms 12400 KB
min_diff_03 AC 147 ms 12400 KB
min_diff_04 AC 148 ms 12400 KB
min_diff_05 AC 148 ms 12400 KB
one_01 AC 152 ms 15808 KB
one_02 AC 147 ms 12768 KB
random_max_01 AC 146 ms 12400 KB
random_max_02 AC 146 ms 12400 KB
sample_01 AC 146 ms 12496 KB
sample_02 AC 146 ms 12400 KB
stride_zero_01 AC 146 ms 12276 KB
stride_zero_02 AC 145 ms 12496 KB