QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#523965 | #8768. Arrested Development | wuxman57 | WA | 11ms | 10704kb | Python3 | 234b | 2024-08-19 02:54:33 | 2024-08-19 02:54:33 |
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(min(curr_a, curr_b))
详细
Test #1:
score: 0
Wrong Answer
time: 11ms
memory: 10704kb
input:
4 100 1 1 90 1 20 1 20
output:
1
result:
wrong answer 1st lines differ - expected: '3', found: '1'