QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#523966#8768. Arrested Developmentwuxman57WA 5ms10696kbPython3224b2024-08-19 02:54:412024-08-19 02:54:41

Judging History

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

  • [2024-08-19 02:54:41]
  • 评测
  • 测评结果:WA
  • 用时:5ms
  • 内存:10696kb
  • [2024-08-19 02:54:41]
  • 提交

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(a, b))

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 5ms
memory: 10696kb

input:

4
100 1
1 90
1 20
1 20

output:

1

result:

wrong answer 1st lines differ - expected: '3', found: '1'