Submission #99887

# Submission time Handle Problem Language Result Execution time Memory
99887 2019-03-08T11:06:46 Z zzee Jarvis (COCI19_jarvis) Python 3
7 / 70
1000 ms 18340 KB
n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
c = []
for i in range(len(a)):
    c = c+ [b[i]-a[i]]
i = 0
M = - 1000001
while len(c)>i:
    x = c.count(c[i])
    if x > M:
        M = x
    p = c[i]
    for j in range(x):
        c.remove(p)
    i = i + 1
print(M)
# Verdict Execution time Memory Grader output
1 Correct 31 ms 3372 KB Output is correct
2 Execution timed out 1081 ms 9052 KB Time limit exceeded
3 Execution timed out 1068 ms 9576 KB Time limit exceeded
4 Execution timed out 1070 ms 8072 KB Time limit exceeded
5 Execution timed out 1081 ms 17468 KB Time limit exceeded
6 Execution timed out 1089 ms 18340 KB Time limit exceeded
7 Execution timed out 1071 ms 17472 KB Time limit exceeded
8 Execution timed out 1078 ms 17728 KB Time limit exceeded
9 Execution timed out 1055 ms 18176 KB Time limit exceeded
10 Execution timed out 1080 ms 17596 KB Time limit exceeded