QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#612400#9440. Train Seatsucup-team4688#RE 3ms5220kbC++14753b2024-10-05 10:52:322024-10-05 10:52:32

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 10
3 7 10

output:

28

result:

ok "28"

Test #2:

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

input:

5 20
3 10 11 14 17

output:

73

result:

ok "73"

Test #3:

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

input:

10 1000000000
136909656 243332691 643531997 505919307 43553384 657638276 57213246 179732866 357373203 182482400

output:

7649951260

result:

ok "7649951260"

Test #4:

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

input:

1 172024959
118390965

output:

172024960

result:

ok "172024960"

Test #5:

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

input:

2 920065252
24963998 580538879

output:

1815166508

result:

ok "1815166508"

Test #6:

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

input:

3 172078788
90217996 89200357 170380183

output:

432676968

result:

ok "432676968"

Test #7:

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

input:

4 440425711
125318960 91140311 293637977 102491554

output:

1442752023

result:

ok "1442752023"

Test #8:

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

input:

5 322827483
22471802 47973794 3707067 27640905 273307033

output:

1512343852

result:

ok "1512343852"

Test #9:

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

input:

72 630313504
112329946 338670434 45608233 444381955 513206139 543955969 420916952 485920423 598657953 568525637 92887514 375155749 230002387 302266710 539300386 433464422 380969627 445990156 239073197 278937451 50602251 494375406 139348725 11780176 601670777 68418714 591190755 96719555 612628609 778...

output:

25015466409

result:

ok "25015466409"

Test #10:

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

input:

329 622872382
466743684 193969647 525632934 606824701 316078927 438757174 233370039 439667269 218116839 576709355 236207004 276080894 134588177 219271021 277834775 122503124 362333426 562156413 239350876 305538683 46542992 134113566 544875762 187990348 238185200 108286882 14195584 72219185 201093220...

output:

112658144244

result:

ok "112658144244"

Test #11:

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

input:

466 548717850
137350238 67864907 220098233 250261453 342576815 243581822 338228115 183596199 528465164 359278993 293047272 123476508 56052861 140575524 199877484 444249401 72918904 385030174 254594713 77408477 394580770 516234 43634181 69922431 242790597 404250987 350299611 241437643 498603545 12825...

output:

131683312409

result:

ok "131683312409"

Test #12:

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

input:

420 654188648
643476053 366651301 14641834 645843832 522679034 389570065 308006504 72798889 117904764 201972939 507593839 583514089 220780103 413532099 317370571 41515071 21273376 376539882 192798942 426200421 315080562 508007200 611512672 349756948 8346865 179096792 640192856 199017246 126783463 84...

output:

145704451100

result:

ok "145704451100"

Test #13:

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

input:

311 718955427
120599142 231915699 197402685 379093840 587232561 190030463 189278508 87227087 511068641 683198896 398599791 333700658 509210465 251205035 303752755 62480921 208610800 643685861 131513443 704144110 164086927 668251098 187784010 663686098 682516316 68679577 218094403 163030528 178960994...

output:

115142113813

result:

ok "115142113813"

Test #14:

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

input:

56 56
12 48 49 18 4 31 33 38 54 9 53 43 5 23 6 22 47 28 29 36 44 27 50 37 7 25 45 32 11 16 21 15 13 39 14 52 24 34 55 40 20 10 1 35 56 41 19 8 26 30 2 46 3 42 51 17

output:

1652

result:

ok "1652"

Test #15:

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

input:

292 292
64 2 85 65 241 135 29 289 176 34 91 286 42 126 118 92 113 169 200 52 245 9 63 229 15 121 111 190 95 1 78 261 161 224 186 131 149 61 110 177 246 94 221 168 163 141 96 54 155 174 27 237 90 49 272 98 265 122 21 139 228 130 36 12 219 218 258 43 140 222 178 226 51 213 86 194 284 253 62 87 107 23 ...

output:

43070

result:

ok "43070"

Test #16:

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

input:

11 11
11 3 7 8 5 6 1 10 9 4 2

output:

77

result:

ok "77"

Test #17:

score: 0
Accepted
time: 3ms
memory: 4584kb

input:

500 347765135
260493149 25067597 113008832 218516117 56280657 113832119 157268299 330659722 46366527 283273476 225920745 100653375 280745153 292760144 264522189 10282705 52285293 218967533 224892436 92109113 34627737 111139309 255293918 237984629 30990945 328245143 305557032 190718018 11077534 49562...

output:

90441214154

result:

ok "90441214154"

Test #18:

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

input:

500 301750678
276696486 240287710 59135957 203931095 121878437 201932396 119903481 266343627 299466442 29020479 62156629 287057498 236841236 63227599 176195109 143276865 224442819 28959551 267437933 81076858 219733081 269874799 158211607 118629155 94604655 3369831 80540184 49133180 134099302 2299975...

output:

79145246079

result:

ok "79145246079"

Test #19:

score: 0
Accepted
time: 3ms
memory: 4600kb

input:

500 769039012
593481099 47213811 725289908 357593680 269699082 164340753 172703981 688500832 493990088 262289974 204519272 635799158 331303116 247500823 405748889 394512278 272667146 450405422 198279142 642469694 551828186 137495279 125088488 484290075 527122296 634529483 226941356 633400406 3037120...

output:

199483493522

result:

ok "199483493522"

Test #20:

score: 0
Accepted
time: 3ms
memory: 4620kb

input:

500 17243356
4274345 7159636 16001714 5999929 7882069 3863904 8403308 6277018 2113728 16415881 10604344 13348172 13185843 5885601 782788 11403901 4676051 15968455 6831226 9470810 1753743 3472425 4971780 2909875 682610 10262226 2302856 13712204 13418586 8788713 4152278 207883 15901198 9675943 2756881...

output:

4460790428

result:

ok "4460790428"

Test #21:

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

input:

500 558437765
337125873 51347917 529146027 97202740 316090725 497387777 91930764 142324891 213899399 300360595 217018886 166008137 278239234 390780371 40066095 528572067 478181022 316167534 6880776 541827838 518099198 288097089 347164357 238053014 158325454 130726655 292865844 167013716 407014258 47...

output:

142685591676

result:

ok "142685591676"

Test #22:

score: -100
Runtime Error

input:

2814 48592630
16511977 39190822 15371231 44199295 13875763 5979234 44459422 34488266 24890518 32006062 18847062 18614807 46663766 39611882 46277006 2340370 41098927 9775227 19526835 4149963 40975662 39987244 29391972 37292663 33830653 42775184 2698281 16075948 15127541 38689879 31070554 41646403 233...

output:


result: