QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#523969#8768. Arrested Developmentwuxman57RE 0ms0kbPython3235b2024-08-19 02:56:242024-08-19 02:56:25

Judging History

你现在查看的是最新测评结果

  • [2024-08-19 02:56:25]
  • 评测
  • 测评结果:RE
  • 用时:0ms
  • 内存:0kb
  • [2024-08-19 02:56:24]
  • 提交

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

output:


result: