QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#845727 | #9886. Long Sequence Inversion 2 | ZhaoZiLong | AC ✓ | 99ms | 18896kb | C++23 | 1.7kb | 2025-01-06 18:32:56 | 2025-01-06 18:32:56 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 7700kb
input:
3 2 2 0 1 1 0 1 0 0 1
output:
14
result:
ok "14"
Test #2:
score: 0
Accepted
time: 0ms
memory: 7728kb
input:
2 4 1 0 2 0 3 1 1 2 3 0
output:
60
result:
ok "60"
Test #3:
score: 0
Accepted
time: 1ms
memory: 7700kb
input:
9 10 2 5 7 3 8 1 4 6 0 9 2 4 0 1 6 7 3 5 8 4 1 6 7 8 0 5 9 2 3 1 9 2 4 6 8 5 7 0 3 9 0 8 2 5 1 6 7 3 4 1 6 0 7 3 9 2 4 5 8 4 5 2 9 1 6 7 3 0 8 7 0 5 6 1 9 2 4 3 8 3 2 1 6 7 0 8 9 4 5 9 2 4 3 5 8 0 6 7 1
output:
138876070
result:
ok "138876070"
Test #4:
score: 0
Accepted
time: 43ms
memory: 14324kb
input:
1 499999 0 29619 375702 37496 460566 304389 460489 39603 7903 258016 288263 472075 22596 331493 275661 56064 364938 166384 286514 449089 71295 83634 202532 408346 34349 425929 67826 14897 21894 481996 394928 368071 394991 213881 134433 345718 371785 68019 323247 290861 175555 464454 99312 318279 474...
output:
633597495
result:
ok "633597495"
Test #5:
score: 0
Accepted
time: 41ms
memory: 14088kb
input:
2 249999 0 1 58555 86505 217289 160736 134400 101021 40586 62145 139626 85795 167411 201337 98 206983 47713 102694 69929 120989 89299 38007 101502 27064 176770 192694 169507 5163 4199 146210 77723 135393 61474 73326 132827 234968 141265 84204 225082 101831 136349 51115 81706 174808 187315 54745 2076...
output:
434358382
result:
ok "434358382"
Test #6:
score: 0
Accepted
time: 44ms
memory: 13828kb
input:
3 166665 1 0 2 149754 119575 144273 87381 53800 132528 160539 144804 131044 71756 48801 102732 165255 134183 209 129510 122930 87083 34658 111061 142811 141126 65071 45113 142272 2250 137690 86010 2090 101555 148432 56852 17952 53004 11972 36883 144729 44003 59504 11894 15877 47449 95378 59419 12379...
output:
906627900
result:
ok "906627900"
Test #7:
score: 0
Accepted
time: 38ms
memory: 12088kb
input:
4 124999 2 1 0 3 6758 121850 37185 80215 73912 42468 46605 75414 112915 110077 22953 23013 97274 13521 49377 118836 81264 34203 17001 55248 75687 111368 83888 8716 40342 34360 114608 49408 91858 84412 45961 7941 14659 13108 93982 12542 100883 88893 77840 24386 115013 55592 36874 19448 55866 117277 5...
output:
783661427
result:
ok "783661427"
Test #8:
score: 0
Accepted
time: 40ms
memory: 11860kb
input:
5 99999 1 2 0 4 3 59880 90678 66325 71329 58429 10918 50915 81996 24439 90993 49857 91190 60989 21075 94746 42666 9319 72804 79261 60359 83848 27702 86471 32161 13537 75754 38237 8840 55918 4178 8934 35695 23232 76054 17267 46410 12231 41364 80427 84377 99775 98696 10888 60764 72426 67093 83038 9642...
output:
943262391
result:
ok "943262391"
Test #9:
score: 0
Accepted
time: 40ms
memory: 11784kb
input:
6 83332 3 5 0 2 4 1 23375 44904 82334 78434 52536 65843 65381 59744 70793 81766 71276 33137 25941 2439 9277 69418 5390 70138 45653 18673 76312 79008 40313 53316 23214 44750 10693 66067 26333 1060 33358 62685 24070 8875 5941 2318 35264 60839 78415 80418 34028 42868 67749 75129 39215 63906 79295 13386...
output:
610585340
result:
ok "610585340"
Test #10:
score: 0
Accepted
time: 35ms
memory: 11812kb
input:
7 71427 3 6 4 1 0 2 5 34090 48725 333 51751 7629 38824 39085 62952 24176 69379 4757 42969 69339 42930 52225 42031 60357 16793 34973 67072 2520 66644 32959 2271 58305 53639 42761 49902 9231 65766 34634 64919 26864 32021 14941 1851 67795 6258 48147 68159 4243 68679 31873 9377 54293 18737 64854 600 122...
output:
778724156
result:
ok "778724156"
Test #11:
score: 0
Accepted
time: 39ms
memory: 11692kb
input:
8 62499 7 1 2 4 5 6 3 0 34446 54074 40453 38008 7541 4408 33235 26079 58367 22983 13740 33745 23111 3275 57455 14786 31395 16304 36983 46410 35201 34501 26196 1692 47781 62372 4683 33066 28853 50418 56448 41431 45739 4000 35333 59573 28135 60054 13982 48099 23194 15107 19677 47537 43224 24733 20319 ...
output:
660696295
result:
ok "660696295"
Test #12:
score: 0
Accepted
time: 40ms
memory: 13548kb
input:
9 55554 2 4 0 5 1 6 3 7 8 21364 13505 29278 32500 13429 42672 907 20914 26021 44347 9295 52994 12716 18773 20180 27057 28386 17735 14198 23865 53006 9664 25986 55188 20030 4242 45208 3471 19956 32516 23152 41469 49370 16032 51480 49711 20874 29136 53412 29884 7599 6659 8204 36109 3795 17942 4654 543...
output:
780717176
result:
ok "780717176"
Test #13:
score: 0
Accepted
time: 31ms
memory: 11496kb
input:
10 49999 7 3 5 0 9 4 8 2 6 1 44115 27338 24426 40634 26394 1774 40029 15185 8950 33647 44605 34543 39457 6908 19217 26450 24356 1352 18008 44712 8996 12246 25910 15898 11398 2380 37652 41054 17029 15235 21088 8286 39723 37397 4361 46958 30514 4083 30603 26353 12945 45602 26717 21513 36403 4154 43047...
output:
421670636
result:
ok "421670636"
Test #14:
score: 0
Accepted
time: 99ms
memory: 18896kb
input:
166666 2 73919 22004 17019 24274 113502 94037 21567 38894 159986 162338 13751 118116 50004 34204 166111 74497 129552 38238 146086 115675 151279 58169 31397 49985 143070 24344 143100 52912 1784 62654 81793 116629 131580 59232 93775 5188 78872 125643 53720 29011 117160 41260 166355 42771 133461 85634 ...
output:
542835514
result:
ok "542835514"
Test #15:
score: 0
Accepted
time: 93ms
memory: 15900kb
input:
125000 3 57413 123732 102310 44099 19438 108772 12877 25091 78442 111154 41529 11125 91100 120207 87351 26535 20515 98775 1864 21726 122665 93826 2624 30188 4093 56725 107624 111788 46478 105922 63587 58425 30990 18687 47397 29660 110515 77228 19755 3026 26985 108480 109534 35457 57277 102560 17669 ...
output:
470514478
result:
ok "470514478"
Test #16:
score: 0
Accepted
time: 77ms
memory: 15924kb
input:
100000 4 54385 26705 93697 3440 2190 10747 80076 73676 81283 57707 69571 7294 49575 6303 51459 36965 57636 6050 36555 40262 73222 13959 41867 91433 63299 9241 10350 77883 39265 95828 18686 11803 13675 64874 16011 11570 30348 4055 7077 48899 25483 48587 24051 63794 47797 67364 24926 8036 84910 5600 1...
output:
791974920
result:
ok "791974920"
Test #17:
score: 0
Accepted
time: 61ms
memory: 14476kb
input:
83333 5 14627 63401 51016 22329 4704 7874 41117 2521 43505 39261 42858 61816 15881 72788 2617 71469 10131 66352 57153 69122 38884 41212 6448 38748 12569 41891 43147 81781 28582 40278 72193 62484 34695 54288 31502 28834 23365 36256 12387 45089 38460 64718 38444 5616 35844 42670 83238 67998 32092 9332...
output:
14123743
result:
ok "14123743"
Test #18:
score: 0
Accepted
time: 56ms
memory: 18296kb
input:
71428 6 57947 43388 65398 39211 68270 29734 56760 45114 27776 42897 56306 31432 64300 54440 7487 18163 37473 42899 63400 65662 10142 70861 6839 12328 30968 41162 10543 53711 33463 55840 50553 22597 67429 14397 10190 43716 38382 28870 27627 38429 28191 20388 30251 35374 15247 53055 43806 46274 35877 ...
output:
907907548
result:
ok "907907548"
Test #19:
score: 0
Accepted
time: 51ms
memory: 13656kb
input:
62500 7 8835 8872 18297 27326 13052 55648 31386 44069 24380 669 47480 45275 51728 16200 19871 24034 20796 52404 19268 28838 26937 56813 36553 44116 37995 24785 10976 40905 30955 54146 55013 19914 48614 35152 49132 61649 9020 58250 2858 52699 24526 48536 18690 4575 43328 12377 34602 6804 35112 55226 ...
output:
640896902
result:
ok "640896902"
Test #20:
score: 0
Accepted
time: 53ms
memory: 13616kb
input:
55555 8 40778 53249 5082 38273 52606 6789 6102 2950 22498 16268 16678 2011 53497 35252 42917 13633 17043 10543 13692 35450 17861 3 16176 8034 15942 35164 40171 42298 13935 17911 53641 21184 14451 15360 13669 38489 30059 42873 15220 23903 7719 53387 52383 54291 13264 25812 15728 26056 43161 7681 3045...
output:
247480915
result:
ok "247480915"
Test #21:
score: 0
Accepted
time: 46ms
memory: 13112kb
input:
50000 9 23966 42368 33739 40533 34409 41416 35983 14969 16839 45909 35671 33560 41159 46323 48490 4856 44 17602 19800 37979 7998 9901 38879 25265 28961 45289 48307 23887 7729 16332 1984 30023 38316 28527 27171 23189 23247 29354 40530 24872 27866 31160 15547 28320 38143 19897 38204 3335 7191 21297 34...
output:
281323482
result:
ok "281323482"
Test #22:
score: 0
Accepted
time: 48ms
memory: 15460kb
input:
45454 10 35241 3556 32754 21113 41994 21465 20194 24246 4091 38830 32064 45416 20404 6991 23803 7127 32171 6006 24547 23537 3478 36861 31383 41683 12099 8802 19208 31956 13879 26593 6652 3979 44699 24127 33004 10021 42727 24915 4157 29596 17813 11017 143 6246 18485 31424 9362 35140 22857 23845 28835...
output:
215309467
result:
ok "215309467"
Test #23:
score: 0
Accepted
time: 41ms
memory: 12672kb
input:
41666 11 39108 34328 427 6447 20855 9233 7096 2377 7548 37427 1553 141 27913 22749 28890 9178 29960 12903 13084 30903 32766 22235 8173 25613 30429 32286 17649 210 22154 29449 3208 27725 15796 32634 3125 34466 8135 26452 18212 17907 28667 8324 37653 27205 19702 22291 18355 27 7656 3962 7247 1225 1740...
output:
392369366
result:
ok "392369366"
Test #24:
score: 0
Accepted
time: 21ms
memory: 9384kb
input:
4 57333 0 2 3 1 35539 54074 35805 40671 6648 27884 24767 22603 3279 52264 47550 3032 55353 55274 32633 15477 4934 43352 25502 28353 37057 19194 39437 14103 7370 26829 41901 23801 3040 11560 2470 19238 27648 12894 24249 18143 23683 19970 39208 15590 37464 21801 23370 4086 21132 44739 14748 46548 5277...
output:
333094659
result:
ok "333094659"
Test #25:
score: 0
Accepted
time: 38ms
memory: 11924kb
input:
20823 23 14988 15209 19236 8602 17682 12336 2871 8722 6373 8276 10013 20398 1914 3457 251 13238 9149 3333 11998 13207 17048 538 3440 14930 3617 20508 4297 3503 16146 2687 11535 14523 14439 7035 16920 13626 4546 537 669 14822 2303 10788 5154 15527 7655 15614 2041 5785 6907 9530 13835 1889 11874 15559...
output:
36061010
result:
ok "36061010"
Test #26:
score: 0
Accepted
time: 32ms
memory: 11112kb
input:
361 1344 251 165 249 62 1 7 295 0 162 187 275 253 93 250 292 136 352 24 68 308 330 122 345 314 222 104 299 190 316 25 103 184 55 225 146 128 173 317 354 101 215 120 289 221 302 94 118 113 327 353 81 284 239 305 84 297 38 163 14 356 148 66 286 218 248 112 269 96 318 230 334 319 310 256 328 199 157 8 ...
output:
694203761
result:
ok "694203761"
Test #27:
score: 0
Accepted
time: 79ms
memory: 17716kb
input:
99992 4 81325 48701 39195 87842 33492 51024 62928 41140 8627 82137 33197 64296 5809 74973 52466 62645 60248 77353 67951 56159 5467 54657 19167 88082 35569 26349 49247 61717 16452 97093 18144 71460 15539 33796 75344 3579 20689 95664 58588 70112 35955 89708 14863 43990 57362 99859 73611 83483 27422 43...
output:
963929409
result:
ok "963929409"
Test #28:
score: 0
Accepted
time: 34ms
memory: 11776kb
input:
11626 42 1960 4959 637 10678 5134 7307 7134 510 7729 2963 5548 5561 6757 4825 3883 9314 1322 11589 10000 8059 11290 11288 4710 4730 1430 9486 7133 9154 9191 11319 11082 10985 4026 10260 5560 9319 3729 1751 159 11612 9816 8179 3239 7086 10609 6077 3197 3458 9993 3357 8511 7063 4939 232 1102 1612 9935...
output:
923906353
result:
ok "923906353"
Test #29:
score: 0
Accepted
time: 27ms
memory: 11104kb
input:
569 872 158 209 233 11 530 234 242 14 293 72 324 507 347 228 367 89 486 131 29 378 457 152 280 334 325 536 263 418 189 56 31 512 200 19 36 196 484 8 453 78 433 193 107 258 434 423 274 465 178 215 37 221 273 81 427 182 299 459 435 454 240 150 123 437 4 52 440 519 445 449 211 275 172 255 490 6 404 389...
output:
866155833
result:
ok "866155833"
Test #30:
score: 0
Accepted
time: 30ms
memory: 11316kb
input:
272 1778 221 214 185 248 37 251 112 163 195 114 118 254 231 9 95 154 132 215 230 168 197 169 237 184 34 135 52 139 120 38 158 164 101 41 177 36 193 271 204 93 64 196 262 13 225 245 243 166 72 199 53 90 133 174 68 161 131 200 19 104 67 92 22 159 18 236 246 175 11 65 10 6 32 140 170 235 224 191 146 81...
output:
806499430
result:
ok "806499430"
Test #31:
score: 0
Accepted
time: 6ms
memory: 8608kb
input:
1 97845 0 25106 22290 22591 35980 59155 29415 57784 68791 16876 27164 52393 57677 68820 53726 50387 41150 19399 869 57610 66782 12618 74283 77613 95389 42212 73732 35977 58553 75649 86848 50447 81723 4723 47840 49148 84999 61671 78117 30694 17140 37137 79012 1739 63809 71442 27245 24425 96017 35806 ...
output:
399749008
result:
ok "399749008"
Test #32:
score: 0
Accepted
time: 27ms
memory: 11312kb
input:
1182 422 257 1119 170 1111 211 1068 902 169 915 881 106 115 627 741 250 162 353 727 1056 22 96 376 717 1136 1154 409 780 988 356 996 637 82 903 1074 319 505 330 707 607 530 164 443 1051 366 108 316 807 467 621 821 567 116 362 596 15 357 1085 283 833 255 187 298 511 538 285 547 3 1050 1133 647 112 92...
output:
774175485
result:
ok "774175485"
Test #33:
score: 0
Accepted
time: 31ms
memory: 11056kb
input:
1278 389 1186 675 415 11 140 428 8 862 325 479 438 610 23 874 441 44 460 519 926 1051 713 865 683 1147 126 728 1252 283 1034 1121 466 115 358 562 706 411 1103 114 882 730 1094 551 673 1053 1235 1241 498 899 1084 930 621 924 353 495 24 98 298 1191 548 1063 602 919 611 773 1214 608 1055 381 122 1183 8...
output:
158364871
result:
ok "158364871"
Test #34:
score: 0
Accepted
time: 41ms
memory: 13860kb
input:
1 427736 0 30366 221839 256771 357895 395657 101956 140251 63928 16467 400995 323430 114001 38347 26048 130612 126026 349494 244914 331668 279693 337353 298158 39676 250578 400428 326553 351375 158696 160609 367996 117114 320513 117811 293890 425482 187611 366471 88170 4018 182486 414471 249119 2908...
output:
712927511
result:
ok "712927511"
Test #35:
score: 0
Accepted
time: 41ms
memory: 13256kb
input:
1 464095 0 438988 379067 385426 261272 124341 145358 347066 112310 141339 327186 75926 228748 280458 241516 107023 152925 328505 228242 368604 117123 148642 393376 34280 260229 209737 384035 257491 394926 389168 55669 145201 141692 101985 182787 454577 129605 330673 40486 194937 111886 103066 396353...
output:
2116233
result:
ok "2116233"
Test #36:
score: 0
Accepted
time: 27ms
memory: 12324kb
input:
1 317171 0 148264 312603 104376 314842 115583 195959 57259 295346 222865 21794 204330 94815 126988 208744 221229 317036 107704 140351 1345 296123 91790 16283 188752 76479 88282 161587 146929 148810 218804 158394 253127 180467 30064 165571 152076 130697 220717 116273 287483 13118 23172 176570 85979 2...
output:
198423011
result:
ok "198423011"
Test #37:
score: 0
Accepted
time: 41ms
memory: 14460kb
input:
1 475324 0 182556 62695 469192 228724 163876 241371 395846 426548 445986 411167 377103 306514 71066 215082 12943 293318 39003 173338 243440 293876 66081 311714 139167 269584 205911 310614 70188 202101 382350 150657 414592 5697 115084 84682 8057 121249 470669 352965 69357 86619 307198 313155 143527 2...
output:
602871074
result:
ok "602871074"
Test #38:
score: 0
Accepted
time: 23ms
memory: 13072kb
input:
1 270058 0 165929 70658 73932 67081 33260 184198 216275 101577 134117 61775 136810 163877 242539 27703 223778 150635 199480 10324 136407 134294 211582 146729 10262 179608 261790 150450 168431 147006 137940 179982 243548 215166 22835 239986 152824 64833 70120 238404 173673 137184 148007 81149 248599 ...
output:
280116883
result:
ok "280116883"
Test #39:
score: 0
Accepted
time: 25ms
memory: 11628kb
input:
1 258760 0 250678 95725 178622 67523 83105 22038 164561 258329 116490 46733 146151 168086 237969 240417 77079 93876 58032 116095 200164 253435 195416 174320 183636 62808 80397 33642 163098 227708 257662 106944 25424 46997 202990 78289 227552 234431 148014 255572 87743 117464 56704 60250 25199 137973...
output:
781428260
result:
ok "781428260"
Test #40:
score: 0
Accepted
time: 14ms
memory: 10584kb
input:
1 215719 0 16284 54333 3801 144342 37328 116407 73441 46199 55830 29240 110995 194710 106039 213435 40219 21641 144086 156064 132470 118753 52729 114835 71367 118581 46770 141493 145490 68716 187872 129418 177132 88702 791 43401 10258 40444 210678 93863 213914 56748 2115 142932 94500 186130 55453 10...
output:
643264287
result:
ok "643264287"
Test #41:
score: 0
Accepted
time: 27ms
memory: 13880kb
input:
2 190344 1 0 157146 12900 180001 184085 45770 108143 59162 121494 127105 65129 68374 24695 116031 134346 4226 45424 131611 108472 174935 168467 120607 133596 97843 130095 35287 151606 38477 69943 33849 94162 41472 65096 28864 145890 56402 33103 89004 167376 61951 146902 25796 61137 47487 154730 1700...
output:
305302584
result:
ok "305302584"
Test #42:
score: 0
Accepted
time: 37ms
memory: 14016kb
input:
1 481148 0 256296 3674 299502 191732 338138 458676 394784 169576 348862 255004 77068 289506 50785 118360 455059 259235 84711 278755 245153 181948 422018 414484 237695 73472 350701 255776 198165 378185 150153 375893 452391 264247 241699 162448 102302 357439 352620 83087 471239 412193 405140 328310 20...
output:
987228753
result:
ok "987228753"
Test #43:
score: 0
Accepted
time: 27ms
memory: 11748kb
input:
1 320402 0 94156 216727 184162 72771 173083 224182 155934 106475 163430 41711 190264 254043 234055 121435 7615 56888 181409 150904 62404 99361 231208 4651 116068 41959 60980 278960 180744 290694 88220 129 29848 246228 170430 274167 224123 178080 244468 187260 51997 99364 241952 181417 281362 30135 1...
output:
666733871
result:
ok "666733871"
Test #44:
score: 0
Accepted
time: 19ms
memory: 12200kb
input:
4 80302 0 1 2 3 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 ...
output:
0
result:
ok "0"
Test #45:
score: 0
Accepted
time: 28ms
memory: 11144kb
input:
45 10683 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58...
output:
0
result:
ok "0"
Test #46:
score: 0
Accepted
time: 33ms
memory: 13848kb
input:
2 231018 0 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 ...
output:
0
result:
ok "0"
Test #47:
score: 0
Accepted
time: 15ms
memory: 10872kb
input:
68 6838 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 ...
output:
0
result:
ok "0"
Test #48:
score: 0
Accepted
time: 7ms
memory: 10624kb
input:
1 87658 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 ...
output:
0
result:
ok "0"
Test #49:
score: 0
Accepted
time: 20ms
memory: 11160kb
input:
79 6230 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 6229 6228 6227 6226 6225 6224 6223 6222 6221 6220 6219 6218 6217 ...
output:
734732828
result:
ok "734732828"
Test #50:
score: 0
Accepted
time: 19ms
memory: 11580kb
input:
7690 64 7689 7688 7687 7686 7685 7684 7683 7682 7681 7680 7679 7678 7677 7676 7675 7674 7673 7672 7671 7670 7669 7668 7667 7666 7665 7664 7663 7662 7661 7660 7659 7658 7657 7656 7655 7654 7653 7652 7651 7650 7649 7648 7647 7646 7645 7644 7643 7642 7641 7640 7639 7638 7637 7636 7635 7634 7633 7632 76...
output:
93863906
result:
ok "93863906"
Test #51:
score: 0
Accepted
time: 27ms
memory: 11104kb
input:
90 5285 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 5284 5283 5282 5281 5280 5279 52...
output:
234391396
result:
ok "234391396"
Test #52:
score: 0
Accepted
time: 24ms
memory: 11132kb
input:
690 714 689 688 687 686 685 684 683 682 681 680 679 678 677 676 675 674 673 672 671 670 669 668 667 666 665 664 663 662 661 660 659 658 657 656 655 654 653 652 651 650 649 648 647 646 645 644 643 642 641 640 639 638 637 636 635 634 633 632 631 630 629 628 627 626 625 624 623 622 621 620 619 618 617 ...
output:
240857700
result:
ok "240857700"
Test #53:
score: 0
Accepted
time: 27ms
memory: 14432kb
input:
35710 13 35709 35708 35707 35706 35705 35704 35703 35702 35701 35700 35699 35698 35697 35696 35695 35694 35693 35692 35691 35690 35689 35688 35687 35686 35685 35684 35683 35682 35681 35680 35679 35678 35677 35676 35675 35674 35673 35672 35671 35670 35669 35668 35667 35666 35665 35664 35663 35662 356...
output:
519704386
result:
ok "519704386"
Extra Test:
score: 0
Extra Test Passed