QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#454215#8547. Whose Land?egypt_ioi2024_11WA 514ms9684kbC++236.0kb2024-06-24 17:44:562024-06-24 17:44:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 514ms
memory: 7896kb

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:

242
377
345
116
306
320
433
8
325
418
390
328
172
230
341
500
134
42
333
247
85
312
36
276
245
65
132
454
160
23
151
451
272
312
239
305
476
457
74
345
54
382
363
204
385
257
176
244
127
63
195
424
431
337
290
459
310
162
281
397
196
478
186
175
489
56
475
121
277
197
271
363
110
399
487
353
116
181...

result:

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