QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#732581#4914. Slight Hope_Doraemon20 23ms6452kbC++141.2kb2024-11-10 15:14:482024-11-10 15:14:48

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 20
Accepted

Test #1:

score: 20
Accepted
time: 22ms
memory: 6196kb

input:

5000 5000
63141398 126604376 697512251 741353996 356604726 507953968 494219271 973110260 460861914 988416009 970876787 448429588 725493166 883501210 51076237 784293761 8003146 766721589 406465089 330785670 782582116 501008987 936941546 564663613 40330818 320342607 566652836 806983548 79234347 581976...

output:

148388816
822655068
341356275
153648250
610508782
658092334
115032444
61006948
232896592
132532556
281147472
170577711
453242756
564024529
950510296
417644928
35757971
824080049
490493323
96124139
158766038
597702738
69672015
841035419
405236159
258190228
66326403
227299828
359113584
34672879
117324...

result:

ok 5000 numbers

Test #2:

score: 20
Accepted
time: 22ms
memory: 6224kb

input:

5000 5000
208095035 189388209 910573484 151351163 857032742 409791136 427941504 561340305 440094307 848312088 743662365 160219901 584491656 208412392 473499824 79323110 469342548 790678258 903532373 940176368 916303640 12519872 294579622 875495570 887250524 595928577 642259826 222149097 873031301 42...

output:

597291565
466590571
543666430
955934901
739756468
993328702
393451173
956126185
739018480
946329402
990581650
589085210
656552878
941726143
200128337
610853683
191337824
450787673
494378602
960833257
772065473
317098668
597989053
965678661
839020241
790226238
400110943
786188793
733806002
190637300
...

result:

ok 5000 numbers

Test #3:

score: 20
Accepted
time: 22ms
memory: 6452kb

input:

5000 5000
758829686 846421586 795445842 923423765 650851801 380291052 781540894 445139283 780903169 45635176 303532742 70594608 850028582 748168745 597843692 246704898 350529309 7279358 973729172 269517593 22112036 125333845 309121459 968441730 686776540 975145839 926379079 346059534 292798462 19216...

output:

463197740
26979945
961115125
585910970
224451566
822036760
183497285
813892643
8997869
291414695
131978485
899584925
779621202
716522212
879375421
91045492
330290371
691691224
52633475
340848115
186272999
890054530
911975959
514382765
763838056
167285656
930279525
785049503
150045446
570741767
97509...

result:

ok 5000 numbers

Test #4:

score: 20
Accepted
time: 23ms
memory: 6252kb

input:

5000 5000
831640431 885460668 883290311 161278701 616481017 280845019 388780100 404687561 721779426 228266599 363600658 948454460 388371957 246028605 655768029 731008092 605246260 564445876 760408308 26166250 71491179 320543409 377278440 522729682 703367018 322884625 692206745 411811213 557175990 77...

output:

973564643
126270676
513879186
160315552
474692304
502474019
656022067
882003880
105940288
652267128
369294132
107152190
559575798
752075334
355587403
735085822
578199820
483981812
74890692
358519217
379879058
32070627
446003765
10882971
382837033
282137994
909326140
46106521
358500230
735281951
3598...

result:

ok 5000 numbers

Test #5:

score: 20
Accepted
time: 19ms
memory: 6224kb

input:

5000 5000
386586821 473104785 923115322 80627280 723972117 76500891 901470530 40141226 605413269 508843738 568157568 511437103 387870706 707269439 370782055 605387529 647770332 427178306 213279296 635360385 647527011 43127485 265465400 93955214 147422318 973617973 166812244 700732812 611016742 80446...

output:

789940086
697637206
408002193
990320561
762711381
901590837
762961896
271872873
291306692
551854139
437673271
270540330
691269003
978607745
525751254
343060584
72443046
300879617
278943004
760067231
235472075
976841481
936605508
479647311
686662820
58080719
886417986
681348294
512210247
340704136
86...

result:

ok 5000 numbers

Test #6:

score: 20
Accepted
time: 19ms
memory: 4496kb

input:

5000 5000
792216357 552236642 821494867 527714453 169575822 820595714 51053252 285231608 834824001 795954150 856055581 789265115 391543052 623878414 831103431 973063635 851485478 722429924 377946447 74393554 229570805 77829523 104941568 904281532 519848089 214665346 829017846 170077097 530089743 975...

output:

231592521
710420358
76758915
241413386
430224292
922200556
894399093
539685138
594923071
860157611
94869286
900661909
4590133
587348986
920780522
790820661
536438280
976402941
439797034
327200752
920824344
894723053
962589436
412895743
843160266
488926976
317592562
384947824
445153417
711558885
8449...

result:

ok 5000 numbers

Subtask #2:

score: 0
Time Limit Exceeded

Dependency #1:

100%
Accepted

Test #7:

score: 0
Time Limit Exceeded

input:

50000 50000
768966868 59696813 88144593 167570175 440425517 667021648 50234623 250465092 611066949 942141813 37909983 544761802 310089692 393644730 822735225 212716527 45802184 416983999 978914560 514007472 271601592 803603476 153018866 463206234 430926936 205142491 621149405 347663094 909171725 990...

output:

535964317
498669705
110235462
577178694
458409211
180052579
833120408
528030659
854656432
578186212
647551642
106109933
785867614
715665434
119860891
227206432
978129416
355043244
824024937
889456087
653872988
218204727
768257490
147883304
92932220
842681002
700378724
973977972
293932154
820122893
4...

result:


Subtask #3:

score: 0
Time Limit Exceeded

Test #15:

score: 0
Time Limit Exceeded

input:

250000 250000
768540930 17767906 372927484 987601476 466807233 279110163 484031897 581293130 869165405 440806324 190995959 228277657 510008046 885148108 825022142 732048181 608976903 327270073 923084855 752263987 475969665 911033413 561860569 377841111 401028041 117941740 350378391 295513473 2304741...

output:

645687892
804644292
204845058
833159303
438840602
426417420
912375389
325277630
897894204
651802587
232723981
612719545
449284803
97772899
900152796
609960724
641400352
204127911
176781081
752207129
720790544
624982826
923898464
696425075
641906962
568669044
49974863
45637134
16934743
814263646
3524...

result:


Subtask #4:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%