QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#89846#5657. Hungry Cowyouwike9.090909 2139ms391388kbC++142.9kb2023-03-21 16:31:302023-03-21 16:31:47

詳細信息

Test #1:

score: 4.54545
Accepted
time: 1ms
memory: 12972kb

input:

3
4 3
1 5
1 2

output:

15
36
18

result:

ok 3 number(s): "15 36 18"

Test #2:

score: 4.54545
Accepted
time: 4ms
memory: 13164kb

input:

9
1 89
30 7
101 26
1 24
5 1
60 4
5 10
101 0
1 200

output:

4005
4656
7607
3482
3507
3753
4058
1107
24531

result:

ok 9 numbers

Test #3:

score: 0
Wrong Answer
time: 45ms
memory: 26624kb

input:

5000
1 255364995
414918035 212844
1 112266691
321122438 191414
1 277615842
848755093 61676
1 432591689
892259443 53755
1 263753018
173404455 173565
1 178341924
878941367 221276
1 65332960
439468128 240741
1 812238377
191076090 108732
1 180383041
927440330 112995
1 595696140
579818784 85614
1 5057816...

output:

235118030
699918971
430865692
80346613
848027326
568710394
340195238
190991083
826211664
180951671
569935857
679922008
650993948
624850177
428416731
646484944
727440627
230673871
429374754
412788182
52678570
76241310
668853821
636690710
209140532
869111458
915919167
837020724
313374684
328391122
903...

result:

wrong answer 80th numbers differ - expected: '194845841', found: '889566722'

Test #4:

score: 0
Runtime Error

input:

100000
1 500000000
1000000001 500000000
2000000001 500000000
3000000001 500000000
4000000001 500000000
5000000001 500000000
6000000001 500000000
7000000001 500000000
8000000001 500000000
9000000001 500000000
10000000001 500000000
11000000001 500000000
12000000001 500000000
13000000001 500000000
1400...

output:


result:


Test #5:

score: 0
Wrong Answer
time: 1965ms
memory: 247640kb

input:

100000
49998999950002 500000000
49997999950003 500000000
49996999950004 500000000
49995999950005 500000000
49994999950006 500000000
49993999950007 500000000
49992999950008 500000000
49991999950009 500000000
49990999950010 500000000
49989999950011 500000000
49988999950012 500000000
49987999950013 500...

output:

376399979
376399951
752799874
129199762
505599629
881999468
258399272
634799055
11198803
387598530
763998229
140397893
516797536
893197151
269596731
645996290
22395814
398795317
775194792
151594232
527993651
904393042
280792398
657191733
33591033
409990312
786389563
162788779
539187974
915587141
291...

result:

wrong answer 2nd numbers differ - expected: '752799930', found: '376399951'

Test #6:

score: 0
Runtime Error

input:

100000
92303348842417 121458
92270522994821 852054850
93765096269940 752161890
97779083359973 984327853
90030769679569 439157849
99462493683485 45660
95578441605501 614317411
92236129196525 474149928
96065411631989 429943696
90394247621798 382840249
89263934750729 791122796
93577089467158 99679481
9...

output:


result:


Test #7:

score: 0
Runtime Error

input:

100000
98001410246890 641673458
94816407430628 495030536
95979591652947 43208
95979591652947 183686
97163521776290 904784415
91640049592559 875129980
95914835187460 844802426
94846379383324 974270031
99639652388956 311664277
99298294827771 913614463
99476866913169 221766107
97248342663994 669489020
...

output:


result:


Test #8:

score: 0
Runtime Error

input:

100000
97338601145206 191999210
97657969728741 875988993
92559675348135 8552565
99354409480201 960853995
93648768326445 343671323
97400841247229 104463842
98844341051398 508718383
96144328794112 187050711
98030257583732 365513
92378049740181 852725611
98301676983212 360931360
99458914124366 80234576...

output:


result:


Test #9:

score: 0
Runtime Error

input:

100000
96119987448606 658315028
98644701118435 280992389
98180676447908 56168
99822794299596 237183170
94655838918825 563695131
95744558879343 686204820
93739311062176 263266841
97630990881452 96901680
98683433984282 380708175
98141920320037 147598812
98095513966598 814629225
97882900659205 55097258...

output:


result:


Test #10:

score: 0
Runtime Error

input:

100000
98169641631056 170946511
99452522210742 393032132
98797460964704 393706377
98747209012224 529219651
99152468691953 362194103
99410753036475 215295
97096873124809 1315725
96106202009957 124516158
95176405230280 853965254
99359463136784 622839995
96635771520630 550456203
96368792029394 93630831...

output:


result:


Test #11:

score: 0
Wrong Answer
time: 1755ms
memory: 386924kb

input:

