QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#124876#6523. Escape PlanHuangHanShengWA 995ms141420kbC++201.5kb2023-07-15 17:18:412023-07-15 17:18:45

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 33732kb

input:

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

output:

4
-1

result:

ok 2 number(s): "4 -1"

Test #2:

score: -100
Wrong Answer
time: 995ms
memory: 141420kb

input:

100
100 1808 2
94 47
3 3 0 2 4 3 3 4 0 0 2 2 2 3 2 4 0 2 3 4 4 2 0 3 4 3 1 0 2 1 2 2 0 3 4 4 4 1 2 2 3 1 0 0 3 1 4 2 1 3 3 4 3 0 4 1 0 3 2 1 4 4 1 3 2 3 3 3 3 1 0 3 0 4 3 1 0 4 0 4 4 1 2 0 0 4 1 3 3 3 0 2 2 1 1 2 3 4 1 2
72 29 1138
59 78 2398
95 5 1610
32 46 4176
36 99 8143
100 69 413
61 58 1595
9 9...

output:

11721
10044
10765
8268
8739
1904
8596
12508
9071
10332
10286
10051
10292
11243
10850
12738
11248
11317
11824
9808
14916
10801
10562
9630
12583
17511
11505
10309
10688
11057
11010
9146
10865
25338
10563
11729
10987
7103
10672
10128
8124
9214
6588
12359
12683
12339
3137
10266
10752
14306
-1
9617
8328
...

result:

wrong answer 1st numbers differ - expected: '5109', found: '11721'