QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#56403#2065. Cyclic DistanceflowerWA 56ms8364kbC++202.6kb2022-10-19 10:23:062022-10-19 10:23:09

詳細信息

Test #1:

score: 100
Accepted
time: 4ms
memory: 8276kb

input:

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

output:

44

result:

ok single line: '44'

Test #2:

score: -100
Wrong Answer
time: 56ms
memory: 8364kb

input:

57206
3 2
1 2 574927
2 3 406566
2 2
1 2 308806
4 3
1 2 312588
2 3 500141
2 4 53602
3 3
1 2 797183
2 3 944061
5 3
1 2 624010
2 3 488613
3 4 734514
4 5 497493
5 4
1 2 540278
2 3 488655
2 4 228989
2 5 653896
2 2
1 2 569117
4 2
1 2 821764
2 3 499471
1 4 549060
2 2
1 2 991159
2 2
1 2 482941
5 4
1 2 30462...

output:

1962986
617612
1732662
3589692
4796464
3823636
0
3740590
0
0
3418504
5133766
0
1992310
0
3050630
0
-1999999999996897924
-1999999999997619068
3076270
0
7258020
879020
2500212
3613854
0
0
2273662
2331560
1681964
-1999999999991082548
2373066
-1999999999996836958
-1999999999996895774
3642898
0
-19999999...

result:

wrong answer 4th lines differ - expected: '3482488', found: '3589692'