QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#523967 | #8768. Arrested Development | wuxman57 | WA | 14ms | 10644kb | Python3 | 229b | 2024-08-19 02:55:15 | 2024-08-19 02:55:16 |
Judging History
answer
n = int(input())
a = 0
b = 0
for x in range(0, n):
line = [int(i) for i in input().split(" ")]
curr_a, curr_b = line[0], line[1]
if curr_a <= curr_b:
a += curr_a
else:
b += curr_b
print(max(a, curr_b))
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 14ms
memory: 10644kb
input:
4 100 1 1 90 1 20 1 20
output:
20
result:
wrong answer 1st lines differ - expected: '3', found: '20'