QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#803711 | #5434. Binary Substrings | gyydp123_LIM | AC ✓ | 7ms | 11792kb | C++14 | 1.8kb | 2024-12-07 18:08:31 | 2024-12-07 18:08:35 |
Judging History
answer
#include<bits/stdc++.h>
#define For(i,j,k) for(int i=(j);i<=(k);++i)
#define ForDown(i,j,k) for(int i=(j);i>=(k);--i)
#define Debug(fmt, args...) fprintf(stderr,"(func %s, line #%d): " fmt,__func__,__LINE__,##args),fflush(stderr)
#define debug(fmt, args...) fprintf(stderr,fmt,##args),fflush(stderr)
#define within :
#define LJY main
using namespace std;
typedef long long ll;
const int N=2e5+5;
inline int read(){
char ch=getchar();int x=0,f=1;
while(ch<'0'||ch>'9'){if(ch=='-') f=-1;ch=getchar();}
while(ch>='0'&&ch<='9')
x=(x<<3)+(x<<1)+(ch^48),ch=getchar();
return x*f;
}
int n,k,S,h[N];
int stk[N],tp,pos[N];
int nxt[N];
void dfs1(int u){
for(int i=h[u];i<2;i=h[u]){
h[u]++;
dfs1((u<<1|i)&S);
stk[++tp]=u<<1|i;
}
}
bool vis[N];
void print(int i){
int now=i;
while(vis[now]) vis[now]=0,putchar(nxt[now]+'0'),now=(now<<1|nxt[now])&S;
}
signed LJY(){
n=read();
if(n<=1) puts("0"),exit(0);
else if(n<=2) puts("01"),exit(0);
k=0;while(n>=(1<<k)+k-1) k++;k--;
S=(1<<k-1)-1;
dfs1(0);
reverse(stk+1,stk+(1<<k)+1);
For(i,1,(1<<k)){
int pre=(i==1?(1<<k):i-1);
nxt[stk[pre]]=!(stk[i]&1);
pos[stk[i]]=i;
}int len=(1<<k)+k-1,fir=0;S=(1<<k)-1;
// Debug("%d\n",len);
For(i,0,S) if(!vis[i]&&len<=n){
int siz=0;int now=i;
while(!vis[now]) vis[now]=1,++siz,now=(now<<1|nxt[now])&S;
if(len+siz<n){len+=siz;continue;}
while(vis[now]) vis[now]=0,++siz,now=(now<<1|nxt[now])&S;
now=i;
ForDown(j,k-1,0) putchar((i>>j&1)+'0');
For(i,1,n-len) putchar(nxt[now]+'0'),now=(now<<1|nxt[now])&S;
now=pos[now]+1;if(now>(1<<k)) now=1;
For(i,1,(1<<k)-1){
putchar((stk[now]&1)+'0');
if(vis[stk[now]]) print(stk[now]);
now++;if(now>(1<<k)) now=1;
}return 0;
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3532kb
input:
2
output:
01
result:
ok meet maximum 3
Test #2:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
5
output:
00110
result:
ok meet maximum 12
Test #3:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
1
output:
0
result:
ok meet maximum 1
Test #4:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
3
output:
001
result:
ok meet maximum 5
Test #5:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
4
output:
1100
result:
ok meet maximum 8
Test #6:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
6
output:
000110
result:
ok meet maximum 16
Test #7:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
7
output:
0100011
result:
ok meet maximum 21
Test #8:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
8
output:
01011000
result:
ok meet maximum 27
Test #9:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
9
output:
111010001
result:
ok meet maximum 34
Test #10:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
10
output:
0001011100
result:
ok meet maximum 42
Test #11:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
11
output:
00001011100
result:
ok meet maximum 50
Test #12:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
12
output:
001110000101
result:
ok meet maximum 59
Test #13:
score: 0
Accepted
time: 4ms
memory: 11736kb
input:
200000
output:
000000000001100101111111111000110011111111101100011000000000100110101111111100110010100000000110011000111111110010101101111111011010100100000001001010100111111001101010101111101000101010100000101110101000111110100010101110000010111010011011111010001011001000001011101001001111101000101101100000101110...
result:
ok meet maximum 19996962278
Test #14:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
24
output:
000111010111100000100110
result:
ok meet maximum 240
Test #15:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
35
output:
11111011001010001110000010011010111
result:
ok meet maximum 526
Test #16:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
30
output:
000111011001011110000010011010
result:
ok meet maximum 381
Test #17:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
45
output:
000011110110010100111010110111110000001000110
result:
ok meet maximum 882
Test #18:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
66
output:
010101110011010000111101100010110111110000001001000110010100111010
result:
ok meet maximum 1953
Test #19:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
50
output:
00001111011000101101111100000010001100101001110101
result:
ok meet maximum 1097
Test #20:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
80
output:
00000111110111001001011001101001111010101110110111111000000010000110001010001110
result:
ok meet maximum 2901
Test #21:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
107
output:
00000111110111000110110000101111001110100001100010100011100100101100110100111101010111011011111100000001000
result:
ok meet maximum 5277
Test #22:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
81
output:
000001111101110000000100001100010100011100100101100110100111101010111011011111100
result:
ok meet maximum 2976
Test #23:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
147
output:
000000111111011100010010001011000110100011110010011001010100101110011011001110100111110101011010111101101110111111100000000100000110000101000011100
result:
ok meet maximum 10124
Test #24:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
255
output:
000010011100101101101001001010011010100010001100110001010111010110010001011111001111010000001111110111000011011110001110110000010110001101000111100100110010101001011100110110011101001111101010110101111011011101111111000000001000001100001010000111000100100
result:
ok meet maximum 31130
Test #25:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
173
output:
00000011111101110000110111100011101100000101100011010001111001001100101010010111001101100111010011111010101101011110110111011111110000000010000011000010100001110001001000101
result:
ok meet maximum 14115
Test #26:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
288
output:
000000011111110111100001110111001110110011110100111111010101011101011011010111110110111101110111111110000000001000000110000010100000111000010010000101100001101000011110001000100110001010100010111000110010001101100011101000111110010010100100111001010110010110100101111001100110101001101110
result:
ok meet maximum 39850
Test #27:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
407
output:
000001001111001011101101000100001100111000101101110100100010100111010100001110111000001101111100011110110000001011111100111110100000001111111011110000111100010001001100010101000101110001100100011011000111010001111100100101001001110010101100101101001011110011001101010011011100111011001111010011111101...
result:
ok meet maximum 80310
Test #28:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
349
output:
000001001111001010110010110100101111110011111010000000111111101111000011101110000011011111000111101100000010111100110011010100110111001110110011110100111111010101011101011011010111110110111101110111111110000000001000000110000010100000111000010010000101100001101000011110001000100110001010100010111000...
result:
ok meet maximum 58821
Test #29:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
526
output:
000000001111110010010010110010011010010011110010100110010101010010101110010110110010111010010111110011001110011010110011011010011011110011101010011101110011110110011111010011111110101010110101011110101101110101110110101111110110110111110111011110111111111000000000010000000110000001010000001110000010...
result:
ok meet maximum 134925
Test #30:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
1018
output:
001010010110101110001001101100110010010101001101010100010100011100011011011000100000110011110001011101110100010001011001110110111001001110100110001010101110101011001010000110001110101100001001011100110000010101111101011110010000001001111100101111011010000100001110011100001011011110100100001010011110...
result:
ok meet maximum 510567
Test #31:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
1017
output:
001010010110101001001000110100111001010110110101010001010001110001101101100010000011001111000101110111010001000101100111011011100100111010011000101010111010101100101000011000111010110000100101110011000001010111110101111001000000100111110010111101101000010000111001110000101101111010010000101001111010...
result:
ok meet maximum 509558
Test #32:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
1209
output:
000000010011111100101111101101000001000011110011101110110001111110110000000010111111110011111110100000000011111111101111100000111101111000000111011111100001111101110000000110111111100011111010001111111001001001100100101010010010111001001101100100111010010011111001010010100111001010101100101011010010...
result:
ok meet maximum 721446
Test #33:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
1632
output:
000000010011111100101111101101000001000011110011101110110001000110110011100100101101001101001011001011000011001011100011001101100011000001101011110001001110110011000100101011001101011010001010010111010110110010100110110101100100100001101001111001010111011010100010010001110100111000101011011101010010...
result:
ok meet maximum 1318299
Test #34:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
1829
output:
000000100011111001101111011001000010010011100110100001100001110101110000100110111001100100011001001100011010101100010100001110001110110110000100010111010110110010100110110101100100100001101001111001010111011010100010010001110100111000101011011101010010001010100111010101000010100011110001101110111001...
result:
ok meet maximum 1657336
Test #35:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
3187
output:
000000001001111111001011111101101000000100001111100111011110110001000010011001110011001111010001100001011010111101001010000101100011110000110111011110010001000011011001111001001011101001101000101100101110000110011011100011000000110101111100010011110110011000010010101110011010000011000011110101110000...
result:
ok meet maximum 5049170
Test #36:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
2138
output:
000000000011111111110111110000001111011111100000111110111100000001110111111100001111110111101111101111111111100000000000010000000001100000000101000000001110000000100100000001011000000011010000000111100000010001000000100110000001010100000010111000000110010000001101100000011101000000111110000010000100...
result:
ok meet maximum 2267222
Test #37:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
4030
output:
000001100101111000110011101100011000100110101100110010100100011010100111001010101101101010100100101010100110101010100010101000111010001110001011011011101001001000101101001110100101100010110000111001011101101101000100100101100110110110110010010011010011011001011001001100001101010111000101001101110101...
result:
ok meet maximum 8082284
Test #38:
score: 0
Accepted
time: 0ms
memory: 3980kb
input:
6101
output:
000000000100111111110010111111101101000000010000111111001110111110110001000001001100111100110011111010001100000101101011111010010100000101100011111000011011110111100100001000010011100111001100011000111011010111000100100110110011011001001100110100111011001011000100110000111010101110000101001101111010...
result:
ok meet maximum 18549195
Test #39:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
5917
output:
000000000100111111110010111111101101000000010000111111001110111110110001000001001100111100110011111010001100000101101011111010010100000101100011111000011011110111100100001000010011100111001100011000111011010111000100100110110011011001001100110100111011001011000100110000111010101110000101001101111010...
result:
ok meet maximum 17445655
Test #40:
score: 0
Accepted
time: 1ms
memory: 3912kb
input:
6635
output:
000000000100111111110010111111101101000000010000111111001110111110110001000001001100111100110011111010001100000101101011111010010100000101100011111000011011110111100100001000010011100111001100011000111011010111000100100110110011011001001100110100111011001011000100110000111010101110000101001101111010...
result:
ok meet maximum 21943566
Test #41:
score: 0
Accepted
time: 1ms
memory: 4220kb
input:
9993
output:
000000000010011111111100101111111101101000000001000011111110011101111110110001000000100110011111001100111111010001100000010110101111110100101000000101100011111100001101111101111001000001000010011110011110100000110000101111010111101000010100001011110001111000000110111011111100100010000001101100111111...
result:
ok meet maximum 49821572
Test #42:
score: 0
Accepted
time: 1ms
memory: 4100kb
input:
14474
output:
000000001101011111110001001111110110011010000100110000111101010111000001010011011111010110010000010100100111110101001100000101010101111101010101111001010100000011010001111110010110111110110100100000100101001111001101010111010001010100010111010001110100010111000101110011011100000110001101111010111001...
result:
ok meet maximum 104583873
Test #43:
score: 0
Accepted
time: 1ms
memory: 4232kb
input:
11534
output:
000000000010011111111100101111111101101000000001000011111110011101111110110001000000100110011111001100111111010001100000010110101111110100101000000101100011111100001101111101111001000001000010011110011110100000110000101111010111101000010100001011110001111000000110111011111100100010000001101100111111...
result:
ok meet maximum 66388863
Test #44:
score: 0
Accepted
time: 1ms
memory: 4604kb
input:
19098
output:
000000000001001111111111001011111111101101000000000100001111111100111011111110110001000000010011001111110011001111111010001100000001011010111111101001010000000101100011111110000110111111011110010000001000010011111001111010000001100000011111010111110000001001111011111001100001000001100111001111000110...
result:
ok meet maximum 182141836
Test #45:
score: 0
Accepted
time: 1ms
memory: 4672kb
input:
31872
output:
000000010100001111111000111011111101110001000000100011001111100111001100000110001010111101011101010000101000100011110001110110111011000010010000001111010011111100001010111110111101010000010000100011110011100111111010000110000001011101011111101000101000000101110001111110000011011111011111001000001000...
result:
ok meet maximum 507514777
Test #46:
score: 0
Accepted
time: 1ms
memory: 4676kb
input:
27626
output:
000000001010001111111100011011111110111001000000010001001111110011101011111011100101000001000110001111001101011011101100101001000100110101001110110010101100010011010000111011000011110001101110111011100100010001000100110011001100111010001100110001011100101011100000110100110111110010110011111011011011...
result:
ok meet maximum 381257844
Test #47:
score: 0
Accepted
time: 0ms
memory: 5732kb
input:
43245
output:
000000000000100111111111110010111111111101101000000000010000111111111001110111111110110001000000001001100111111100110011111111010001100000000101101011111111010010100000000101100011111111000011011111110111100100000001000010011111100111101011111011110010100000100001100011110011101011000001100010010111...
result:
ok meet maximum 934503599
Test #48:
score: 0
Accepted
time: 2ms
memory: 5684kb
input:
34491
output:
000000000000100111111111110010111111111101101000000000010000111111111001110111111110110001000000001001100111111100110011111111010001100000000101101011111111010010100000000101100011111111000011011111110111100100000001000010011111100111101011111011110010100000100001100011110011101011000001100010010111...
result:
ok meet maximum 594380060
Test #49:
score: 0
Accepted
time: 2ms
memory: 5608kb
input:
64535
output:
000001111011010111110000100100111101110011111000010001011110111001110100001000110001011110110101110100001001010001011110110001110100001001110001011110101101110111001010010001000110101001100111001010110010000110101001001111001010110101110110101001010001001010110001110110100001110001000011110001100111...
result:
ok meet maximum 2081512994
Test #50:
score: 0
Accepted
time: 0ms
memory: 7696kb
input:
65746
output:
000000000000000111111111111111011111111000000001111111011111110000000001111110111111111000000011111111011111100000000001111101111111111000000111111111011111000000000001111011111111111000001111111111011110000000111110001000000011111001100000001111101010000000111110111000000011111100100000001111110110...
result:
ok meet maximum 2160380385
Test #51:
score: 0
Accepted
time: 0ms
memory: 7748kb
input:
65861
output:
000000000000000111111111111111011111111000000001111111011111110000000001111110111111111000000011111111011111100000000001111101111111111000000111111111011111000000000001111011111111111000001111111111011110000000000001110111111111111000011111111111011100000000000001101111111111111000111111111111011000...
result:
ok meet maximum 2167946005
Test #52:
score: 0
Accepted
time: 0ms
memory: 7624kb
input:
66725
output:
000000000000010011111111111100101111111111101101000000000001000011111111110011101111111110110001000000000100110011111111001100111111111010001100000000010110101111111110100101000000000101100011111111100001101111111101111001000000001000010011111110011110101111110111100101000000100001100011111001110101...
result:
ok meet maximum 2225209765
Test #53:
score: 0
Accepted
time: 4ms
memory: 7704kb
input:
86349
output:
000000000000010011111111111100101111111111101101000000000001000011111111110011101111111110110001000000000100110011111111001100111111111010001100000000010110101111111110100101000000000101100011111111100001101111111101111001000000001000010011111110011110101111110111100101000000100001100011111001110101...
result:
ok meet maximum 3726867681
Test #54:
score: 0
Accepted
time: 0ms
memory: 7752kb
input:
68454
output:
000000000000010011111111111100101111111111101101000000000001000011111111110011101111111110110001000000000100110011111111001100111111111010001100000000010110101111111110100101000000000101100011111111100001101111111101111001000000001000010011111110011110101111110111100101000000100001100011111001110101...
result:
ok meet maximum 2342045211
Test #55:
score: 0
Accepted
time: 4ms
memory: 7572kb
input:
112260
output:
000000000000010011111111111100101111111111101101000000000001000011111111110011101111111110110001000000000100110011111111001100111111111010001100000000010110101111111110100101000000000101100011111111100001101111111101111001000000001000010011111110011110101111110111100101000000100001100011111001110101...
result:
ok meet maximum 6299544960
Test #56:
score: 0
Accepted
time: 0ms
memory: 7688kb
input:
108023
output:
000000000000010011111111111100101111111111101101000000000001000011111111110011101111111110110001000000000100110011111111001100111111111010001100000000010110101111111110100101000000000101100011111111100001101111111101111001000000001000010011111110011110101111110111100101000000100001100011111001110101...
result:
ok meet maximum 5832941098
Test #57:
score: 0
Accepted
time: 0ms
memory: 7712kb
input:
103787
output:
000000000000010011111111111100101111111111101101000000000001000011111111110011101111111110110001000000000100110011111111001100111111111010001100000000010110101111111110100101000000000101100011111111100001101111111101111001000000001000010011111110011110101111110111100101000000100001100011111001110101...
result:
ok meet maximum 5384393176
Test #58:
score: 0
Accepted
time: 4ms
memory: 7752kb
input:
128710
output:
000000111011100011111100010001101111101100111001000001001100010011111010101100110000010101001010111110101011010111100101010010111101101010110100001001010100001111011010001111000010010110111011100110100100010001100101001100110001101011001010111001010011010000011010110000111110010010111011110100110100...
result:
ok meet maximum 8281268235
Test #59:
score: 0
Accepted
time: 4ms
memory: 7688kb
input:
129534
output:
000001111001001011110111010011010000100010110000111101110010111100001000110011101110011100110001000110001010111011010111010100010010100010101110110001110101000100111000101011101011011101010001010010001010111010100111010100010101100010101110100001110101000101111000101011100111011101011101100010001010...
result:
ok meet maximum 8387651991
Test #60:
score: 0
Accepted
time: 4ms
memory: 7748kb
input:
128670
output:
000000111011100011111100010001101111101100111001000001001100010011111010101100110000010101001010111110101011010111100101010010111101101010110100001001010100001111011010001111000010010110111011100110100100010001100101001100110001101011001010111001010011010000011010110000111110010010111011110100110100...
result:
ok meet maximum 8276121255
Test #61:
score: 0
Accepted
time: 0ms
memory: 11724kb
input:
154721
output:
000000000000001001111111111111001011111111111101101000000000000100001111111111100111011111111110110001000000000010011001111111110011001111111111010001100000000001011010111111111101001010000000000101100011111111110000110111111111011110010000000001000010011111111001111010111111101111001010000000100001...
result:
ok meet maximum 11967003302
Test #62:
score: 0
Accepted
time: 0ms
memory: 11776kb
input:
143149
output:
000000000000001001111111111111001011111111111101101000000000000100001111111111100111011111111110110001000000000010011001111111110011001111111111010001100000000001011010111111111101001010000000000101100011111111110000110111111111011110010000000001000010011111111001111010111111101111001010000000100001...
result:
ok meet maximum 10243718420
Test #63:
score: 0
Accepted
time: 6ms
memory: 11632kb
input:
134065
output:
000000000000001001111111111111001011111111111101101000000000000100001111111111100111011111111110110001000000000010011001111111110011001111111111010001100000000001011010111111111101001010000000000101100011111111110000110111111111011110010000000001000010011111111001111010111111101111001010000000100001...
result:
ok meet maximum 8984762318
Test #64:
score: 0
Accepted
time: 3ms
memory: 11792kb
input:
163454
output:
000000000000001001111111111111001011111111111101101000000000000100001111111111100111011111111110110001000000000010011001111111110011001111111111010001100000000001011010111111111101001010000000000101100011111111110000110111111111011110010000000001000010011111111001111010111111101111001010000000100001...
result:
ok meet maximum 13356170345
Test #65:
score: 0
Accepted
time: 6ms
memory: 11732kb
input:
139150
output:
000000000000001001111111111111001011111111111101101000000000000100001111111111100111011111111110110001000000000010011001111111110011001111111111010001100000000001011010111111111101001010000000000101100011111111110000110111111111011110010000000001000010011111111001111010111111101111001010000000100001...
result:
ok meet maximum 9679327553
Test #66:
score: 0
Accepted
time: 3ms
memory: 11724kb
input:
172380
output:
000000000000001001111111111111001011111111111101101000000000000100001111111111100111011111111110110001000000000010011001111111110011001111111111010001100000000001011010111111111101001010000000000101100011111111110000110111111111011110010000000001000010011111111001111010111111101111001010000000100001...
result:
ok meet maximum 14854850208
Test #67:
score: 0
Accepted
time: 0ms
memory: 11660kb
input:
178166
output:
000000000000001001111111111111001011111111111101101000000000000100001111111111100111011111111110110001000000000010011001111111110011001111111111010001100000000001011010111111111101001010000000000101100011111111110000110111111111011110010000000001000010011111111001111010111111101111001010000000100001...
result:
ok meet maximum 15868884317
Test #68:
score: 0
Accepted
time: 0ms
memory: 11784kb
input:
143651
output:
000000000000001001111111111111001011111111111101101000000000000100001111111111100111011111111110110001000000000010011001111111110011001111111111010001100000000001011010111111111101001010000000000101100011111111110000110111111111011110010000000001000010011111111001111010111111101111001010000000100001...
result:
ok meet maximum 10315696937
Test #69:
score: 0
Accepted
time: 3ms
memory: 11720kb
input:
198199
output:
000000000001100101111111111000110011111111101100011000000000100110101111111100110010100000000110011000111111110010101101111111011010100100000001001010100111111001101010101111101000101010100000101110101000111110100010101110000010111010011011111010001011001000001011101001001111101000101101100000101110...
result:
ok meet maximum 19638413795
Test #70:
score: 0
Accepted
time: 3ms
memory: 11780kb
input:
186272
output:
000000000000001001111111111111001011111111111101101000000000000100001111111111100111011111111110110001000000000010011001111111110011001111111111010001100000000001011010111111111101001010000000000101100011111111110000110111111111011110010000000001000010011111111001111010111111101111001010000000100001...
result:
ok meet maximum 17345817782
Test #71:
score: 0
Accepted
time: 0ms
memory: 11692kb
input:
198102
output:
000000000001100101111111111000110011111111101100011000000000100110101111111100110010100000000110011000111111110010101101111111011010100100000001001010100111111001101010101111101000101010100000101110101000111110100010101110000010111010011011111010001011001000001011101001001111101000101101100000101110...
result:
ok meet maximum 19619194797
Test #72:
score: 0
Accepted
time: 1ms
memory: 3932kb
input:
8201
output:
010101010110101010101111010101011100101010000011010001111100101101111011010010000100101001110011010100001100100011110010011011101001100100010110010011100001101011011100010100000011100011111011011000000100010111110011100000001011011111110100100000001010011111110101000000001000111111100110111111011001...
result:
ok meet maximum 33542145
Test #73:
score: 0
Accepted
time: 1ms
memory: 3972kb
input:
8202
output:
010101010110101010101100010101000011101000111100010110111011101001000100010100110011101010001100010101101011101010010100010101100011101000011100010111011011101000100100010111010011101000101100010111000011100110111000011000110111010111001000101000100111000111010110110000101000001111000111101110111100...
result:
ok meet maximum 33550335
Test #74:
score: 0
Accepted
time: 1ms
memory: 3784kb
input:
8203
output:
111111111111101111110000001111101111100000001111011111110000011111101111000000001110111111110000111111101110000000001101111111110001111111101100000000001011111111110011111111101000000000001111111111100000000000001001111111100101111111011010000000100001111110011101111101100010000010011001111001100111...
result:
ok meet maximum 33558526
Test #75:
score: 0
Accepted
time: 1ms
memory: 4164kb
input:
8204
output:
000000000000010000000000011000000000010100000000001110000000001001000000000101100000000011010000000001111000000001000100000000100110000000010101000000001011100000000110010000000011011000000001110100000000111110000000100001000000010001100000001001010000000100111000000010100100000001010110000000101101...
result:
ok meet maximum 33566718
Test #76:
score: 0
Accepted
time: 1ms
memory: 4156kb
input:
8205
output:
000000000000001000000000001100000000001010000000000111000000000100100000000010110000000001101000000000111100000000100010000000010011000000001010100000000101110000000011001000000001101100000000111010000000011111000000010000100000001000110000000100101000000010011100000001010010000000101011000000010110...
result:
ok meet maximum 33574910
Test #77:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
8206
output:
000000000000110000000000101000000000011100000000010010000000001011000000000110100000000011110000000010001000000001001100000000101010000000010111000000001100100000000110110000000011101000000001111100000001000010000000100011000000010010100000001001110000000101001000000010101100000001011010000000101111...
result:
ok meet maximum 33583103
Test #78:
score: 0
Accepted
time: 0ms
memory: 4100kb
input:
16394
output:
010101010101011101010101011001010101000011010100011110010001110000110110110111100100100111101001101100001011000001111001011110111011010000100010000111101100111100001001011101110011010001000110010110011000110100101011100101101000001101000011111000011101111011110001000010000110011100111000110001111011...
result:
ok meet maximum 134193153
Test #79:
score: 0
Accepted
time: 1ms
memory: 4036kb
input:
16395
output:
010101010101010001010101000111010100011100010101101101110101001001000101011010011101010010110001010110000111010010111100010110011101110110110001000100000111011001111100010010111101100110100001001100001111010101110000010100110111110101100100000101001001111101010011000001010101011111010101011110010101...
result:
ok meet maximum 134209535
Test #80:
score: 0
Accepted
time: 0ms
memory: 4216kb
input:
16396
output:
111111111111110111111000000011111011111110000001111110111110000000011110111111110000011111110111100000000011101111111110000111111110111000000000011011111111110001111111110110000000000010111111111110011111111110100000000000011111111111100000000000000100111111111001011111111011010000000010000111111100...
result:
ok meet maximum 134225918
Test #81:
score: 0
Accepted
time: 1ms
memory: 4656kb
input:
16397
output:
000000000000001000000000000110000000000010100000000000111000000000010010000000000101100000000001101000000000011110000000001000100000000010011000000000101010000000001011100000000011001000000000110110000000001110100000000011111000000001000010000000010001100000000100101000000001001110000000010100100000...
result:
ok meet maximum 134242302
Test #82:
score: 0
Accepted
time: 1ms
memory: 4712kb
input:
16398
output:
000000000000000100000000000011000000000001010000000000011100000000001001000000000010110000000000110100000000001111000000000100010000000001001100000000010101000000000101110000000001100100000000011011000000000111010000000001111100000000100001000000001000110000000010010100000000100111000000001010010000...
result:
ok meet maximum 134258686
Test #83:
score: 0
Accepted
time: 1ms
memory: 4604kb
input:
16399
output:
000000000000011000000000001010000000000011100000000001001000000000010110000000000110100000000001111000000000100010000000001001100000000010101000000000101110000000001100100000000011011000000000111010000000001111100000000100001000000001000110000000010010100000000100111000000001010010000000010101100000...
result:
ok meet maximum 134275071
Test #84:
score: 0
Accepted
time: 1ms
memory: 4724kb
input:
32779
output:
010101010101101010101010111101010101011100101010100000110101000111110010001110000011011011011111001001001111101001101100000101100010111110000111001111011100001100001000111010111001110001010001000011101011001111000101001011101110101101000100010100101100111010110110100001010010000111101010011110000101...
result:
ok meet maximum 536821761
Test #85:
score: 0
Accepted
time: 1ms
memory: 4720kb
input:
32780
output:
010101010101101010101010110001010101000011101010001111000101011011101110101001000100010101001100111010101000110001010101101011101010100101000101010110001110101000011100010001110110110011100010010010110110011011010010011001001011010001101101001011100100101100000110110010111110010011000000011010101111...
result:
ok meet maximum 536854527
Test #86:
score: 0
Accepted
time: 1ms
memory: 4728kb
input:
32781
output:
111111111111111011111110000000111111011111100000000111110111111110000001111111011111000000000111101111111110000011111111011110000000000111011111111110000111111111011100000000000110111111111110001111111111011000000000000101111111111110011111111111010000000000000111111111111100000000000000010011111111...
result:
ok meet maximum 536887294
Test #87:
score: 0
Accepted
time: 0ms
memory: 5572kb
input:
32782
output:
000000000000000100000000000001100000000000010100000000000011100000000000100100000000000101100000000000110100000000000111100000000001000100000000001001100000000001010100000000001011100000000001100100000000001101100000000001110100000000001111100000000010000100000000010001100000000010010100000000010011...
result:
ok meet maximum 536920062
Test #88:
score: 0
Accepted
time: 0ms
memory: 5592kb
input:
32783
output:
000000000000000010000000000000110000000000001010000000000001110000000000010010000000000010110000000000011010000000000011110000000000100010000000000100110000000000101010000000000101110000000000110010000000000110110000000000111010000000000111110000000001000010000000001000110000000001001010000000001001...
result:
ok meet maximum 536952830
Test #89:
score: 0
Accepted
time: 2ms
memory: 5728kb
input:
32784
output:
000000000000001100000000000010100000000000011100000000000100100000000000101100000000000110100000000000111100000000001000100000000001001100000000001010100000000001011100000000001100100000000001101100000000001110100000000001111100000000010000100000000010001100000000010010100000000010011100000000010100...
result:
ok meet maximum 536985599
Test #90:
score: 0
Accepted
time: 0ms
memory: 5680kb
input:
65548
output:
010101010101010111010101010101100101010101000011010101000111100101000111000011010110110111000101001000000111010100111111000101010111110111010101000001000101000111100111000111000011000110110111010111001001000101000110100111000111001010110110110110101001001001001000110110110100111001001001010110100110...
result:
ok meet maximum 2147385345
Test #91:
score: 0
Accepted
time: 2ms
memory: 5536kb
input:
65549
output:
010101010101010100010101010100011101010100011100010101011011011101010100100100010101011010011101010100101100010101011000011101010010111100010101100111011101011011000100010100000111011100011111000100011011110110011100100001001100010011110101011001100001010100101011110101011010111001010100101110110101...
result:
ok meet maximum 2147450879
Test #92:
score: 0
Accepted
time: 2ms
memory: 5676kb
input:
65550
output:
111111111111111101111111000000001111110111111110000000111111101111110000000001111101111111110000001111111101111100000000001111011111111110000011111111101111000000000001110111111111110000111111111101110000000000001101111111111110001111111111101100000000000001011111111111110011111111111101000000000000...
result:
ok meet maximum 2147516414
Test #93:
score: 0
Accepted
time: 3ms
memory: 7632kb
input:
65551
output:
000000000000000010000000000000011000000000000010100000000000001110000000000001001000000000000101100000000000011010000000000001111000000000001000100000000000100110000000000010101000000000001011100000000000110010000000000011011000000000001110100000000000111110000000000100001000000000010001100000000001...
result:
ok meet maximum 2147581950
Test #94:
score: 0
Accepted
time: 3ms
memory: 7644kb
input:
65552
output:
000000000000000001000000000000001100000000000001010000000000000111000000000000100100000000000010110000000000001101000000000000111100000000000100010000000000010011000000000001010100000000000101110000000000011001000000000001101100000000000111010000000000011111000000000010000100000000001000110000000000...
result:
ok meet maximum 2147647486
Test #95:
score: 0
Accepted
time: 3ms
memory: 7680kb
input:
65553
output:
000000000000000110000000000000101000000000000011100000000000010010000000000001011000000000000110100000000000011110000000000010001000000000001001100000000000101010000000000010111000000000001100100000000000110110000000000011101000000000001111100000000001000010000000000100011000000000010010100000000001...
result:
ok meet maximum 2147713023
Test #96:
score: 0
Accepted
time: 0ms
memory: 7636kb
input:
131085
output:
010101010101011010101010101011110101010101011100101010101000001101010100011111001010001110000011010110110111100010100100000001110101001111111000101010111111011101010100000010001010001111100111000111000001100011011011110101110010010000101000110100111100011100101011101101101101010001001001001000111011...
result:
ok meet maximum 8589737985
Test #97:
score: 0
Accepted
time: 0ms
memory: 7628kb
input:
131086
output:
010101010101011010101010101011000101010101000011101010100011110001010101101110111010101001000100010101010011001110101010100011000101010101101011101010101001010001010101011000111010101000011100010100011101101110001110001001000110110111010011100100100010110001101001110000111001010110111011011010100100...
result:
ok meet maximum 8589869055
Test #98:
score: 0
Accepted
time: 4ms
memory: 7752kb
input:
131087
output:
111111111111111110111111110000000011111110111111100000000011111101111111110000000111111110111111000000000011111011111111110000001111111110111110000000000011110111111111110000011111111110111100000000000011101111111111110000111111111110111000000000000011011111111111110001111111111110110000000000000010...
result:
ok meet maximum 8590000126
Test #99:
score: 0
Accepted
time: 6ms
memory: 11660kb
input:
131088
output:
000000000000000001000000000000000110000000000000010100000000000000111000000000000010010000000000000101100000000000001101000000000000011110000000000001000100000000000010011000000000000101010000000000001011100000000000011001000000000000110110000000000001110100000000000011111000000000001000010000000000...
result:
ok meet maximum 8590131198
Test #100:
score: 0
Accepted
time: 3ms
memory: 11604kb
input:
131089
output:
000000000000000000100000000000000011000000000000001010000000000000011100000000000001001000000000000010110000000000000110100000000000001111000000000000100010000000000001001100000000000010101000000000000101110000000000001100100000000000011011000000000000111010000000000001111100000000000100001000000000...
result:
ok meet maximum 8590262270
Test #101:
score: 0
Accepted
time: 6ms
memory: 11692kb
input:
131090
output:
000000000000000011000000000000001010000000000000011100000000000001001000000000000010110000000000000110100000000000001111000000000000100010000000000001001100000000000010101000000000000101110000000000001100100000000000011011000000000000111010000000000001111100000000000100001000000000001000110000000000...
result:
ok meet maximum 8590393343
Test #102:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
8197
output:
010101010110101010001001010001110110001110001001101101100110010010010101001101101010110010010100001101100011110011011011101100100100010011010011001100101100100011010010011100101101011011010010100100101101010011010010101100101101000011010000111100001110111011100001000000011100111111000010111110111101...
result:
ok meet maximum 33509395
Test #103:
score: 0
Accepted
time: 1ms
memory: 4228kb
input:
16328
output:
001010010101011010110101011110100101010000101101000111101001011100001011001101111011011001000010010010011100100110101101001100101001010001101011000111001000011100010011101101100110001001001010110011011010110110010010100110100110101100101100101001100001101010101110001010100110111010101100100010101001...
result:
ok meet maximum 133114152
Test #104:
score: 0
Accepted
time: 1ms
memory: 4596kb
input:
32608
output:
000101101100101110101000110100010101110010111010000011010000011111000011110111101111000010000111101110011110000100010111011100111010001000110001011101101011101000100101000101110110001110100010011100010111010110111010001010010001011101010011101000101011000101110100001110100010111100010111001110111011...
result:
ok meet maximum 531233481
Test #105:
score: 0
Accepted
time: 2ms
memory: 5744kb
input:
65141
output:
000101101110010111010010001101000101101010010111010010101101000101101000010111010000111101000101111000010111001110111101110110001000010001001100111001100110011110100011001100001011100101011110000011010011101111100101100010000011010011001111100101100100000011010010011111100101101011111011010010100000...
result:
ok meet maximum 2120796035
Test #106:
score: 0
Accepted
time: 0ms
memory: 7704kb
input:
130420
output:
000101101001001011101010011011010001010110010010111010000110110100010111100100101110000001101100110111111001001100111111010011001100000010110010101111110000110100111110111100101100000100001100101111001110001101000011000111000011110011011011101110110010010001000100110100110011101100101100110001001101...
result:
ok meet maximum 8502797880
Test #107:
score: 0
Accepted
time: 1ms
memory: 4220kb
input:
8265
output:
000000000000111111111111011111100000001111101111111000000111111011111000011110001100001111001010000111100111000011110100100001111010110000111101101000011110111100001111100010000111110011000011111010100001111101110000111111001000011111101100001111111010000111111111000100010001100010001001010001000100...
result:
ok meet maximum 34068260
Test #108:
score: 0
Accepted
time: 1ms
memory: 4672kb
input:
16508
output:
000000000000011111111111110111111100000001111110111111000000001111101111111100000011111110111110000000001111011111111100000100000101000001000001110000010000100100000100001011000001000011010000010000111100000100010001000001000100110000010001010100000100010111000001000110010000010001101100000100011101...
result:
ok meet maximum 136067031
Test #109:
score: 0
Accepted
time: 2ms
memory: 5608kb
input:
33008
output:
000000000000001111111111111101111111000000001111110111111110000000111111101111110000000001111101111111110000001111111101111100000000001111011111111110000011111111101111000000000001110111111111110000111111111101110000000000001101111111111110110110110110111110110110111011110110110111101110110110111111...
result:
ok meet maximum 544351055
Test #110:
score: 0
Accepted
time: 3ms
memory: 7692kb
input:
65964
output:
000000000000010011111111111100101111111111101101000000000001000011111111110011101111001111001110111101010100111011110101110011101111011011001110111101110100111011110111110011101111101011001110111110110100111011111011110011101111110101001110111111011100111011111110110011101111111101001110111111111111...
result:
ok meet maximum 2174733396
Test #111:
score: 0
Accepted
time: 7ms
memory: 11656kb
input:
131692
output:
000000000000001001111111111111001011111111111101101000000000000100001111111111100111011111111110110001000000000010011001111111110011001111111111010001100000000001011010111111111101001010000000000101100011111111110000110111111111000000001111111101111111000000000011111101111111111000000011111111101111...
result:
ok meet maximum 8669480792
Test #112:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
15843
output:
000001001011011110011010010000110010100111000110101011011000101010000011101000111110001011011110111010010000100010100111001110101000011000100011101011001110001010010110111010110100100010100101001110101101011100101001011101101011010001001010010110011010110111100010100000001110001111110110110000000100...
result:
ok meet maximum 125318747
Test #113:
score: 0
Accepted
time: 1ms
memory: 4676kb
input:
31560
output:
000000010100001111111000111011111101110001000000100011001111100111001100000110001010111101011101010000101000100011110001110110111011000010010000001111010011111100001010111110111101010000010000100011110011100111111010000110000001011101011111101000101000000101110001111110000011011111011111001000001000...
result:
ok meet maximum 497623597
Test #114:
score: 0
Accepted
time: 0ms
memory: 5744kb
input:
64241
output:
000000100100100111110010011010111101001100101000010110011000111101001010111000010110100110111101001011001000010110100100111101001011011000010110100000111101000011111000010111011110111101000100001000010110011100111101101000011000010010111010111001101000101000110010111000111001100000111000101011110110...
result:
ok meet maximum 2062587185
Test #115:
score: 0
Accepted
time: 3ms
memory: 7756kb
input:
73307
output:
000000000000010011111111111100101111111111101101000000000001000011111111110011101111111110110001000000000100110011111111001100111111111010001100000000010110101111111110100101000000000101100011111111100001101111111101111001000000001000010011111110011110101111110111100101000000100001100011111001110101...
result:
ok meet maximum 2685953056
Test #116:
score: 0
Accepted
time: 4ms
memory: 7688kb
input:
129593
output:
000001111001001011110111010011010000100010110000111101110010111100001000110011101110011100110001000110001010111011010111010100010010100010101110110001110101000100111000101011101011011101010001010010001010111010100111010100010101100010101110100001110101000101111000101011100111011101011101100010001010...
result:
ok meet maximum 8395295323