QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#315166#4555. 石家庄的工人阶级队伍比较坚强ahihi123420 629ms12008kbC++142.8kb2024-01-27 01:22:332024-01-27 01:22:35

詳細信息

Test #1:

score: 0
Wrong Answer
time: 28ms
memory: 5688kb

input:

3 532 214632061
9043356 146372181 146678454 64676583 16740935 175871555 98597859 116368864 10703972 131551545 189335670 15365384 26562526 179152327 211984789 12921820 98023790 171197100 164965352 115067748 116698308 59176992 177174386 109284524 35817894 178671763 165387105
62427436 156995344 1833109...

output:

176874194
151480236
84073880
128968210
97436999
155415721
68121580
179950709
82003587
113717110
144029986
57926132
114698790
72789819
38550223
26074122
59603753
90041092
210808768
22596170
52586494
20557431
211443354
128282787
597773
5837490
108721060

result:

wrong answer 1st numbers differ - expected: '132389456', found: '176874194'

Test #2:

score: 0
Wrong Answer
time: 2ms
memory: 5792kb

input:

4 532 447587731
210388236 316123346 213929922 215476732 417493341 361881602 325894740 18599996 228489642 346948011 286692912 333347263 93539038 82313523 313428621 384401622 247961135 63221929 373519144 27598061 234625084 346095425 328114785 253885596 58856777 14154042 422298127 115611925 210208885 2...

output:

168251660
159610529
426547871
436032613
283016366
311305903
93049285
318985788
223167039
296356175
39185899
59506505
62259164
378310799
99529293
117618195
400826138
343211876
187278281
131092444
105774031
137390958
157661149
170389256
122589114
225486129
199996305
150905539
344697438
45894455
253083...

result:

wrong answer 1st numbers differ - expected: '178326587', found: '168251660'

Test #3:

score: 0
Wrong Answer
time: 2ms
memory: 5672kb

input:

3 476378538 12571459
8086617 10453594 11491171 4689719 849802 996762 10490264 12135678 7819114 10181688 6005960 12368941 6919314 12077658 6344807 11132969 802841 10352643 10062964 12021822 6870361 7590881 7920762 5265622 12249726 8267930 744004
9292135 5390286 5967848 10490690
1761276 3325528 587455...

output:

5953606
2272798
4069221
3550719
10316480
3769594
5640074
1951026
6606214
477405
599460
5670047
5769648
9201608
10317922
255646
9128478
4395113
10995250
11926370
1634301
10105433
8504916
12059034
5844941
1504418
9721346

result:

wrong answer 1st numbers differ - expected: '2536122', found: '5953606'

Test #4:

score: 0
Wrong Answer
time: 473ms
memory: 5676kb

input:

4 476378538 575081563
120637494 437573676 3057051 28966199 466996506 247098849 248497981 528259037 503585727 390947456 24757037 317704848 130907153 310363492 373560768 206537298 499241063 77617958 435796066 249890766 65743489 306758609 362166747 493798862 567211154 343656313 442657603 355067271 6183...

output:

0
246463527
164309018
246463527
0
492927054
164309018
0
82154509
164309018
164309018
328618036
164309018
246463527
246463527
82154509
0
410772545
164309018
0
82154509
328618036
164309018
246463527
492927054
164309018
492927054
246463527
164309018
410772545
246463527
492927054
82154509
82154509
0
0
8...

result:

wrong answer 1st numbers differ - expected: '38315500', found: '0'

Test #5:

score: 0
Wrong Answer
time: 629ms
memory: 5792kb

input:

5 476378538 915698197
384215208 619116315 698374683 29333662 502569220 522795582 764188184 273876900 257083512 78548670 838607763 638609787 154391550 661474985 756573675 336896967 663419645 876911081 619858385 369952598 351902134 709129390 650067275 190747450 172611867 364975639 737106695 533044212 ...

output:

250425331
659660669
433504298
716844406
96317435
704406564
494631741
246936668
647374508
457318215
548933539
367523063
302755276
690451912
454891319
779488659
887788893
662239246
770842842
803757619
113760750
712597338
499637214
402258012
537102421
767050817
263621578
377534009
111485535
342040655
6...

