QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#609094#9412. Stop the CastleNailongGroup#WA 3ms30040kbC++237.1kb2024-10-04 10:36:352024-10-04 10:36:35

详细

Test #1:

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

input:

4
7
1 3
6 6
4 7
2 1
6 3
4 1
2 6
3
3 4
6 4
3 1
2
1 1
2 2
0
3
1 1
1 3
3 3
1
1 2
3
1 1
1 3
2 3
0

output:

2
2 3
4 6
0
1
2 3
-1

result:

ok ok 4 cases (4 test cases)

Test #2:

score: 0
Accepted
time: 3ms
memory: 26324kb

input:

21
11
3 5
18 6
19 12
27 48
28 38
30 12
33 18
42 18
43 38
45 46
48 34
3
2 6
24 4
41 45
15
11 6
15 27
16 9
16 14
16 48
19 26
25 12
27 26
28 4
31 40
32 6
33 50
37 50
46 11
50 29
17
1 49
4 9
9 15
9 22
11 31
11 46
14 28
17 5
17 49
18 43
20 31
30 46
33 11
33 33
34 15
36 6
47 10
2
16 46
36 30
11
7 34
7 41
...

output:

3
28 12
41 18
42 38
5
16 12
16 47
31 6
26 26
36 50
0
1
41 10
0
1
43 35
5
1 9
1 40
33 47
44 46
42 44
0
5
27 41
29 40
44 34
10 1
31 15
1
32 11
0
0
0
0
6
23 10
35 34
12 39
23 45
29 32
34 46
0
3
20 31
43 32
34 17
0
-1
3
16 36
25 9
28 39
6
7 5
8 11
5 5
6 6
9 9
10 10

result:

ok ok 21 cases (21 test cases)

Test #3:

score: 0
Accepted
time: 0ms
memory: 30040kb

input:

2
200
7 52
9 160
10 4
12 61
18 436
19 430
20 499
24 139
25 416
29 53
33 153
35 275
35 310
37 25
38 477
39 349
42 120
44 158
45 330
49 486
50 204
51 67
52 138
52 305
56 139
63 132
66 4
67 327
70 484
71 67
72 308
74 218
76 479
81 139
82 90
86 201
87 335
91 35
91 220
92 496
94 29
94 436
96 359
97 299
1...

output:

46
52 139
91 160
94 35
126 61
132 67
154 138
154 496
185 147
187 467
199 432
224 153
260 275
270 305
277 356
306 374
311 186
334 367
349 61
352 112
393 307
35 308
126 300
187 447
224 430
261 491
274 109
277 270
311 481
390 366
440 191
453 374
65 4
143 25
349 35
70 67
80 139
332 177
277 186
287 272
4...

result:

ok ok 2 cases (2 test cases)

Test #4:

score: -100
Wrong Answer
time: 0ms
memory: 28564kb

input:

20
13
89287395 441913071
89287395 590314987
142917372 582720391
142917372 598813561
232930851 582720391
263974835 468188689
263974835 490702144
543529670 152471388
543529670 219371706
647691663 598813561
772865038 598813561
773363571 482933265
773363571 561453301
8
128947560 120560639
264980960 4742...

output:

-1
7
808969359 818037531
808969359 728848949
808969359 914645536
868407775 354711322
136348710 358274214
794031082 762966373
183418803 871951216
1
994132807 568198964
-1
7
64421616 989073442
305178188 568456333
703111224 216862231
235434591 218130772
337391599 218130772
422330841 703111224
514231778...

result:

wrong answer Participant does not find an answer but the jury finds 8 (test case 1)