QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#378612#8574. Swirly Sortucup-team194#TL 237ms7548kbC++2317.3kb2024-04-06 13:45:412024-04-06 13:45:42

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

3
0
1
2

result:

ok 4 number(s): "3 0 1 2"

Test #2:

score: 0
Accepted
time: 237ms
memory: 7548kb

input:

10000
4 3
524728 254456 277709 19127
15 11
360089 525234 862619 897281 336644 910706 75922 708901 754517 734744 94169 326125 746826 846063 159956
4 2
140105 792522 40264 514789
12 2
270333 888927 500833 9065 936673 982631 332435 751429 607700 840339 804685 416612
8 7
119416 689632 517277 673646 8262...

output:

23253
7691
0
0
15986
278544
0
0
0
0
0
2022
0
0
0
9260
0
0
51255
0
0
277173
480146
0
658
4525
0
0
0
0
0
266148
0
767231
5853
0
0
121885
0
788638
0
0
0
779611
0
5881
0
0
0
0
517074
0
0
0
210836
454586
662851
0
781542
0
0
864957
175421
0
0
0
0
0
0
0
541010
0
0
15407
0
0
3413333
0
0
0
0
19677
30305
3095...

result:

ok 10000 numbers

Test #3:

score: -100
Time Limit Exceeded

input:

10000
1 1
2246872
10 1
6956989 9799253 5103131 200665 8599026 7743840 6622177 9299599 4771199 2388897
1 1
4115997
2 1
2246219 2946703
1 1
8870887
5 4
4465846 6917492 4431029 8967539 33631
11 11
5721411 592798 6930331 6862401 4082972 2094477 1505423 2091687 9125024 8518457 361077
4 2
8818946 4073615 ...

output:

0
23312638
0
0
0
0
17919297
0
543116
0
0
783241
0
44991
0
0
0
4721212
0
11367749
0
0
421992
0
4267974
0
0
0
0
0
0
0
0
1172214
0
0
0
0
0
9209019
0
0
5365348
922347
463528
10588447
0
0
0
2144103
17190623
19634388
142708
6877382
0
0
0
0
0
0
0
0
0
1477236
0
0
0
0
0
0
820573
0
0
0
3767488
8960620
0
10561...

result: