QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#103298 | #1968. Science Fiction | MaMengQi | AC ✓ | 21ms | 3904kb | C++20 | 4.4kb | 2023-05-05 04:37:45 | 2023-05-05 04:37:46 |
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: 2ms
memory: 3440kb
input:
2 3 2 10 4
output:
2 0 1 2 3
result:
ok nice! 2 moves
Test #2:
score: 0
Accepted
time: 1ms
memory: 3416kb
input:
1 10 100
output:
0
result:
ok nice! 0 moves
Test #3:
score: 0
Accepted
time: 2ms
memory: 3388kb
input:
1 824838 992401
output:
0
result:
ok nice! 0 moves
Test #4:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
2 208395 17211 250690 874014
output:
1 0 1
result:
ok nice! 1 moves
Test #5:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
8 991318 655714 983340 496226 752852 888298 572661 729100 426124 437775 8096 28612 303846 295897 970760 179029 702449 407420 945406 352294 960516 484993 724888 495235 156841 451864 95506 869159 61631 296168 279240 260130 901551 726353 298872 221580 982372 394731 720187 656498 595457 381795 759187 36...
output:
1584 30 62 14 30 6 14 2 6 0 2 6 2 14 6 30 14 62 30 2 10 0 2 1 0 2 0 10 2 13 77 5 13 1 5 0 1 2 0 1 0 5 1 13 5 77 13 12 44 4 12 0 4 1 0 3 1 0 1 4 0 12 4 44 12 5 69 4 5 69 5 3 11 1 3 5 1 3 1 11 3 82 210 18 82 2 18 6 2 18 2 82 18 210 82 22 54 6 22 7 6 22 6 54 22 9 137 8 9 137 9 10 138 8 10 9 8 10 8 138 ...
result:
ok nice! 1584 moves
Test #6:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
9 888559 111203 65032 290846 22133 226267 707470 14065 736516 622251 346047 555707 482074 680230 613967 497441 449554 967825 651070 678493 472313 583791 720445 224302 300743 198731 973353 657745 445065 428890 915188 532221 601100 975552 252972 265343 797188 997748 751515 244459 880581 499279 192690 ...
output:
3750 174 430 46 174 14 46 6 14 2 6 0 2 6 2 14 6 46 14 174 46 430 174 28 156 12 28 4 12 0 4 1 0 4 0 12 4 28 12 156 28 100 228 36 100 4 36 0 4 2 0 4 0 36 4 100 36 228 100 83 211 19 83 3 19 83 19 211 83 5 7 4 5 7 5 85 213 21 85 5 21 85 21 213 85 97 225 33 97 1 33 0 1 2 0 6 2 0 2 1 0 33 1 97 33 225 97 2...
result:
ok nice! 3750 moves
Test #7:
score: 0
Accepted
time: 16ms
memory: 3876kb
input:
10 46982 476817 496931 560433 461240 750978 947847 814814 659646 506842 759616 931346 752705 449448 557667 164565 805585 139966 935551 743130 400827 826593 316939 597171 566302 42318 283510 548860 557699 464391 241748 310653 488228 677001 434005 590123 338841 574036 303991 216552 454974 914883 31282...
output:
8398 47 303 15 47 7 15 3 7 1 3 0 1 3 1 7 3 15 7 47 15 303 47 205 717 77 205 13 77 5 13 1 5 13 5 77 13 205 77 717 205 348 860 92 348 28 92 12 28 4 12 0 4 2 0 4 0 12 4 28 12 92 28 348 92 860 348 152 664 24 152 8 24 0 8 1 0 3 1 0 1 8 0 24 8 152 24 664 152 7 263 5 7 4 5 7 5 263 7 107 235 43 107 11 43 3 ...
result:
ok nice! 8398 moves
Test #8:
score: 0
Accepted
time: 12ms
memory: 3876kb
input:
10 949240 35612 460205 974087 338042 271803 334025 63491 750807 279433 899420 120333 875712 396956 17331 903377 75543 841309 975578 209064 858085 265088 990752 382189 453875 707785 91883 487626 999153 989617 672899 730478 89929 619621 96174 915274 438090 705909 682206 236298 574666 885407 168720 540...
output:
8614 418 930 162 418 34 162 2 34 0 2 34 2 162 34 418 162 930 418 10 266 2 10 0 2 1 0 2 0 10 2 266 10 250 762 122 250 58 122 26 58 10 26 2 10 26 10 58 26 122 58 250 122 762 250 205 717 77 205 13 77 5 13 1 5 3 1 5 1 13 5 77 13 205 77 717 205 114 370 50 114 18 50 2 18 0 2 4 0 2 0 18 2 50 18 114 50 370 ...
result:
ok nice! 8614 moves
Test #9:
score: 0
Accepted
time: 10ms
memory: 3800kb
input:
10 746874 671481 787373 91722 286998 843370 287027 699571 566633 92904 121270 84581 172807 118213 566935 494171 96174 128894 912103 167003 563084 240573 445148 595153 430540 871105 407520 875615 374793 147544 58778 979552 146961 97898 511796 530999 496562 478923 730985 885285 94569 490511 331797 927...
output:
8563 113 625 49 113 17 49 1 17 0 1 17 1 49 17 113 49 625 113 196 708 68 196 4 68 0 4 1 0 4 0 68 4 196 68 708 196 439 951 183 439 55 183 23 55 7 23 3 7 2 3 7 3 23 7 55 23 183 55 439 183 951 439 322 834 66 322 2 66 3 2 66 2 322 66 834 322 205 717 77 205 13 77 5 13 4 5 13 5 77 13 205 77 717 205 479 991...
result:
ok nice! 8563 moves
Test #10:
score: 0
Accepted
time: 12ms
memory: 3808kb
input:
10 546693 308346 853356 12952 842161 797467 832954 207696 730371 27541 94381 419145 35259 663666 987797 42166 362364 136282 161216 934180 391497 780167 195044 636218 940656 362727 31072 839926 412136 570431 834451 594285 517357 298316 891244 707769 86006 662265 452173 697662 420751 904255 665271 730...
output:
8567 247 503 119 247 55 119 23 55 7 23 3 7 1 3 0 1 3 1 7 3 23 7 55 23 119 55 247 119 503 247 262 774 6 262 2 6 0 2 1 0 2 0 6 2 262 6 774 262 281 793 25 281 9 25 1 9 0 1 2 0 1 0 9 1 25 9 281 25 793 281 76 332 12 76 4 12 0 4 1 0 3 1 0 1 4 0 12 4 76 12 332 76 13 77 5 13 4 5 13 5 77 13 411 923 155 411 2...
result:
ok nice! 8567 moves
Test #11:
score: 0
Accepted
time: 2ms
memory: 3484kb
input:
1 819419 113088
output:
1 0 1
result:
ok nice! 1 moves
Test #12:
score: 0
Accepted
time: 0ms
memory: 3428kb
input:
2 725964 552203 371378 344109
output:
6 1 3 0 1 3 1 0 2 1 0 2 0
result:
ok nice! 6 moves
Test #13:
score: 0
Accepted
time: 17ms
memory: 3840kb
input:
10 998030 997163 996957 993557 991195 989284 988223 985000 982700 982212 981058 981023 980199 979436 979287 977471 977098 977062 975229 974818 973741 973028 971101 970597 970328 969913 967931 967747 966649 966556 965497 963873 963808 962577 961661 960874 960527 958588 957708 956548 954238 954169 953...
output:
9728 511 1023 255 511 127 255 63 127 31 63 15 31 7 15 3 7 1 3 0 1 3 1 7 3 15 7 31 15 63 31 127 63 255 127 511 255 1023 511 510 1022 254 510 126 254 62 126 30 62 14 30 6 14 2 6 0 2 1 0 2 0 6 2 14 6 30 14 62 30 126 62 254 126 510 254 1022 510 509 1021 253 509 125 253 61 125 29 61 13 29 5 13 1 5 0 1 2 ...
result:
ok nice! 9728 moves
Test #14:
score: 0
Accepted
time: 21ms
memory: 3804kb
input:
10 998603 998169 997659 997290 997252 997151 996413 996391 996085 994969 990896 989802 987855 987448 986526 985933 984340 984041 983080 982762 982158 981412 980751 979775 979599 979224 976027 972756 972515 971272 971034 970460 969635 968618 968234 965740 964670 963272 958508 958370 956691 955586 955...
output:
9727 511 1023 255 511 127 255 63 127 31 63 15 31 7 15 3 7 1 3 0 1 3 1 7 3 15 7 31 15 63 31 127 63 255 127 511 255 1023 511 510 1022 254 510 126 254 62 126 30 62 14 30 6 14 2 6 0 2 1 0 2 0 6 2 14 6 30 14 62 30 126 62 254 126 510 254 1022 510 509 1021 253 509 125 253 61 125 29 61 13 29 5 13 1 5 0 1 2 ...
result:
ok nice! 9727 moves
Test #15:
score: 0
Accepted
time: 17ms
memory: 3820kb
input:
10 997893 997879 997251 996734 995681 995546 992657 991595 989691 989182 988758 988161 987328 985910 982385 982322 981361 980688 977437 977323 977313 977088 974645 973981 973504 972672 972559 969933 968924 968786 967992 967889 967840 966919 966755 966540 966241 965403 963714 962495 961713 960731 960...
output:
9714 511 1023 255 511 127 255 63 127 31 63 15 31 7 15 3 7 1 3 0 1 3 1 7 3 15 7 31 15 63 31 127 63 255 127 511 255 1023 511 510 1022 254 510 126 254 62 126 30 62 14 30 6 14 2 6 0 2 1 0 2 0 6 2 14 6 30 14 62 30 126 62 254 126 510 254 1022 510 509 1021 253 509 125 253 61 125 29 61 13 29 5 13 1 5 0 1 2 ...
result:
ok nice! 9714 moves
Test #16:
score: 0
Accepted
time: 21ms
memory: 3812kb
input:
10 999765 999540 999524 442723 783220 997869 997780 712090 996433 996257 996040 992566 991883 990874 990859 988633 582417 981709 937314 977988 84342 975260 591353 974330 974158 528281 973722 973625 973185 972643 971744 971507 969795 969647 969612 129152 966057 220244 964045 963969 963162 597812 4185...
output:
9689 179 435 51 179 19 51 3 19 1 3 0 1 3 1 19 3 51 19 179 51 435 179 510 1022 254 510 126 254 62 126 30 62 14 30 6 14 2 6 0 2 1 0 2 0 6 2 14 6 30 14 62 30 126 62 254 126 510 254 1022 510 509 1021 253 509 125 253 61 125 29 61 13 29 5 13 1 5 0 1 2 0 1 0 5 1 13 5 29 13 61 29 125 61 253 125 509 253 1021...
result:
ok nice! 9689 moves
Test #17:
score: 0
Accepted
time: 17ms
memory: 3904kb
input:
10 343821 998027 997026 996414 996404 773250 994500 859736 367107 993429 990586 714714 989540 989370 988330 987442 985869 478079 984828 984430 983909 424172 980184 438518 46043 797866 973296 972011 970740 969830 969509 968315 439027 967113 967029 966931 583530 47644 445131 961898 957808 957034 95661...
output:
9592 166 422 38 166 6 38 2 6 0 2 6 2 38 6 166 38 422 166 13 45 5 13 1 5 13 5 45 13 509 1021 253 509 125 253 61 125 29 61 13 29 5 13 1 5 0 1 2 0 1 0 5 1 13 5 29 13 61 29 125 61 253 125 509 253 1021 509 508 1020 252 508 124 252 60 124 28 60 12 28 4 12 0 4 1 0 3 1 0 1 4 0 12 4 28 12 60 28 124 60 252 12...
result:
ok nice! 9592 moves
Test #18:
score: 0
Accepted
time: 16ms
memory: 3836kb
input:
10 999796 853861 338685 673431 997360 508676 986083 623206 985281 261993 455281 984165 806278 365801 983086 329846 836224 107339 978674 500414 976971 553047 53972 897597 287497 368894 966051 965944 25111 965071 162596 862808 962587 907148 336588 664453 959641 958947 958555 958124 954763 951778 95161...
output:
9745 122 250 58 122 26 58 10 26 2 10 0 2 10 2 26 10 58 26 122 58 250 122 221 477 93 221 29 93 13 29 5 13 1 5 13 5 29 13 93 29 221 93 477 221 252 508 124 252 60 124 28 60 12 28 4 12 0 4 2 0 4 0 12 4 28 12 60 28 124 60 252 124 508 252 67 195 3 67 195 67 507 1019 251 507 123 251 59 123 27 59 11 27 3 11...
result:
ok nice! 9745 moves
Test #19:
score: 0
Accepted
time: 20ms
memory: 3860kb
input:
10 695647 998457 256203 909670 982894 995992 995387 777482 994669 263854 989569 320493 252841 985455 530388 684573 983066 975593 891430 487880 349963 472375 372708 423420 974655 974388 974301 973152 950030 969447 679648 246707 966536 966376 965740 866666 30143 963819 961332 960251 209174 640492 2202...
output:
10042 511 1023 255 511 127 255 63 127 31 63 15 31 7 15 3 7 1 3 0 1 3 1 7 3 15 7 31 15 63 31 127 63 255 127 511 255 1023 511 92 604 28 92 12 28 4 12 0 4 1 0 4 0 12 4 28 12 92 28 604 92 509 1021 253 509 125 253 61 125 29 61 13 29 5 13 1 5 0 1 2 0 1 0 5 1 13 5 29 13 61 29 125 61 253 125 509 253 1021 50...
result:
ok nice! 10042 moves
Test #20:
score: 0
Accepted
time: 14ms
memory: 3852kb
input:
10 258936 410937 283884 393387 982697 510737 680897 212979 153426 621625 795061 757773 244663 213121 74281 949123 983068 965482 433099 992440 514506 239699 440821 724409 311327 313198 852076 262928 788330 678441 506087 34286 809495 599525 970320 301833 969669 307223 871328 525355 797019 515257 10861...
output:
9141 66 194 2 66 0 2 66 2 194 66 323 835 67 323 3 67 1 3 67 3 323 67 835 323 97 353 33 97 1 33 0 1 2 0 1 0 33 1 97 33 353 97 134 646 6 134 2 6 3 2 6 2 134 6 646 134 355 867 99 355 35 99 3 35 1 3 0 1 4 0 1 0 3 1 35 3 99 35 355 99 867 355 41 553 9 41 1 9 5 1 9 1 41 9 553 41 125 637 61 125 29 61 13 29 ...
result:
ok nice! 9141 moves
Test #21:
score: 0
Accepted
time: 16ms
memory: 3808kb
input:
10 989539 264003 89801 336845 872805 363863 409608 722546 676281 871400 20414 972543 452474 858575 480750 639385 877845 432002 283043 932719 857101 146837 773058 438046 755472 383841 330153 180919 419122 281693 289297 988547 934831 667163 418404 844342 707371 773251 452058 951076 674998 598366 23071...
output:
8724 132 644 4 132 0 4 132 4 644 132 4 516 0 4 1 0 4 0 516 4 410 922 154 410 26 154 10 26 2 10 26 10 154 26 410 154 922 410 46 110 14 46 6 14 2 6 3 2 6 2 14 6 46 14 110 46 101 357 37 101 5 37 4 5 37 5 101 37 357 101 486 998 230 486 102 230 38 102 6 38 4 6 5 4 6 4 38 6 102 38 230 102 486 230 998 486 ...
result:
ok nice! 8724 moves
Test #22:
score: 0
Accepted
time: 10ms
memory: 3880kb
input:
10 268981 729295 424417 366156 357055 175507 417152 240251 411056 912165 423865 278160 907860 413812 133438 626599 165355 660278 473775 6476 512331 250836 713169 750412 856144 665133 815985 636387 389359 22218 327844 551545 921825 35601 877698 671416 589514 192363 822860 403486 197385 617060 909896 ...
output:
8644 41 105 9 41 1 9 0 1 9 1 41 9 105 41 184 696 56 184 24 56 8 24 0 8 1 0 8 0 24 8 56 24 184 56 696 184 75 203 11 75 3 11 2 3 11 3 75 11 203 75 3 19 456 968 200 456 72 200 8 72 0 8 4 0 8 0 72 8 200 72 456 200 968 456 318 830 62 318 30 62 14 30 6 14 4 6 5 4 6 4 14 6 30 14 62 30 318 62 830 318 148 66...
result:
ok nice! 8644 moves