QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#106474#2072. Junk ProblemzhoukangyangAC ✓2ms5384kbC++171.2kb2023-05-17 21:02:442023-05-17 21:02:46

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-05-17 21:02:46]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:5384kb
  • [2023-05-17 21:02:44]
  • 提交

answer

#include<bits/stdc++.h>
#define L(i, j, k) for(int i = (j); i <= (k); ++i)
#define R(i, j, k) for(int i = (j); i >= (k); --i)
#define ll long long 
#define vi vector < int > 
#define sz(a) ((int) (a).size())
#define ull unsigned long long 
#define me(a, x) memset(a, x, sizeof(a))
using namespace std;
const int N = 1e6 + 7;
int n;
int k;

int f;
inline int mul(int x, int y) {
	int w = 0;
	L(i, 0, k) if(x >> i & 1) w ^= y << i;
	R(i, k * 2, k) if(w >> i & 1) w ^= f << (i - k);
	return w;
}

mt19937_64 orz(114514);
int ans[N];
int main() {
	ios :: sync_with_stdio(false);
	cin.tie(0); cout.tie(0);
	cin >> n;
	while((2 << (k * 2)) <= n) ++k;
	while(true) {
		f = (1 << k) + orz() % (1 << k);
		int okay = 1;
		L(d, 1, min((k + 1) / 2, k - 1)) {
			L(z, 0, (1 << d) - 1) {
				int cur = f, cp = z + (1 << d);
				R(i, k, d) 
					if(cur >> i & 1) 
						cur ^= cp << (i - d);
				if(!cur) {
					okay = 0;
					break; 
				}
			}
		}
		if(okay) break;
	}
	int cnt = 0;
	L(i, 0, (1 << k) - 1) 
		ans[i] = 1 ^ mul(mul(i, i), i) ^ (i << k), 
		cnt += ans[i] <= n;
	cout << cnt << '\n';
	L(i, 0, (1 << k) - 1) 
		if(ans[i] <= n) 
			cout << ans[i] << ' ';
	cout << '\n';
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3408kb

input:

49

output:

6
1 8 18 29 36 47 

result:

ok AC

Test #2:

score: 0
Accepted
time: 2ms
memory: 3360kb

input:

10000000

output:

2441
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 #3:

score: 0
Accepted
time: 2ms
memory: 3452kb

input:

8388607

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #4:

score: 0
Accepted
time: 2ms
memory: 3404kb

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: 3328kb

input:

1

output:

1
1 

result:

ok AC

Test #6:

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

input:

2

output:

2
1 2 

result:

ok AC

Test #7:

score: 0
Accepted
time: 2ms
memory: 3344kb

input:

4

output:

2
1 2 

result:

ok AC

Test #8:

score: 0
Accepted
time: 2ms
memory: 3300kb

input:

8

output:

3
1 4 8 

result:

ok AC

Test #9:

score: 0
Accepted
time: 2ms
memory: 3256kb

input:

16

output:

4
1 4 8 12 

result:

ok AC

Test #10:

score: 0
Accepted
time: 2ms
memory: 3496kb

input:

32

output:

4
1 8 18 29 

result:

ok AC

Test #11:

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

input:

64

output:

8
1 8 18 29 36 47 54 59 

result:

ok AC

Test #12:

score: 0
Accepted
time: 2ms
memory: 3332kb

input:

128

output:

8
1 16 41 62 78 82 100 126 

result:

ok AC

Test #13:

score: 0
Accepted
time: 2ms
memory: 3292kb

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: 2ms
memory: 3436kb

input:

512

output:

16
1 32 73 110 159 170 200 251 275 292 327 374 407 436 476 505 

result:

ok AC

Test #15:

score: 0
Accepted
time: 2ms
memory: 3296kb

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: 2ms
memory: 3336kb

input:

2048

output:

32
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 

result:

ok AC

Test #17:

score: 0
Accepted
time: 2ms
memory: 3252kb

input:

4096

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 #18:

score: 0
Accepted
time: 2ms
memory: 3344kb

input:

8192

output:

64
1 128 265 398 577 724 889 1002 1090 1163 1365 1434 1603 1694 1892 1983 2138 2229 2385 2488 2653 2726 2918 2971 3154 3317 3398 3559 3604 3751 3888 3973 4133 4285 4448 4606 4733 4849 4872 4994 5149 5325 5447 5521 5636 5824 5998 6060 6245 6291 6435 6611 6778 6808 6924 7144 7190 7336 7503 7671 7752 7...

result:

ok AC

Test #19:

score: 0
Accepted
time: 2ms
memory: 3440kb

input:

16384

output:

128
1 128 265 398 577 724 889 1002 1090 1163 1365 1434 1603 1694 1892 1983 2138 2229 2385 2488 2653 2726 2918 2971 3154 3317 3398 3559 3604 3751 3888 3973 4133 4285 4448 4606 4733 4849 4872 4994 5149 5325 5447 5521 5636 5824 5998 6060 6245 6291 6435 6611 6778 6808 6924 7144 7190 7336 7503 7671 7752 ...

result:

ok AC

Test #20:

score: 0
Accepted
time: 2ms
memory: 3404kb

input:

32768

output:

128
1 256 521 782 1089 1364 1657 1898 2128 2329 2808 2999 3167 3330 3783 3996 4312 4358 4801 4889 5365 5439 5852 5904 6304 6454 6681 7049 7362 7488 7755 8143 8250 8633 8761 9148 9458 9573 9921 10064 10397 10582 10814 11251 11290 11717 11913 12112 12388 12600 12918 13100 13505 13705 14051 14253 14570...

result:

ok AC

Test #21:

score: 0
Accepted
time: 2ms
memory: 3452kb

input:

65536

output:

256
1 256 521 782 1089 1364 1657 1898 2128 2329 2808 2999 3167 3330 3783 3996 4312 4358 4801 4889 5365 5439 5852 5904 6304 6454 6681 7049 7362 7488 7755 8143 8250 8633 8761 9148 9458 9573 9921 10064 10397 10582 10814 11251 11290 11717 11913 12112 12388 12600 12918 13100 13505 13705 14051 14253 14570...

result:

ok AC

Test #22:

score: 0
Accepted
time: 2ms
memory: 3336kb

input:

131072

output:

256
1 512 1033 1550 2113 2644 3193 3690 4184 4625 5360 5823 6552 7109 7424 8027 8336 9089 9345 10134 10594 10855 11587 11840 12575 12870 13742 14065 14701 14880 15852 16039 16443 17064 17879 18242 18611 18996 19823 20462 20516 21247 21864 22453 22828 23523 23632 24217 24981 25110 25696 26597 26799 2...

result:

ok AC

Test #23:

score: 0
Accepted
time: 2ms
memory: 3444kb

input:

262144

output:

512
1 512 1033 1550 2113 2644 3193 3690 4184 4625 5360 5823 6552 7109 7424 8027 8336 9089 9345 10134 10594 10855 11587 11840 12575 12870 13742 14065 14701 14880 15852 16039 16443 17064 17879 18242 18611 18996 19823 20462 20516 21247 21864 22453 22828 23523 23632 24217 24981 25110 25696 26597 26799 2...

result:

ok AC

Test #24:

score: 0
Accepted
time: 2ms
memory: 5384kb

input:

524288

output:

512
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17011 18274 18491 19756 20516 21793 23132 24415 25181 26372 26805 28138 29066 29895 31570 32281 33251 34517 34898 36706 37329 38643 38992 40820 41257 42583 43064 44864 45211 47089 47546 48854 49299 50869 52066 525...

result:

ok AC

Test #25:

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

input:

1048576

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17011 18274 18491 19756 20516 21793 23132 24415 25181 26372 26805 28138 29066 29895 31570 32281 33251 34517 34898 36706 37329 38643 38992 40820 41257 42583 43064 44864 45211 47089 47546 48854 49299 50869 52066 52...

result:

ok AC

Test #26:

score: 0
Accepted
time: 2ms
memory: 3500kb

input:

2097152

output:

1024
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #27:

score: 0
Accepted
time: 2ms
memory: 3312kb

input:

4194304

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #28:

score: 0
Accepted
time: 2ms
memory: 3336kb

input:

8388608

output:

2048
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 #29:

score: 0
Accepted
time: 2ms
memory: 3256kb

input:

174050

output:

340
1 512 1033 1550 2113 2644 3193 3690 4184 4625 5360 5823 6552 7109 7424 8027 8336 9089 9345 10134 10594 10855 11587 11840 12575 12870 13742 14065 14701 14880 15852 16039 16443 17064 17879 18242 18611 18996 19823 20462 20516 21247 21864 22453 22828 23523 23632 24217 24981 25110 25696 26597 26799 2...

result:

ok AC

Test #30:

score: 0
Accepted
time: 2ms
memory: 3348kb

input:

3230882

output:

1577
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #31:

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

input:

1068722

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17011 18274 18491 19756 20516 21793 23132 24415 25181 26372 26805 28138 29066 29895 31570 32281 33251 34517 34898 36706 37329 38643 38992 40820 41257 42583 43064 44864 45211 47089 47546 48854 49299 50869 52066 52...

result:

ok AC

Test #32:

score: 0
Accepted
time: 2ms
memory: 3412kb

input:

5827698

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #33:

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

input:

1302498

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17011 18274 18491 19756 20516 21793 23132 24415 25181 26372 26805 28138 29066 29895 31570 32281 33251 34517 34898 36706 37329 38643 38992 40820 41257 42583 43064 44864 45211 47089 47546 48854 49299 50869 52066 52...

result:

ok AC

Test #34:

score: 0
Accepted
time: 2ms
memory: 3312kb

input:

6358178

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #35:

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

input:

3090098

output:

1509
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #36:

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

input:

9847922

output:

2404
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 #37:

score: 0
Accepted
time: 2ms
memory: 3412kb

input:

1839362

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17011 18274 18491 19756 20516 21793 23132 24415 25181 26372 26805 28138 29066 29895 31570 32281 33251 34517 34898 36706 37329 38643 38992 40820 41257 42583 43064 44864 45211 47089 47546 48854 49299 50869 52066 52...

result:

ok AC

Test #38:

score: 0
Accepted
time: 2ms
memory: 3480kb

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: 2ms
memory: 3396kb

input:

316808

output:

512
1 512 1033 1550 2113 2644 3193 3690 4184 4625 5360 5823 6552 7109 7424 8027 8336 9089 9345 10134 10594 10855 11587 11840 12575 12870 13742 14065 14701 14880 15852 16039 16443 17064 17879 18242 18611 18996 19823 20462 20516 21247 21864 22453 22828 23523 23632 24217 24981 25110 25696 26597 26799 2...

result:

ok AC

Test #40:

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

input:

3775752

output:

1844
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #41:

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

input:

449352

output:

512
1 512 1033 1550 2113 2644 3193 3690 4184 4625 5360 5823 6552 7109 7424 8027 8336 9089 9345 10134 10594 10855 11587 11840 12575 12870 13742 14065 14701 14880 15852 16039 16443 17064 17879 18242 18611 18996 19823 20462 20516 21247 21864 22453 22828 23523 23632 24217 24981 25110 25696 26597 26799 2...

result:

ok AC

Test #42:

score: 0
Accepted
time: 2ms
memory: 3308kb

input:

6552200

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #43:

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

input:

1656200

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17011 18274 18491 19756 20516 21793 23132 24415 25181 26372 26805 28138 29066 29895 31570 32281 33251 34517 34898 36706 37329 38643 38992 40820 41257 42583 43064 44864 45211 47089 47546 48854 49299 50869 52066 52...

result:

ok AC

Test #44:

score: 0
Accepted
time: 2ms
memory: 3492kb

input:

7113992

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #45:

score: 0
Accepted
time: 2ms
memory: 3340kb

input:

783752

output:

765
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17011 18274 18491 19756 20516 21793 23132 24415 25181 26372 26805 28138 29066 29895 31570 32281 33251 34517 34898 36706 37329 38643 38992 40820 41257 42583 43064 44864 45211 47089 47546 48854 49299 50869 52066 525...

result:

ok AC

Test #46:

score: 0
Accepted
time: 2ms
memory: 3264kb

input:

14792

output:

115
1 128 265 398 577 724 889 1002 1090 1163 1365 1434 1603 1694 1892 1983 2138 2229 2385 2488 2653 2726 2918 2971 3154 3317 3398 3559 3604 3751 3888 3973 4133 4285 4448 4606 4733 4849 4872 4994 5149 5325 5447 5521 5636 5824 5998 6060 6245 6291 6435 6611 6778 6808 6924 7144 7190 7336 7503 7671 7752 ...

result:

ok AC

Test #47:

score: 0
Accepted
time: 2ms
memory: 3460kb

input:

2255688

output:

1101
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #48:

score: 0
Accepted
time: 2ms
memory: 3336kb

input:

52488

output:

205
1 256 521 782 1089 1364 1657 1898 2128 2329 2808 2999 3167 3330 3783 3996 4312 4358 4801 4889 5365 5439 5852 5904 6304 6454 6681 7049 7362 7488 7755 8143 8250 8633 8761 9148 9458 9573 9921 10064 10397 10582 10814 11251 11290 11717 11913 12112 12388 12600 12918 13100 13505 13705 14051 14253 14570...

result:

ok AC

Test #49:

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

input:

4843011

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #50:

score: 0
Accepted
time: 2ms
memory: 3352kb

input:

7959139

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #51:

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

input:

1009859

output:

986
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17011 18274 18491 19756 20516 21793 23132 24415 25181 26372 26805 28138 29066 29895 31570 32281 33251 34517 34898 36706 37329 38643 38992 40820 41257 42583 43064 44864 45211 47089 47546 48854 49299 50869 52066 525...

result:

ok AC

Test #52:

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

input:

4125987

output:

2015
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #53:

score: 0
Accepted
time: 2ms
memory: 3308kb

input:

2209411

output:

1079
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #54:

score: 0
Accepted
time: 2ms
memory: 3408kb

input:

5325539

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #55:

score: 0
Accepted
time: 2ms
memory: 3504kb

input:

8376259

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #56:

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

input:

1492387

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17011 18274 18491 19756 20516 21793 23132 24415 25181 26372 26805 28138 29066 29895 31570 32281 33251 34517 34898 36706 37329 38643 38992 40820 41257 42583 43064 44864 45211 47089 47546 48854 49299 50869 52066 52...

result:

ok AC

Test #57:

score: 0
Accepted
time: 2ms
memory: 3340kb

input:

4608515

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #58:

score: 0
Accepted
time: 2ms
memory: 3352kb

input:

2691939

output:

1314
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #59:

score: 0
Accepted
time: 2ms
memory: 3344kb

input:

2030518

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17011 18274 18491 19756 20516 21793 23132 24415 25181 26372 26805 28138 29066 29895 31570 32281 33251 34517 34898 36706 37329 38643 38992 40820 41257 42583 43064 44864 45211 47089 47546 48854 49299 50869 52066 52...

result:

ok AC

Test #60:

score: 0
Accepted
time: 2ms
memory: 3456kb

input:

5146646

output:

2048
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #61:

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

input:

3230070

output:

1577
1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 34260 36037 38812 40587 41108 43409 45804 48111 51047 52798 54671 56528 58279 60138 61823 63540 66819 67874 69944 72991 74390 77475 79517 80558 83113 84160 86066 89181 90812 93889 95767 96876 99662 100479 10...

result:

ok AC

Test #62:

score: 0
Accepted
time: 2ms
memory: 3448kb

input:

1313494

output:

1024
1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 17011 18274 18491 19756 20516 21793 23132 24415 25181 26372 26805 28138 29066 29895 31570 32281 33251 34517 34898 36706 37329 38643 38992 40820 41257 42583 43064 44864 45211 47089 47546 48854 49299 50869 52066 52...

result:

ok AC

Test #63:

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

input:

9396918

output:

2294
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 #64:

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

input:

1

output:

1
1 

result:

ok AC