QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#392051#8547. Whose Land?ucup-team3057WA 484ms4060kbC++174.7kb2024-04-17 03:40:542024-04-17 03:40:55

詳細信息

Test #1:

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

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: 484ms
memory: 4060kb

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:

254
381
353
124
314
325
431
8
333
418
392
333
179
240
348
487
145
44
337
261
92
325
37
291
258
71
135
448
171
24
162
446
280
320
249
318
466
454
77
349
56
387
367
217
391
260
188
251
133
68
202
423
430
344
297
455
319
168
288
401
206
468
198
179
481
61
468
127
288
200
278
370
113
403
476
361
121
185...

result:

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