QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#431122#8547. Whose Land?egypt_ioi2024_01WA 781ms5624kbC++234.4kb2024-06-05 01:26:282024-06-05 01:26:28

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 781ms
memory: 3804kb

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:

259
388
362
124
320
335
449
8
341
434
407
343
181
243
357
543
145
44
346
261
92
329
39
293
263
71
139
477
172
24
162
471
283
331
251
321
506
469
77
359
56
403
377
217
401
267
188
259
134
68
205
434
441
353
300
473
330
172
291
413
208
510
199
182
516
61
497
127
292
204
284
379
114
419
518
375
121
193...

result:

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