100000
97499080763005 475255826
97499083333242 9347
97499080763005 395470349
97499924236501 4654
97499080763005 148122052
97499213182916 2365
97499080763005 544025506
97499777050346 9912
97499080763005 41736833
97499401163067 12607
97499080763005 127843558
97499125181305 7144
97499080763005 13152858...

output:

655956691
428350171
548564542
779715219
957292615
681253780
867332278
274556258
395033249
333056245
701438428
203273870
489695476
706378273
144580619
397623726
228895978
520643679
706764212
488871564
217475631
415165457
434314301
827566002
256029845
128298498
8136098
471027033
112802895
977816195
81...

result:

wrong answer 439th numbers differ - expected: '919393844', found: '283390651'

Test #12:

score: 0
Wrong Answer
time: 1752ms
memory: 391388kb

input:

100000
98999026537234 929244389
98999182418499 5182
98999026537234 774643967
98999646433835 17857
98999026537234 760743518
98999980664456 7597
98999026537234 573421161
98999090975969 6621
98999026537234 95191521
98999947586610 17798
98999026537234 953104244
98999116462517 15643
98999026537234 100617...

output:

526240962
808910950
692662359
262454820
824971927
696977629
511671627
304096025
488742915
459595813
852048508
407821555
986580341
935810355
447338247
404215525
304626541
322321947
109610273
135672419
575250508
895903646
120155775
689920977
344461186
328119759
176168052
810451653
44880448
275429359
8...

result:

wrong answer 392nd numbers differ - expected: '208717225', found: '14289700'

Test #13:

score: 0
Wrong Answer
time: 1800ms
memory: 386824kb

input:

100000
99499024212061 630391525
99499061152079 3864
99499024212061 16505706
99499878275777 4812
99499024212061 776185964
99499757280269 12059
99499024212061 356565635
99499399237611 8902
99499024212061 972528120
99499256994518 9171
99499024212061 419476867
99499909552451 17146
99499024212061 6767939...

output:

358833000
63285979
813032842
736093155
525127433
245134000
66495264
919121222
462185849
492634514
674820800
65951665
846808145
101614325
851611097
714978008
763173865
749817090
98969566
753942239
795699176
747343173
205025620
285496160
869383022
627352226
630521000
689283960
597006790
625528637
3140...

result:

wrong answer 785th numbers differ - expected: '10750090', found: '653773433'

Test #14:

score: 0
Wrong Answer
time: 2074ms
memory: 218464kb

input:

99999
10490328589436 1000000000
13762508396295 1000000000
40632115714511 1000000000
32834989282081 1000000000
29091918306598 1000000000
24352818172350 1000000000
23447797352860 1000000000
38073075086135 1000000000
14288530509239 1000000000
36463049009868 1000000000
10562334120356 1000000000
34490016...

output:

700388007
441900329
633889755
710524131
283803474
557790342
977469295
453731955
740867450
399585089
61260177
946303916
383495467
138390250
201800787
574507250
296152171
397584629
46160042
736791563
244485121
672963594
386090829
45350016
57908743
497750061
126236247
376774373
683200308
224388706
6125...

result:

wrong answer 2nd numbers differ - expected: '142288329', found: '441900329'

Test #15:

score: 0
Wrong Answer
time: 2075ms
memory: 218632kb

input:

99999
61585049539216 1000000000
58981995705940 1000000000
44247484521936 1000000000
70916218483207 1000000000
47696673638497 1000000000
60781033156530 1000000000
55859922511212 1000000000
59143999312357 1000000000
57175954090596 1000000000
71328224891428 1000000000
46047599292678 1000000000
47510666...

output:

656243188
32948566
643463173
117555643
404423331
175305918
720464602
728176187
52343660
481598778
288806391
626281559
87639525
655585508
186668289
302299922
51144884
131930071
864537925
461948332
112174516
602067617
583721259
514072937
316849875
181584542
602020942
909774944
265236344
354407314
7111...

result:

wrong answer 2nd numbers differ - expected: '689191754', found: '32948566'

Test #16:

score: 0
Wrong Answer
time: 2124ms
memory: 218620kb

input:

99999
21219982576425 1000000000
42260400232639 1000000000
26412110792985 1000000000
11035481121988 1000000000
13219690258669 1000000000
19550933913223 1000000000
32679237390903 1000000000
15679803374289 1000000000
23896051833122 1000000000
20099950455987 1000000000
14778766729432 1000000000
21547991...

output:

123004833
200442316
426185644
58872492
227709603
691275069
31140054
408288372
46627450
394420469
28038630
88348516
177580874
914291161
49483351
471500175
240051972
930080224
725429951
850066489
70486494
709543245
744266859
66849334
646882073
84479482
107305871
549680781
667857350
462012527
42362917
...

result:

wrong answer 2nd numbers differ - expected: '323447149', found: '200442316'

Test #17:

score: 0
Wrong Answer
time: 2092ms
memory: 218404kb

input:

