QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#459369#8547. Whose Land?egypt_ioi2024_13WA 115ms11948kbC++204.1kb2024-06-30 02:37:572024-06-30 02:37:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 11812kb

input:

2
5 1 2
1 2
1 3
2 4
2 5
2 2
2 3
8 2 3
1 2
1 3
2 4
2 5
4 6
5 7
7 8
2 2
2 5
3 4

output:

4
5
7
8
6

result:

ok 5 number(s): "4 5 7 8 6"

Test #2:

score: -100
Wrong Answer
time: 115ms
memory: 11948kb

input:

1000
500 1 500
291 2
406 9
207 13
71 15
351 17
442 18
496 19
104 20
208 23
448 34
80 42
187 44
352 45
290 46
116 47
318 50
226 52
129 55
83 59
100 60
54 61
73 65
63 66
454 67
43 71
26 74
68 26
320 75
388 76
425 79
170 81
350 83
48 85
153 86
221 90
290 95
130 96
82 98
124 82
36 99
213 100
121 101
132...

output:

329
429
411
159
375
394
475
10
395
453
447
397
240
297
401
500
180
56
398
310
118
382
51
354
333
98
182
483
223
30
198
483
334
377
306
388
495
487
104
413
74
439
424
265
434
327
240
309
176
96
255
472
474
401
350
490
377
208
343
439
264
496
261
235
498
74
493
161
344
253
337
416
148
443
496
416
167
...

result:

wrong answer 1st numbers differ - expected: '255', found: '329'