4151 | 2023-03-15 15:12:04 | kristof | Irány a döntő | python3 | Accepted 100/100 | 17ms | 13288 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)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 10960 KiB | ||||
2 | Accepted | 17ms | 11156 KiB | ||||
subtask2 | 50/50 | ||||||
3 | Accepted | 17ms | 11332 KiB | ||||
4 | Accepted | 17ms | 11984 KiB | ||||
5 | Accepted | 17ms | 12032 KiB | ||||
6 | Accepted | 17ms | 12224 KiB | ||||
subtask3 | 50/50 | ||||||
7 | Accepted | 17ms | 12496 KiB | ||||
8 | Accepted | 17ms | 12556 KiB | ||||
9 | Accepted | 17ms | 12724 KiB | ||||
10 | Accepted | 17ms | 12944 KiB | ||||
11 | Accepted | 17ms | 13288 KiB | ||||
12 | Accepted | 17ms | 13212 KiB |