result:

wrong answer 1st numbers differ - expected: '712482278', found: '250425331'

Test #6:

score: 0
Wrong Answer
time: 323ms
memory: 5672kb

input:

5 476378538 971936953
203904858 32376651 299883651 554630524 500119535 88520677 869571122 467933418 62631557 922713675 339818532 798760302 250244916 451025864 216830700 894001868 459910254 885740840 475353657 433748447 419202533 780416961 32606837 546884191 832653613 705093933 625269836 64896059 224...

output:

392119270
344268459
264372412
624304572
155393596
69218306
278825102
580658604
386793531
231365990
493834277
158591955
764141218
916022580
573553412
854641584
86839573
495388411
749957396
60875785
950497725
270389039
658100055
48915900
195619405
56359974
502318216
831915816
346657380
21367096
350302...

result:

wrong answer 1st numbers differ - expected: '823712327', found: '392119270'

Test #7:

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

input:

6 476378538 4126711
639799 1906750 1482864 4010558 3323519 2248552 306839 1022114 2022783 89154 571256 2213424 2835951 568484 814355 1152120 1056012 929954 83129 668609 1382533 2568553 2264721 2648320 1580766 776667 2364001 665269 2029437 376839 2459128 1105694 2664083 1404757 2962604 3265449 254856...

output:

3653154
1826577
0
2976644
2097181
2097181
3314899
2773691
2232483
2908993
3991409
2841342
3585503
1961879
67651
676510
2841342
3788456
0
3653154
1826577
2300134
744161
2503087
135302
1961879
1285369
2976644
3517852
608859
879463
0
135302
3111946
3450201
608859
270604
1826577
744161
3111946
2164832
1...

result:

wrong answer 1st numbers differ - expected: '751872', found: '3653154'

Test #8:

score: 0
Wrong Answer
time: 59ms
memory: 5728kb

input:

7 476378538 94057333
57824400 77405026 78671278 73702058 493426 37134357 87651894 24370090 13965791 63472010 54183893 19948952 23707751 78965322 18597252 84389893 16779968 18182118 61141766 84168298 70884941 81965711 61025786 35140861 60486906 59505482 35326985 86471303 87270875 36171839 92600439 37...

output:

77845062
21605117
62329755
24948374
21973284
16403351
85322037
23496950
31658348
62906623
73573756
65832887
3200799
70791112
8433685
71039301
9281038
58325445
93860265
16508232
74748797
87522388
69933250
72133961
2464962
42795686
2922535
60327405
46466668
24057580
5028900
34730744
28856511
4253586
6...

result:

wrong answer 1st numbers differ - expected: '12545582', found: '77845062'

Test #9:

score: 5
Accepted
time: 11ms
memory: 5832kb

input:

9 476378538 7
1 3 2 3 3 0 1 4 2 5 4 5 6 1 4 0 5 3 1 1 3 1 1 3 6 0 3 2 2 1 3 6 3 4 6 5 1 1 0 2 2 3 6 3 2 6 0 6 0 6 0 6 0 1 0 5 5 1 4 3 6 2 0 0 0 5 6 0 0 1 6 3 6 4 1 0 0 0 1 2 1 0 3 1 1 0 6 4 0 0 0 5 5 5 2 6 4 4 1 2 6 2 4 3 4 6 0 1 5 5 3 1 6 6 6 1 3 3 1 0 0 2 5 1 1 3 6 2 6 0 1 0 3 4 5 1 5 6 6 6 5 6 6 ...

output:

0
3
6
5
0
0
3
1
6
0
3
1
2
2
2
1
1
0
4
0
4
2
2
4
4
5
0
2
0
1
2
5
5
1
0
1
1
1
2
2
6
4
5
5
6
4
3
6
5
6
6
6
5
5
4
4
6
6
3
0
3
6
3
5
4
0
6
6
1
0
2
4
0
3
3
5
6
1
3
6
1
2
5
5
4
6
1
1
4
2
0
0
0
5
4
1
0
0
1
0
0
6
5
1
4
1
5
6
5
0
2
1
5
1
5
5
0
0
3
4
5
1
2
0
1
1
2
0
1
4
3
4
2
2
0
4
5
3
3
1
6
4
2
2
1
5
5
2
2
4
...

