QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#859052#9679. 盒子nullptr_qwq0 465ms46712kbC++141.6kb2025-01-17 14:05:092025-01-17 14:05:09

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 17
Accepted
time: 0ms
memory: 7904kb

input:

3
5 2 4 3
2 2 1 2 2
4 2 4 3
2 4 1 1
10 3 5 1
2 2 2 2 1 1 1 10 2 2

output:

7
7
6

result:

ok 3 number(s): "7 7 6"

Test #2:

score: 0
Wrong Answer
time: 0ms
memory: 7908kb

input:

65
7 1 27 22
70 29 32 15 69 79 84
10 2 2 1
76 63 99 67 75 30 29 45 79 23
9 1 4 3
47 91 10 30 91 29 12 14 53
10 1 5 4
92 22 92 27 30 50 59 6 57 58
5 2 15 15
59 27 70 24 11
5 2 42 42
70 50 42 55 5
6 2 54 46
67 14 52 80 95 3
10 2 89 88
55 14 45 14 90 81 38 40 54 17
5 2 93 86
35 58 76 64 73
6 1 45 43
63...

output:

320
293
287
398
191
222
271
445
285
344
307
270
348
312
370
427
199
184
320
502
344
197
339
233
262
220
454
244
160
280
482
580
335
373
202
293
228
590
268
475
260
494
523
476
186
223
368
323
368
392
507
494
132
209
224
250
298
216
525
557
172
448
433
430
578

result:

wrong answer 19th numbers differ - expected: '318', found: '320'

Subtask #2:

score: 0
Skipped

Dependency #1:

0%

Subtask #3:

score: 0
Skipped

Dependency #2:

0%

Subtask #4:

score: 0
Runtime Error

Test #35:

score: 11
Accepted
time: 48ms
memory: 7776kb

input:

66664
7 2 82188055 1
35930054 4923258 36288509 46890418 53350617 49812938 68015568
10 2 460335201 1
305598063 240803174 36008172 416771728 391050572 270293987 333994588 436573185 216917970 103343453
9 3 119910901 1
35106715 29444257 72409421 49339248 23617992 3266647 38704192 75874356 72979434
10 1 ...

output:

5
8
4
13
8
3
8
13
3
4
6
10
8
5
11
13
9
14
5
7
5
11
11
4
3
9
7
4
6
5
6
4
5
12
5
9
3
5
10
12
6
6
14
15
4
7
14
14
7
5
7
6
9
5
3
10
8
8
7
6
7
5
11
6
6
5
6
7
4
9
9
9
6
4
4
5
7
6
6
13
6
10
12
5
4
10
14
7
3
7
5
4
7
9
8
13
4
4
8
10
6
6
6
15
10
15
11
3
4
6
7
5
11
13
6
16
13
8
7
10
7
14
11
7
6
9
10
10
8
4
5
7...

result:

ok 66664 numbers

Test #36:

score: 11
Accepted
time: 79ms
memory: 11880kb

input:

6690
72 3 317146495 1
142773247 81913384 80067622 35723743 45518449 71351452 126380141 180273132 191748453 112193322 28442496 150647314 26258521 303990 33345021 6621848 42880826 39589616 204452573 116325570 108705558 11387332 30299069 72815156 15654159 166930094 205234583 104153808 96042862 20541234...

output:

30
10
22
22
15
12
17
13
10
20
11
88
10
14
15
17
40
11
42
11
49
17
14
34
21
13
11
19
9
13
17
12
57
111
12
14
134
23
32
14
47
103
82
14
11
9
34
39
16
15
23
15
92
11
17
11
15
48
16
36
12
17
10
31
13
50
28
17
12
35
19
123
12
15
119
13
36
35
34
15
19
15
15
37
18
11
10
10
117
13
21
58
12
29
56
11
51
40
16...

result:

ok 6690 numbers

Test #37:

score: 11
Accepted
time: 465ms
memory: 46712kb

input:

666
775 2 246425661 1
74622578 157374905 182555425 141672098 9699671 18414135 183998918 97649169 141305719 95187406 180311055 83450992 135739288 129842641 231493124 131315020 85362268 132726174 141564017 176940415 12513491 100929354 136380053 148052188 103349185 8787084 242276294 101926333 233021909...

output:

485
39
54
99
89
32
48
111
35
52
42
202
47
771
55
38
59
26
89
50
31
32
298
36
63
56
251
49
60
80
33
35
34
139
52
48
183
30
451
83
30
35
91
1212
48
33
38
41
40
39
34
42
948
53
41
48
75
106
40
31
60
27
75
105
41
259
370
57
85
209
67
447
83
1350
53
72
74
51
33
30
77
95
49
74
49
40
27
47
459
191
102
187
...

result:

ok 666 numbers

Test #38:

score: 0
Runtime Error

input:

65
9836 26 54096694 1
148800 658413 951947 2268744 878783 2182195 752030 2653278 1315450 1670737 1003031 2704024 1562015 1651614 2632695 2596293 928102 3193391 577384 744762 2401049 1562878 1463415 2091183 1946443 2857417 1492929 1055634 346091 2308435 1052429 2600515 197268 3726435 3867526 1509937 ...

output:


result:


Subtask #5:

score: 0
Skipped

Dependency #1:

0%