QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#523969 | #8768. Arrested Development | wuxman57 | RE | 0ms | 0kb | Python3 | 235b | 2024-08-19 02:56:24 | 2024-08-19 02:56:25 |
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 a + curr_a <= b + curr_b:
a += curr_a
else:
b += curr_b
print(max(a, cu_b))
詳細信息
Test #1:
score: 0
Dangerous Syscalls
input:
4 100 1 1 90 1 20 1 20