QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#616876#6605. The WitchwoodZhaoZiLongAC ✓1ms3792kbC++17545b2024-10-06 12:44:552024-10-06 12:44:56

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3444kb

input:

5 2
9 8 10 2 4

output:

19

result:

ok 1 number(s): "19"

Test #2:

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

input:

1000 921
574477968 51255457 2508704 653253382 156645487 11643451 116234725 195749025 540495922 587734721 387247487 82940369 82316321 175268731 103171750 380698907 187565561 216028471 110586267 480573 340881497 991681048 336946159 326492497 16121404 512034084 427853141 42975101 324239541 337875097 51...

output:

260419911318

result:

ok 1 number(s): "260419911318"

Test #3:

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

input:

1000 518
355343071 163191391 29403427 55501021 799341085 270784501 18192271 828283545 661964145 20823622 686634400 652560385 590552321 51369049 595017745 229633949 816064497 22656410 705639481 184449115 95576482 97181477 144812857 241413448 43075315 33362737 66804401 122671333 9913333 298253071 1368...

output:

227512782629

result:

ok 1 number(s): "227512782629"

Test #4:

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

input:

1000 838
71926786 82849042 617104841 318510963 213380461 484254993 352959527 115079473 262186231 304490723 112571525 320316993 360133729 922614427 546907817 20337261 756573665 7194402 405285320 434166688 238196127 417153615 73703269 124339226 41351597 279844636 163757485 153424657 391329205 28688338...

output:

263521445840

result:

ok 1 number(s): "263521445840"

Test #5:

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

input:

1000 152
71132377 396428327 280664051 956940535 502555942 533438611 113663483 356582489 588041857 57472180 352132382 54689131 297514026 41283363 220284681 753126193 91014141 25735035 793997258 452096356 104724144 146209687 116613358 99925029 426258427 23680653 147243671 190502101 87305711 770793263 ...

output:

102348451711

result:

ok 1 number(s): "102348451711"

Test #6:

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

input:

1000 475
4581919 375126454 44356201 90342901 508259613 567587676 120691969 678006253 97259362 271911063 308922685 160715514 128491351 433807001 694739497 717653250 389752425 66201400 83967181 174664255 327926929 577667025 35672295 92934953 670789882 231940234 143720423 743390933 5889073 8816393 4309...

output:

223356080364

result:

ok 1 number(s): "223356080364"

Test #7:

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

input:

1000 802
551790059 2463516 127769808 39272316 10917726 273434701 171489594 479473345 610916524 93310449 468596773 46983547 102246349 216076785 107523013 114305885 173590081 91273081 708679634 333732271 15010243 159472631 236462266 5521571 315105691 863576769 259404121 497753215 305979027 198126325 2...

output:

276037167873

result:

ok 1 number(s): "276037167873"

Test #8:

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

input:

1000 119
348445021 176678353 795914295 51305354 642176185 880434883 689826443 76911528 56285035 254499233 102873161 20653803 71065387 539585011 372784569 550390191 21169198 163856361 124208209 461080321 84208017 646014466 49696441 398269427 265036861 131928581 28375272 14545224 436180125 279136309 2...

output:

87816968235

result:

ok 1 number(s): "87816968235"

Test #9:

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

input:

1000 432
139052824 668678585 18741025 466620751 199055087 83344240 177919499 514135669 157508401 578133289 195765626 320272669 482157214 216563754 106363291 342392116 819211080 262497145 344944681 521661889 443082721 16204561 545524971 13525458 698374170 577734274 249328413 407366517 769299233 46290...

output:

215070237646

result:

ok 1 number(s): "215070237646"

Test #10:

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

input:

1000 749
736871737 5570055 268713127 97337843 600547901 59798161 106232556 193786501 840230821 209546246 407443357 4839901 319240162 11185738 243425526 253066237 461219077 362584951 301344611 61170976 684987025 962936244 242334905 263575495 537079441 93345409 324960385 301125111 201558125 11934826 1...

output:

263750772651

result:

ok 1 number(s): "263750772651"

Test #11:

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

input:

1000 124
298163089 264174648 146999999 312288556 41126801 394853372 124472998 2479907 198569935 590142961 371598283 228629155 117269155 398370141 68619997 311818081 124561671 20901891 377100321 56612557 208290206 66603349 510651100 708295176 661912063 183599473 43142945 110652937 459918163 27887345 ...

