QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#523963#8768. Arrested Developmentwuxman57WA 15ms10744kbPython3144b2024-08-19 02:52:352024-08-19 02:52:35

Judging History

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

  • [2024-08-19 02:52:35]
  • 评测
  • 测评结果:WA
  • 用时:15ms
  • 内存:10744kb
  • [2024-08-19 02:52:35]
  • 提交

answer

n = int(input())

ans = 0

for x in range(1, n):
	line = [int(i) for i in input().split(" ")]
	ans += min(line[0], line[1])
	
print(ans)

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 15ms
memory: 10632kb

input:

4
100 1
1 90
1 20
1 20

output:

3

result:

ok single line: '3'

Test #2:

score: -100
Wrong Answer
time: 10ms
memory: 10744kb

input:

2
314 1
592 6

output:

1

result:

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