UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#103036#1570. 方格取数zsq2591002ms19996kbC++561b2020-02-28 15:29:152020-02-28 15:29:16

answer


详细

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

Test #1:

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

input:

10
1 2 3
2 3 4
4 5 6
7 8 9
2 4 70
5 8 58
8 9 10
8 6 6
2 6 8
6 4 30
0 0 0

output:

198

result:

ok single line: '198'

Test #2:

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

input:

8
1 1 13
1 3 7
1 8 14
2 2 1
2 4 2
4 3 5
5 5 4
6 2 6
7 8 16
0 0 0

output:

60

result:

ok single line: '60'

Test #3:

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

input:

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

output:

25

result:

ok single line: '25'

Test #4:

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

input:

3
1 1 10
1 3 5
2 2 6
2 3 4
3 1 8
3 2 2
0 0 0

output:

30

result:

ok single line: '30'

Test #5:

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

input:

6
2 3 13
2 6 6
3 5 7
4 4 14
5 2 21
5 6 4
0 0 0

output:

52

result:

ok single line: '52'

Test #6:

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

input:

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

output:

18

result:

ok single line: '18'

Test #7:

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

input:

8
2 4 13
3 3 17
2 6 6
3 5 7
4 4 14
5 2 21
5 6 4
6 3 15
7 7 20
7 2 14
8 2 19
0 0 0

output:

109

result:

ok single line: '109'

Test #8:

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

input:

8
2 3 13
2 6 6
3 5 7
4 4 14
5 2 21
5 6 4
6 3 15
7 2 14
0 0 0

output:

67

result:

ok single line: '67'

Test #9:

score: 10
Accepted
time: 2ms
memory: 19768kb

input:

8
1 2 58
2 3 13
2 6 6
3 5 7
4 4 14
5 2 21
5 4 12
5 6 4
6 3 15
6 8 41
7 2 14
8 1 56
0 0 0

output:

198

result:

ok single line: '198'

Test #10:

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

input:

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

output:

75

result:

ok single line: '75'