QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#114180#2813. Weirdtreezhangwenxin42 478ms6560kbC++237.2kb2023-06-21 12:22:022023-06-21 12:22:04

詳細信息

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 1ms
memory: 3444kb

input:

966 1000
188363740 589476690 819684757 475179567 162289921 733331939 680003760 423847214 703730312 291752235 351463201 937522268 64588573 399012809 272561165 599780539 83270822 164102043 624995073 120374612 678210514 488108346 941579981 767236037 850406512 515467244 934426708 262361378 733612602 464...

output:

99386228771
285701011099
93632056850
281989163332
303817076569
20937894906
73151349399
132107688407
338284462998
24844890982
140888959978
170036512953
50814147522
97561625746
50275796014
55324327797
84580391349
51460901595
55077488581
213665989229
125662359971
96527688937
185212163367
373053648283
1...

result:

ok 344 lines

Test #2:

score: 0
Accepted
time: 1ms
memory: 3672kb

input:

901 1000
999589980 999214195 999743157 999126103 999286490 999267652 999519169 999294650 999667967 999980692 999941414 999668285 999190350 999451283 999145313 999185533 999557613 999043532 999834626 999040010 999897756 999877438 999216017 999586447 999943453 999368148 999692333 999719422 999849610 9...

output:

727634026462
258879131564
17989489017
135928706207
67155102578
334018096039
127934457359
28983788574
35979560747
407981705803
226978163582
252064441115
298035176042
475048150791
512283271171
215983094355
201341449542
43978687370
115133093457
325431689223
435245551509
28984946891
370804457448
1993427...

result:

ok 332 lines

Subtask #2:

score: 8
Accepted

Dependency #1:

100%
Accepted

Test #3:

score: 8
Accepted
time: 132ms
memory: 6416kb

input:

76150 80000
32029657 907857671 760489308 343887940 278226100 168470291 666158587 51251848 303560289 48411978 195584368 46479451 450233214 178362154 115287057 2938850 803717765 968392166 589034650 387534904 77112288 274256234 356840208 60923173 20797864 653643065 960669563 87025676 817522413 93024418...

output:

8220673678337
5971812049042
5242180957615
18711270761608
4512023121457
3137940370252
2563372483105
16476894579540
3810443569280
1752428600492
1277175092759
20184685804489
6170121667098
2671447647025
1307768277360
1171283123140
27506565529812
30664548514130
6755336989583
6736303909111
18622288366634
...

result:

ok 26917 lines

Test #4:

score: 0
Accepted
time: 134ms
memory: 6440kb

input:

74881 80000
999253788 999537237 999938023 999795613 999757608 999870879 999481582 999656236 999836358 999150683 999204145 999227254 999710240 999079025 999693342 999022977 999591405 999677201 999885066 999600228 999064530 999935628 999500310 999306968 999214870 999081235 999627217 999956727 99977794...

output:

54774696496748
42081439967265
17906018025059
1452284489789
34902518420002
52741883167138
8947948612098
28334365276474
43490239641264
37810635150696
31233626512118
43150921158245
15000326330951
2236880854586
17333035338161
28615408426074
1666174151668
27014951042332
55954804298660
894544648946
791510...

result:

ok 26864 lines

Subtask #3:

score: 8
Accepted

Test #5:

score: 8
Accepted
time: 3ms
memory: 3380kb

input:

937 1000
631216009 869613152 930472391 565464603 615860285 225788550 621532305 671044759 686011029 102483970 507799388 976017264 586239272 91471532 773404833 981261100 664781538 691746892 973047425 562711051 792865846 686480962 800771605 626015452 783329411 478894142 826983440 279108379 994766235 23...

output:

95606780168
457544848107
219664209531
231993445048
45093491390
212169943157
83594534601
87905941038
223049678373
219701120342
295206252594
120729585708
64510892813
210532163896
136112712054
371659611300
241511241359
114738069772
145079327633
108747456211
45224615812
42688643438
58295841604
182341668...

result:

ok 498 lines

Test #6:

score: 0
Accepted
time: 2ms
memory: 3380kb

input:

949 1000
999519718 999902943 999447920 999244333 999753736 999625525 999510644 999607278 999509183 999759464 999564254 999108564 999853733 999707294 999865603 999627938 999347514 999515367 999921660 999522368 999393937 999140755 999635541 999597063 999820316 999997036 999992932 999238119 999710671 9...

output:

478759193496
406432955383
572302351013
128835646103
77878397723
83956747116
56720046619
299058698094
868709108993
391237811293
189371302068
313614744353
596294850995
400899457787
351325190365
311433509970
943716802832
123103973771
344804316129
630751964778
579924574447
212913952051
201399913874
2598...

result:

ok 483 lines

Subtask #4:

score: 0
Runtime Error

Dependency #3:

100%
Accepted

Test #7:

score: 0
Runtime Error

input:

