41512023-03-15 15:12:04kristofIrány a döntőpython3Accepted 100/10017ms13288 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
1Accepted17ms10960 KiB
2Accepted17ms11156 KiB
subtask250/50
3Accepted17ms11332 KiB
4Accepted17ms11984 KiB
5Accepted17ms12032 KiB
6Accepted17ms12224 KiB
subtask350/50
7Accepted17ms12496 KiB
8Accepted17ms12556 KiB
9Accepted17ms12724 KiB
10Accepted17ms12944 KiB
11Accepted17ms13288 KiB
12Accepted17ms13212 KiB