QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#457871 | #8838. Jesse's Job | ucup-team884# | AC ✓ | 125ms | 20860kb | C++17 | 1.3kb | 2024-06-29 14:32:07 | 2024-06-29 14:32:08 |
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: 7708kb
input:
3 2 2 1 4 2 1 4 3 6 3 5 4 2 6 1
output:
0 1 2 4 2 2 1 4 3 4 1 3
result:
ok Correct (3 test cases)
Test #2:
score: 0
Accepted
time: 1ms
memory: 7844kb
input:
872 6 1 5 2 6 3 4 6 5 2 1 3 4 6 4 2 1 3 4 6 2 3 1 4 5 6 6 4 5 1 6 2 3 6 6 2 3 1 4 5 5 2 1 3 4 5 6 1 2 6 4 3 5 4 2 1 4 3 6 1 6 4 2 5 3 6 6 1 3 5 4 2 6 2 1 4 5 6 3 6 3 4 1 5 6 2 6 4 1 5 3 2 6 6 5 2 1 6 3 4 6 4 1 6 2 5 3 6 5 1 3 6 2 4 6 6 2 5 4 3 1 6 6 2 5 3 1 4 6 5 2 4 1 3 6 6 6 1 3 2 4 5 6 2 3 4 6 5 ...
output:
6 1 1 6 1 2 4 2 2 1 6 3 3 1 2 6 2 5 2 6 1 2 5 2 2 1 6 1 1 4 2 2 1 6 1 1 6 1 3 6 2 2 1 6 2 3 1 6 5 2 5 4 1 3 6 1 2 6 3 2 4 1 6 1 3 6 1 2 6 1 2 6 1 2 6 1 3 6 1 5 6 1 4 6 1 2 4 2 4 1 6 1 2 6 1 1 6 1 1 6 1 1 4 1 2 6 2 2 1 6 1 3 6 1 1 6 1 4 6 1 3 2 1 2 4 3 5 2 4 5 1 2...
result:
ok Correct (872 test cases)
Test #3:
score: 0
Accepted
time: 27ms
memory: 7768kb
input:
46232 7 2 1 7 5 3 6 4 7 5 6 2 4 7 1 3 4 3 4 2 1 7 4 5 1 6 3 7 2 8 4 2 6 5 1 7 3 8 8 3 4 8 7 1 2 5 6 7 6 2 4 3 7 5 1 8 8 1 3 2 7 5 4 6 8 6 5 4 2 1 3 8 7 8 8 3 5 6 2 7 4 1 8 7 3 6 1 8 5 4 2 8 2 3 4 5 8 6 7 1 8 5 8 2 4 7 3 6 1 8 3 4 8 2 7 6 1 5 8 2 8 3 5 7 6 1 4 8 8 4 5 7 6 1 3 2 8 5 2 6 3 4 8 1 7 8 2 ...
output:
7 2 2 1 7 1 4 2 2 3 1 5 3 3 5 2 8 1 2 6 4 5 2 7 4 7 1 2 8 1 3 8 6 5 4 6 3 2 1 8 3 5 2 3 8 3 4 7 1 8 1 6 8 1 4 8 2 4 2 8 1 3 6 6 6 7 2 3 5 4 8 1 2 8 2 5 3 6 5 7 6 1 5 4 7 1 1 8 1 7 4 2 4 1 8 1 1 8 1 1 8 1 2 8 4 4 1 5 3 8 3 6 2 4 8 5 4 5 7 3 6 8 1 6 8 1 2 8 1 3 8 1 5 8 ...
result:
ok Correct (46232 test cases)
Test #4:
score: 0
Accepted
time: 73ms
memory: 15332kb
input:
1 999995 992870 210969 579550 405695 249895 436695 476463 929789 907510 311379 340877 491996 59204 996443 681309 483046 760005 905577 711115 275827 697004 450345 678866 276460 310113 542672 27 914370 232581 624905 590395 136666 628293 731656 670994 184745 662928 389422 848680 447853 325275 979617 82...
output:
999995 1 27
result:
ok Correct (1 test case)
Test #5:
score: 0
Accepted
time: 69ms
memory: 15332kb
input:
1 999999 132956 959208 556000 604257 627699 841942 392337 85216 596714 941258 128586 471931 589450 975529 945897 459533 603544 562877 170464 568730 134581 853340 114919 588755 677661 246220 410344 431559 600933 71503 340747 300767 956226 134024 377489 953726 922690 597383 328440 183077 305496 911409...
output:
999999 1 67
result:
ok Correct (1 test case)
Test #6:
score: 0
Accepted
time: 108ms
memory: 19556kb
input:
1 999995 151304 350332 773183 104266 183633 346263 526539 191085 531746 355173 883744 387959 24944 911448 969746 652626 567671 859523 590384 980797 692606 699234 873314 30142 292030 794805 784083 528201 66334 787834 981995 233166 953602 312617 136612 832397 103749 244552 955161 491539 668517 866412 ...
output:
999993 575603 532452 241324 389861 20113 646960 377692 833522 805404 273152 26629 95433 689617 124452 910987 178268 230307 86827 279680 639418 327611 469517 673118 811614 258361 231179 501064 686415 922385 823836 768700 368101 382200 846809 218773 359041 792876 438182 922081 608152 357250 417228 189...
result:
ok Correct (1 test case)
Test #7:
score: 0
Accepted
time: 119ms
memory: 20860kb
input:
1 999995 754675 577330 167544 259206 764547 604199 151690 344752 277381 570149 789585 58013 915739 880076 94361 336806 247836 105018 84016 247471 4769 103273 849777 222635 73036 568675 835749 659559 134752 378968 614868 318761 242558 316551 909010 766039 66636 944423 502413 379540 334867 442430 3581...
output:
999993 751355 894235 693718 106930 745155 899765 309194 432434 351057 511415 49389 796727 411015 398701 44301 50260 520196 759554 278639 583549 501123 959314 726432 702941 144924 557601 865483 635732 310637 421232 304665 777987 144574 817209 59384 513823 232068 61448 315149 629098 734873 20969 71459...
result:
ok Correct (1 test case)
Test #8:
score: 0
Accepted
time: 91ms
memory: 15560kb
input:
1 999997 638443 340278 112988 154978 902464 863990 24951 545820 871596 953644 803226 311894 360567 370837 708113 752941 671099 747784 462442 500613 130353 230987 95163 706571 204796 78466 465187 922223 33915 565546 999951 229649 30926 322281 791450 25472 253758 656076 139756 169438 627450 419553 662...
output:
999995 93416 972487 156629 950531 999204 920031 630018 763186 368731 929047 239203 141884 125651 923348 59016 659338 548847 922047 883261 661020 701968 197564 349020 701578 426955 666321 534530 64329 225004 16903 837227 343155 719513 330506 733306 47430 484378 159310 503450 712472 609945 572724 9195...
result:
ok Correct (1 test case)
Test #9:
score: 0
Accepted
time: 91ms
memory: 15464kb
input:
1 999995 297456 504173 513434 848530 682896 583103 149312 357353 350343 698138 651957 146466 893734 433768 572877 193129 373010 693311 916549 645436 432909 753385 69552 502685 172598 942736 523297 72546 304608 959938 963545 317586 861185 4757 575504 991291 605063 958836 977410 935343 795146 487641 4...
output:
999993 24257 298902 676915 370951 22957 431518 425748 908404 650365 217365 959129 378899 436409 671841 73069 940215 126597 449814 933907 370026 790530 145622 551081 731313 225189 268288 458984 87497 948758 371020 669709 363760 475563 769600 661938 424365 402033 909030 97040 40796 537473 811754 93933...
result:
ok Correct (1 test case)
Test #10:
score: 0
Accepted
time: 122ms
memory: 20612kb
input:
1 999997 393410 49035 524264 818845 10675 897541 34937 372076 874521 588800 365704 524415 502318 615599 936210 899872 770986 805250 323839 327072 759952 778190 672074 80915 838961 198598 435412 403740 681793 305974 418478 862081 285680 469837 371537 47760 710084 733248 556199 534111 827640 185961 15...
output:
999995 824011 472058 795182 338166 7084 667823 499755 409573 545928 258932 676475 73241 756888 182647 557721 440691 438518 932823 257177 507949 48792 716248 536238 216596 715531 126300 721289 777325 595841 390163 284783 560270 731798 65889 394920 97334 104912 992738 215001 134427 606023 837970 71267...
result:
ok Correct (1 test case)
Test #11:
score: 0
Accepted
time: 66ms
memory: 15564kb
input:
1 999995 944829 184022 584189 44931 382020 646738 472283 116610 935974 570355 788773 241934 738294 626043 874067 603890 741968 138232 528117 609827 426413 419495 494434 809342 94243 198801 749308 766492 505446 969921 372479 49158 138897 702882 55890 776117 638050 57623 553563 26230 261953 942379 323...
output:
999995 11609 317268 327663 296446 765012 361984 855602 613782 871236 475283 470796 560257 608509 327138 567994 40398 283019 328853 218131 656391 200724 464927 937938 790641 993859 730309 177827 29558 299782 651144 656227 446273 874797 366209 970980 565723 544338 631953 83105 627655 464329 630737 120...
result:
ok Correct (1 test case)
Test #12:
score: 0
Accepted
time: 110ms
memory: 20064kb
input:
1 999999 598262 800757 858000 406327 119516 823023 136708 66880 148616 782590 436276 634080 888631 385137 494685 559597 48898 394580 171289 165715 938954 65280 200097 979879 391676 910854 438015 851434 265045 970989 839032 423528 871701 483523 345346 38471 822315 350679 808315 546586 571575 164651 5...
output:
999999 776313 269496 293891 960413 113491 699681 345122 59711 884831 850048 772948 818528 189253 137139 244450 278420 97679 387255 786991 710133 208885 267515 916434 655519 361739 858613 910335 603734 807642 378454 973011 56749 50998 304749 756704 120997 249791 361640 291953 751939 465848 903148 554...
result:
ok Correct (1 test case)
Test #13:
score: 0
Accepted
time: 65ms
memory: 15332kb
input:
1 1000000 598176 2 63866 853014 5 6 686653 726076 9 397868 120096 12 13 447613 15 436733 17 182004 648030 20 124194 832356 344678 690075 25 26 726062 188011 923659 186941 954310 572295 587076 812134 82682 711573 958279 38 39 468598 162778 901628 43 809521 2070 46 47 48 49 50 51 52 325011 54 25970 56...
output:
1000000 1 2
result:
ok Correct (1 test case)
Test #14:
score: 0
Accepted
time: 74ms
memory: 14860kb
input:
2 619118 90164 2 219107 200440 451939 315958 296133 128808 361248 514958 293002 401184 585660 73556 339209 203156 17 577263 82815 251835 183546 82364 114031 602717 287196 143720 558967 161047 390820 607835 111226 280058 442965 418626 493748 47866 37 200343 120407 142723 210686 463387 241093 267981 6...
output:
619118 1 2 380880 50861 98185 173587 318793 119778 280097 306964 231612 233867 119567 339061 343299 307464 271611 143609 21816 137497 267408 99572 205261 25056 308169 99048 315607 22342 155267 120719 374876 316965 245846 330301 65719 164819 249766 287201 359989 11811 162134 48389 327055 103379 1904...
result:
ok Correct (2 test cases)
Test #15:
score: 0
Accepted
time: 115ms
memory: 18760kb
input:
2 871966 640387 80368 797023 563489 243737 145675 666994 194975 345691 400793 759442 834454 700191 155844 197144 501576 600382 261210 793976 226333 19611 744069 297287 792632 93572 679779 815401 787937 163361 733542 573758 828483 852527 319904 29935 314322 835905 162819 523183 200165 788848 105889 3...
output:
871964 744250 682622 481818 117684 229095 77233 706285 856981 206013 236384 695547 241896 224486 648803 579415 327760 864385 478314 666036 649624 769458 151458 410786 577857 158063 770619 62380 118512 122398 87116 505150 409607 460274 282383 481229 752231 472149 414967 837464 494141 269550 445223 71...
result:
ok Correct (2 test cases)
Test #16:
score: 0
Accepted
time: 75ms
memory: 14760kb
input:
2 179437 1479 9605 87967 117977 50718 124360 86016 23899 2164 121051 31984 111829 154715 103812 19392 150824 3279 29525 118899 166055 173839 84587 67983 165471 40345 84143 139004 28367 177911 97764 54397 17288 114719 31659 47051 43374 114708 176309 23080 263 61101 36573 121923 3933 59064 138745 1745...
output:
179437 14438 52869 72599 114755 92159 67026 38729 145742 31689 116535 15465 108490 31065 48798 167227 127072 62329 99638 106140 98842 21937 93307 96252 118475 94830 66503 26627 85395 155979 51950 108077 140221 16244 95921 61705 99475 48485 99735 171629 173195 75584 55677 18486 124330 88620 119942 64...
result:
ok Correct (2 test cases)
Test #17:
score: 0
Accepted
time: 125ms
memory: 15184kb
input:
2 540838 339723 335565 400530 207472 333626 271857 83193 354471 304426 107298 68880 28174 375466 377530 26552 223667 368807 121965 73505 8051 219826 252618 302264 348616 21753 500246 465806 40657 430533 515835 254703 169778 376049 161368 391583 240544 287407 223447 539945 31310 347440 25163 44388 23...
output:
540836 476412 362248 493225 253809 158121 123157 368217 104474 238264 442484 388855 539602 21168 45380 241211 395971 178642 143565 400473 237754 47215 433600 141883 267245 290118 130069 51437 472798 405737 28838 308745 179989 314919 106992 207973 277711 512141 129480 320768 235548 260998 381625 3246...
result:
ok Correct (2 test cases)
Test #18:
score: 0
Accepted
time: 91ms
memory: 16312kb
input:
2 497030 477095 353052 110488 62624 382398 356033 176110 42359 288859 381691 402812 311733 6680 117699 215708 199588 227701 458407 160923 368755 228412 144228 248902 131632 7233 351435 43586 343018 121832 457067 75824 213631 122509 151990 103507 49550 287165 469293 26080 359949 50162 169739 445205 2...
output:
497028 277583 468426 358425 351302 447675 17330 445664 362298 23280 57926 144636 441897 140872 359712 114976 446598 226292 357467 232833 441191 412989 22242 207609 181752 352357 177651 299048 65574 405838 243749 360828 496330 16959 350622 20944 195965 298431 246545 277793 205836 341379 414083 185066...
result:
ok Correct (2 test cases)
Test #19:
score: 0
Accepted
time: 68ms
memory: 15016kb
input:
2 822732 29287 712896 467621 551925 605914 290051 411219 269073 619834 772162 172440 383504 630320 443652 578479 807814 412463 476979 369375 377844 41836 737690 23087 194699 740146 8822 367784 560638 701544 169089 202563 30635 220889 371087 671729 612139 377535 305328 698138 367284 672392 476535 520...
output:
822732 1 651 177267 1 5
result:
ok Correct (2 test cases)
Test #20:
score: 0
Accepted
time: 93ms
memory: 14660kb
input:
2 460272 454054 51480 38683 115398 246110 33086 10813 306840 336274 367523 322862 291532 96801 63208 136745 428732 96626 121548 453987 35765 208212 1237 292191 409419 421453 50914 60023 155411 47120 43293 376415 328933 180727 435025 237800 132813 242453 425910 312549 441028 21561 199562 16012 203563...
output:
460270 4106 88910 415063 17968 123246 47320 70127 281442 223714 374783 230495 440165 374179 313477 330131 303011 366279 119447 421353 41091 448626 293285 292267 151791 441899 73250 280308 214533 15499 362389 181993 82021 410122 352954 215751 160214 316444 163020 338819 255234 309149 40781 395450 449...
result:
ok Correct (2 test cases)
Test #21:
score: 0
Accepted
time: 83ms
memory: 15076kb
input:
2 573212 502447 60739 35524 340096 559656 317717 390986 419402 200695 412082 338708 486839 358901 349946 208819 215676 448624 294970 353816 558368 468745 174716 108705 207369 127513 400809 335513 569335 227194 33670 276388 252531 281759 434404 346682 225672 414370 314322 328803 404120 379519 417237 ...
output:
573212 40359 31152 132790 230956 46599 280173 246122 227955 236047 128217 422753 205512 246170 137761 37805 333711 214525 311169 166357 114247 30375 384027 393822 76097 322338 282546 327046 396741 451387 453890 504673 29686 111718 270257 370499 26718 531819 129641 223405 175040 85925 151044 514085 1...
result:
ok Correct (2 test cases)
Test #22:
score: 0
Accepted
time: 121ms
memory: 19536kb
input:
2 774297 108974 50475 447709 425891 132886 772611 547329 490982 724938 684343 650803 770154 639926 683026 155527 222186 252543 398558 421690 349432 624529 475206 337242 474437 12910 613008 175661 704682 506522 57865 448281 617815 726872 258282 103986 746352 747239 758541 67119 122989 57274 608936 51...
output:
774295 541740 288787 762419 198581 289435 187642 77421 198490 434193 548707 482538 451473 376942 415789 25920 166471 27157 474781 228265 38534 38744 184291 92166 514955 302534 673781 506028 41993 245786 531333 179301 17489 216092 154923 110124 15422 625364 431951 347407 368548 711813 448791 499409 6...
result:
ok Correct (2 test cases)
Test #23:
score: 0
Accepted
time: 92ms
memory: 15840kb
input:
2 721006 48267 555562 323543 507153 673309 477678 564069 236534 99971 415431 339298 351214 652600 357260 266582 284090 343443 180581 230580 589676 218752 145102 373144 348717 33025 414010 606244 527527 230772 372204 229293 478539 280102 227109 288272 406071 430834 568583 131577 36051 612152 435912 5...
output:
721006 231889 222502 656356 458219 110373 63844 182082 39769 648263 19401 277934 481248 177063 34773 524190 257020 213500 164488 525152 223182 101528 349352 192108 360811 17660 1304 458369 46736 304310 269676 345369 43985 688340 142228 184470 710609 561798 417012 656448 116517 94639 708833 531363 53...
result:
ok Correct (2 test cases)
Test #24:
score: 0
Accepted
time: 58ms
memory: 14460kb
input:
3 545686 1 2 401203 4 5 6 165600 8 445568 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 446391 26 27 362780 88147 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 356219 46 47 48 49 46762 51 52 53 54 55 56 57 351417 59 60 61 62 63 64 103030 66 67 68 69 311162 71 72 4279 74 75 76 269885 78 79 80 81 82 83 ...
output:
545686 1 1 56348 1 1 397964 1 3
result:
ok Correct (3 test cases)
Test #25:
score: 0
Accepted
time: 78ms
memory: 14476kb
input:
4 177794 116760 126345 61744 6423 73151 2731 131887 142812 45535 26266 160534 48561 46707 145258 161542 86204 28673 79542 22836 116287 39853 135713 1662 26830 75441 48100 129513 140270 157643 76862 11156 64117 85828 171178 171517 43834 105739 112222 88849 58094 89488 74017 154290 49730 32336 138033 ...
output:
177792 78611 28591 4614 156129 10567 145549 165241 143847 57892 21855 3958 111075 108925 144481 131407 117184 132698 116271 26988 6119 174820 53569 152760 51955 123722 177713 55013 94982 66037 161400 58277 61918 95643 133850 97818 48099 111523 150574 60978 93289 61700 38453 43205 94949 33133 111562 ...
result:
ok Correct (4 test cases)
Test #26:
score: 0
Accepted
time: 63ms
memory: 13408kb
input:
5 213494 86293 124376 72303 131709 28537 160682 1999 52197 74061 49878 136369 117055 163227 11573 100962 79061 105131 151536 25877 200627 29619 202729 204613 65640 13252 161348 16508 123670 74012 155482 40701 159748 183865 155427 52718 177607 129463 105128 83403 162172 151011 30908 8325 48754 63326 ...
output:
213494 6822 40589 46432 156126 106902 211843 52035 29907 73239 80411 30659 168496 34251 179341 162801 152626 205085 18631 192575 67234 108355 46180 42045 114504 58569 87946 23903 71182 22585 33937 129443 120161 148262 34992 48522 137986 55322 111872 5470 152600 22262 93807 27407 148437 136234 177612...
result:
ok Correct (5 test cases)
Test #27:
score: 0
Accepted
time: 84ms
memory: 14760kb
input:
6 26394 1 1215 3 4 5 24633 7 8 11778 10 11 12 13 14 5403 2544 17 18 19 20 23730 22 23 16710 25 26 27 28 29 30 31 32 33 34 3567 36 37 38 39 40 41 42 43 44 364 46 47 21776 49 50 51 52 53 54 55 56 57 58 59 60 61 1369 8692 64 65 66 67 68 22957 14395 71 72 73 74 75 10243 77 78 79 80 81 82 83 84 85 86 87 ...
output:
26394 1 1 65210 14200 37910 16382 12657 18358 5726 7913 36589 31414 58527 32113 29047 2087 53962 3657 4206 36657 35933 38444 14919 45460 47024 53024 39689 40810 14112 6723 14904 59280 26795 3558 21286 37716 33585 7154 57206 49270 37795 1942 15992 63391 17318 58540 46980 9529 37375 29262 59575 56090...
result:
ok Correct (6 test cases)
Test #28:
score: 0
Accepted
time: 73ms
memory: 13744kb
input:
7 105897 99466 56858 13176 19677 49543 74294 36661 1750 64564 6861 39471 20190 21648 30576 40921 32804 15152 57806 22290 46119 79303 99325 59755 28096 76343 55125 43104 30393 3109 79375 21997 36664 31939 60892 1757 39089 7231 57529 97367 21270 64721 17484 88564 23295 89496 7807 64697 63015 36852 964...
output:
105895 23892 46460 735 58011 27458 48509 7409 75397 44979 8459 43705 15959 52180 39095 47307 71783 77911 82087 85012 37386 98364 64982 19396 12402 2119 18406 24847 93404 82310 19615 19351 7798 14324 16813 25367 62495 51285 36977 32806 33833 83253 98497 50867 15439 103592 66348 91535 17944 5592 1396 ...
result:
ok Correct (7 test cases)
Test #29:
score: 0
Accepted
time: 73ms
memory: 14716kb
input:
8 655573 280037 629341 195685 410686 212960 223124 294040 473175 642842 158457 217624 411159 514317 392527 332779 269690 596618 22836 121459 61417 173388 430829 242368 383295 391008 624812 412752 409701 394824 23117 414100 167745 628770 55271 369282 258340 410194 278282 246019 654232 466891 206876 6...
output:
655571 4449 64613 105734 134284 536618 609750 217365 368657 172744 369749 577823 442570 550271 476152 383780 426308 98093 157573 154288 43272 650490 465583 636629 127551 653262 305064 377110 70771 152324 562935 641161 438084 38401 586714 423096 559245 355455 380814 363493 452668 3983 573795 3621 781...
result:
ok Correct (8 test cases)
Test #30:
score: 0
Accepted
time: 78ms
memory: 10932kb
input:
9 156834 98965 14780 120378 149355 126891 59457 4795 90461 75117 103508 146543 19614 96195 138074 34392 132536 151731 27879 122330 110570 105983 62666 82304 85612 89102 110379 133919 136883 93088 130 80437 64387 125468 66299 127375 106845 148866 122581 146942 79402 88517 33795 65669 151196 20516 129...
output:
156832 61305 42840 1064 69177 72655 39107 125638 75968 2955 47017 115228 149113 138641 83444 18495 58838 152412 44701 41378 155701 99914 14279 14428 70164 84991 89506 48734 68647 20171 94670 136009 120866 108359 91001 84813 4327 42173 38841 4620 59981 15534 123876 106226 108008 90668 119472 27309 13...
result:
ok Correct (9 test cases)
Test #31:
score: 0
Accepted
time: 73ms
memory: 14196kb
input:
10 27108 12251 14046 9345 4485 22465 10296 16423 15823 22158 23553 20145 24845 3037 23757 22085 24324 4642 21497 1515 17922 16505 231 22129 10913 18238 19004 15819 15153 25370 3415 2962 16681 9141 18239 4201 25492 6588 26567 20895 14232 15085 15440 5224 19846 1441 5712 21781 10381 19212 4778 23405 2...
output:
27108 3726 22429 24043 21304 8690 5509 14491 18015 6083 19277 1265 23166 13393 2761 17162 1728 24522 19904 11855 2746 7005 23270 16691 10589 12666 8892 26019 9438 22303 5575 16393 481 8395 18451 2251 17279 675 17797 23454 2896 17166 12548 20045 4807 15581 2363 16059 25303 685 23731 24662 16655 7966 ...
result:
ok Correct (10 test cases)
Test #32:
score: 0
Accepted
time: 86ms
memory: 11304kb
input:
11 10121 1609 8225 3 7626 4830 3706 7 9725 9 3514 9859 3768 8643 14 2140 1019 17 7606 7595 20 4036 423 23 24 25 26 681 5514 5633 8870 31 9490 33 7430 9531 36 5983 38 1567 1679 10071 1964 5533 44 6277 3017 2324 48 49 185 51 52 53 54 7239 6434 6954 58 10087 60 9646 4584 63 238 2529 9590 2236 3626 7069...
output:
10121 1 3 57561 10323 27083 54068 52399 33934 54198 10294 22294 20563 54062 14445 21539 38946 15642 4035 14790 45299 18906 11518 36638 79 2427 33588 40667 17803 21885 23343 44988 51058 55761 4836 53440 2992 48703 40541 51047 4259 30667 48256 45915 40122 24981 7276 33182 30111 4696 44128 26483 54116...
result:
ok Correct (11 test cases)
Test #33:
score: 0
Accepted
time: 66ms
memory: 12988kb
input:
12 16649 11155 12810 936 54 6251 4345 10231 4297 8233 12448 7106 15979 5445 1497 2625 14856 15107 8593 13351 12197 6494 7865 855 14793 15484 9520 4085 8643 13501 13498 7099 8283 10068 11357 14365 1015 9496 2255 13123 9035 14304 3334 2734 264 14875 8060 13275 4699 11075 15215 11769 9559 5925 7899 835...
output:
16647 500 16019 3367 1396 12842 12139 11945 13791 13153 13568 6410 3877 12262 10174 5131 2737 15918 10835 6047 4001 16084 6534 1935 11092 2413 6322 2950 6672 8992 2746 5412 14862 1473 7090 1307 11798 16108 8586 1044 15863 5581 10717 16378 10293 11218 4674 8706 10734 8826 4689 13881 9506 12738 10291 ...
result:
ok Correct (12 test cases)
Test #34:
score: 0
Accepted
time: 69ms
memory: 10600kb
input:
13 6728 2113 1374 5019 2228 1829 3510 5713 6376 1406 5942 944 4469 6680 5398 2818 6715 6669 31 4001 1353 486 1571 3035 1023 5376 1188 3142 4188 4445 6674 3549 6082 6193 4338 2278 1867 1605 2518 4572 5916 3324 573 2387 5787 4424 2774 2377 244 3395 2090 2834 5820 2061 2598 1641 6595 3421 6083 141 1287...
output:
6726 921 4987 673 6706 2521 6478 1832 18 853 4428 6537 1247 5672 3441 2917 5789 6363 2459 1824 4067 2551 6333 5294 5633 5547 5431 5223 1245 1761 86 1943 5358 5695 1528 4448 1677 4062 4131 5097 296 2807 3519 843 3823 3214 1753 4372 1312 3990 6071 5591 4392 1256 6280 4306 2990 2507 3120 1855 2234 1424...
result:
ok Correct (13 test cases)
Test #35:
score: 0
Accepted
time: 84ms
memory: 8628kb
input:
14 43977 39227 39513 25799 1059 24319 33994 34051 23007 42142 14145 24603 14551 27798 10157 15921 37338 29244 35818 27242 12317 35610 9794 28060 16357 953 34772 21796 9362 23305 38598 12695 6109 39961 40574 18163 28736 2663 43130 28933 23085 32855 40362 15298 38030 911 4266 43778 21570 40936 18045 2...
output:
43977 1879 43775 33902 31482 15170 27648 495 40186 26403 11105 31124 35786 9505 2140 28193 25582 983 7250 29502 18103 33417 34593 4055 18284 18037 31411 7902 27709 31764 8197 43524 43157 4601 36517 39435 32692 9107 31896 7123 37909 22559 32624 13261 20956 43773 29201 26687 34829 13554 11056 14799 29...
result:
ok Correct (14 test cases)
Test #36:
score: 0
Accepted
time: 77ms
memory: 8400kb
input:
15 22691 18515 13639 8461 19888 15608 6077 7438 6395 2205 10400 13195 6263 6510 19774 13070 8618 22478 19728 9997 19439 15510 4551 11327 21146 5723 19847 14050 1301 22614 582 16280 9311 8076 16276 17400 5995 1570 10809 14519 2466 3889 6614 11038 21049 20891 15545 5214 8025 3608 18277 19146 12939 198...
output:
22691 2364 3649 18982 14547 11644 4866 11192 11173 12944 2027 11519 18146 9600 5725 2289 19098 11154 69 18898 10778 12582 21401 3653 2942 6567 4617 4400 8354 18258 1677 6914 3338 17793 12858 4371 20400 8274 18293 20708 1965 2986 9108 15021 22245 289 16261 2778 9738 1503 17575 4793 13256 10348 8323 3...
result:
ok Correct (15 test cases)
Test #37:
score: 0
Accepted
time: 72ms
memory: 8184kb
input:
100 23654 22787 18095 12121 14924 13636 6778 12319 21262 12320 20261 14452 22619 19152 5702 16830 23437 12988 13172 4743 17669 9201 17800 17213 17716 12208 48 11741 20985 12814 8159 9945 15226 21758 19066 12663 6183 12511 1451 1398 4121 10107 2531 21175 13685 13609 12476 13225 194 11556 21948 19973 ...
output:
23652 18668 10206 4567 5862 9032 440 8638 1094 4256 20125 16044 11165 10688 7752 19266 8492 11617 10074 9962 19950 1947 3223 19203 1869 7736 9482 16217 10136 1621 10407 12574 4229 9769 12990 16356 19170 8231 7943 8165 23207 21012 22040 2456 399 23218 3308 18990 8066 22429 17871 15901 9396 14791 8962...
result:
ok Correct (100 test cases)
Test #38:
score: 0
Accepted
time: 65ms
memory: 8124kb
input:
101 6514 1768 3066 2179 5896 2818 3154 1066 4703 6437 3404 5852 3162 233 2458 5697 6379 4616 6305 5937 761 6294 956 1755 839 4349 4886 2427 742 274 1472 1135 4621 252 945 4651 6199 6086 3159 3666 4998 2868 5593 3042 5063 5280 6219 965 4958 5702 4821 5047 2756 2475 1865 3187 6406 5376 3963 1635 251 2...
output:
6512 2364 2227 4366 2655 5394 1859 724 5663 4980 2346 4860 1550 3106 5099 6273 5090 6141 4028 1699 729 3088 3536 2201 143 4684 5320 929 3829 2920 5323 678 2732 378 1850 226 633 3033 5529 5349 4701 5000 5983 5425 5175 1784 5825 458 6168 5990 3969 6473 6358 888 6325 355 2793 5999 3974 1343 468 5991 34...
result:
ok Correct (101 test cases)
Test #39:
score: 0
Accepted
time: 73ms
memory: 8140kb
input:
102 9439 672 9317 8375 2012 1784 2441 7317 6585 6999 173 3592 7490 4031 8049 1018 5891 5229 3760 8209 3009 3640 336 3308 6807 8681 1905 2701 7773 2177 1025 5433 6303 8381 2792 5911 6377 7144 4980 4940 6734 4034 1404 2779 6338 1055 3945 6486 7301 6146 6633 6287 386 7296 5607 7091 8100 6052 2184 239 6...
output:
9439 130 8469 8344 4544 6346 6674 8425 8512 118 3952 1162 8270 4946 5882 2921 6493 6688 798 4408 4920 478 2640 3041 4670 3035 2082 4942 5102 2620 5195 8492 1579 5218 7944 392 90 8470 2462 3224 5686 6652 1126 906 5550 8465 6188 1727 8104 495 3576 6864 78 574 1374 7861 140 7528 916 3851 6101 2290 941 ...
result:
ok Correct (102 test cases)
Test #40:
score: 0
Accepted
time: 72ms
memory: 8020kb
input:
103 12107 9761 10604 10321 5219 3927 10286 8879 8384 10550 369 781 1883 504 7455 4697 11319 9748 6183 3622 3388 981 1736 7417 8448 6910 2236 4621 5041 1309 7236 6140 10163 8047 7845 2001 1104 4202 6777 7436 11358 11674 6113 11962 4244 1479 2619 2379 2530 11293 5259 832 968 7340 5197 10305 1352 5039 ...
output:
12105 5338 4344 802 7889 1686 7688 4771 8177 8332 5465 8578 8565 7386 9486 11701 11009 87 2230 11857 12047 8301 8047 8954 8158 1273 11838 5757 1557 7185 10817 5000 9532 9683 7614 173 8232 1772 7497 516 8581 5341 10332 5112 443 6502 566 6978 3579 8532 5841 5939 9708 12041 1175 8109 1337 9526 4538 298...
result:
ok Correct (103 test cases)
Test #41:
score: 0
Accepted
time: 72ms
memory: 8068kb
input:
104 4175 320 1408 816 351 2298 854 1058 3748 3899 1240 3363 3498 3759 1805 2492 1509 1339 2194 1646 4102 498 3331 3166 2735 3584 2671 2621 3905 2177 1309 26 4112 2512 1265 3430 3967 2122 1368 894 3211 631 3257 2019 1731 1059 3113 1057 926 814 588 3200 1740 314 3695 3956 2619 1713 1120 451 2624 1594 ...
output:
4175 239 1371 4012 1332 3212 1017 1296 2474 2581 2169 2330 3847 1903 449 1123 1356 2610 2582 1334 1075 4 1904 1785 984 2262 3552 920 387 1080 2061 2290 529 129 2978 1712 3848 2608 2816 1457 351 3989 3122 3264 3166 2741 1167 732 558 2347 1313 3682 3 1529 550 739 3003 72 365 1488 1165 2074 3524 3113 1...
result:
ok Correct (104 test cases)
Test #42:
score: 0
Accepted
time: 76ms
memory: 8104kb
input:
105 14987 11417 10364 5035 7062 312 4482 10545 2287 11370 6618 482 10039 9140 2052 10823 8130 3170 7162 14023 7496 10534 2411 8258 9897 5992 2114 11161 13956 5492 7430 9168 7941 5700 9316 10074 12364 8804 838 9724 4552 6827 8430 2094 8726 3117 13446 1797 12496 11358 6483 6753 3 8201 2136 11926 5468 ...
output:
14985 5588 11145 52 2252 3164 8876 14440 3242 5231 5686 8318 11469 13549 10115 1950 2799 821 2544 4778 4230 11822 6733 7516 7152 3721 3641 14678 337 5837 12618 12860 13865 10903 11100 9939 3073 8923 11275 13411 13571 1998 12054 7638 6394 6413 11101 7770 12314 1016 12735 8001 10555 9242 9883 8896 254...
result:
ok Correct (105 test cases)
Test #43:
score: 0
Accepted
time: 70ms
memory: 9876kb
input:
1000 437 49 113 265 174 401 88 6 27 422 96 216 11 419 402 82 45 142 269 306 62 103 296 414 355 37 276 245 290 86 400 207 235 413 348 425 437 76 160 327 75 208 33 377 219 236 182 273 326 338 48 203 131 279 157 260 238 343 394 316 246 134 329 20 300 225 202 28 340 395 351 201 341 421 5 167 26 61 398 1...
output:
437 60 262 149 403 8 231 159 399 87 377 210 240 152 396 2 157 186 334 192 358 54 318 238 301 83 265 328 110 366 32 361 56 315 239 27 119 204 3 423 255 400 312 113 107 357 237 153 245 215 138 322 43 234 383 424 30 303 235 415 331 420 425 113 77 123 285 369 34 234 162 289 312 239 365 213 293 110 67 2...
result:
ok Correct (1000 test cases)
Test #44:
score: 0
Accepted
time: 66ms
memory: 7768kb
input:
1001 194 106 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 72 20 21 22 23 24 25 111 27 28 29 30 31 60 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 32 61 62 63 64 65 66 67 68 69 70 71 19 73 74 90 76 77 78 79 80 81 82 83 84 85 86 137 88 89 75 91 92 101 94 95 96 159 98 ...
output:
194 1 2 1427 136 611 1222 269 641 328 757 1162 1165 1098 1144 731 289 894 247 912 21 60 642 243 892 423 479 152 868 820 93 470 1213 684 646 1290 608 49 1375 819 1320 298 664 1364 450 978 428 1133 928 766 751 435 716 238 174 1058 1402 545 678 193 261 748 315 338 1304 523 1141 1254 295 1315 785 1295 ...
result:
ok Correct (1001 test cases)
Test #45:
score: 0
Accepted
time: 69ms
memory: 7820kb
input:
1002 1577 646 403 1536 766 972 169 815 856 1495 732 592 1386 236 640 336 608 535 1216 1332 539 408 1119 1131 1362 948 122 495 1033 556 975 241 513 438 674 1353 920 1245 765 166 883 1276 125 1415 469 1350 930 1117 1197 473 4 859 1448 1491 406 117 1110 437 898 965 1543 949 428 1550 672 1380 505 334 71...
output:
1575 317 513 50 1320 574 1018 1039 396 1241 1545 618 217 1442 646 528 1432 594 254 1357 458 1196 838 351 986 80 328 548 733 1239 214 615 1213 839 568 822 207 1024 1051 667 930 875 983 675 686 843 1480 206 685 910 722 877 1135 148 1336 1506 936 844 1233 588 682 452 380 411 529 792 1561 105 1020 497 8...
result:
ok Correct (1002 test cases)
Test #46:
score: 0
Accepted
time: 64ms
memory: 9800kb
input:
1003 1215 897 2 63 860 5 572 7 1053 31 352 411 71 368 690 1067 536 553 756 398 20 21 22 992 299 25 26 175 28 29 30 9 367 140 832 35 1157 156 511 1195 639 877 42 43 496 45 386 535 581 49 50 51 1149 935 69 774 56 57 744 914 1174 147 207 666 64 978 172 959 976 54 879 1205 72 1142 1081 174 76 1000 823 7...
output:
1215 1 2 311 1 8 5538 1126 2955 2096 2656 1297 1385 5093 1821 2494 4018 1556 3801 2897 2519 1597 3096 170 4902 1554 4950 3486 2579 340 54 4975 2398 4275 1937 4591 15 4569 4667 4259 372 5483 180 5458 2386 4278 4813 2584 4092 1217 518 3423 4312 5101 2240 3869 491 27 1016 2214 2546 3489 517 1862 3308...
result:
ok Correct (1003 test cases)
Test #47:
score: 0
Accepted
time: 65ms
memory: 7792kb
input:
1004 929 30 489 88 6 192 602 97 480 803 906 308 697 248 586 39 215 828 878 793 46 512 902 136 747 620 898 292 731 323 282 457 621 222 689 41 885 560 190 504 246 904 721 405 252 399 631 117 235 854 617 114 307 176 208 172 751 715 111 867 11 588 831 448 8 288 453 100 263 408 836 702 319 630 671 333 89...
output:
927 157 437 319 95 200 605 227 651 810 723 915 882 368 590 298 696 808 879 466 113 479 350 380 518 269 141 613 345 366 5 732 462 264 33 532 725 593 105 204 865 797 102 625 702 667 241 487 733 109 516 916 850 72 557 911 774 577 313 283 527 428 300 524 231 115 184 66 749 169 893 652 821 761 833 239 57...
result:
ok Correct (1004 test cases)
Test #48:
score: 0
Accepted
time: 62ms
memory: 7860kb
input:
1005 1634 506 1610 352 1251 1632 261 1334 1551 809 884 339 199 732 633 959 259 894 1499 968 1280 1335 107 1123 1615 1348 1437 1372 235 227 471 1159 1462 509 642 811 1505 1204 1054 618 203 1328 562 45 166 1421 567 1439 1516 772 1554 84 257 868 1203 1500 919 734 1303 425 1132 1583 1269 110 1133 901 31...
output:
1634 27 1008 1412 1300 1062 930 967 795 873 981 1435 571 472 1569 1301 362 391 813 1176 570 349 852 1021 100 58 980 1303 1002 533 415 354 136 404 402 275 80 63 376 416 148 279 440 178 314 75 350 36 98 54 473 110 341 318 339 365 531 217 131 370 149 102 225 227 400 106 505 30 181 96 478 308 244 396 4...
result:
ok Correct (1005 test cases)
Test #49:
score: 0
Accepted
time: 69ms
memory: 7800kb
input:
10000 105 41 65 3 58 21 57 92 14 90 8 64 63 81 105 91 103 66 88 4 49 44 101 7 85 2 42 51 97 104 75 73 89 36 61 54 33 100 60 5 76 52 56 18 59 45 34 80 29 48 23 26 62 40 87 15 95 93 35 39 32 46 38 25 37 102 79 68 47 69 10 98 70 96 9 30 78 77 53 6 13 27 82 84 83 24 86 19 1 43 74 28 50 72 94 67 31 55 71...
output:
105 1 3 112 11 13 71 62 61 98 27 88 91 16 11 86 96 11 49 67 15 84 51 76 18 88 32 58 11 240 5 42 101 50 28 11 83 44 59 42 29 61 14 28 49 21 31 53 35 73 50 18 70 26 9 27 23 57 36 6 32 51 2 25 17 71 16 77 45 76 38 30 43 72 34 10 69 60 13 79 47 5 66 10 26 48 44 14 1 62 40 45 46 7 59 12 39 10 33 26...
result:
ok Correct (10000 test cases)
Test #50:
score: 0
Accepted
time: 69ms
memory: 7808kb
input:
10001 2 2 1 8 2 1 4 5 8 7 3 6 93 21 8 25 10 78 45 12 79 62 68 87 18 72 43 73 19 91 85 16 70 88 35 77 75 39 4 3 52 67 53 60 57 74 26 66 15 2 56 40 13 6 7 64 23 41 76 17 55 42 83 38 84 50 24 81 37 49 32 30 44 90 20 63 33 22 27 5 46 80 82 71 59 61 14 86 93 31 1 51 92 58 9 65 28 48 54 11 29 89 36 47 69 ...
output:
0 1 2 8 2 2 1 93 2 19 16 196 125 180 85 39 171 64 13 76 166 167 91 9 125 45 158 182 92 122 6 121 196 192 147 111 20 181 110 96 70 108 174 191 5 195 84 49 38 48 25 159 164 127 102 81 134 168 24 145 4 65 137 53 72 33 42 187 8 51 114 120 133 31 3 21 57 79 130 90 30 41 107 80 112 99 197 186 61 18 185...
result:
ok Correct (10001 test cases)
Test #51:
score: 0
Accepted
time: 65ms
memory: 7724kb
input:
10002 115 45 111 54 25 19 113 13 78 71 11 98 79 18 114 77 60 56 95 93 110 27 84 7 34 35 22 99 32 9 29 108 48 17 31 3 24 4 16 51 38 112 55 91 61 74 83 97 75 89 104 103 21 66 92 105 10 101 33 5 59 57 44 28 109 70 23 50 41 42 67 26 102 63 62 37 20 76 40 106 8 49 73 6 100 58 47 2 1 14 107 69 46 85 15 80...
output:
113 5 88 107 111 90 2 26 1 1 52 22 49 45 42 17 6 3 33 7 26 25 13 36 2 37 10 27 8 53 18 29 12 50 57 10 5 27 22 7 10 26 37 16 49 2 2 1 1 12 1 3 42 1 4 169 17 147 40 117 33 144 2 148 121 99 63 19 112 8 115 120 131 9 231 1 19 25 3 11 12 1 4 1 1 33 11 26 17 30 29 33 4 13 31 23 19 2 26 1 1 13...
result:
ok Correct (10002 test cases)
Test #52:
score: 0
Accepted
time: 69ms
memory: 7800kb
input:
10003 77 73 58 54 34 2 12 66 36 7 77 30 11 14 68 18 72 23 27 35 31 39 52 67 42 8 49 48 20 33 3 53 44 40 24 6 41 5 19 16 25 45 43 57 60 64 59 65 32 63 71 22 13 70 61 15 47 9 38 37 26 51 17 76 56 50 62 10 4 46 74 1 75 69 21 55 29 28 48 4 38 44 46 45 41 23 20 17 48 36 43 31 10 13 35 1 14 9 37 26 3 34 1...
output:
75 7 5 37 59 69 46 73 1 46 14 43 1 42 26 47 46 21 45 6 41 12 5 4 28 86 1 1 62 27 24 32 58 33 43 57 12 3 48 16 52 39 40 8 26 45 21 13 25 2 4 54 62 15 36 49 29 128 64 4 18 22 104 68 126 28 95 100 39 2 76 44 123 67 30 117 12 32 59 36 62 116 45 94 69 102 38 129 124 60 34 86 19 110 84 55 72 10 40 61 ...
result:
ok Correct (10003 test cases)
Test #53:
score: 0
Accepted
time: 69ms
memory: 7724kb
input:
10004 479 97 469 357 341 363 83 458 333 432 335 68 169 250 245 252 54 176 153 45 12 143 355 479 63 407 128 159 16 184 118 313 180 367 455 289 409 191 392 80 179 201 261 221 418 324 255 326 389 470 1 23 277 385 408 117 353 434 158 325 249 24 279 137 228 457 425 50 90 426 38 290 3 416 126 98 265 188 2...
output:
479 14 430 167 11 442 68 156 18 153 378 112 76 265 173 90 30 8 7 17 26 21 30 20 1 9 28 2 19 14 39 10 6 20 28 29 3 8 18 36 1 10 70 11 59 5 56 9 53 2 7 1 8 25 6 329 140 321 17 79 105 271 187 30 255 3 197 13 169 319 330 82 256 183 292 128 220 212 209 170 8 239 138 294 100 2 315 178 175 280 127 168...
result:
ok Correct (10004 test cases)
Test #54:
score: 0
Accepted
time: 69ms
memory: 7720kb
input:
10005 182 29 174 120 65 88 104 150 103 138 28 161 85 137 81 53 76 16 10 74 97 127 164 96 92 172 162 159 102 143 182 67 117 27 20 181 107 146 147 61 77 108 155 132 130 158 75 55 110 98 166 21 59 134 176 4 167 133 83 135 48 46 34 69 60 24 54 32 94 37 171 40 101 44 43 30 36 8 105 111 73 84 124 163 22 1...
output:
180 148 179 55 136 132 77 114 18 105 167 125 147 156 17 101 95 113 34 51 84 116 65 115 33 10 141 67 176 62 146 76 69 134 71 140 99 74 73 102 145 127 173 158 129 15 66 47 128 152 52 122 164 4 89 31 63 138 181 80 19 16 40 106 139 96 14 130 58 81 12 119 148 104 109 24 117 151 23 20 49 92 153 72 28 8 6 ...
result:
ok Correct (10005 test cases)
Test #55:
score: 0
Accepted
time: 83ms
memory: 7708kb
input:
99995 16 9 12 2 1 6 10 13 15 7 8 14 3 11 4 5 16 10 7 1 3 9 10 8 4 2 5 6 11 3 11 2 10 4 1 8 9 5 6 7 13 8 5 9 4 12 11 3 1 13 2 10 7 6 3 2 1 3 5 2 5 1 3 4 10 9 5 2 3 10 4 8 1 6 7 2 2 1 38 33 26 25 3 14 12 16 13 34 8 32 10 20 17 29 18 11 37 22 7 15 4 1 23 21 6 30 19 27 38 9 24 28 5 36 2 31 35 4 3 2 1 4 ...
output:
16 3 3 12 2 10 1 3 9 2 3 1 13 1 4 3 2 2 1 3 1 1 8 5 3 4 6 9 1 0 1 2 36 22 23 34 26 20 10 31 12 17 6 8 5 7 14 16 13 24 32 2 37 11 9 18 4 1 2 11 6 12 5 1 4 7 11 7 3 5 1 4 6 1 1 8 4 6 2 7 4 4 3 4 2 3 10 1 1 7 1 1 3 2 2 1 11 1 1 12 5 7 12 11 3 1 5 1 2 17 1 1 8 2 3 1 8 4 8 2 9 7 2...
result:
ok Correct (99995 test cases)
Test #56:
score: 0
Accepted
time: 87ms
memory: 7832kb
input:
99996 30 30 18 15 22 6 7 21 12 20 28 29 10 25 27 17 1 26 24 8 19 4 14 9 13 5 2 23 11 16 3 2 1 2 10 4 2 1 5 7 9 10 8 6 3 2 2 1 3 2 3 1 15 5 11 4 6 15 13 10 14 12 9 1 2 8 7 3 11 3 5 10 4 2 6 8 7 9 1 11 2 2 1 6 4 5 3 1 2 6 3 1 2 3 2 2 1 7 5 3 4 1 6 7 2 3 2 3 1 2 2 1 13 11 3 7 6 13 2 10 1 5 12 9 8 4 10 ...
output:
28 24 16 21 25 5 6 19 23 12 28 8 24 22 29 2 20 9 7 4 27 18 13 14 10 11 2 1 1 10 1 2 0 1 2 1 1 1 13 2 11 2 11 1 4 0 1 2 6 1 3 3 1 1 0 1 2 5 3 4 2 3 1 1 1 0 1 2 11 6 8 2 3 12 7 10 10 1 1 13 1 1 14 4 7 15 2 14 3 1 1 6 1 2 0 1 2 10 1 2 3 1 1 7 1 3 4 1 1 2 2 3 1 3 1 1 3 2 2 1 ...
result:
ok Correct (99996 test cases)
Test #57:
score: 0
Accepted
time: 82ms
memory: 7712kb
input:
99997 7 1 3 6 4 2 5 7 29 13 4 17 24 1 21 6 26 25 20 5 28 15 9 2 18 8 29 16 14 12 3 22 27 23 7 19 11 10 5 3 2 4 1 5 22 1 11 5 7 3 14 4 9 15 10 17 12 13 6 8 16 22 18 19 21 20 2 8 1 2 3 4 5 6 8 7 13 10 13 2 9 3 12 8 11 1 6 4 5 7 3 2 1 3 14 8 1 11 7 10 9 12 13 2 14 5 6 3 4 14 5 7 8 13 3 11 12 6 2 14 9 1...
output:
7 1 1 27 3 15 1 13 5 1 2 22 1 1 8 1 1 11 6 3 5 12 10 1 6 3 2 2 1 12 1 2 14 10 12 9 5 1 8 2 3 11 6 7 1 1 2 11 1 3 6 3 3 6 2 3 2 3 1 13 1 1 4 1 1 4 2 4 1 10 4 5 9 2 8 1 1 1 8 8 3 8 5 6 7 9 4 2 6 1 2 9 2 8 2 7 2 3 1 7 1 3 10 1 1 12 1 1 4 3 3 4 1 24 1 22 6 4 4 5 6 1 6 5 6 7 4...
result:
ok Correct (99997 test cases)
Test #58:
score: 0
Accepted
time: 83ms
memory: 7792kb
input:
99998 6 1 2 3 6 5 4 2 1 2 4 1 2 3 4 6 1 5 3 6 4 2 5 3 2 1 4 5 21 15 6 14 12 3 1 9 5 13 17 16 20 7 11 4 19 21 2 8 18 10 7 1 2 3 4 7 6 5 3 3 1 2 3 2 3 1 3 1 2 3 2 1 2 5 3 4 5 1 2 6 1 2 3 4 5 6 7 4 1 2 7 3 5 6 3 1 2 3 7 6 3 7 5 2 4 1 2 2 1 5 4 3 2 1 5 11 6 7 8 2 11 9 3 5 4 1 10 3 1 2 3 18 2 11 17 9 3 1...
output:
6 1 1 2 1 1 4 1 1 6 1 1 5 1 2 21 3 13 7 9 7 1 1 1 1 2 1 1 1 3 1 1 2 1 1 3 2 4 2 6 1 1 5 1 2 3 1 1 5 4 5 6 4 1 0 1 2 5 2 3 2 9 4 4 9 1 6 3 1 1 16 1 1 26 4 16 19 24 1 2 1 2 5 1 4 0 1 2 9 1 2 10 1 1 3 1 1 2 2 3 1 4 1 1 5 1 1 14 1 2 7 7 8 1 6 3 7 5 4 4 4 5 4 2 3 7 7 3 4...
result:
ok Correct (99998 test cases)
Test #59:
score: 0
Accepted
time: 79ms
memory: 7788kb
input:
99999 10 5 8 1 9 3 4 7 6 10 2 6 4 5 2 3 6 1 8 5 2 4 3 8 6 1 7 3 3 1 2 10 9 6 5 4 10 1 3 7 2 8 8 3 8 2 4 1 7 5 6 10 9 3 8 2 1 4 6 10 7 5 7 7 3 6 5 1 4 2 22 13 3 6 9 20 7 19 14 10 11 15 18 4 2 22 5 17 16 1 8 21 12 3 2 1 3 4 2 1 4 3 17 8 17 14 9 6 1 7 15 12 2 10 4 5 3 16 13 11 3 3 1 2 7 3 7 4 5 1 2 6 1...
output:
10 3 3 5 1 4 3 3 4 1 8 1 2 1 1 2 10 1 4 8 1 4 8 5 4 6 7 9 1 5 5 5 2 6 4 3 22 1 17 3 2 2 1 4 2 2 1 17 1 7 1 1 2 7 4 5 1 3 4 10 2 4 2 6 3 7 2 4 3 1 1 16 11 6 2 9 14 7 15 10 12 16 5 13 39 6 16 33 1 3 8 17 0 1 2 0 1 2 13 3 7 2 5 6 3 5 1 3 4 1 2 14 1 1 10 4 4 3 1 2 9 1 1 24 4 1...
result:
ok Correct (99999 test cases)
Test #60:
score: 0
Accepted
time: 83ms
memory: 7796kb
input:
100000 36 11 19 5 16 29 17 18 15 7 24 3 34 9 20 31 21 28 12 36 2 23 32 26 27 13 33 1 25 8 4 30 6 35 10 14 22 10 5 3 1 4 10 2 8 7 9 6 5 1 2 5 3 4 6 6 3 1 5 2 4 10 10 7 2 9 5 8 6 3 1 4 8 6 1 5 7 2 8 3 4 2 1 2 12 1 3 6 4 11 2 10 7 8 12 5 9 6 6 3 5 2 1 4 4 3 4 2 1 24 19 5 12 7 14 8 9 21 3 11 18 24 2 17 ...
output:
34 18 20 11 30 3 29 1 35 8 4 14 16 21 23 5 31 15 26 33 10 1 4 5 1 1 4 2 3 2 10 1 5 6 1 2 2 1 1 12 1 1 4 3 5 2 3 2 2 3 1 24 4 20 10 11 18 6 1 1 7 1 1 8 3 9 1 4 1 1 1 3 1 1 4 1 1 2 1 1 2 1 1 13 8 10 6 2 8 4 13 9 3 6 2 7 1 10 1 5 0 1 2 5 2 6 1 2 1 1 8 4 2 4 5 1 2 1 1 1 1 1 3...
result:
ok Correct (100000 test cases)
Extra Test:
score: 0
Extra Test Passed