result:

ok 19683 numbers

Test #10:

score: 5
Accepted
time: 34ms
memory: 6200kb

input:

10 476378538 7
4 0 1 4 1 0 5 1 2 2 6 3 4 3 3 2 5 3 4 6 6 3 4 0 2 4 1 2 0 4 0 2 6 5 1 6 1 5 4 1 5 5 4 4 3 1 3 5 0 3 3 4 0 3 0 1 2 1 6 6 2 6 2 1 2 4 2 6 6 3 4 1 2 6 6 1 3 2 3 6 5 2 5 3 1 2 4 4 6 4 1 1 2 0 3 6 0 6 6 3 4 3 5 3 5 5 3 5 4 0 6 3 1 3 0 3 6 6 5 0 1 2 6 2 6 1 2 0 3 2 3 6 6 6 3 5 0 4 1 0 3 4 0...

output:

3
2
0
5
0
0
6
6
4
4
2
3
3
1
2
0
6
5
5
0
1
2
3
0
1
5
3
5
1
0
4
1
4
5
2
2
5
4
6
4
2
5
0
5
6
6
4
6
1
3
3
2
6
1
5
1
5
2
5
6
2
5
5
2
1
5
3
1
0
4
2
5
1
4
6
1
1
3
3
2
5
0
0
4
1
1
0
4
2
6
2
0
0
0
5
5
6
2
2
4
5
4
2
6
6
5
2
4
2
1
4
5
2
4
5
5
0
2
4
4
6
2
0
5
3
5
5
1
6
2
6
5
4
5
2
5
2
1
2
0
2
2
4
4
2
4
2
2
6
3
...

result:

ok 59049 numbers

Test #11:

score: 5
Accepted
time: 106ms
memory: 11000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4
5
0
2
2
1
1
4
6
1
1
2
2
4
1
4
1
5
6
0
6
4
0
3
4
5
1
3
0
5
5
2
3
2
2
3
5
5
1
4
4
1
1
2
6
0
1
6
4
0
4
2
0
1
3
2
0
2
1
6
1
1
4
0
4
6
4
3
2
1
0
6
1
0
0
0
0
5
2
0
4
3
2
5
4
3
4
4
1
1
2
2
3
0
5
3
6
3
4
6
4
6
4
4
5
6
2
6
2
3
2
0
2
6
...

result:

ok 531441 numbers

Test #13:

score: 0
Wrong Answer
time: 80ms
memory: 5836kb

input:

9 476378538 24259381
10288069 6854164 4788004 19221668 18559380 9968188 9008951 21020970 16854759 6880723 22745553 12336004 8062002 3975104 3602089 23822625 18161285 13146657 12373386 12532381 9789299 12979843 4944167 15461011 5686230 10108712 3341266 24130047 12372995 7819252 3041343 5052611 197337...

output:

7726417
1945270
18706604
12557501
22059328
7131817
9033722
2270032
24257476
7525291
16303518
12093657
4120069
16658156
16802486
17583363
18889434
11322816
7780380
17932118
12688457
22437408
7439990
8478546
19138972
10943136
15847773
8910047
8500630
6753694
15756455
12683889
15748631
21095691
5673610...

result:

wrong answer 1st numbers differ - expected: '9077063', found: '7726417'

Test #14:

score: 0
Wrong Answer
time: 52ms
memory: 6216kb

input:

10 476378538 482834857
20202355 94934130 92455997 372871192 350038258 266635764 130685767 153957617 379144269 1672153 123963520 344345057 182635230 341983237 336799006 211241639 3093239 471841536 98794568 476223229 463283348 90681950 105519208 104308549 23921648 170003033 466573083 441643238 1450807...

output:

482544234
219369431
423115024
20381474
191339152
316505082
318670280
112248448
189172339
34732112
278272868
64497705
140429450
328134715
368402461
481402288
17923147
39809510
3486468
248400360
271102219
344136358
386143432
55654822
87419168
200244759
294819446
12053966
241763333
50312225
113091060
4...

result:

wrong answer 1st numbers differ - expected: '367378055', found: '482544234'