291883 300000
999936359 999157313 999230727 999238424 999882413 999896575 999978673 999337460 999548359 999811399 999390996 999497270 999931954 999879764 999443247 999606539 999476595 999102142 999200126 999296050 999318910 999115682 999722810 999085364 999476959 999731164 999921603 999818148 999348...

output:

Unauthorized output

result:


Subtask #5:

score: 0
Runtime Error

Test #11:

score: 0
Runtime Error

input:

279629 300000
864485544 147664426 873456004 602824795 902744016 20056943 260905686 609162276 241739883 338354289 437560714 444081255 584613844 200551305 963158452 282143442 169245526 10832409 265203076 576549337 275863148 94296798 887754059 15388512 25015579 800125936 979301246 68177101 30414420 446...

output:

Unauthorized output

result:


Subtask #6:

score: 21
Accepted

Dependency #2:

100%
Accepted

Test #13:

score: 21
Accepted
time: 128ms
memory: 5768kb

input:

75845 80000
352335116 294504238 140746753 575637120 646370926 542454689 27511403 301851750 630047304 23922121 851703710 78428089 893692116 551981613 570170070 185553382 779494503 189901721 875572581 474024185 650102856 231626421 911326808 571881208 28910661 283637582 184021292 667581795 484271701 54...

output:

5142696678393
24479580615568
13952637881087
26984039375217
751437914074
7537468119244
21666538986653
15915350186518
7117291594288
9090946248649
19273685570584
12791450462938
4692202112321
35268742908920
23342859579852
22579508734308
3294699560846
6358126863701
18196836919713
12439582830160
138348857...

result:

ok 26814 lines

Test #14:

score: 0
Accepted
time: 133ms
memory: 5904kb

input:

73833 80000
999727358 999256844 999900994 999626372 999165464 999696323 999650044 999854547 999970302 999307975 999479027 999411551 999613365 999444397 999995305 999784245 999473731 999013781 999238557 999141711 999607756 999518504 999138140 999164504 999785896 999377579 999695175 999359164 99911974...

output:

5578209416126
45886163956150
5510247927505
14081962869726
50492633413842
5545306029384
895546178530
8009858450669
11186482370341
16374849732418
1386955714222
29488803889616
15956572039354
23840682041353
11921871983716
9588530425402
22454203414397
20280931115941
18745991038587
30588638496295
19827373...

result:

ok 26598 lines

Test #15:

score: 0
Accepted
time: 127ms
memory: 5588kb

input:

73311 80000
927807283 596499348 348238752 889935758 499460629 70815138 901992795 75868092 767995240 865721951 599732156 981041009 113960742 911458340 757630049 631221329 753379418 81377393 521360847 323413124 736982803 360322812 559939247 845124005 742434072 961823298 613455280 395672395 227913172 1...

output:

13379964835974
27103450916741
23798322660481
12037033498213
7136932328270
20758957756797
21121771369365
4772305004343
11741890704491
4356281632597
18248457696334
549648244204
3385939405187
5064418489962
17292234542811
24785086228350
26066681166940
3995295453189
3705173783507
6664624605928
1813776403...

result:

ok 26672 lines

Test #16:

score: 0
Accepted
time: 137ms
memory: 5868kb

input:

78391 80000
999862439 999429519 999585474 999265826 999904053 999095451 999650845 999541249 999021032 999059602 999684802 999540975 999922325 999081906 999636838 999921811 999220984 999071332 999584344 999794792 999413923 999113861 999891685 999142721 999068879 999093119 999536444 999677706 99916444...

output:

3333358046634
29771008733569
38080861369017
5803664866739
40134838317488
28283749233269
39878933570377
64974853280840
387795898306
68070100775534
42434117576869
46131627590015
8286431268568
1480260556724
38507887037839
54500845312399
17818541882019
56860576675893
54519989405214
28188806426480
119989...

result:

ok 26634 lines

Test #17:

score: 0
Accepted
time: 132ms
memory: 5728kb

input:

79682 80000
501363026 865434211 881520873 229475943 842073143 603255306 323297751 985458158 772012806 821760008 607969463 924977746 317547461 195660242 672694903 710448293 149272430 516772359 903331433 350637719 668315332 526431584 160754873 379820057 182585126 3938017 495365972 730586894 323855397 ...

output:

24050986067219
7227872143259
13825751379404
6289336391113
13809387198771
38724222913278
11646390668882
5022007537972
11735219346435
32910034945530
18503472255634
4084935431637
7851033775434
3628990117411
17378703922888
988614710820
8884547392312
26589204521592
15022544010437
18175301782916
282232614...

result:

ok 26605 lines

Test #18:

score: 0
Accepted
time: 436ms
memory: 6560kb

input:

80000 80000
1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 10...

output:

79993600080000

result:

ok single line: '79993600080000'

Test #19:

score: 0
Accepted
time: 478ms
memory: 6192kb

input:

80000 80000
1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 10...

output:

79999999920001

result:

ok single line: '79999999920001'

Subtask #7:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

0%