QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#117776#6679. Not Another Path Query Problemlarryzhong#WA 1ms3744kbC++175.5kb2023-07-02 08:13:482023-07-02 08:13:51

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3744kb

input:

9 8 4 5
1 2 8
1 3 7
2 4 1
3 4 14
2 5 9
4 5 7
5 6 6
3 7 15
1 6
2 7
7 6
1 8

output:

Yes
12
9 1 -1 1
8 3 1 -1
9 5 -1 -1
9 6 -1 2
8 9 1 -2
7 1 -2 8
6 2 -1 6
5 9 1 -6
4 1 -1 7
3 9 1 -7
2 1 -1 7
1 9 1 -7

result:

wrong output format YES or NO expected, but 12 found [2nd token]