Test #15:

score: 0
Time Limit Exceeded

input:

11 476378538 972009301
203436325 703061239 57572681 311331193 769156473 528199260 528091913 343422864 898577246 169741292 462928880 914814340 571462006 931317934 814673580 343278250 748276575 479022366 204442017 925448467 750115423 420642585 655532371 800665216 102116797 645312701 752099172 25379624...

output:


result:


Test #16:

score: 0
Time Limit Exceeded

input:

12 476378538 851313877
809783697 127759246 452575075 522670525 21162362 154653948 709393110 510092301 82661576 604374304 770179619 401568908 152505704 99615724 333630025 87620587 12887298 409155410 790609913 49416869 330995818 523353152 41991738 289548740 250474942 235373366 737190712 87023976 61856...

output:


result:


Test #17:

score: 0
Wrong Answer
time: 265ms
memory: 5868kb

input:

9 476378538 756663859
389822258 236360124 489869365 653692683 430298055 731925518 686070204 624394209 398898710 454790504 267965456 97980068 486939721 190211227 244641538 652899287 644378527 14665337 262669455 538022679 598799405 507150785 253758928 722365586 312124481 348876617 611540111 73398121 6...

output:

727251777
144530925
544941096
740337955
719018034
53209765
660349368
535703105
167804077
102006541
710906637
138804841
725746735
446156501
43329622
561180004
39850377
29861118
475511981
11872448
281361717
367948812
556652929
528716342
526402513
318177321
478333849
457800833
439246962
153578572
54335...

result:

wrong answer 1st numbers differ - expected: '185176101', found: '727251777'

Test #18:

score: 0
Wrong Answer
time: 67ms
memory: 9992kb

input:

10 476378538 294236353
272835520 62630841 286928002 68660491 168948937 96022463 102005730 76690909 119613685 58163242 287853841 74065021 233704654 214497389 35957531 24444696 57684087 69398594 188666798 183922643 24331586 108622556 229532660 258857260 76875604 137782179 214125010 217585921 120140860...

output:

263139702
114189487
185261399
165137745
59805841
136844531
38388945
181604494
287038273
241855977
271669003
196359091
37019582
85898718
175639346
56003866
281177445
244254522
232862941
39854478
293872863
83542064
153107041
236999718
4832624
282702962
294119482
265493422
59362807
235502889
41230524
1...

result:

wrong answer 1st numbers differ - expected: '39865346', found: '263139702'

Test #19:

score: 0
Wrong Answer
time: 259ms
memory: 9988kb

input:

11 476378538 139568251
11097646 12918728 91965757 15954249 98192343 48366624 56650343 90664174 795962 122123049 13483668 20492355 8764469 93744560 46297411 32772079 120068544 42182823 70242870 34112966 87701743 50016293 55392085 23779234 29401426 68957715 123653053 107239181 29081865 3255590 8056399...

output:

34620143
107076758
28608862
41141984
33392566
11488035
137925795
43530325
2247048
42478453
73035138
33505846
78396986
29154006
131090673
132963916
14046272
106160436
92402228
53874480
55811743
4266121
45124216
126866588
131155182
23981736
51446373
100581282
124477333
42969364
126061958
77915644
1166...

result:

wrong answer 1st numbers differ - expected: '25579870', found: '34620143'

Test #20:

score: 0
Wrong Answer
time: 345ms
memory: 11924kb

input:

12 476378538 20697577
19877181 7407661 746578 7321253 12934581 2606479 6134934 6865084 17261312 15824340 10342430 1225440 16978625 18691060 16464225 6456314 3605515 17456753 12387258 16139254 6912168 18306244 8204665 3471404 3611501 9218310 11518652 16848286 12204599 13894262 18074273 14681930 64006...

output:

8353866
10118619
12015593
5342376
7994394
10625585
4592468
19402926
19424612
17250378
15243566
10514225
2466903
2340148
9129105
16149768
16895077
16787409
10197016
5402608
15282498
12270457
19150080
16567350
15319933
19265396
811614
6026693
11769149
3241280
3232635
18725828
3924515
20658572
9428195
...

result:

wrong answer 1st numbers differ - expected: '5399726', found: '8353866'