UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#101470#1158. 奥运奖牌计数hjt1000ms1200kbC++257b2020-02-25 23:26:562020-02-25 23:26:57

answer


详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

5
8 8 7
6 0 7
9 0 9
3 9 9
9 0 4

output:

35 17 36 88

result:

ok single line: '35 17 36 88'

Test #2:

score: 10
Accepted
time: 0ms
memory: 1200kb

input:

8
4 0 2
1 4 6
8 0 2
6 9 5
2 3 8
0 1 7
3 3 2
2 7 0

output:

26 27 32 85

result:

ok single line: '26 27 32 85'

Test #3:

score: 10
Accepted
time: 0ms
memory: 1200kb

input:

14
7 0 2
6 1 9
0 6 5
0 5 6
5 6 3
3 9 9
4 0 0
1 7 0
6 7 8
6 8 4
5 7 3
4 3 6
1 3 6
2 8 9

output:

50 70 70 190

result:

ok single line: '50 70 70 190'

Test #4:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

8
9 1 3
4 6 8
1 8 9
7 3 7
7 7 3
1 1 4
9 6 3
7 8 8

output:

45 40 45 130

result:

ok single line: '45 40 45 130'

Test #5:

score: 10
Accepted
time: 0ms
memory: 1200kb

input:

16
9 1 2
7 1 4
3 8 6
5 7 8
6 6 5
8 3 1
0 7 9
3 8 1
1 0 3
8 9 6
4 3 1
4 9 3
3 1 1
5 0 0
1 1 6
6 6 0

output:

73 70 56 199

result:

ok single line: '73 70 56 199'

Test #6:

score: 10
Accepted
time: 0ms
memory: 1200kb

input:

6
9 2 2
6 4 8
4 7 4
7 9 0
8 5 1
6 6 0

output:

40 33 15 88

result:

ok single line: '40 33 15 88'

Test #7:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

8
1 1 1
5 5 2
5 1 2
0 8 1
5 8 5
2 2 5
4 8 3
3 5 9

output:

25 38 28 91

result:

ok single line: '25 38 28 91'

Test #8:

score: 10
Accepted
time: 0ms
memory: 1200kb

input:

1
6 7 2

output:

6 7 2 15

result:

ok single line: '6 7 2 15'

Test #9:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

6
8 0 2
3 0 9
5 4 4
7 0 5
3 7 4
6 9 8

output:

32 20 32 84

result:

ok single line: '32 20 32 84'

Test #10:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

3
8 3 6
3 4 9
6 3 0

output:

17 10 15 42

result:

ok single line: '17 10 15 42'