QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#207186#7442. qwqEx_sky10 357ms3876kbC++14556b2023-10-08 10:56:492023-10-08 10:56:49

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Runtime Error

Test #1:

score: 0
Runtime Error

input:

100000 1 100000
7448375 737333616 685856465 350697551 860138276 320928774 304239466 270383009 560997972 469846663 492843480 775066516 92898815 739514855 611694784 900998355 623915667 482955339 686389845 404399934 867791725 710302983 903606585 188399384 310171721 539675812 28846443 558726528 31815219...

output:


result:


Subtask #2:

score: 0
Runtime Error

Test #2:

score: 0
Runtime Error

input:

100000 100000 100000
99970111 463527724 639995666 583725073 486269917 936218820 193474624 128067622 514146293 123469764 349324538 675090305 340511308 843198699 69790556 310440270 113908090 906636502 632763987 582973602 406192780 509706709 132823799 303951698 114857551 892128414 387803743 710951860 7...

output:


result:


Subtask #3:

score: 10
Accepted

Test #6:

score: 10
Accepted
time: 0ms
memory: 3616kb

input:

299 2 295
57544733 909074717 237018100 151983977 441962747 450817458 610963000 32610391 373229751 229656478 900655148 572553275 164685614 225157516 247646023 177679044 777911366 275446675 36676996 275336919 754941027 765820198 539294430 916094840 668700864 719422900 881385658 888882077 7649338 15381...

output:

16559545387
964051562
41158655700
11514397306
52263113408
47571285362
6816049679
58213597339
20071410698
18219222240
14357236414
51243726490
14748389541
11375303736
41546073178
11119386181
48920367789
28934440388
43263005839
19557122386
10154705867
15013133513
35679510931
1065340762
35894273635
2028...

result:

ok 295 numbers

Test #7:

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

input:

300 6 300
364915103 421622420 4227866 338271283 573100348 914823134 10176270 433148910 189893485 317005717 812500586 432838203 511409870 394092256 153325452 924489538 821047330 524499290 310594129 604224264 190972785 488459236 493251501 471228390 763295729 244940275 460971950 280084322 855559111 792...

output:

19769620357
19670341306
49568371075
10486657597
22490171043
25159894982
15285153226
24290366760
51728321918
42039147056
17454854107
12809763881
36248069041
28434331801
1115583039
4270483345
48579891759
11084587085
35256549225
13490242218
46933717435
6640842689
42870369717
12810811423
11583420111
269...

result:

ok 300 numbers

Test #8:

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

input:

300 5 300
902598595 718407052 886515725 365019208 28881982 239471330 682875874 56421364 825906496 649411154 435937587 221908139 471020956 956789207 137192813 799046275 451416777 720746049 929469873 232137209 6106231 736074611 133900469 567812901 999797834 992380436 147996146 347821419 385181013 5616...

output:

43893719285
7131966145
42061092058
14721446297
14689165095
11336057440
9175483115
24102477929
7308160771
7429466482
42608800723
3656021584
23490515931
25016053715
14720451060
13034426485
20702213780
36965636217
29584671388
33488415576
28881982
42289948502
23923955369
13576067398
6042741298
379571719...

result:

ok 300 numbers

Test #9:

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

input:

300 4 300
840568672 924687047 386394242 866174705 432105882 30616287 950678456 889868447 821540574 84108476 42825820 629109897 403647881 327901105 644083063 353534407 891459088 402726898 169368440 91793662 777645814 624949332 476112949 462955895 468443587 830247573 232521904 704683993 287678533 5743...

output:

10907661
4132154
5851724
18351732
17454091
10224199
9400109
6844156154
15941842
1725096
8125852
11999711
2971197721
1096586
1589598124
3567173698
3291558
9071747
11678436
12443178
1226167
2182811078
6219204248
1347650
12516785
9999210
12596650
3559908938
12356357
3798904
485046
364066
555986
1364250...

result:

ok 300 numbers

Test #10:

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

input:

293 50 290
576389007 352849721 414740569 286615257 188153584 858848227 26053658 303679833 973716935 754532319 748723073 207795867 934573249 946607057 198131117 344021749 895283369 772626993 513894171 301916492 435384257 415977828 98838166 253225789 888341569 186301090 868744328 999133682 44237674 46...

output:

15417313400
30489666609
10646266827
24110586409
11800462855
13369730846
19417841244
4068345306
14790324737
5846515802
11608629898
2101293507
44085359217
1542247807
30386965174
22817902282
19872622680
2107014316
13556246676
23319330954
29413131360
3064390122
2294852175
52700932220
41591379533
2611201...

result:

ok 290 numbers

Test #11:

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

input:

295 47 298
492453268 256790539 863190875 232681582 936356493 31448007 408508906 31849609 677726610 690915387 745293555 117844745 450884294 908906644 943664341 434758076 702988136 823742393 282563269 463888279 74324801 244756804 999202986 987622019 878567376 197821670 586698609 930361588 509062010 74...

output:

1121952852
1573829827
2021990029
1548744633
1777643403
749999432
1888120257
1500002597
3728684239
2449481422
3376249777
750011074
2298750344
4789786220
2329556064
7937882717
4012293548
750009175
1057100305
4621475579
750002031
3376257781
1548740322
9547586631
884792176
750009835
1701301754
750000087...

result:

ok 298 numbers

Test #12:

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

input:

297 128 295
287617323 127672258 481362513 39169979 436528693 198532556 969861341 474359686 132162175 45758673 926546832 541614183 308520934 587427698 78143872 689102928 964620026 707188715 570218542 421722800 658423476 61240345 530403943 507744550 104136502 708368242 683856290 356424563 258646015 86...

output:

13961116698
24831710311
14339944221
3043891531
42817951225
1868660615
29147029731
37872123313
5489408888
35425674687
8345150622
16042078660
11490027199
44292492205
29537204548
9630905508
17852752366
7236395498
26271485556
12456473449
11603669386
7188550350
31321258857
3558930151
3736387153
420024427...

result:

ok 295 numbers

Subtask #4:

score: 0
Time Limit Exceeded

Dependency #3:

100%
Accepted

Test #13:

score: 10
Accepted
time: 23ms
memory: 3640kb

input:

4915 2 4932
251637115 204715280 988500374 433398789 886853264 742929223 472088216 451092904 798908367 19250566 776959374 807313867 562261616 21561501 167133225 314567577 305884752 636336270 977474072 216900413 41228476 254690904 830945130 248751952 106202911 384093541 614006763 926663793 98580041 30...

output:

623947516380
878049220688
299142682063
649995878758
170374958802
455505720259
609329039883
984706888272
147705294094
466793969241
586814942758
1134697358330
512482761549
226110513958
161664434260
763284006608
239441184023
355877413057
712422294939
241048285821
179970759340
464619304098
789670694424
...

result:

ok 4932 numbers

Test #14:

score: 0
Accepted
time: 23ms
memory: 3644kb

input:

4909 4 4983
386157348 864355614 802652320 10727488 425882052 612195291 645520820 423556683 354472413 87866481 326045836 403183224 144271740 723314631 894777550 594550123 129710591 852390861 651231558 947440040 323764056 569128645 973300788 42731063 474853529 225571209 36568787 589565291 152539332 69...

output:

230842456316
128823502890
640889209453
535610840918
404894715403
398715960843
69097140020
83087996829
806552082594
98162300949
134278383049
559591156865
349920898245
427157375156
809148730426
227334120431
11336864943
913313016914
31311374574
601284255602
446664411276
337350497434
5446100600
28175181...

result:

ok 4983 numbers

Test #15:

score: 0
Accepted
time: 289ms
memory: 3876kb

input:

5000 55 5000
99920492 973642218 991720968 698220208 747092483 257224590 98598333 219667880 474449517 321898028 161838182 27054847 880728750 602828976 840080744 241227416 269637432 32031977 220317638 189569869 681613236 684921998 96129298 946403535 578322898 237536107 675510919 375741839 256712662 58...

output:

197066218057
180927642104
224427581236
100565064796
192643659933
336833931417
228164508854
179828823833
13027077078
276800529179
87787373765
290273727524
678781005994
402598980697
10141658651
16740591398
171807057450
44578862394
645647800357
451840007374
399444244854
259687503940
208669968500
621273...

result:

ok 5000 numbers

Test #16:

score: 0
Accepted
time: 357ms
memory: 3644kb

input:

5000 57 5000
85204770 498923148 864326992 160399009 249820837 271676824 870271229 730381273 969691737 231130117 686490824 886629750 767076421 162623120 294482736 254937257 828895093 22211331 834497285 55237139 460928588 335190893 443772826 591415143 944079154 60788773 188316649 345433166 582970080 8...

output:

333882101553
303092037623
706081649917
409637777539
463106300280
195858834095
25549231815
301618340858
166598019302
219161985458
75050682852
82914703517
155592641929
466720210714
548401292997
53709091958
167815877136
491260612423
655510111972
271689521083
95965664819
411963697242
522573783571
646076...

result:

ok 5000 numbers

Test #17:

score: 0
Accepted
time: 308ms
memory: 3652kb

input:

5000 58 5000
127160920 179116164 335295922 562870990 4661618 608899915 74393363 546331303 362881998 302141691 201292508 844031609 598801003 667127508 664277330 19728377 96912200 228043463 45728388 243225024 911615935 648483921 917052871 673467135 750239089 770673141 756795732 902677839 844694288 818...

output:

37795377
29663075745
4981579768
52074682408
105932796
81929364284
80892861760
59073156282
72803170943
30184971
92785884
165329273
254744503
60955356
54825295042
37265348889
333282445
52584991924
162521342
220592058
202847758
23128066
12458526851
147298865
13411611
113134179
51956515559
24103748
7813...

result:

ok 5000 numbers

Test #18:

score: -10
Time Limit Exceeded

input:

4989 218 4962
333136017 788325643 650018227 305351013 333852130 608524191 350655619 175911255 339131646 922784007 278888931 469393523 62894177 231564435 975340032 535587133 281511099 584748950 807244242 642950438 299696574 809653053 754361323 502025784 579422591 48000935 630533697 625554249 36743798...

output:

27633510721
203223905390
645440140960
243323071424
651494963926
301936005361
309892568894
294141342698
184195024398
36533385976
611954696964
110472057420
320642452598
257697400461
417042410372
30767648065
316690097610
167949117673
470569091129
210347580594
351296137301
229155978168
294322996642
3645...

result:


Subtask #5:

score: 0
Skipped

Dependency #1:

0%

Subtask #6:

score: 0
Skipped

Dependency #5:

0%

Subtask #7:

score: 0
Skipped

Dependency #4:

0%

Subtask #8:

score: 0
Skipped

Dependency #1:

0%