99999
28503598869279 1000000000
32397709666940 1000000000
25833502058723 1000000000
38020841213328 1000000000
54560138759501 1000000000
42230929758874 1000000000
28972613620824 1000000000
28498598787317 1000000000
54070131397843 1000000000
22084267818956 1000000000
37776835952805 1000000000
44465973...

output:

809311757
33918936
520773748
634143502
665500470
159257692
865331615
675216854
758081418
884430884
34612336
224808930
455131578
870245682
998255496
783973646
228778807
764266864
56172610
258063097
230759808
586968010
863468095
627318301
113165379
632685878
282933911
701010116
425103982
149553330
147...

result:

wrong answer 2nd numbers differ - expected: '843230693', found: '33918936'

Test #18:

score: 0
Wrong Answer
time: 2093ms
memory: 218892kb

input:

99999
18175781548542 1000000000
40883228277118 1000000000
33828113807745 1000000000
17817771477758 1000000000
22749897023579 1000000000
18015777423352 1000000000
28920025506062 1000000000
18799798298070 1000000000
27979006765970 1000000000
17103749421004 1000000000
24329932307643 1000000000
29798042...

output:

530050851
934114334
139117719
209595665
931545390
490464724
313339398
726174129
680183338
435074420
910113117
617310950
391858205
421597634
292505933
643471175
859583371
822028225
424137854
117205381
951235553
385505187
993337593
139310196
84705236
733385582
793718341
914042972
691991487
592397058
2...

result:

wrong answer 4th numbers differ - expected: '739646516', found: '209595665'

Test #19:

score: 0
Wrong Answer
time: 2139ms
memory: 219288kb

input:

99999
13631696063382 1000000000
19095823575649 1000000000
18048800926387 1000000000
17060779354093 1000000000
15768748767399 1000000000
30886037572930 1000000000
26814970558482 1000000000
8165534157289 1000000000
27914989206121 1000000000
34170089895536 1000000000
27764986366439 1000000000
145187181...

output:

128224308
235906182
630305895
175663247
935064156
673567088
880971677
142270788
219195804
591601417
688396857
662241394
173183727
173849778
940307597
948712861
968278050
211648760
326487872
944544299
915995684
991079462
612076369
530167721
595438732
41406240
329896610
423230300
596567975
624502862
8...

result:

wrong answer 2nd numbers differ - expected: '364130490', found: '235906182'

Test #20:

score: 0
Wrong Answer
time: 2094ms
memory: 219256kb

input:

99999
71091006018203 1000000000
42267334298998 1000000000
53421686894439 1000000000
52992676205010 1000000000
49055576058012 1000000000
70721000416119 1000000000
43151374327143 1000000000
70716000332404 1000000000
51528640431406 1000000000
65945925001029 1000000000
39524135856472 1000000000
66414932...

output:

961356073
661978146
856334765
125496359
95494026
96046550
477870997
479009281
998514374
526738546
577679953
52780376
408845358
125347390
541628430
42050461
858489891
280604852
336318636
782885612
112084552
445228062
485093598
866077502
17700736
528615855
121716819
980002916
159832310
489297035
79576...

result:

wrong answer 2nd numbers differ - expected: '623334212', found: '661978146'

Test #21:

score: 0
Wrong Answer
time: 2070ms
memory: 219180kb

input:

99999
43981987091230 1000000000
41793950053258 1000000000
23385527966154 1000000000
32049759202175 1000000000
48927065970165 1000000000
26694629471843 1000000000
27661655640242 1000000000
37241867113918 1000000000
49110069037684 1000000000
20323405372655 1000000000
43304975621086 1000000000
48021052...

output:

92516536
351675128
657057971
344213210
884819513
479824674
891698432
823725885
342868515
506255806
679030177
314462232
881075700
489975343
271160707
585724539
424439772
729916784
712650465
800550564
931552387
830262053
226427878
537741107
881261281
177480340
642216009
68913699
685758725
509535520
47...

result:

wrong answer 2nd numbers differ - expected: '444191664', found: '351675128'

Test #22:

score: 0
Wrong Answer
time: 2082ms
memory: 218516kb

input:

99999
31159466866911 1000000000
28413414847308 1000000000
25948364344910 1000000000
31236468095715 1000000000
22036273821032 1000000000
24056321657736 1000000000
36031551606814 1000000000
37935581367999 1000000000
40624624246259 1000000000
18857191994835 1000000000
22179277697755 1000000000
29154428...

output:

733458470
97461130
548318261
273178869
357511451
107086085
247603962
179886840
812153666
469113849
526316377
524932852
177759469
831104965
806323496
555192368
663658470
527503895
722429763
71867279
949414232
155466783
788439348
428095080
331488907
432693531
52301637
114876170
194266171
336806440
238...

result:

wrong answer 2nd numbers differ - expected: '830919600', found: '97461130'