QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#39161#1274. Walking PlanZhaoZiLongWA 1812ms113192kbC++202.8kb2022-07-08 17:37:492022-07-08 17:37:51

详细

Test #1:

score: 100
Accepted
time: 3ms
memory: 3660kb

input:

2
3 3
1 2 1
2 3 10
3 1 100
3
1 1 1
1 2 1
1 3 1
2 1
1 2 1
1
2 1 1

output:

111
1
11
-1

result:

ok 4 lines

Test #2:

score: -100
Wrong Answer
time: 1812ms
memory: 113192kb

input:

10
5 10
4 2 55
2 1 26
3 4 83
5 2 16
4 5 54
3 4 38
2 1 68
2 5 1
4 5 85
4 2 60
20
2 1 13
1 4 17
3 2 20
2 4 16
4 2 17
4 2 2
3 1 2
1 5 10
2 1 8
4 5 15
4 2 16
3 1 18
5 2 7
4 2 9
4 3 16
1 4 18
3 2 5
1 5 9
5 1 19
1 2 16
20 50
4 16 25
3 16 990
9 18 863
19 12 236
4 10 360
13 4 585
14 17 164
8 18 198
2 17 804...

output:

26
-1
93
-1
55
55
119
-1
26
54
55
119
16
55
-1
-1
93
-1
42
-1
-1
2812
1804
4268
372
1386
4131
804
1777
3008
2371
-1
3155
2279
2381
3008
1865
1260
1730
1052
2136
2458
985
2580
3008
3179
2825
3180
-1
1812
2011
1055
-1
1824
2617
2753
1340
3589
2419
2545
199
2573
-1
2425
5244
3034
469
1073
2425
963
2797...

result:

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