QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#315171#4555. 石家庄的工人阶级队伍比较坚强ahihi123440 572ms12204kbC++143.1kb2024-01-27 01:46:532024-01-27 01:46:54

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 5712kb

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:

19003642
16222371
111259572
92686746
176481963
191713998
16261845
87398962
167461616
39616838
149029451
115977453
13766929
120953475
63250158
187838911
1298121
135069017
86107513
8331733
98362744
128261141
48161798
107744363
168953534
112756965
45527432

result:

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

Test #2:

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

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:

424974213
285567711
343449336
195606847
417012975
378473292
141394373
319505260
208939931
57760732
446626282
271009487
371911874
72567460
320443043
418245409
81349147
4633392
33575865
119605721
236996969
204745028
437786877
295042224
99768546
440984607
334022532
442996451
224399744
339945421
5419910...

result:

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

Test #3:

score: 0
Wrong Answer
time: 1ms
memory: 5656kb

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:

691313
688891
528788
8917706
2997494
594406
2161691
9713157
8391181
10515009
8010230
601991
11901230
1922311
11660676
3516307
9649479
12562987
2415469
11053324
11856978
1056335
6960290
2744951
5374789
2838386
6324837

result:

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

Test #4:

score: 0
Wrong Answer
time: 1ms
memory: 7832kb

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:

27938239
77829976
76387654
358525132
213466841
292059726
232234527
112261681
244149199
415149588
516175310
263408831
467053895
130551225
80877797
367190089
339069367
175259434
249311643
185408790
396688985
361665745
425039874
168554561
552614573
284481428
550343094
11590726
349576458
87222450
175408...

result:

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

Test #5:

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

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:

900635587
219225752
204692117
448255773
648138974
18801375
193338434
757556748
632208462
751448292
783869134
702995691
617888908
135286450
374968966
501859936
639134828
45598962
3623092
601042688
191847754
587016868
309774806
228917682
167983290
683197416
725769862
426351181
301714754
247336330
6398...

result:

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

Test #6:

score: 0
Wrong Answer
time: 1ms
memory: 5712kb

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:

104535717
332354360
951850835
350548562
321647495
228756736
750945208
579985588
586448616
75091393
26502502
526930846
964291913
751544703
840270886
11572561
393179943
586076205
407938141
791714846
267381946
692903367
629525234
232416821
201835387
63043747
141317982
199916600
376076142
521830582
6702...

result:

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

Test #7:

score: 0
Wrong Answer
time: 1ms
memory: 5964kb

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:

3132458
2470066
3693123
25891
2957952
1556416
3457456
2411839
4097924
223590
364349
963457
3115803
2330441
2869747
3787449
1789824
3791384
1840980
2116808
2538569
517531
3632389
2050101
3193720
580900
295400
1448106
3965653
2186380
691156
780129
1195238
1570903
1027464
3106199
177396
1387560
1367154...

result:

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

Test #8:

score: 0
Wrong Answer
time: 3ms
memory: 5692kb

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:

50204202
74311871
64052213
80696429
9478844
8160960
93412253
9382225
41216916
67497222
62896377
76219982
11417818
57291093
44765113
4018858
41831839
44873879
21451888
45500813
54397100
7163984
20080625
77217541
23222977
32915788
10461213
64232882
15896063
66261394
23597760
34823581
16684680
70341021...

result:

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

Test #9:

score: 5
Accepted
time: 14ms
memory: 6076kb

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 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2
3
4
4
1
6
0
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: 5
Accepted
time: 18ms
memory: 5912kb

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:

9077063
16394852
21560817
12319622
4596521
11296674
11206031
24111484
463578
22566975
14082843
241013
20437918
19501792
7747569
17057653
12702119
19824233
13990150
9678717
7294305
14797857
19231150
23438373
1820395
14960992
1383378
20013344
1856773
1760480
11884513
19660698
3544603
12024950
4572186
...

result:

ok 19683 numbers

Test #14:

score: 5
Accepted
time: 54ms
memory: 10056kb

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:

367378055
466377755
68531810
130570170
293413729
22091186
352994571
39289574
185061912
419570410
216906486
158057985
309826031
398539708
205282369
143355589
176841924
180469499
323049306
202798665
342940869
294442885
349413247
105359324
344832040
200942605
167024804
327712245
461417272
36392389
4885...

result:

ok 59049 numbers

Test #15:

score: 5
Accepted
time: 172ms
memory: 10892kb

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:

319980258
836403280
85067487
169354746
14929691
617169243
27056821
258382706
604431626
303466786
582693558
591643350
805685058
354697277
713169392
119981047
266074170
361551589
244009416
570219812
885323769
533845603
732983467
171637314
157240568
655888615
382623277
222525660
521046000
16781754
9335...

result:

ok 177147 numbers

Test #16:

score: 5
Accepted
time: 558ms
memory: 11920kb

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:

182054744
152955309
367723765
656170291
398641752
659406869
123483680
36395657
741598176
200359456
608602898
16499688
64866875
453796147
478615997
231593917
625893454
505324422
452414035
177707259
291586909
76312071
292973896
436002247
530412999
169547837
467217200
676371609
839574106
275320381
9485...

result:

ok 531441 numbers

Test #17:

score: 0
Wrong Answer
time: 19ms
memory: 6112kb

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:

185038966
525083818
360363885
364591157
112091665
137792186
540097376
272294883
559502384
348156011
331201773
650007435
307873447
237750534
258042883
125387906
616968044
118557586
120986719
115448270
689927609
301866747
476914445
185181773
63211218
636802131
19140310
752734367
28917021
166679387
545...

result:

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

Test #18:

score: 0
Wrong Answer
time: 57ms
memory: 6136kb

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:

2721492
191346088
166994226
75369685
66461100
248329699
43371884
186744630
151465623
165118817
271326053
136609792
86071758
99949680
167109041
23038635
247928723
50783645
131167633
83904571
224336219
163939796
84007557
277044453
241140416
97251246
183426674
232878215
75675124
23818399
138648199
3998...

result:

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

Test #19:

score: 0
Wrong Answer
time: 176ms
memory: 10564kb

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:

104530521
32410504
59452762
110599920
8433792
100520613
115116912
135021541
95842650
95056617
24361597
27992526
35878964
112018363
135099806
40919878
131363429
879778
109640064
368104
63150937
91044407
124180744
129689351
45644653
40217829
31172838
65627781
35217486
42039665
19445636
49915383
123824...

result:

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

Test #20:

score: 0
Wrong Answer
time: 572ms
memory: 12204kb

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:

20210956
1847843
16022234
13001859
20249787
18842493
579035
14400490
9190771
13537357
17158626
12012821
6014448
8825597
10733356
16522357
185750
10533887
8129322
1806075
16885154
9673108
802683
3119908
13553063
20067184
18040932
2812752
2369926
16046127
20136134
19471640
1573744
17502124
9287908
126...

result:

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