41502023-03-15 15:11:46kristofIrány a döntőpython3Wrong answer 0/10018ms12592 KiB
n, p = map(int, input().split())

davide = sum(map(int, input().split()))

elerheto = p*100
print(davide)

out = 0

for i in range(n-1):
    csapate = sum(map(int, input().split()))
    if csapate + elerheto < davide:
        pass
    else:
        out = max(abs(davide-(csapate+elerheto))+1, out)

print(out)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms10868 KiB
2Wrong answer17ms11144 KiB
subtask20/50
3Wrong answer18ms11416 KiB
4Wrong answer17ms11492 KiB
5Wrong answer17ms11912 KiB
6Wrong answer17ms12256 KiB
subtask30/50
7Wrong answer17ms12340 KiB
8Wrong answer17ms12336 KiB
9Wrong answer17ms12392 KiB
10Wrong answer17ms12496 KiB
11Wrong answer17ms12592 KiB
12Wrong answer17ms12564 KiB