QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#283736#2072. Junk ProblemChinese_zjc_AC ✓1ms3912kbC++141.3kb2023-12-15 12:31:332023-12-15 12:31:34

Judging History

你现在查看的是最新测评结果

  • [2023-12-15 12:31:34]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3912kb
  • [2023-12-15 12:31:33]
  • 提交

answer

// This Code was made by Chinese_zjc_.
#include <bits/stdc++.h>
// #define debug
unsigned long long seed = std::chrono::system_clock::now().time_since_epoch().count();
std::mt19937_64 Rand(seed);
using mint = unsigned long long;
int n, k;
mint f;
mint mod(mint a, mint b)
{
    int lena = 64 - __builtin_clzll(a), lenb = 64 - __builtin_clzll(b);
    for (int i = lena; i-- >= lenb;)
        if (a >> i & 1)
            a ^= b << (i + 1 - lenb);
    return a;
}
mint mul(mint a, mint b)
{
    mint res = 0;
    while (b)
    {
        if (b & 1)
            res ^= a;
        b >>= 1;
        a <<= 1;
        if (a >> k & 1)
            a ^= f;
    }
    return res;
}
signed main()
{
    std::ios::sync_with_stdio(false);
    std::cin >> n;
    ++n;
    while (2 << (k << 1) < n)
        ++k;
    do
    {
        f = 1 << k | (Rand() % (1 << k));
        for (int i = 2; i < 1 << k; ++i)
            if (mod(f, i) == 0)
            {
                f = 0;
                break;
            }
    } while (!f);
    std::vector<mint> ans;
    for (int i = 0; i != 1 << k && int(i << k ^ mul(mul(i, i), i) ^ 1) < n; ++i)
        ans.push_back(i << k ^ mul(mul(i, i), i) ^ 1);
    std::cout << ans.size() << std::endl;
    for (auto i : ans)
        std::cout << i << " \n"[i == ans.back()];
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

49

output:

6
1 8 20 27 39 45

result:

ok AC

Test #2:

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

input:

10000000

output:

2442
1 4096 8201 12302 16449 20564 24697 28778 33281 37448 41641 45798 50113 54172 58201 62210 68070 71927 76718 80569 85158 89507 93918 98269 100326 104127 107790 111697 115494 119403 123390 127157 131724 136877 141828 146979 149803 154910 156051 161184 164517 169676 174733 179938 182402 187647 188...

result:

ok AC

Test #3:

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

input:

8388607

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 33404 35693 36916 39203 42812 44601 46404 48199 49751 51982 53439 55776 59031 61402 62543 64772 65940 69045 71479 72464 74153 77212 79674 80649 82245 85292 87878 88873 90360 93317 95947 96944 98508 101885 10...

result:

ok AC

Test #4:

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

input:

8396802

output:

2050
1 4096 8201 12302 16449 20564 24697 28778 33281 37448 41641 45798 50113 54172 58201 62210 68046 71903 76678 80529 85134 89483 93942 98293 100302 104087 107814 111737 115470 119363 123350 127133 131860 137013 142236 147387 149659 154798 155683 160784 164677 169772 174957 179970 182602 187703 188...

result:

ok AC

Test #5:

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

input:

1

output:

1
1

result:

ok AC

Test #6:

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

input:

2

output:

2
1 2

result:

ok AC

Test #7:

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

input:

4

output:

2
1 2

result:

ok AC

Test #8:

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

input:

8

output:

3
1 4 8

result:

ok AC

Test #9:

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

input:

16

output:

4
1 4 8 12

result:

ok AC

Test #10:

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

input:

32

output:

4
1 8 20 27

result:

ok AC

Test #11:

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

input:

64

output:

8
1 8 20 27 39 45 54 58

result:

ok AC

Test #12:

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

input:

128

output:

8
1 16 41 62 78 82 100 126

result:

ok AC

Test #13:

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

input:

256

output:

16
1 16 41 62 78 82 100 126 132 146 160 176 194 217 228 249

result:

ok AC

Test #14:

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

input:

512

output:

16
1 32 73 110 134 179 195 240 260 298 351 375 401 427 455 507

result:

ok AC

Test #15:

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

input:

1024

output:

32
1 32 73 110 159 170 200 251 275 292 327 374 407 436 476 505 514 570 582 632 670 690 709 751 781 803 853 893 907 945 972 1008

result:

ok AC

Test #16:

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

input:

2048

output:

32
1 64 137 206 294 371 414 461 524 610 653 741 823 845 902 1018 1038 1130 1196 1230 1286 1398 1428 1506 1581 1638 1670 1739 1849 1894 1954 2043

result:

ok AC

Test #17:

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

input:

4096

output:

64
1 64 137 206 282 335 418 497 564 614 682 766 814 872 896 960 1064 1102 1166 1262 1333 1351 1443 1495 1557 1632 1701 1750 1801 1896 1929 2030 2085 2165 2210 2292 2338 2406 2453 2519 2592 2659 2737 2804 2854 2929 2951 3030 3095 3168 3262 3279 3350 3445 3471 3562 3610 3710 3749 3783 3866 3946 3989 4...

result:

ok AC

Test #18:

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

input:

8192

output:

64
1 128 265 398 577 724 889 1002 1123 1194 1316 1515 1661 1696 1802 2001 2114 2274 2408 2510 2584 2732 2818 2992 3165 3253 3384 3542 3673 3749 3852 4086 4219 4337 4426 4550 4634 4740 4891 4995 5158 5348 5464 5532 5657 5839 5975 6023 6252 6343 6527 6610 6679 6824 6964 7053 7244 7343 7440 7669 7785 7...

result:

ok AC

Test #19:

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

input:

16384

output:

128
1 128 265 398 577 724 889 1002 1030 1231 1285 1482 1595 1766 1800 2003 2105 2302 2422 2487 2593 2802 2910 2955 3116 3235 3432 3553 3657 3794 3901 4000 4156 4243 4355 4522 4675 4856 4940 5105 5207 5296 5475 5506 5717 5798 5969 6052 6207 6358 6471 6568 6680 6885 6992 7083 7238 7399 7477 7570 7708 ...

result:

ok AC

Test #20:

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

input:

32768

output:

128
1 256 521 782 1089 1364 1657 1898 2184 2497 2592 2927 3279 3474 3671 3852 4316 4426 4637 5005 5262 5388 5759 6139 6253 6579 6668 7124 7224 7666 7785 8101 8437 8513 8912 9058 9441 9537 9972 10066 10476 10512 10857 11155 11519 11543 11850 12196 12399 12620 12931 13222 13417 13662 14005 14212 14414...

result:

ok AC

Test #21:

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

input:

65536

output:

256
1 256 521 782 1089 1364 1657 1898 2259 2458 2683 2868 3194 3367 3810 4025 4238 4598 4628 4970 5226 5382 5824 6058 6242 6482 6744 7022 7279 7499 7781 8007 8372 8536 8911 8997 9385 9553 9954 10012 10466 10566 10809 11163 11286 11686 12029 12107 12450 12599 12875 13272 13339 13722 14018 14149 14538...

result:

ok AC

Test #22:

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

input:

131072

output:

256
1 512 1033 1550 2113 2644 3193 3690 4170 4611 5346 5805 6538 7127 7442 8009 8210 8963 9233 9990 10692 10945 11767 12020 12771 12986 13632 13855 14773 15096 15654 15981 16537 16942 17725 18316 18561 18978 19733 20400 20952 21287 21724 22053 22592 23211 23924 24473 24800 25415 25935 26350 26990 27...

result:

ok AC

Test #23:

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

input:

262144

output:

512
1 512 1033 1550 2113 2644 3193 3690 4140 4709 5252 5835 6636 7089 7540 7983 8553 8824 9484 9755 10355 11126 11302 12069 12714 13043 13679 13872 14640 14973 15813 16014 16856 17315 17892 18329 18653 19122 19665 20152 20924 21391 21792 22293 22841 23326 23957 24500 25015 25308 26086 26251 27112 27...

result:

ok AC

Test #24:

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

input:

524288

output:

512
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16975 18270 18439 19728 20498 21783 23146 24425 25205 26412 26781 28098 29096 29925 31600 32315 32831 34563 35216 36522 36913 38681 39342 40576 41113 42989 43414 44772 45335 46711 47144 48974 49647 51139 51712 522...

result:

ok AC

Test #25:

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

input:

1048576

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17352 18137 18816 19607 20683 21966 23219 24496 24910 25623 27558 28409 29645 30336 30997 31838 33030 34660 35659 36143 37007 38649 39666 40066 40978 42552 43775 44243 45083 46629 47814 48382 49340 51150 51377 53...

result:

ok AC

Test #26:

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

input:

2097152

output:

1024
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 33391 35710 36903 39216 42799 44586 46423 48212 50520 52225 55216 57071 57752 59605 62272 64011 65823 68926 69792 72839 74033 77060 78014 81037 83700 84637 88043 88964 91994 92967 95861 96782 100130 100883 1...

result:

ok AC

Test #27:

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

input:

4194304

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 33378 35699 36906 39229 42786 44583 46426 48217 49731 51994 53419 55796 59011 61390 62555 64784 65914 68955 71635 72692 74073 77164 79808 80883 82333 85492 87956 89083 90174 93251 95751 96892 98418 101699 10...

result:

ok AC

Test #28:

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

input:

8388608

output:

2048
1 4096 8201 12302 16449 20564 24697 28778 33281 37448 41641 45798 50113 54172 58201 62210 67520 71377 75144 79007 82560 86917 90360 94715 100800 104601 109352 113271 118016 121933 126936 130707 132682 135787 143042 146149 148427 153598 158579 163648 164808 169889 175072 180111 182217 185268 192...

result:

ok AC

Test #29:

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

input:

174050

output:

340
1 512 1033 1550 2113 2644 3193 3690 4128 4713 5256 5831 6624 7101 7544 7971 8457 8728 9568 9847 10251 11022 11346 12113 12782 12983 13607 13944 14700 14881 15765 16094 16581 17062 17609 18092 18860 19419 19856 20449 20561 21114 21757 22224 22712 23175 23588 24093 24990 25325 26099 26246 27061 27...

result:

ok AC

Test #30:

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

input:

3230882

output:

1578
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34323 36610 37979 40268 41811 43606 45355 47144 49946 51779 53746 55469 59354 61079 62722 64585 65966 69007 70191 73224 75260 76233 79437 80510 83850 84963 87211 88260 90712 93733 94537 97586 99778 100595 10...

result:

ok AC

Test #31:

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

input:

1068722

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17008 18273 18488 19759 21205 22480 22701 23982 25183 26374 26807 28136 29562 30263 31138 31977 33272 33852 35514 36728 37321 37913 39611 40813 41269 42169 43735 44893 45188 46364 47958 48840 49280 50260 51586 52...

result:

ok AC

Test #32:

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

input:

5827698

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32995 35314 37547 39868 42403 44198 47067 48856 50834 53195 54394 56613 57938 60191 61578 63937 67345 68400 71656 72655 75187 76166 79226 80201 83108 84173 87293 88210 92038 93179 96239 97172 99775 100494 10...

result:

ok AC

Test #33:

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

input:

1302498

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16501 17764 19005 20266 20776 21549 23376 24147 25170 26379 26810 28133 29327 30658 30807 32028 33697 34717 35603 36649 37269 38333 39191 40249 41331 42247 43361 44307 45767 46759 47845 48771 49901 51137 51231 52...

result:

ok AC

Test #34:

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

input:

6358178

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34072 35849 38736 40519 41048 43357 45600 47907 51183 52918 54535 56408 58159 60002 61943 63676 66299 69338 71300 72355 75170 76183 78317 81374 82633 85664 87574 88697 91152 92269 94463 97412 98394 101739 10...

result:

ok AC

Test #35:

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

input:

3090098

output:

1509
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 33764 35573 37292 39099 42660 44961 46300 48607 49991 51742 53679 55536 59271 61130 62815 64532 66159 69198 70724 71779 74698 77823 79313 80354 82182 85359 87949 89058 90403 93534 96152 97251 100215 100934 1...

result:

ok AC

Test #36:

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

input:

9847922

output:

2404
1 4096 8201 12302 16449 20564 24697 28778 33281 37448 41641 45798 50113 54172 58201 62210 66608 70945 75384 79727 82288 86133 90888 94731 100912 105321 108760 113031 118512 122813 125992 130403 133611 138698 139619 144708 151450 154543 157474 160529 166793 172000 172961 178126 183416 186373 189...

result:

ok AC

Test #37:

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

input:

1839362

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17189 17972 18797 19578 21164 22441 22740 24023 24702 25895 27286 28617 28791 30010 31407 32740 33687 34687 35469 36451 37619 38415 39897 40739 41604 42532 43838 44952 45664 46804 48106 48984 50169 50689 51363 52...

result:

ok AC

Test #38:

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

input:

6962

output:

64
1 64 137 206 306 359 394 473 550 604 667 743 810 836 935 975 1043 1128 1167 1266 1335 1368 1435 1522 1536 1600 1705 1775 1819 1871 1922 2000 2052 2136 2192 2250 2306 2378 2470 2536 2574 2665 2735 2766 2871 2884 2982 3027 3081 3183 3209 3305 3352 3434 3496 3548 3639 3690 3714 3801 3865 3920 3996 4...

result:

ok AC

Test #39:

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

input:

316808

output:

512
1 512 1033 1550 2113 2644 3193 3690 4344 4785 5200 5663 6456 7013 7584 8187 8386 9171 9331 10084 10352 11125 11505 12274 12500 13197 13509 14234 14822 15019 15815 16012 16658 17089 17543 18258 18792 19119 19661 20236 20848 21227 21573 22488 22666 23301 23951 24070 24994 25441 25742 26187 26922 2...

result:

ok AC

Test #40:

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

input:

3775752

output:

1844
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 33834 36155 38498 40821 41322 43119 45842 47633 50739 53098 54491 56708 58099 60350 61483 63840 66838 67895 70023 73120 74621 77640 79836 80879 83776 84777 86897 89886 90283 93398 95402 96465 98805 101572 10...

result:

ok AC

Test #41:

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

input:

449352

output:

512
1 512 1033 1550 2113 2644 3193 3690 4512 5097 5384 5959 6240 6717 7416 7843 8236 9021 9669 9938 10639 10890 11350 12117 12456 13297 13793 14014 14475 15302 15858 16057 16745 17323 17447 18147 18597 19059 19931 20235 20820 21470 21690 22070 22808 23430 23750 24158 25002 25208 25861 26321 27013 27...

result:

ok AC

Test #42:

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

input:

6552200

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34407 36726 37935 40248 41767 43554 45407 47196 50004 51725 53692 55523 59284 61145 62796 64519 66216 69257 69907 73012 75406 76475 79109 80182 83044 83981 87935 88848 90562 93631 94953 97938 100348 101069 1...

result:

ok AC

Test #43:

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

input:

1656200

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17188 17973 18796 19579 21445 22208 22973 23742 25543 26270 26927 27760 29350 30699 30846 32053 33102 33998 35460 36610 36907 38335 39889 40515 41959 42543 43149 44355 45826 46814 47192 48514 50167 51047 51837 52...

result:

ok AC

Test #44:

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

input:

7113992

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34271 36046 38807 40576 41119 43418 45799 48100 49456 51305 54232 55943 58864 60605 63272 65123 66893 67948 71466 72461 74451 77542 77956 81079 83185 84120 87606 88665 90863 93842 94232 97379 99174 101975 10...

result:

ok AC

Test #45:

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

input:

783752

output:

765
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16840 17625 19328 20119 20917 21680 23501 24270 24719 26070 27239 28472 29042 29759 31658 32481 33038 33810 35836 36582 37511 38799 38981 40267 41702 42930 43188 44518 45295 46511 47757 49099 49484 50496 51710 527...

result:

ok AC

Test #46:

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

input:

14792

output:

115
1 128 265 398 577 724 889 1002 1037 1220 1318 1513 1608 1685 1875 1928 2145 2294 2341 2484 2623 2748 2891 3022 3141 3226 3362 3579 3614 3797 3913 3972 4107 4274 4400 4495 4647 4746 4908 4999 5236 5253 5484 5531 5725 5816 6005 6038 6189 6274 6490 6643 6687 6820 7000 7141 7290 7325 7470 7631 7757 ...

result:

ok AC

Test #47:

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

input:

2255688

output:

1102
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34431 36718 37943 40224 41791 43578 45383 47172 49984 51737 53672 55543 59264 61133 62808 64531 66124 69229 70139 73180 75378 76359 79349 80326 83120 84185 87975 89032 90382 93555 94761 97874 100168 100985 1...

result:

ok AC

Test #48:

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

input:

52488

output:

205
1 256 521 782 1089 1364 1657 1898 2184 2497 2592 2927 3279 3474 3671 3852 4316 4426 4637 5005 5262 5388 5759 6139 6253 6579 6668 7124 7224 7666 7785 8101 8437 8513 8912 9058 9441 9537 9972 10066 10476 10512 10857 11155 11519 11543 11850 12196 12399 12620 12931 13222 13417 13662 14005 14212 14414...

result:

ok AC

Test #49:

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

input:

4843011

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34484 36773 38140 40427 41972 43761 45452 47247 50471 52350 55247 56976 57831 59562 62271 64116 66533 69572 71422 72409 75536 76581 78395 81416 83087 84198 86324 89435 90618 93575 95345 96266 99419 100714 10...

result:

ok AC

Test #50:

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

input:

7959139

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 33759 35534 37271 39040 42655 44954 46311 48612 50224 52585 55000 57223 57584 59837 61992 64355 66752 67809 71079 72064 75102 76139 78857 79930 82067 85242 86356 89403 90253 93424 94586 97537 99893 101124 10...

result:

ok AC

Test #51:

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

input:

1009859

output:

986
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17367 18118 18847 19592 20942 21707 23478 24245 25445 26172 27021 27858 28924 30129 31268 32623 33749 33965 35510 36296 37443 38191 39696 40058 41163 43003 43272 44606 45277 47097 47406 48652 49436 51060 51775 523...

result:

ok AC

Test #52:

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

input:

4125987

output:

2015
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 33820 36109 38484 40771 41308 43097 45860 47655 50711 53070 54527 56736 58071 60314 61455 63812 66776 67833 69723 72828 74373 77488 79414 80389 83682 84619 86721 89774 90431 93506 95532 96599 98461 101804 10...

result:

ok AC

Test #53:

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

input:

2209411

output:

1079
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 33616 35393 37144 38927 42512 44821 46184 48491 50079 51910 53623 55336 59231 60946 62855 64716 67351 68406 69968 73079 75270 76339 77937 80962 83322 84243 86941 90098 91627 92566 95036 98119 98671 101470 10...

result:

ok AC

Test #54:

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

input:

5325539

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34120 35929 38656 40471 40968 43277 45680 47987 51087 52950 54631 56376 58191 59906 61847 63708 65755 68858 70804 71859 75730 76775 78765 81822 81993 85024 87206 88265 91840 92861 94751 97892 99242 102043 10...

result:

ok AC

Test #55:

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

input:

8376259

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34239 36014 38903 40672 41215 43514 45703 48004 49504 51257 54152 56023 58784 60653 63352 65075 67213 68268 70874 71933 74099 77126 78612 81703 83953 84888 87302 88425 90511 93682 95048 98099 98774 101607 10...

result:

ok AC

Test #56:

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

input:

1492387

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17227 18010 18691 19476 20840 21613 23312 24083 25485 26324 26981 27706 28718 30051 31478 32701 32958 34812 35219 36567 37300 38626 39081 40953 41708 42470 43873 44141 45670 46456 48091 48323 49645 51135 51840 52...

result:

ok AC

Test #57:

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

input:

4608515

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 33807 36126 38471 40784 41295 43082 45879 47668 49160 51537 53984 56255 58568 60805 62992 65371 66154 69195 69861 72898 74788 75793 79515 80552 82038 85023 86617 89654 92088 93125 95655 96732 98377 101752 10...

result:

ok AC

Test #58:

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

input:

2691939

output:

1314
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 33162 34971 37826 39637 42186 44495 46770 49073 49395 51626 53787 56132 58419 60798 63211 65440 66336 69377 70865 71926 73963 77022 79658 80665 83279 84262 86558 89713 91908 93049 94309 97310 100241 101024 1...

result:

ok AC

Test #59:

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

input:

2030518

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16454 17751 18958 20249 21447 22210 22975 23740 25540 26269 26924 27763 29125 29832 31517 32342 33337 34009 35314 36628 36926 38602 39877 40247 41972 42332 43167 44593 45171 46799 47912 48530 50156 50204 51815 52...

result:

ok AC

Test #60:

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

input:

5146646

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 33835 36154 38499 40820 41323 43118 45843 47632 49214 51559 53974 56201 58622 60851 63014 65389 66320 69425 70029 73130 75130 76111 79831 80868 82244 85293 86905 89878 91822 92883 95395 96472 98809 101576 10...

result:

ok AC

Test #61:

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

input:

3230070

output:

1578
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 33824 36145 38504 40831 41312 43109 45848 47643 50751 53094 54487 56712 58111 60338 61479 63852 66900 67957 70083 73188 74549 77568 79762 80801 83734 84863 86817 89934 90359 93322 95472 96395 98701 101564 10...

result:

ok AC

Test #62:

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

input:

1313494

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17357 18140 18821 19602 21118 22395 22534 23813 24792 25985 27184 28527 28907 30118 31283 32632 32952 33898 35286 36098 37172 38386 39018 40106 41013 42159 43515 44391 45113 46263 47559 48463 49722 51192 51476 52...

result:

ok AC

Test #63:

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

input:

9396918

output:

2294
1 4096 8201 12302 16449 20564 24697 28778 33281 37448 41641 45798 50113 54172 58201 62210 68544 72401 76168 80031 85632 89989 93432 97787 99776 103577 108328 112247 114944 118861 123864 127635 132751 135854 142855 145952 151310 154427 157622 160645 164044 169125 174308 179339 182477 187568 1886...

result:

ok AC

Test #64:

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

input:

1

output:

1
1

result:

ok AC