QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#250164 | #7629. Make SYSU Great Again II | ucup-team1869 | AC ✓ | 178ms | 19124kb | C++17 | 959b | 2023-11-12 22:17:32 | 2023-11-12 22:17:33 |
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: 0ms
memory: 3444kb
input:
4
output:
Yes 2 4 11 0 5 10 0 15 8 1 14 0 3 12 1 6
result:
ok 1
Test #2:
score: 0
Accepted
time: 0ms
memory: 3432kb
input:
1
output:
Yes 0
result:
ok 1
Test #3:
score: 0
Accepted
time: 0ms
memory: 3416kb
input:
2
output:
Yes 0 1 1 2
result:
ok 1
Test #4:
score: 0
Accepted
time: 0ms
memory: 3444kb
input:
3
output:
Yes 2 4 11 5 10 0 8 1 14
result:
ok 1
Test #5:
score: 0
Accepted
time: 0ms
memory: 3436kb
input:
5
output:
Yes 6 25 34 12 51 25 38 9 50 12 36 9 54 9 18 11 52 9 22 33 48 11 20 33 30
result:
ok 1
Test #6:
score: 0
Accepted
time: 0ms
memory: 3440kb
input:
8
output:
Yes 2 28 35 8 55 8 21 34 25 34 12 51 8 23 32 29 38 9 50 12 19 32 31 0 9 54 9 18 36 27 0 63 52 9 22 33 26 4 59 0 11 20 33 30 1 58 4 43 16 35 28 1 62 1 42 20 39 24 3 60 1 46 17 10
result:
ok 1
Test #7:
score: 0
Accepted
time: 0ms
memory: 3408kb
input:
13
output:
Yes 10 117 130 60 195 52 75 144 111 16 231 24 165 113 138 53 194 60 67 148 107 16 239 16 167 88 142 49 202 53 66 156 99 20 235 16 175 80 39 49 206 49 74 149 98 28 227 20 171 80 47 192 198 49 78 145 106 21 226 28 163 84 43 192 63 57 70 145 110 17 234 21 162 92 35 196 59 64 68 153 102 17 238 17 ...
result:
ok 1
Test #8:
score: 0
Accepted
time: 0ms
memory: 5616kb
input:
21
output:
Yes 30 481 526 241 778 229 282 613 402 109 898 124 643 364 147 804 219 292 715 48 975 481 542 225 782 241 266 613 410 101 914 109 642 380 131 812 211 292 731 36 971 48 534 225 798 225 270 625 394 101 922 101 658 365 130 828 195 300 723 36 987 36 459 233 790 225 286 609 398 113 906 101 666 357 146...
result:
ok 1
Test #9:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
34
output:
Yes 6 2009 2086 969 3126 969 1046 2529 1566 449 3646 449 2606 1489 526 3313 778 1237 2858 197 3898 197 1818 2277 1298 717 3378 717 2338 1757 258 3708 387 1660 2041 2054 985 3110 969 1078 2505 1558 481 3614 449 2622 1473 558 3281 782 1265 2826 213 3882 197 1850 2245 1306 741 3346 717 2354 1741 290 3...
result:
ok 1
Test #10:
score: 0
Accepted
time: 0ms
memory: 5548kb
input:
55
output:
Yes 26 2021 2066 973 3122 973 1058 2525 1538 508 3587 476 2595 1484 563 3276 787 1252 2843 196 3899 196 1835 2260 1291 752 3343 720 2351 1728 319 3648 415 1632 2455 584 3511 584 1447 2136 1927 120 3973 90 2981 1098 949 3146 661 1378 2717 322 3773 322 1709 1989 2074 997 3090 973 1074 2509 1570 477 3...
result:
ok 1
Test #11:
score: 0
Accepted
time: 1ms
memory: 3936kb
input:
89
output:
Yes 46 8081 8302 3985 12366 4017 4110 10225 6154 1973 14410 1941 10346 6037 2090 13253 3130 4997 11386 901 15450 933 7194 9189 5138 2989 13394 2957 9330 7053 1074 14797 1570 6557 9826 2461 13890 2493 5634 8700 7683 444 15939 412 11875 4508 3619 12748 2611 5516 10867 1420 14931 1452 6675 9700 4635 34...
result:
ok 1
Test #12:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
100
output:
Yes 74 8085 8298 3989 12330 4037 4154 10117 6266 1925 14426 1957 10266 6117 2066 13229 3154 5005 11378 909 15410 973 7202 9117 5218 2973 13378 3005 9218 7164 1027 14780 1603 6556 9827 2460 13859 2508 5683 8588 7795 396 15955 428 11795 4580 3611 12708 2651 5508 10875 1412 14907 1476 6699 9620 4715 34...
result:
ok 1
Test #13:
score: 0
Accepted
time: 3ms
memory: 6160kb
input:
200
output:
Yes 74 32661 32874 16149 49386 16149 16554 40789 24618 8133 57402 8005 41146 24325 8442 52997 12410 20357 45146 3877 61658 3877 28826 36709 20506 12261 53266 12141 37010 28461 4306 59181 6226 26509 39026 9997 55538 9997 22706 34637 30770 1997 63522 1885 47266 18205 14562 50973 10338 22429 43074 5949...
result:
ok 1
Test #14:
score: 0
Accepted
time: 6ms
memory: 6708kb
input:
300
output:
Yes 502 130569 131446 65161 196726 65417 65622 163497 98646 32297 229846 32297 164054 98089 32918 212585 49558 81513 180502 16105 245782 16353 114718 147169 82206 48737 213406 48737 147614 114465 16606 237089 25054 106017 155998 40609 221278 40833 90238 138881 123262 7681 254462 7681 188670 73473 57...
result:
ok 1
Test #15:
score: 0
Accepted
time: 9ms
memory: 6752kb
input:
400
output:
Yes 74 130965 131178 65173 196970 65045 66026 163349 98538 32533 229546 32341 164266 97877 33066 212693 49194 81861 180282 16069 246074 15941 115130 147013 82106 48901 213242 48645 147962 114181 16762 237189 24698 106373 155738 40613 221530 40485 90586 138789 123098 7973 254106 7781 188826 73317 576...
result:
ok 1
Test #16:
score: 0
Accepted
time: 9ms
memory: 6960kb
input:
500
output:
Yes 322 130621 131522 65085 196802 65341 65666 163453 98690 32381 229634 32509 163842 98300 32771 212732 49411 81532 180611 15996 245891 16188 114883 147004 82371 48700 213315 48828 147523 114588 16483 237212 24931 106012 156131 40476 221411 40732 90275 138844 123299 7772 254243 7900 188451 73676 57...
result:
ok 1
Test #17:
score: 0
Accepted
time: 18ms
memory: 8364kb
input:
600
output:
Yes 502 523785 524662 261257 787318 261257 262774 654729 393334 130953 917590 130473 655958 392361 131926 851113 196950 327209 721366 64553 984022 64553 459478 589097 327894 196393 852118 195945 590486 457833 66454 949353 98710 425577 622870 163049 885526 163049 360982 556521 491542 32737 1015838 32...
result:
ok 1
Test #18:
score: 0
Accepted
time: 21ms
memory: 10392kb
input:
700
output:
Yes 830 523457 524862 261569 786494 262081 262190 654801 393774 130257 918318 130257 655662 392785 131502 851025 197550 326737 721582 64849 983214 65297 458990 589073 328430 195601 852974 195601 590318 458257 65902 949393 99182 425105 623214 163217 884846 163729 360526 556465 492110 31921 1016654 31...
result:
ok 1
Test #19:
score: 0
Accepted
time: 27ms
memory: 10600kb
input:
800
output:
Yes 74 524181 524394 261525 787050 261269 263018 654485 393578 130581 917994 130069 656362 392213 131818 851221 196842 327445 721066 64853 983722 64597 459690 588885 328106 196181 852266 195797 590634 457941 66090 949717 98346 425925 622650 163269 885306 163013 361274 556229 491834 32325 1016250 318...
result:
ok 1
Test #20:
score: 0
Accepted
time: 28ms
memory: 10448kb
input:
900
output:
Yes 530 523501 525074 261357 786706 261741 262546 654445 394130 130157 918162 130413 655506 393005 131282 851245 197330 326701 721874 64557 983506 65069 459090 588973 328530 195757 852562 196013 589906 458637 65650 949645 98930 425101 623474 162957 885106 163341 360946 556045 492530 31757 1016562 32...
result:
ok 1
Test #21:
score: 0
Accepted
time: 38ms
memory: 11440kb
input:
1000
output:
Yes 322 523837 524738 261181 787394 261181 262850 654653 393410 130877 917634 130429 656002 392317 131970 851069 196994 327293 721154 64765 983810 64765 459266 589309 327682 196604 851971 196092 590339 457980 66307 949500 98563 425596 622979 162940 885635 162940 361091 556412 491651 32572 1016003 32...
result:
ok 1
Test #22:
score: 0
Accepted
time: 71ms
memory: 12828kb
input:
1200
output:
Yes 502 2096649 2097526 1047177 3147126 1046665 1050486 2619529 1573750 523401 3670646 522633 2623094 1571209 525430 3406729 786550 1310601 2883670 261033 3933270 260521 1836630 2357673 1311318 785577 3408726 784553 2361174 1833129 263510 3799721 393558 1703465 2490838 653865 3540438 653353 1443798 ...
result:
ok 1
Test #23:
score: 0
Accepted
time: 98ms
memory: 14596kb
input:
1400
output:
Yes 830 2096321 2097726 1046977 3147326 1046977 1049662 2620353 1572926 524225 3670062 523217 2622510 1571281 525870 3406289 786990 1309905 2884398 260305 3933998 260305 1836334 2357969 1311022 786001 3408302 784977 2360750 1833041 264110 3799121 394158 1702993 2491054 653649 3540654 653649 1442990 ...
result:
ok 1
Test #24:
score: 0
Accepted
time: 115ms
memory: 15932kb
input:
1600
output:
Yes 74 2097045 2097258 1047445 3146858 1046933 1050218 2619797 1573482 523413 3670890 522389 2623338 1570965 525674 3406485 786794 1310229 2884074 260629 3933674 260117 1837034 2357269 1311722 785429 3408618 784661 2361066 1833237 263402 3799829 393450 1703701 2490538 654165 3540138 653653 1443498 2...
result:
ok 1
Test #25:
score: 0
Accepted
time: 161ms
memory: 17544kb
input:
1800
output:
Yes 530 2096365 2097938 1046765 3147538 1046765 1049874 2620141 1573138 523885 3670418 522861 2622866 1570925 526226 3405933 787346 1309805 2884242 260461 3933842 260461 1836178 2358125 1310866 786221 3408082 785197 2360530 1833261 263890 3799341 393938 1702957 2491346 653357 3540946 653357 1443282 ...
result:
ok 1
Test #26:
score: 0
Accepted
time: 160ms
memory: 18636kb
input:
1900
output:
Yes 1970 2095181 2098610 1047117 3146162 1048141 1048882 2620109 1574194 522445 3671858 522445 2622258 1572045 524850 3406285 788018 1309133 2884658 261069 3932210 262093 1835042 2358237 1311778 784861 3409442 784861 2359842 1834205 262946 3799261 395042 1702109 2491682 654045 3539234 654941 1442210...
result:
ok 1
Test #27:
score: 0
Accepted
time: 176ms
memory: 18492kb
input:
1920
output:
Yes 50 2097101 2097186 1047517 3146786 1047005 1050146 2619869 1573410 523485 3670818 522461 2623266 1571037 525602 3406557 786722 1310301 2884002 260701 3933602 260189 1836962 2357341 1311650 785501 3408546 784733 2360994 1833309 263330 3799901 393378 1703709 2490594 654109 3540194 653597 1443554 2...
result:
ok 1
Test #28:
score: 0
Accepted
time: 178ms
memory: 19124kb
input:
2000
output:
Yes 322 2096701 2097602 1047101 3147202 1046589 1050562 2619453 1573826 523325 3670722 522557 2623170 1571133 525506 3406653 786626 1310525 2883714 260989 3933314 260477 1836674 2357629 1311362 785533 3408770 784509 2361218 1833085 263554 3799677 393602 1703549 2490626 654077 3540226 653565 1443586 ...
result:
ok 1
Test #29:
score: 0
Accepted
time: 1ms
memory: 3812kb
input:
62
output:
Yes 34 2013 2050 1020 3075 988 1059 2508 1587 460 3603 484 2587 1476 571 3268 811 1236 2827 240 3855 208 1839 2240 1343 704 3359 736 2327 1736 311 3656 423 1624 2439 632 3461 602 1445 2122 1973 74 3989 98 2973 1090 957 3138 685 1362 2701 370 3721 342 1705 2374 1209 838 3225 870 2193 1902 1997 2082 ...
result:
ok 1
Test #30:
score: 0
Accepted
time: 2ms
memory: 5800kb
input:
130
output:
Yes 6 32633 32902 16185 49350 16185 16454 40857 24678 7961 57574 7961 41126 24409 8230 53193 12342 20297 45238 3849 61686 3849 28790 36745 20566 12073 53462 12073 37014 28521 4118 59361 6174 26465 39070 10017 55518 10017 22622 34689 30846 1793 63742 1793 47294 18241 14398 51137 10286 22353 43182 590...
result:
ok 1
Test #31:
score: 0
Accepted
time: 2ms
memory: 5908kb
input:
126
output:
Yes 66 8125 8194 4092 12291 4028 4163 10140 6243 1948 14371 1996 10291 6028 2163 13196 3155 5036 11283 996 15387 932 7259 9092 5243 2948 13371 3012 9259 7060 1131 14740 1611 6580 9739 2544 13839 2480 5711 8592 7791 400 15919 448 11839 4480 3711 12672 2655 5536 10783 1504 14871 1448 6743 9608 4727 34...
result:
ok 1
Test #32:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
66
output:
Yes 6 8121 8262 3993 12390 3993 4134 10185 6198 1929 14454 1929 10326 6057 2070 13281 3102 5025 11358 897 15486 897 7230 9153 5166 2961 13422 2961 9294 7089 1038 14833 1546 6581 9802 2453 13930 2453 5674 8645 7738 389 15994 389 11866 4517 3610 12773 2578 5549 10834 1421 14962 1421 6706 9677 4642 348...
result:
ok 1
Test #33:
score: 0
Accepted
time: 47ms
memory: 12120kb
input:
1021
output:
Yes 514 523773 524290 262140 786435 261628 262659 654588 393987 130300 917763 130684 655747 392316 131971 851068 197251 327036 721027 65340 983235 64828 459459 588860 328643 195644 852419 196156 590147 457916 66371 949436 98883 425404 622659 163740 884835 163228 361059 556188 492387 31900 1016163 32...
result:
ok 1
Test #34:
score: 0
Accepted
time: 35ms
memory: 13328kb
input:
1022
output:
Yes 514 523773 524290 262140 786435 261628 262659 654588 393987 130300 917763 130684 655747 392316 131971 851068 197251 327036 721027 65340 983235 64828 459459 588860 328643 195644 852419 196156 590147 457916 66371 949436 98883 425404 622659 163740 884835 163228 361059 556188 492387 31900 1016163 32...
result:
ok 1
Test #35:
score: 0
Accepted
time: 48ms
memory: 11812kb
input:
1023
output:
Yes 2 524284 524291 261628 786947 261372 262915 654588 393475 130684 917891 130172 656259 392316 131715 851324 196739 327484 721091 64828 983747 64572 459715 588860 328131 196156 852291 195772 590659 457916 66115 949692 98371 425884 622691 163228 885347 162972 361315 556188 491875 32284 1016291 3177...
result:
ok 1
Test #36:
score: 0
Accepted
time: 43ms
memory: 12824kb
input:
1024
output:
Yes 2 524284 524291 261628 786947 261372 262915 654588 393475 130684 917891 130172 656259 392316 131715 851324 196739 327484 721091 64828 983747 64572 459715 588860 328131 196156 852291 195772 590659 457916 66115 949692 98371 425884 622691 163228 885347 162972 361315 556188 491875 32284 1016291 3177...
result:
ok 1
Test #37:
score: 0
Accepted
time: 51ms
memory: 12812kb
input:
1025
output:
Yes 6 2096121 2098182 1047033 3147270 1047033 1049094 2620665 1573638 522489 3671814 522489 2622726 1571577 524550 3407481 786822 1309305 2884998 260217 3934086 260217 1835910 2358393 1311366 784761 3409542 784761 2360454 1833849 262278 3800889 393414 1702713 2491590 653625 3540678 653625 1442502 22...
result:
ok 1
Test #38:
score: 0
Accepted
time: 51ms
memory: 12388kb
input:
1026
output:
Yes 6 2096121 2098182 1047033 3147270 1047033 1049094 2620665 1573638 522489 3671814 522489 2622726 1571577 524550 3407481 786822 1309305 2884998 260217 3934086 260217 1835910 2358393 1311366 784761 3409542 784761 2360454 1833849 262278 3800889 393414 1702713 2491590 653625 3540678 653625 1442502 22...
result:
ok 1
Test #39:
score: 0
Accepted
time: 44ms
memory: 13396kb
input:
1027
output:
Yes 1030 2095609 2098694 1047033 3146246 1047801 1049350 2619641 1574662 522489 3671302 523001 2621702 1572473 524678 3406457 787846 1308793 2885510 260217 3933062 261241 1835654 2357625 1312390 784761 3409030 785273 2359430 1834809 262342 3799865 394438 1702201 2492102 653625 3539654 654393 1442758...
result:
ok 1
Extra Test:
score: 0
Extra Test Passed