QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#877178#5492. Toll RoadsZhaoZiLongWA 211ms22112kbC++171.3kb2025-01-31 20:08:382025-01-31 20:08:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4 3 6
1 2 1
2 3 3
3 4 2
1 2
1 3
1 4
2 3
2 4
3 4

output:

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

result:

ok 6 lines

Test #2:

score: -100
Wrong Answer
time: 211ms
memory: 22112kb

input:

200000 199999 200000
40203 148773 165038
148773 54931 77889
54931 9912 192188
9912 180491 24730
180491 77332 36976
77332 43929 146532
43929 43341 172446
43341 141304 121793
141304 105828 148202
105828 72010 107746
72010 152016 156358
152016 150074 115703
150074 117105 73900
117105 57831 59264
57831 ...

output:

165038 6
77889 1
192188 118
24730 1
36976 1
146532 2
172446 6
121793 2
148202 2
107746 1
156358 2
115703 2
73900 1
59264 1
67443 1
26999 1
156979 2
80963 1
56618 1
107615 1
63765 1
19719 1
178439 6
95141 1
72029 1
14650 1
21437 1
109944 1
139220 2
141978 2
102949 1
170997 6
100704 1
75249 1
131282 2...

result:

wrong answer 1st lines differ - expected: '165038 3', found: '165038 6'