QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#379193#8574. Swirly Sortucup-team030#WA 56ms3852kbC++203.4kb2024-04-06 16:32:392024-04-06 16:32:41

详细

Test #1:

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

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: 14ms
memory: 3580kb

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: 0
Accepted
time: 15ms
memory: 3624kb

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:

ok 10000 numbers

Test #4:

score: 0
Accepted
time: 14ms
memory: 3664kb

input:

10000
2 1
45149197 33261068
5 1
55118470 16401191 17389202 89510782 34998353
5 5
63464501 21878886 62995140 27832883 54891420
7 2
85638582 825401 81784814 21532809 30150850 21800436 94882138
2 2
83299527 63718695
3 1
89482904 64518505 91301116
1 1
82256621
1 1
30148988
3 1
68107859 50635233 8682010
...

output:

11888129
93229708
35162257
0
0
24964399
0
0
59425849
0
22479259
5248308
0
0
0
41327792
0
207654
0
0
0
0
0
0
68210620
0
0
194925
0
0
73467281
33859825
122226
74005621
26201400
0
119179402
0
0
0
0
0
0
0
816171
0
0
0
25910307
3451662
0
4390900
0
0
0
22895459
0
0
0
102364933
0
346465
0
0
0
0
0
58190487
...

result:

ok 10000 numbers

Test #5:

score: 0
Accepted
time: 16ms
memory: 3852kb

input:

10000
3 2
171561989 326460559 568826834
4 1
606735910 34072129 203284467 873417326
1 1
436249551
3 2
866901680 525830568 142746353
14 11
742357529 676987595 673771185 430647518 327098063 734643932 300528112 859509055 593973771 842011838 467635682 368399037 810057370 576054534
3 2
822197945 247906143...

output:

0
572663781
0
0
3216410
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
696031608
0
559141551
975330575
0
0
0
0
8269118
0
1645243801
0
0
0
0
0
480200189
444013173
1223177234
0
17211999
0
0
0
364069727
178337070
5296068017
0
0
0
0
709411979
0
2420843006
192213554
238004067
0
0
0
0
0
0
0
0
2626223
249160097
1183427809
...

result:

ok 10000 numbers

Test #6:

score: -100
Wrong Answer
time: 56ms
memory: 3844kb

input:

10000
11 1
719994 371444 177473 165906 258003 388506 556396 344249 756298 954668 668450
37 1
154783 680471 27958 18537 684073 711211 924310 535353 766034 510375 800832 64509 814950 546211 134844 3096 877063 837800 722279 626142 168108 336054 747182 590551 161949 182719 495638 869503 252408 315050 73...

output:

1246424
7880204
1036121
8010082
4745853
18497805
5589959
3845644
68400
265726
6056838
7202823
250222
191468
0
15682644
2627976
25524438
8162775
8408018
23822003
11083830
6961866
3133712
1753363
7922672
9894486
13936678
134033
11202387
3724366
10564706
3652183
3657586
17282350
540513
0
11530473
0
397...

result:

wrong answer 1404th numbers differ - expected: '15714036', found: '16733521'