output:

89777166314

result:

ok 1 number(s): "89777166314"

Test #12:

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

input:

1000 444
746387357 174639193 238700651 169557433 661932424 78359426 673241570 251444019 538334488 224382026 55232121 751116554 81261762 43093891 32620441 157482731 65869843 150468619 61681909 215133205 891784876 412490497 46092409 574988331 107808085 736699087 167311942 86114176 32676689 804835945 1...

output:

211814921469

result:

ok 1 number(s): "211814921469"

Test #13:

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

input:

1000 761
500804136 649362976 49423055 337784459 221842149 476620841 426274773 152150449 37323203 519473421 802219483 98078482 3274213 869348326 332396729 154074817 49153987 246633496 239935041 1828576 3001627 177664101 105151222 504495963 23116675 40698997 261500101 608407953 639595051 121774281 221...

output:

254894926495

result:

ok 1 number(s): "254894926495"

Test #14:

score: 0
Accepted
time: 0ms
memory: 3392kb

input:

1000 84
97148283 28134447 121531205 341461059 979005637 476649601 455587546 433817098 690603751 13788851 93208957 224295265 330790533 68569281 920811676 107327485 768648934 446822713 339593349 222956956 108403777 54111532 893657529 289992455 153211917 297338086 176067919 392782611 525233242 79661645...

output:

66339691634

result:

ok 1 number(s): "66339691634"

Test #15:

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

input:

1000 401
572192731 388908817 198705557 20052229 408103119 95232674 223605165 58638881 83377885 548956657 357804349 258598801 135991489 322524893 255884021 620032351 15655651 575484893 2218672 480319 232895683 134871895 500702518 324193927 32843225 237571161 290191201 3915271 80033497 154725317 24963...

output:

201813578758

result:

ok 1 number(s): "201813578758"

Test #16:

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

input:

1000 721
102035055 274985261 204225157 228166394 15051670 17849357 110581209 220926187 332519617 6090351 446622265 94898801 133125488 433784893 220381516 442309249 300157066 3181039 82991602 865695937 19633169 121545557 55875591 224805854 139330801 965606391 147247560 257662737 726804685 273923781 5...

output:

257565444930

result:

ok 1 number(s): "257565444930"

Test #17:

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

input:

1000 41
107485697 171928065 40012503 47150181 14815489 103465561 37081477 318602035 107091076 32123296 76929561 387405190 87165562 478016793 186685261 17538158 299822854 39570709 11293925 349627951 79006447 422002223 82112317 119292000 43136776 672258475 15759001 165718906 91127856 681684420 5332796...

output:

36397708436

result:

ok 1 number(s): "36397708436"

Test #18:

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

input:

1000 365
296467263 116180769 344991541 731441349 69810751 138846313 68713911 7770075 160185061 259573189 760328251 646343281 495560412 528611201 702250264 9196412 563602887 2814651 90641150 237292381 419609803 121915193 453948885 634743848 245732881 196176953 30120834 687767249 83764805 5916417 6159...

output:

199678157897

result:

ok 1 number(s): "199678157897"

Test #19:

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

input:

1000 685
751238605 66960085 461175094 354300571 46299254 298400651 56851971 650787589 64039309 596517421 181318036 419300335 316346878 24759511 652164787 236963801 501076041 18318966 276444289 97542733 370116718 427572897 660853381 476667346 435779359 56379265 99362817 526983546 658993931 665342692 ...

output:

248384788182

result:

ok 1 number(s): "248384788182"

Test #20:

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

input:

1000 8
281682111 459057835 37171937 26697586 133610721 315617253 57267064 194245664 759411361 186952316 88351 657252289 161273803 631914715 341680108 121810443 111061347 36032129 500935106 483690613 74646911 15945121 466426089 241593778 682493601 17233706 997616348 4845073 579985633 140350387 301584...

output:

7683914375

result:

ok 1 number(s): "7683914375"

Test #21:

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

input:

1000 328
108969183 300504347 102565245 232276825 86808822 549105409 562595796 103575341 17960297 76208383 326560753 374814727 140925250 61564861 302042401 213738625 73688581 72592849 259486165 204572257 106992775 67311501 39831936 212030596 125867686 568153243 548226651 209723493 55675422 622314785 ...

output:

187834831087

result:

ok 1 number(s): "187834831087"