Submission #99886

# Submission time Handle Problem Language Result Execution time Memory
99886 2019-03-08T11:05:01 Z zzee Jarvis (COCI19_jarvis) Python 3
7 / 70
1000 ms 18360 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 29 ms 3392 KB Output is correct
2 Execution timed out 1057 ms 9052 KB Time limit exceeded
3 Execution timed out 1077 ms 9576 KB Time limit exceeded
4 Execution timed out 1079 ms 8072 KB Time limit exceeded
5 Execution timed out 1076 ms 17600 KB Time limit exceeded
6 Execution timed out 1073 ms 18360 KB Time limit exceeded
7 Execution timed out 1070 ms 17588 KB Time limit exceeded
8 Execution timed out 1076 ms 17592 KB Time limit exceeded
9 Execution timed out 1083 ms 18164 KB Time limit exceeded
10 Execution timed out 1081 ms 17584 KB Time limit exceeded