UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#133863#2097. 小天狼星的访问191000ms1228kbC++11662b2021-07-17 14:24:212021-07-17 14:24:23

answer


Details

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

Test #1:

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

input:

100 88
0 1 1
0 2 2
0 3 3
0 4 4
0 5 5
0 6 6
0 7 7
0 8 8
0 9 9
0 10 10
0 11 11
0 12 12
0 13 13
0 14 14...

output:

7744

result:

ok single line: '7744'

Test #2:

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

input:

5 2
0 1 1
0 2 2
1 3 3
1 4 4

output:

18

result:

ok single line: '18'

Test #3:

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

input:

100 66
0 1 100
1 2 99
2 3 98
3 4 97
4 5 96
5 6 95
6 7 94
7 8 93
8 9 92
9 10 91
10 11 90
11 12 89
12 ...

output:

4455

result:

ok single line: '4455'

Test #4:

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

input:

1 0

output:

0

result:

ok single line: '0'

Test #5:

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

input:

100 22
0 1 41
0 2 8467
1 3 6334
1 4 6500
2 5 9169
2 6 5724
3 7 1478
3 8 9358
4 9 6962
4 10 4464
5 11...

output:

356473

result:

ok single line: '356473'

Test #6:

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

input:

100 11
0 1 2
0 2 8
1 3 5
1 4 1
2 5 10
2 6 5
3 7 9
3 8 9
4 9 3
4 10 5
5 11 6
5 12 6
6 13 2
6 14 8
7 1...

output:

870

result:

ok single line: '870'

Test #7:

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

input:

100 33
0 1 42
0 2 68
1 3 35
1 4 1
2 5 70
2 6 25
3 7 79
3 8 59
4 9 63
4 10 65
5 11 6
5 12 46
6 13 82
...

output:

5648

result:

ok single line: '5648'

Test #8:

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

input:

100 68
0 1 42
0 2 468
1 3 335
1 4 501
2 5 170
2 6 725
3 7 479
3 8 359
4 9 963
4 10 465
5 11 706
5 12...

output:

23559

result:

ok single line: '23559'

Test #9:

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

input:

100 55
0 1 42
0 2 692
1 3 6335
1 4 8725
2 5 1394
2 6 6837
3 7 2591
3 8 2695
4 9 299
4 10 6689
5 11 5...

output:

755827

result:

ok single line: '755827'

Test #10:

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

input:

100 99
0 1 42
0 2 692
1 3 1891
1 4 2059
2 5 1394
2 6 171
3 7 369
3 8 473
4 9 299
4 10 23
5 11 1262
5...

output:

185766

result:

ok single line: '185766'