QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#106473 | #2072. Junk Problem | Crysfly | AC ✓ | 11ms | 3436kb | C++17 | 4.1kb | 2023-05-17 21:01:04 | 2023-05-17 21:01:05 |
Judging History
answer
// what is matter? never mind.
#include<bits/stdc++.h>
#define For(i,a,b) for(int i=(a);i<=(b);++i)
#define Rep(i,a,b) for(int i=(a);i>=(b);--i)
//#define int long long
using namespace std;
inline int read()
{
char c=getchar();int x=0;bool f=0;
for(;!isdigit(c);c=getchar())f^=!(c^45);
for(;isdigit(c);c=getchar())x=(x<<1)+(x<<3)+(c^48);
if(f)x=-x;return x;
}
int mod;
struct modint{
int x;
modint(int o=0){x=o;}
modint &operator = (int o){return x=o,*this;}
modint &operator +=(modint o){return x=x+o.x>=mod?x+o.x-mod:x+o.x,*this;}
modint &operator -=(modint o){return x=x-o.x<0?x-o.x+mod:x-o.x,*this;}
modint &operator *=(modint o){return x=1ll*x*o.x%mod,*this;}
modint &operator ^=(int b){
modint a=*this,c=1;
for(;b;b>>=1,a*=a)if(b&1)c*=a;
return x=c.x,*this;
}
modint &operator /=(modint o){return *this *=o^=mod-2;}
friend modint operator +(modint a,modint b){return a+=b;}
friend modint operator -(modint a,modint b){return a-=b;}
friend modint operator *(modint a,modint b){return a*=b;}
friend modint operator /(modint a,modint b){return a/=b;}
friend modint operator ^(modint a,int b){return a^=b;}
friend bool operator ==(modint a,int b){return a.x==b;}
friend bool operator !=(modint a,int b){return a.x!=b;}
bool operator ! () {return !x;}
modint operator - () {return x?mod-x:0;}
bool operator <(const modint&b)const{return x<b.x;}
};
inline modint qpow(modint x,int y){return x^y;}
vector<modint> fac,ifac,iv;
inline void initC(int n)
{
if(iv.empty())fac=ifac=iv=vector<modint>(2,1);
int m=iv.size(); ++n;
if(m>=n)return;
iv.resize(n),fac.resize(n),ifac.resize(n);
For(i,m,n-1){
iv[i]=iv[mod%i]*(mod-mod/i);
fac[i]=fac[i-1]*i,ifac[i]=ifac[i-1]*iv[i];
}
}
inline modint C(int n,int m){
if(m<0||n<m)return 0;
return initC(n),fac[n]*ifac[m]*ifac[n-m];
}
inline modint sign(int n){return (n&1)?(mod-1):(1);}
#define fi first
#define se second
#define pb push_back
#define mkp make_pair
typedef pair<int,int>pii;
typedef vector<int>vi;
#define maxn 55
#define inf 0x3f3f3f3f
#define poly vector<modint>
int n,p,k;
poly operator +(poly a,poly b){
int n=max(a.size(),b.size());a.resize(n),b.resize(n);
For(i,0,n-1)a[i]+=b[i];return a;
}
poly operator -(poly a,poly b){
int n=max(a.size(),b.size());a.resize(n),b.resize(n);
For(i,0,n-1)a[i]-=b[i];return a;
}
poly operator *(poly a,modint b){
int n=a.size();
For(i,0,n-1)a[i]*=b;return a;
}
poly operator *(poly a,poly b){
if(!a.size()||!b.size())return {};
poly c(a.size()+b.size()-1,0);
for(int i=0;i<a.size();++i)
for(int j=0;j<b.size();++j)
c[i+j]+=a[i]*b[j];
return c;
}
poly operator %(poly a,poly b){
while(b.back().x==0)b.pop_back();
while(1){
while(a.size()&&a.back().x==0)a.pop_back();
if(a.size()<b.size())return a;
int t=a.size()-b.size();
modint w=a.back()/b.back();
For(i,0,(int)b.size()-1)a[i+t]-=b[i]*w;
assert(a.back().x==0);
}
}
void init(poly &a,int x){
if(a.size()<k)a.resize(k);
For(i,0,k-1)a[i]=x%p,x/=p;
}
int get(poly a){
if(a.size()<k)a.resize(k);
int res=0;
Rep(i,k-1,0)res=res*p+a[i].x;
return res;
}
bool chk(poly a){
poly b;
For(i,p,n-1){
init(b,i);
poly c=a%b;
if(!c.size())return 0;
}
return 1;
}
poly qwq(){
poly a(k+1); a[k]=1;
For(i,1,n-1){
init(a,i);
if(chk(a))return a;
}
assert(0);
}
int pri[maxn],pc[maxn],tot;
void fj(int n){
For(i,2,n)
if(n%i==0){
pri[++tot]=i;
while(n%i==0)n/=i,++pc[tot];
}
}
signed main()
{
n=read();
if(n<=2){
cout<<n<<endl;
For(i,1,n)cout<<i<<" ";
exit(0);
}
int s=floor(sqrt(0.5*n));
while(s>(1<<k)-1)++k;
n=(1<<k);
mod=p=2;
poly a;
a=qwq();//puts("QWQWQ");
// for(auto x:a)cout<<x.x<<' ';puts(" A");
vi o;
For(i,0,s-1){
poly x; init(x,i);
poly y=x*x%a*x%a;
int out=get(y);
out|=(i<<k);
o.pb(out);
}
cout<<o.size()<<"\n";
for(int x:o)cout<<(x^1)<<" \n"[x==o.back()];
// set<int>S;
// For(i,0,s-1)
// For(j,i+1,s-1){
// if(S.count(o[i]^o[j])) assert(0);
// S.insert(o[i]^o[j]);
// }
return 0;
}
// (1 0 1) %
詳細信息
Test #1:
score: 100
Accepted
time: 2ms
memory: 3308kb
input:
49
output:
4 1 8 18 29
result:
ok AC
Test #2:
score: 0
Accepted
time: 11ms
memory: 3420kb
input:
10000000
output:
2236 1 4096 8201 12302 16449 20564 24697 28778 33281 37448 41641 45798 50113 54172 58201 62210 65544 69913 74304 78679 83272 87117 91952 95795 101896 106321 109792 114111 117448 121733 124944 129371 131145 136296 141505 146662 147968 153141 158392 163467 166491 171570 172659 177692 182674 187887 188...
result:
ok AC
Test #3:
score: 0
Accepted
time: 9ms
memory: 3344kb
input:
8388607
output:
2047 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #4:
score: 0
Accepted
time: 7ms
memory: 3372kb
input:
8396802
output:
2049 1 4096 8201 12302 16449 20564 24697 28778 33281 37448 41641 45798 50113 54172 58201 62210 65544 69913 74304 78679 83272 87117 91952 95795 101896 106321 109792 114111 117448 121733 124944 129371 131145 136296 141505 146662 147968 153141 158392 163467 166491 171570 172659 177692 182674 187887 188...
result:
ok AC
Test #5:
score: 0
Accepted
time: 2ms
memory: 3344kb
input:
1
output:
1 1
result:
ok AC
Test #6:
score: 0
Accepted
time: 1ms
memory: 3292kb
input:
2
output:
2 1 2
result:
ok AC
Test #7:
score: 0
Accepted
time: 1ms
memory: 3368kb
input:
4
output:
1 1
result:
ok AC
Test #8:
score: 0
Accepted
time: 0ms
memory: 3304kb
input:
8
output:
2 1 4
result:
ok AC
Test #9:
score: 0
Accepted
time: 2ms
memory: 3348kb
input:
16
output:
2 1 4
result:
ok AC
Test #10:
score: 0
Accepted
time: 2ms
memory: 3372kb
input:
32
output:
4 1 8 18 29
result:
ok AC
Test #11:
score: 0
Accepted
time: 2ms
memory: 3416kb
input:
64
output:
5 1 8 18 29 36
result:
ok AC
Test #12:
score: 0
Accepted
time: 1ms
memory: 3324kb
input:
128
output:
8 1 16 41 62 77 91 96 112
result:
ok AC
Test #13:
score: 0
Accepted
time: 2ms
memory: 3328kb
input:
256
output:
11 1 16 41 62 77 91 96 112 139 158 174
result:
ok AC
Test #14:
score: 0
Accepted
time: 1ms
memory: 3400kb
input:
512
output:
16 1 32 73 110 139 190 214 229 283 312 322 359 392 447 452 501
result:
ok AC
Test #15:
score: 0
Accepted
time: 2ms
memory: 3340kb
input:
1024
output:
22 1 32 73 110 139 190 214 229 283 312 322 359 392 447 452 501 527 563 599 621 665 689
result:
ok AC
Test #16:
score: 0
Accepted
time: 2ms
memory: 3376kb
input:
2048
output:
32 1 64 137 206 258 343 442 489 537 595 695 763 784 846 910 982 1028 1113 1175 1228 1339 1394 1432 1495 1551 1625 1722 1770 1850 1912 1983 2043
result:
ok AC
Test #17:
score: 0
Accepted
time: 0ms
memory: 3324kb
input:
4096
output:
45 1 64 137 206 258 343 442 489 537 595 695 763 784 846 910 982 1028 1113 1175 1228 1339 1394 1432 1495 1551 1625 1722 1770 1850 1912 1983 2043 2089 2168 2180 2259 2359 2418 2474 2537 2584 2626 2707 2767 2828
result:
ok AC
Test #18:
score: 0
Accepted
time: 1ms
memory: 3404kb
input:
8192
output:
64 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 7...
result:
ok AC
Test #19:
score: 0
Accepted
time: 0ms
memory: 3392kb
input:
16384
output:
90 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 7...
result:
ok AC
Test #20:
score: 0
Accepted
time: 2ms
memory: 3340kb
input:
32768
output:
128 1 256 521 782 1089 1364 1657 1898 2103 2430 2719 3024 3308 3505 3700 3887 4266 4512 4820 5080 5277 5507 5843 6091 6184 6506 6902 7090 7300 7634 7786 7994 8238 8547 8830 9013 9459 9642 9875 10188 10381 10632 10877 11134 11467 11738 11787 12060 12370 12564 12916 13108 13560 13738 14062 14266 14405...
result:
ok AC
Test #21:
score: 0
Accepted
time: 0ms
memory: 3400kb
input:
65536
output:
181 1 256 521 782 1089 1364 1657 1898 2103 2430 2719 3024 3308 3505 3700 3887 4266 4512 4820 5080 5277 5507 5843 6091 6184 6506 6902 7090 7300 7634 7786 7994 8238 8547 8830 9013 9459 9642 9875 10188 10381 10632 10877 11134 11467 11738 11787 12060 12370 12564 12916 13108 13560 13738 14062 14266 14405...
result:
ok AC
Test #22:
score: 0
Accepted
time: 1ms
memory: 3328kb
input:
131072
output:
256 1 512 1033 1550 2113 2644 3193 3690 4098 4683 5290 5861 6594 7071 7514 7937 8217 8968 9298 10053 10591 10842 11556 11815 12304 13129 13563 14244 14550 15259 15373 16198 16577 17126 17477 18020 18586 19113 19502 19995 20734 21137 21722 22195 22821 23390 23857 24396 24713 25534 25678 26495 27092 2...
result:
ok AC
Test #23:
score: 0
Accepted
time: 1ms
memory: 3356kb
input:
262144
output:
362 1 512 1033 1550 2113 2644 3193 3690 4098 4683 5290 5861 6594 7071 7514 7937 8217 8968 9298 10053 10591 10842 11556 11815 12304 13129 13563 14244 14550 15259 15373 16198 16577 17126 17477 18020 18586 19113 19502 19995 20734 21137 21722 22195 22821 23390 23857 24396 24713 25534 25678 26495 27092 2...
result:
ok AC
Test #24:
score: 0
Accepted
time: 1ms
memory: 3404kb
input:
524288
output:
512 1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16421 17716 19053 20346 20844 21609 23316 24087 25150 26471 26838 28041 29431 30650 30767 32100 33057 34057 35259 36245 37701 38777 39919 40917 41851 42779 43841 44839 45215 46315 47253 48359 49629 50405 51975 527...
result:
ok AC
Test #25:
score: 0
Accepted
time: 4ms
memory: 3340kb
input:
1048576
output:
724 1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16421 17716 19053 20346 20844 21609 23316 24087 25150 26471 26838 28041 29431 30650 30767 32100 33057 34057 35259 36245 37701 38777 39919 40917 41851 42779 43841 44839 45215 46315 47253 48359 49629 50405 51975 527...
result:
ok AC
Test #26:
score: 0
Accepted
time: 3ms
memory: 3368kb
input:
2097152
output:
1024 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #27:
score: 0
Accepted
time: 7ms
memory: 3404kb
input:
4194304
output:
1448 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #28:
score: 0
Accepted
time: 11ms
memory: 3432kb
input:
8388608
output:
2048 1 4096 8201 12302 16449 20564 24697 28778 33281 37448 41641 45798 50113 54172 58201 62210 65544 69913 74304 78679 83272 87117 91952 95795 101896 106321 109792 114111 117448 121733 124944 129371 131145 136296 141505 146662 147968 153141 158392 163467 166491 171570 172659 177692 182674 187887 188...
result:
ok AC
Test #29:
score: 0
Accepted
time: 3ms
memory: 3312kb
input:
174050
output:
295 1 512 1033 1550 2113 2644 3193 3690 4098 4683 5290 5861 6594 7071 7514 7937 8217 8968 9298 10053 10591 10842 11556 11815 12304 13129 13563 14244 14550 15259 15373 16198 16577 17126 17477 18020 18586 19113 19502 19995 20734 21137 21722 22195 22821 23390 23857 24396 24713 25534 25678 26495 27092 2...
result:
ok AC
Test #30:
score: 0
Accepted
time: 2ms
memory: 3348kb
input:
3230882
output:
1271 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #31:
score: 0
Accepted
time: 4ms
memory: 3336kb
input:
1068722
output:
731 1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16421 17716 19053 20346 20844 21609 23316 24087 25150 26471 26838 28041 29431 30650 30767 32100 33057 34057 35259 36245 37701 38777 39919 40917 41851 42779 43841 44839 45215 46315 47253 48359 49629 50405 51975 527...
result:
ok AC
Test #32:
score: 0
Accepted
time: 8ms
memory: 3296kb
input:
5827698
output:
1707 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #33:
score: 0
Accepted
time: 2ms
memory: 3280kb
input:
1302498
output:
807 1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16421 17716 19053 20346 20844 21609 23316 24087 25150 26471 26838 28041 29431 30650 30767 32100 33057 34057 35259 36245 37701 38777 39919 40917 41851 42779 43841 44839 45215 46315 47253 48359 49629 50405 51975 527...
result:
ok AC
Test #34:
score: 0
Accepted
time: 8ms
memory: 3436kb
input:
6358178
output:
1783 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #35:
score: 0
Accepted
time: 7ms
memory: 3416kb
input:
3090098
output:
1243 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #36:
score: 0
Accepted
time: 11ms
memory: 3436kb
input:
9847922
output:
2219 1 4096 8201 12302 16449 20564 24697 28778 33281 37448 41641 45798 50113 54172 58201 62210 65544 69913 74304 78679 83272 87117 91952 95795 101896 106321 109792 114111 117448 121733 124944 129371 131145 136296 141505 146662 147968 153141 158392 163467 166491 171570 172659 177692 182674 187887 188...
result:
ok AC
Test #37:
score: 0
Accepted
time: 2ms
memory: 3348kb
input:
1839362
output:
959 1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16421 17716 19053 20346 20844 21609 23316 24087 25150 26471 26838 28041 29431 30650 30767 32100 33057 34057 35259 36245 37701 38777 39919 40917 41851 42779 43841 44839 45215 46315 47253 48359 49629 50405 51975 527...
result:
ok AC
Test #38:
score: 0
Accepted
time: 2ms
memory: 3308kb
input:
6962
output:
59 1 64 137 206 258 343 442 489 537 595 695 763 784 846 910 982 1028 1113 1175 1228 1339 1394 1432 1495 1551 1625 1722 1770 1850 1912 1983 2043 2089 2168 2180 2259 2359 2418 2474 2537 2584 2626 2707 2767 2828 2882 2999 3071 3122 3199 3204 3279 3344 3401 3478 3529 3600 3670 3712
result:
ok AC
Test #39:
score: 0
Accepted
time: 1ms
memory: 3404kb
input:
316808
output:
398 1 512 1033 1550 2113 2644 3193 3690 4098 4683 5290 5861 6594 7071 7514 7937 8217 8968 9298 10053 10591 10842 11556 11815 12304 13129 13563 14244 14550 15259 15373 16198 16577 17126 17477 18020 18586 19113 19502 19995 20734 21137 21722 22195 22821 23390 23857 24396 24713 25534 25678 26495 27092 2...
result:
ok AC
Test #40:
score: 0
Accepted
time: 7ms
memory: 3380kb
input:
3775752
output:
1374 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #41:
score: 0
Accepted
time: 1ms
memory: 3336kb
input:
449352
output:
474 1 512 1033 1550 2113 2644 3193 3690 4098 4683 5290 5861 6594 7071 7514 7937 8217 8968 9298 10053 10591 10842 11556 11815 12304 13129 13563 14244 14550 15259 15373 16198 16577 17126 17477 18020 18586 19113 19502 19995 20734 21137 21722 22195 22821 23390 23857 24396 24713 25534 25678 26495 27092 2...
result:
ok AC
Test #42:
score: 0
Accepted
time: 8ms
memory: 3384kb
input:
6552200
output:
1810 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #43:
score: 0
Accepted
time: 2ms
memory: 3348kb
input:
1656200
output:
910 1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16421 17716 19053 20346 20844 21609 23316 24087 25150 26471 26838 28041 29431 30650 30767 32100 33057 34057 35259 36245 37701 38777 39919 40917 41851 42779 43841 44839 45215 46315 47253 48359 49629 50405 51975 527...
result:
ok AC
Test #44:
score: 0
Accepted
time: 5ms
memory: 3352kb
input:
7113992
output:
1886 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #45:
score: 0
Accepted
time: 5ms
memory: 3340kb
input:
783752
output:
626 1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16421 17716 19053 20346 20844 21609 23316 24087 25150 26471 26838 28041 29431 30650 30767 32100 33057 34057 35259 36245 37701 38777 39919 40917 41851 42779 43841 44839 45215 46315 47253 48359 49629 50405 51975 527...
result:
ok AC
Test #46:
score: 0
Accepted
time: 0ms
memory: 3332kb
input:
14792
output:
86 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 7...
result:
ok AC
Test #47:
score: 0
Accepted
time: 6ms
memory: 3360kb
input:
2255688
output:
1062 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #48:
score: 0
Accepted
time: 2ms
memory: 3396kb
input:
52488
output:
162 1 256 521 782 1089 1364 1657 1898 2103 2430 2719 3024 3308 3505 3700 3887 4266 4512 4820 5080 5277 5507 5843 6091 6184 6506 6902 7090 7300 7634 7786 7994 8238 8547 8830 9013 9459 9642 9875 10188 10381 10632 10877 11134 11467 11738 11787 12060 12370 12564 12916 13108 13560 13738 14062 14266 14405...
result:
ok AC
Test #49:
score: 0
Accepted
time: 5ms
memory: 3356kb
input:
4843011
output:
1556 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #50:
score: 0
Accepted
time: 9ms
memory: 3412kb
input:
7959139
output:
1994 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #51:
score: 0
Accepted
time: 4ms
memory: 3328kb
input:
1009859
output:
710 1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16421 17716 19053 20346 20844 21609 23316 24087 25150 26471 26838 28041 29431 30650 30767 32100 33057 34057 35259 36245 37701 38777 39919 40917 41851 42779 43841 44839 45215 46315 47253 48359 49629 50405 51975 527...
result:
ok AC
Test #52:
score: 0
Accepted
time: 7ms
memory: 3388kb
input:
4125987
output:
1436 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #53:
score: 0
Accepted
time: 6ms
memory: 3436kb
input:
2209411
output:
1051 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #54:
score: 0
Accepted
time: 7ms
memory: 3336kb
input:
5325539
output:
1631 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #55:
score: 0
Accepted
time: 4ms
memory: 3308kb
input:
8376259
output:
2046 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #56:
score: 0
Accepted
time: 2ms
memory: 3336kb
input:
1492387
output:
863 1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16421 17716 19053 20346 20844 21609 23316 24087 25150 26471 26838 28041 29431 30650 30767 32100 33057 34057 35259 36245 37701 38777 39919 40917 41851 42779 43841 44839 45215 46315 47253 48359 49629 50405 51975 527...
result:
ok AC
Test #57:
score: 0
Accepted
time: 7ms
memory: 3340kb
input:
4608515
output:
1517 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #58:
score: 0
Accepted
time: 6ms
memory: 3408kb
input:
2691939
output:
1160 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #59:
score: 0
Accepted
time: 5ms
memory: 3336kb
input:
2030518
output:
1007 1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16421 17716 19053 20346 20844 21609 23316 24087 25150 26471 26838 28041 29431 30650 30767 32100 33057 34057 35259 36245 37701 38777 39919 40917 41851 42779 43841 44839 45215 46315 47253 48359 49629 50405 51975 52...
result:
ok AC
Test #60:
score: 0
Accepted
time: 7ms
memory: 3412kb
input:
5146646
output:
1604 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #61:
score: 0
Accepted
time: 3ms
memory: 3380kb
input:
3230070
output:
1270 1 2048 4105 6158 8257 10324 12409 14442 16897 19016 21161 23270 25537 27548 29529 31490 32779 35098 37443 39764 42315 44110 46899 48688 50702 53079 54502 56761 58062 60291 61462 63837 65617 68720 69852 72955 74267 77358 78502 81557 82496 85545 86637 89602 90506 93687 94615 97772 98407 101718 10...
result:
ok AC
Test #62:
score: 0
Accepted
time: 2ms
memory: 3336kb
input:
1313494
output:
810 1 1024 2057 3086 4161 5204 6265 7274 8705 9800 10921 12006 13249 14236 15193 16130 16421 17716 19053 20346 20844 21609 23316 24087 25150 26471 26838 28041 29431 30650 30767 32100 33057 34057 35259 36245 37701 38777 39919 40917 41851 42779 43841 44839 45215 46315 47253 48359 49629 50405 51975 527...
result:
ok AC
Test #63:
score: 0
Accepted
time: 11ms
memory: 3360kb
input:
9396918
output:
2167 1 4096 8201 12302 16449 20564 24697 28778 33281 37448 41641 45798 50113 54172 58201 62210 65544 69913 74304 78679 83272 87117 91952 95795 101896 106321 109792 114111 117448 121733 124944 129371 131145 136296 141505 146662 147968 153141 158392 163467 166491 171570 172659 177692 182674 187887 188...
result:
ok AC
Test #64:
score: 0
Accepted
time: 1ms
memory: 3372kb
input:
1
output:
1 1
result:
ok AC