QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#818055#5434. Binary Substringsa_little_boyAC ✓41ms46084kbC++142.3kb2024-12-17 16:04:522024-12-17 16:04:52

Judging History

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

  • [2024-12-17 16:04:52]
  • 评测
  • 测评结果:AC
  • 用时:41ms
  • 内存:46084kb
  • [2024-12-17 16:04:52]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
const int N=4e5;
int n,a,b,wws,nw,zx[N+5],gt,xnt,fg[N+5];
string s;
vector<int>qp[N+5],qp2[N+5],mm[N+5];
int st[N+5],cnt;
void inline ol(int x){
//cout<<x<<" "<<qp[x].size()<<endl;
   for(int i=(int)qp[x].size()-1;i>=0;i--){
  // cout<<i<<endl;
   if(i>=qp[x].size())continue;
   int zad=qp[x][i];qp[x].pop_back();
   ol(zad);
   cnt++;
   st[cnt]=x*2+zad%2;
  // cout<<"qwq"<<x<<" "<<zad<<endl;
   //cout<<"lsm"<<x*2+zad%2<<endl;
   }
   
}
void inline ejz(int x){
  stack<int>lsm;
  //cout<<nw<<endl;
  while(nw){
  nw--;lsm.push(x%2);x/=2;
  }
  while(!lsm.empty()){cout<<lsm.top();lsm.pop();}
}
int inline findc(int x){
int nx=x;
  while(fg[nx]==0){
  //cout<<x<<" "<<nx<<" "<<xnt<<" "<<qp2[1].size()<<endl;
  xnt++;fg[nx]=1;
  mm[x].push_back(qp2[nx][0]);
  nx=qp2[nx][0];
  if(nx==x||xnt==n)break;
  }
  return xnt;
}
int main(){
   cin>>n;
   if(n==1){cout<<"1";return 0;}
   if(n==2){cout<<"01";return 0;}
   if(n==3){cout<<"010";return 0;}
   if(n==4){cout<<"0100";return 0;}
   if(n==5){cout<<"00110";return 0;}
   a=1,b=n+1;
   while(a<=b){a*=2;b--;nw++;}
   a/=2;a/=2;nw--;//pay attentiion!
   for(int i=0;i<a;i++)
   qp[i].emplace_back(i*2%a),qp[i].emplace_back(i*2%a+1);
   ol(0);
   a*=2;
   for(int i=1;i<=cnt/2;i++)swap(st[i],st[cnt-i+1]);
   for(int i=1;i<=cnt;i++)
   {zx[st[i]]=(st[i%cnt+1]);}//cout<<st[i]<<" "<<st[i%cnt+1]<<"qwer"<<endl;}//fg[st[i]]++;}
   for(int i=0;i<a;i++)
   if(zx[st[i]]&1)qp2[st[i]*2%a].emplace_back(st[i]);else qp2[st[i]*2%a+1].emplace_back(st[i]);
   //for(int i=0;i<a;i++)if(fg[i]==0)cout<<i<<endl;else cout<<i<<endl;
   n-=(nw+a-1);gt=-1;//return 0;
   for(int i=0;i<a;i++){if(n==0)break;xnt=0;int x=findc(st[i]);if(x==n){gt=st[i];break;}else n-=x;}
   //cout<<"lsm"<<gt<<" "<<mm[gt].size()<<endl;
   if(gt==-1){
   for(int i=1;i<=nw;i++)cout<<0;
   for(int j:mm[0])cout<<(j&1);
   }
   else
   {
   ejz(mm[gt][(int)mm[gt].size()-1]);
   for(int i=(int)mm[gt].size()-2;i>=0;i--){
   cout<<(mm[gt][i]&1);
   
   }cout<<(gt&1);
  // cout<<"q";
   }
 //  return 0;
 if(gt==-1)gt=0;
 //cout<<"q";
   for(int i=zx[gt];i!=gt;i=zx[i]){
   //cout<<gt<<" "<<i<<endl;getchar();
   cout<<(i&1);
   for(int j=(int)mm[i].size()-2;j>=0;j--)cout<<(mm[i][j]&1);
   if(mm[i].size())cout<<(i&1);
   }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2

output:

01

result:

ok meet maximum 3

Test #2:

score: 0
Accepted
time: 5ms
memory: 34216kb

input:

5

output:

00110

result:

ok meet maximum 12

Test #3:

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

input:

1

output:

1

result:

ok meet maximum 1

Test #4:

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

input:

3

output:

010

result:

ok meet maximum 5

Test #5:

score: 0
Accepted
time: 7ms
memory: 34280kb

input:

4

output:

0100

result:

ok meet maximum 8

Test #6:

score: 0
Accepted
time: 5ms
memory: 34272kb

input:

6

output:

000110

result:

ok meet maximum 16

Test #7:

score: 0
Accepted
time: 7ms
memory: 34204kb

input:

7

output:

1011000

result:

ok meet maximum 21

Test #8:

score: 0
Accepted
time: 7ms
memory: 34284kb

input:

8

output:

01011000

result:

ok meet maximum 27

Test #9:

score: 0
Accepted
time: 11ms
memory: 34504kb

input:

9

output:

111000101

result:

ok meet maximum 34

Test #10:

score: 0
Accepted
time: 5ms
memory: 34804kb

input:

10

output:

0001110100

result:

ok meet maximum 42

Test #11:

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

input:

11

output:

00001110100

result:

ok meet maximum 50

Test #12:

score: 0
Accepted
time: 5ms
memory: 34280kb

input:

12

output:

100111010000

result:

ok meet maximum 59

Test #13:

score: 0
Accepted
time: 31ms
memory: 45672kb

input:

200000

output:

100010011011011100111011001001001010011001101101101011011100100100101011000110110110101010010110010010101011010011011010101001111001001010110100001101101010011111100100101101000000110110100111111110010011010000000011011001111111111001010100000000011101011000000001000101001111111101110110100000001100...

result:

ok meet maximum 19996962278

Test #14:

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

input:

24

output:

011100011110110010100000

result:

ok meet maximum 240

Test #15:

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

input:

35

output:

11111011001010000010011010111000111

result:

ok meet maximum 526

Test #16:

score: 0
Accepted
time: 6ms
memory: 34276kb

input:

30

output:

001101011100011110110010100000

result:

ok meet maximum 381

Test #17:

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

input:

45

output:

001011110000111110111001101011000101001000000

result:

ok meet maximum 882

Test #18:

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

input:

66

output:

110110111001101011000101001000000100111010001100101111000011111101

result:

ok meet maximum 1953

Test #19:

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

input:

50

output:

00011001011110000111110111001101011000101001000000

result:

ok meet maximum 1097

Test #20:

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

input:

80

output:

00010111110000011111101111001110101110001101101001100101100001010100010010000000

result:

ok meet maximum 2901

Test #21:

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

input:

107

output:

00010001110010011110100001100010111110000011111101111001110101110001101101001100101100001010100010010000000

result:

ok meet maximum 5277

Test #22:

score: 0
Accepted
time: 5ms
memory: 34524kb

input:

81

output:

100010111110000011111101111001110101110001101101001100101100001010100010010000000

result:

ok meet maximum 2976

Test #23:

score: 0
Accepted
time: 3ms
memory: 34208kb

input:

147

output:

000010111111000000111111101111100111101011110001110110111010011100101110000110110011010101101000110010011000101100000101010010100001001000100000000

result:

ok meet maximum 10124

Test #24:

score: 0
Accepted
time: 3ms
memory: 34208kb

input:

255

output:

110001101001001011011010110010101110111001100111010100010100110111101111100111101011110001110110111010011100101110000110110011010101101000110010011000101100000101010010100001001000100000000100011110010000111000100111110100000110000101111110000001111111101

result:

ok meet maximum 31130

Test #25:

score: 0
Accepted
time: 5ms
memory: 34432kb

input:

173

output:

00011100010011111010000011000010111111000000111111101111100111101011110001110110111010011100101110000110110011010101101000110010011000101100000101010010100001001000100000000

result:

ok meet maximum 14115

Test #26:

score: 0
Accepted
time: 3ms
memory: 34196kb

input:

288

output:

010000001100000101111111000000011111111011111100111110101111100011110110111101001111001011110000111011101100111010101110100011100110111001001110001011100000110110101101100011010100110100101101000011001100101011001000110001001100001011000000101010100010100100101000001001000010001000000000

result:

ok meet maximum 39850

Test #27:

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

input:

407

output:

011001011001101011100111001010011101101001100111101010000101000110111110111111001111101011111000111101101111010011110010111100001110111011001110101011101000111001101110010011100010111000001101101011011000110101001101001011010000110011001010110010001100010011000010110000001010101000101001001010000010...

result:

ok meet maximum 80310

Test #28:

score: 0
Accepted
time: 5ms
memory: 34508kb

input:

349

output:

010001101111101111110011111010111110001111011011110100111100101111000011101110110011101010111010001110011011100100111000101110000011011010110110001101010011010010110100001100110010101100100011000100110000101100000010101010001010010010100000100100001000100000000010000111100010001111100100000111000010...

result:

ok meet maximum 58821

Test #29:

score: 0
Accepted
time: 5ms
memory: 34892kb

input:

526

output:

111110000000011111111101111111001111110101111110001111101101111101001111100101111100001111011101111011001111010101111010001111001101111001001111000101111000001110111001110110101110110001110101101110101001110100101110100001110011001110010101110010001110001101110001001110000101110000001101101101001101...

result:

ok meet maximum 134925

Test #30:

score: 0
Accepted
time: 7ms
memory: 34468kb

input:

1018

output:

010100101101011101100011101011011101010011101001011101000011100110011100101011100100011100011011100010011100001011100000011011011010011011001011011000011010110011010101011010100011010010011010001011010000011001100011001010011001001011001000011000101011000100011000010011000001011000000010101010010101...

result:

ok meet maximum 510567

Test #31:

score: 0
Accepted
time: 5ms
memory: 34316kb

input:

1017

output:

101001011010111011000111010110111010100111010010111010000111001100111001010111001000111000110111000100111000010111000000110110110100110110010110110000110101100110101010110101000110100100110100010110100000110011000110010100110010010110010000110001010110001000110000100110000010110000000101010100101010...

result:

ok meet maximum 509558

Test #32:

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

input:

1209

output:

010011111011010000110011111101010000001010000011011111110111111110011111110101111111000111111011011111101001111110010111111000011111011101111101100111110101011111010001111100110111110010011111000101111100000111101111011100111101101011110110001111010110111101010011110100101111010000111100111011110011...

result:

ok meet maximum 721446

Test #33:

score: 0
Accepted
time: 5ms
memory: 34548kb

input:

1632

output:

110111001001100011011010010110010110100110100111100110100011100110010011100111110010100001110110001001100111011010100110010100101110101101000101001001101011001001010011011011110010110000110101000100101011101101110001011000111010100100010101101110101011000101010111101011100001110010001000110111011101...

result:

ok meet maximum 1318299

Test #34:

score: 0
Accepted
time: 3ms
memory: 34332kb

input:

1829

output:

011110001010001111011001000110011011100110110011100101010011101011110001110001001001111011101000110001111101001000001011011111010110000010101111110111111110011111110101111111000111111011011111101001111110010111111000011111011101111101100111110101011111010001111100110111110010011111000101111100000111...

result:

ok meet maximum 1657336

Test #35:

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

input:

3187

output:

111011001100011001100001011100111101001010000101101011110100111000011110010001000011011101111001001100001101101000101100101110100110100011110011001000111001111110010100000111011000010011001111011010100011001011111001111000010100011111011001000011001101111001101100011100101001001110101111100011100001...

result:

ok meet maximum 5049170

Test #36:

score: 0
Accepted
time: 10ms
memory: 34724kb

input:

2138

output:

010001111111100100000000111000000010011111111101000000000110000000010111111111100000000001111111111101111111110011111111010111111110001111111011011111110100111111100101111111000011111101110111111011001111110101011111101000111111001101111110010011111100010111111000001111101111011111011100111110110101...

result:

ok meet maximum 2267222

Test #37:

score: 0
Accepted
time: 3ms
memory: 34436kb

input:

4030

output:

100010001100111011101010011000101001011110101111000011100010001000111011100010011000111011010010011001011011001101001011100101101000110100111110011010000111001100010011100111011001010011001101011011100101011000110101010010010101011011010101011001010101011101010111000101110001110100100100010110110111...

result:

ok meet maximum 8082284

Test #38:

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

input:

6101

output:

000101001010111010110111000101011000111010101001000101010110111010101011000101010101111010101110000101110001111010010010000101101101111010010110000101101001111010011010000111100110001000111001110111001010011000110101101111001010110000110101010001001010101110110101110001001110001110110010010011001101...

result:

ok meet maximum 18549195

Test #39:

score: 0
Accepted
time: 3ms
memory: 34556kb

input:

5917

output:

001110011101110010100110001101011011110010101100001101010100010010101011101101011100010011100011101100100100110011011011010101100100101010011011010111100100111000011001001000100110110111011001011001100110100110111001011011000110100101001001011010110110100101011001011010100110100101111001011110000111...

result:

ok meet maximum 17445655

Test #40:

score: 0
Accepted
time: 7ms
memory: 35032kb

input:

6635

output:

101101000101010010011010101101100101010110011010101011100101011100011011100011100100100100111011011111000101100000111010100001000101011110111011100011001100100101110011011010011100100111100011111000100100001111011100010001100011101110100100110001011011001110100101010001011010101110100101110001011010...

result:

ok meet maximum 21943566

Test #41:

score: 0
Accepted
time: 7ms
memory: 35192kb

input:

9993

output:

001110011100001001010001111011011001000110010011011100110110110011100100101010001101101011111001001110000011001001000010011011011110110010110001100110100111001100111100011010100010010010101110110110111000100101100011101101010010011001010110110011010100101110010101101000110101001111100101101000001101...

result:

ok meet maximum 49821572

Test #42:

score: 0
Accepted
time: 4ms
memory: 34984kb

input:

14474

output:

111110100001100000100001001111101111111111100111111111101011111111110001111111110110111111111010011111111100101111111110000111111110111011111111011001111111101010111111110100011111111001101111111100100111111110001011111111000001111111011110111111101110011111110110101111111011000111111101011011111110...

result:

ok meet maximum 104583873

Test #43:

score: 0
Accepted
time: 4ms
memory: 35156kb

input:

11534

output:

110111000010101100011110101010010000101010110111101010101100001010101011111010101110000010111000111110100100100000101101101111101001011000001011010011111010011010000011110011000010001110011110111001010001100011010111001110011100101001010011101011011110001010110000111010101000100010101011101110101110...

result:

ok meet maximum 66388863

Test #44:

score: 0
Accepted
time: 4ms
memory: 35704kb

input:

19098

output:

110011111100000101000001111110110000100000110011110111110011000110000111001110000010010100011111011011001000011001001101111001101101100011100100101001000110110101100010110010100111010011011110001011011000011101001010001000101101011101110100111001100011110001101001000100100101101110110110101100110010...

result:

ok meet maximum 182141836

Test #45:

score: 0
Accepted
time: 9ms
memory: 35692kb

input:

31872

output:

000010001001011111011101111000001001100001111101101000100001100101110111100110100110001110010110100100011010010110111001011010110001101001010100100101101010110110100101010110010110101010011010010101111001011011100001101011001000100101001101110110101101100010010101100111011010101010011001010101001011...

result:

ok meet maximum 507514777

Test #46:

score: 0
Accepted
time: 10ms
memory: 36180kb

input:

27626

output:

111011110110110011000110010011000010011011001111011001010100011001101010111001100101110001100110100011100110011111000110101000010010010101111011011011100001001011000111101101010010001100101011011100110101011001110010101010100111010101011110001010111000011101010010001000101011011101110101011001100010...

result:

ok meet maximum 381257844

Test #47:

score: 0
Accepted
time: 8ms
memory: 37148kb

input:

43245

output:

101011110010111011100001101001100100010010010011011101101101101100110110010010111001001101101000110010110010001001101001101110110010110110001001101001001110110010111110001001111000001110010001000010001101110111101110010011000110001101100111001110010101001010011101010110111100010101011000011101010101...

result:

ok meet maximum 934503599

Test #48:

score: 0
Accepted
time: 4ms
memory: 37332kb

input:

34491

output:

011010110110001100101001011110011010111100001100111000011110011001000100011100110111011100011011001100100101100110011011010011011100100101101100011011010010100101100101101011010011010010100111100101101101000011010010011111100101110100000011010001111111100110010000000111001111111111001010000000001110...

result:

ok meet maximum 594380060

Test #49:

score: 0
Accepted
time: 14ms
memory: 37396kb

input:

64535

output:

011110110110000100011001001111011100111111111011010111111111011000111111111010110111111111010100111111111010010111111111010000111111111001110111111111001100111111111001010111111111001000111111111000110111111111000100111111111000010111111111000000111111110111110111111110111100111111110111010111111110...

result:

ok meet maximum 2081512994

Test #50:

score: 0
Accepted
time: 11ms
memory: 40024kb

input:

65746

output:

110000100000000000111110000000000100001111111111110001000000000000111100000000000100011111111111110010000000000000111000000000000100111111111111110100000000000000110000000000000101111111111111110000000000000001111111111111111011111111111111001111111111111010111111111111100011111111111101101111111111...

result:

ok meet maximum 2160380385

Test #51:

score: 0
Accepted
time: 23ms
memory: 40352kb

input:

65861

output:

000010000000111111111000000100000000011111110000000010000001111111111000001000000000011111100000000010000011111111111000010000000000011111000000000010000111111111111000100000000000011110000000000010001111111111111001000000000000011100000000000010011111111111111010000000000000011000000000000010111111...

result:

ok meet maximum 2167946005

Test #52:

score: 0
Accepted
time: 15ms
memory: 40352kb

input:

66725

output:

111100100111000100001100100011101111001101110011000011011000110100010010100100101110110101101101000100101011001011101101010011010011001011110010110011110000110101010001000100101010111011101101011100110001001110001100111011000111011100010100100110001110101101101001000101011001011011101010011010110001...

result:

ok meet maximum 2225209765

Test #53:

score: 0
Accepted
time: 17ms
memory: 40208kb

input:

86349

output:

111001000101010100011011101010101110010001010111000110111010100011100100010111110001101111100000111011000010000100110011110111101101010001100011001010111001110011011100101000110110001101111100100111011000001111100010100001000011110101111000010000111000011110111100100010001100001101110111001111001000...

result:

ok meet maximum 3726867681

Test #54:

score: 0
Accepted
time: 22ms
memory: 40184kb

input:

68454

output:

011011001001011010010011011010010110010110010110100110100110100111100101100110100001101001100111111001011010100000011010010111111110010111100000000111100010000000100001110111111101111001100000011000011001111110011110101000001010000101011111010111101110000011100001001000010011111011011111110000010110...

result:

ok meet maximum 2342045211

Test #55:

score: 0
Accepted
time: 17ms
memory: 40324kb

input:

112260

output:

110100100100100000101101101101111101001001011000001011011010011111010010011010000010110110010111110100100111100000101111100001111101000010001000001011110111011111010000100110000010111101100111110100001010100000100011010101111101110010111000011000110100011110011100110010001010011100110111010110001101...

result:

ok meet maximum 6299544960

Test #56:

score: 0
Accepted
time: 22ms
memory: 39888kb

input:

108023

output:

101110010010011101000110111110001011101100000111010001010000100010111010111101110100011100011000111110001110100100001001000101101111011011101011000010110001010011110100111011010000111100010011000100001110110011100001000101010001111011101011001000110001010011011100111010110010010100010100110110101110...

result:

ok meet maximum 5832941098

Test #57:

score: 0
Accepted
time: 23ms
memory: 40128kb

input:

103787

output:

100101011011111101101010110000011001010101000010111010101011110100010101110000101110101000111101000101100100001011101001101111010001011011000010111010010011110100010111110000101111100000111101000010000100001011110111101111010001100011000010001011110011110111010001010001100010111010111001110100010100...

result:

ok meet maximum 5384393176

Test #58:

score: 0
Accepted
time: 26ms
memory: 40136kb

input:

128710

output:

001000101001000111011101011111100010001110000001110111001000001001100011011111011001110110000010101001100111110101011010100000101010010100001101010110100001001010100101111011010101111000010010111000011110110100100010001100101101110111001101011001100111001010011010100011010110010111110010100111100000...

result:

ok meet maximum 8281268235

Test #59:

score: 0
Accepted
time: 25ms
memory: 40208kb

input:

129534

output:

011010111001110010011100111000110010010100111100110110110100011100100100111111110010001011111111001000001111111100011110111111110001110011111111000110101111111100011000111111110001011011111111000101001111111100010010111111110001000011111111000011101111111100001100111111110000101011111111000010001111...

result:

ok meet maximum 8387651991

Test #60:

score: 0
Accepted
time: 19ms
memory: 39980kb

input:

128670

output:

100000011101110010000010011000110111110110011101100000101010011001111101010110101000001010100101000011010101101000010010101001011110110101011110000100101110000111101101001000100011001011011101110011010110011001110010100110101000110101100101111100101001111000001101101000100001011001011101111010011010...

result:

ok meet maximum 8276121255

Test #61:

score: 0
Accepted
time: 38ms
memory: 46072kb

input:

154721

output:

011001010001011101001101011101000101100111000101110100110001110100010110100100010111010010110111010001011010110001011101001010011101000101101111000101110101100001110100010101000100010011010101110111011001011100110001001101000110011101100101110111000100110100110001110110010110100100010011010010110111...

result:

ok meet maximum 11967003302

Test #62:

score: 0
Accepted
time: 34ms
memory: 45512kb

input:

143149

output:

001100101111101011100111100000101001010001111110101101100100000010101100110111111010100110110000001011110010011111101000011101000000110001000111111110011110010000000101000011011111110101111011000000011100001010000001001111101011111101100000111000000101000010011111110101111101000000011100000110000001...

result:

ok meet maximum 10243718420

Test #63:

score: 0
Accepted
time: 38ms
memory: 45952kb

input:

134065

output:

011010110010011101001010011111000101101101000001110100100110000100010110110011110111010010101000110001011010101110011101001010100101000101101010110101110100101010011100010110101111000111010011100010010001111000111011111100001110011000001000100111001111101110110010100001100010011010111100111011001110...

result:

ok meet maximum 8984762318

Test #64:

score: 0
Accepted
time: 31ms
memory: 45536kb

input:

163454

output:

111100110000111010000110100010001111110010111100100000011110000111000001000100010000111101110111111110000100110000000011110110100000001000110010111111101110011110000000100101000011111110110110001000000110010011101111110011011001100000111001001101000010001101100101111011100100111100001000111110000111...

result:

ok meet maximum 13356170345

Test #65:

score: 0
Accepted
time: 28ms
memory: 45656kb

input:

139150

output:

000111100100000110010000110111110011011110110000011011000010100001011001111010111101010100001110000101011111100011110111000001001000110001111101101110100100000101100010110111110100111010110000011110001010100001000111101010111100010000101110000111011110100011110011000011001000011001111001101111000100...

result:

ok meet maximum 9679327553

Test #66:

score: 0
Accepted
time: 40ms
memory: 46084kb

input:

172380

output:

111101000100100110000101110110110011110100010010101000010111011010101111010001001011100001011101101000111101000100110010000101110110011011110100010011011000010111011001001111010001001111100001011111100000111111000001000010000011111101111100001000001100000111101111100111110001100001010000111100111101...

result:

ok meet maximum 14854850208

Test #67:

score: 0
Accepted
time: 40ms
memory: 45492kb

input:

178166

output:

001100101111001111100110100010100001110010111010111100011010001110000111001011100111110001101001010000100100101101011110110110100111000010010011110001111011011000100100011001001110110111001111100010010010100000111011011011000010011011001001111011001001111100001001110100000111101100011000010001100111...

result:

ok meet maximum 15868884317

Test #68:

score: 0
Accepted
time: 31ms
memory: 45956kb

input:

143651

output:

001001101011110001101100111000011100100110010001000110110011011101110010011011001100011001011001100111001101001101010001100111100101011101010000110111000101011110010001110111000011111100010010001000001111011011111111100001011000000000111101010000000010000101011111111011110111000000011000110000000001...

result:

ok meet maximum 10315696937

Test #69:

score: 0
Accepted
time: 28ms
memory: 46036kb

input:

198199

output:

101101110010010100101100011011010110101001011001010010101101001101011010100111100101001011010000110101101001111110010100110100000011010110011111111001010101000000011101010110000001000101010011111101110101101000001100010100111111100111011010000001010011001011111101011001111000000101010100011111110101...

result:

ok meet maximum 19638413795

Test #70:

score: 0
Accepted
time: 41ms
memory: 45748kb

input:

186272

output:

000000100011011111111110111011000000000110001010000000010001101011111111011100111000000011001010010000001001101011011111101100101011000001100110101001111100110010110100000110011010010111110011001011110000011001111000011111001100010001000011100111011101111000110001001100011110011101101001000101001100...

result:

ok meet maximum 17345817782

Test #71:

score: 0
Accepted
time: 37ms
memory: 46004kb

input:

198102

output:

101011010011111100101001101000000110101100111111110010101010000000111010101100000010001010100111111011101011010000011000101001111111001110110100000010100110010111111010110011110000001010101000111111101010110010000000101010011011111110101011011000000010101011001111111010101010100000001010101010000001...

result:

ok meet maximum 19619194797

Test #72:

score: 0
Accepted
time: 3ms
memory: 34848kb

input:

8201

output:

101010100101010101001101010100101101010100001101010011001101010010101101010010001101010001001101010000101101010000001101001101001100101101001100001101001011001101001010101101001010001101001001001101001000101101001000001101000110001101000101001101000100101101000100001101000011001101000010101101000010...

result:

ok meet maximum 33542145

Test #73:

score: 0
Accepted
time: 4ms
memory: 34648kb

input:

8202

output:

010101010010101010100110101010010110101010000110101001100110101001010110101001000110101000100110101000010110101000000110100110100110010110100110000110100101100110100101010110100101000110100100100110100100010110100100000110100011000110100010100110100010010110100010000110100001100110100001010110100001...

result:

ok meet maximum 33550335

Test #74:

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

input:

8203

output:

101010101001010101010011010101001011010101000011010100110011010100101011010100100011010100010011010100001011010100000011010011010011001011010011000011010010110011010010101011010010100011010010010011010010001011010010000011010001100011010001010011010001001011010001000011010000110011010000101011010000...

result:

ok meet maximum 33558526

Test #75:

score: 0
Accepted
time: 4ms
memory: 35188kb

input:

8204

output:

000000000000011111111111110111111111110011111111110101111111111000111111111011011111111101001111111110010111111111000011111111011101111111101100111111110101011111111010001111111100110111111110010011111111000101111111100000111111101111011111110111001111111011010111111101100011111110101101111111010100...

result:

ok meet maximum 33566718

Test #76:

score: 0
Accepted
time: 6ms
memory: 34880kb

input:

8205

output:

000000000000001111111111111011111111111001111111111010111111111100011111111101101111111110100111111111001011111111100001111111101110111111110110011111111010101111111101000111111110011011111111001001111111100010111111110000011111110111101111111011100111111101101011111110110001111111010110111111101010...

result:

ok meet maximum 33574910

Test #77:

score: 0
Accepted
time: 11ms
memory: 35160kb

input:

8206

output:

100000000000011111111111110111111111110011111111110101111111111000111111111011011111111101001111111110010111111111000011111111011101111111101100111111110101011111111010001111111100110111111110010011111111000101111111100000111111101111011111110111001111111011010111111101100011111110101101111111010100...

result:

ok meet maximum 33583103

Test #78:

score: 0
Accepted
time: 4ms
memory: 35000kb

input:

16394

output:

101011010101101010010101001010110101011101011010001110101100110111010110010011101011000101110101100000111010101110011101010110101110101011000111010101011011101010101001110101010010111010101000011101010011001110101001010111010100100011101010001101110101000100111010100001011101010000001110100111000111...

result:

ok meet maximum 134193153

Test #79:

score: 0
Accepted
time: 8ms
memory: 35068kb

input:

16395

output:

010101010101011010101010001101010100100110101010001011010101000001101010011000110101001010011010100100101101010010000110101000110011010100010101101010001000110101000010011010100000101101010000000110100110100011010011001001101001100010110100110000011010010110001101001010100110100101001011010010100001...

result:

ok meet maximum 134209535

Test #80:

score: 0
Accepted
time: 8ms
memory: 35004kb

input:

16396

output:

101010101010101101010101000110101010010011010101000101101010100000110101001100011010100101001101010010010110101001000011010100011001101010001010110101000100011010100001001101010000010110101000000011010011010001101001100100110100110001011010011000001101001011000110100101010011010010100101101001010000...

result:

ok meet maximum 134225918

Test #81:

score: 0
Accepted
time: 4ms
memory: 36124kb

input:

16397

output:

000000000000001111111111111101111111111110011111111111010111111111110001111111111011011111111110100111111111100101111111111000011111111101110111111111011001111111110101011111111101000111111111001101111111110010011111111100010111111111000001111111101111011111111011100111111110110101111111101100011111...

result:

ok meet maximum 134242302

Test #82:

score: 0
Accepted
time: 4ms
memory: 35720kb

input:

16398

output:

000000000000000111111111111110111111111111001111111111101011111111111000111111111101101111111111010011111111110010111111111100001111111110111011111111101100111111111010101111111110100011111111100110111111111001001111111110001011111111100000111111110111101111111101110011111111011010111111110110001111...

result:

ok meet maximum 134258686

Test #83:

score: 0
Accepted
time: 9ms
memory: 35752kb

input:

16399

output:

100000000000001111111111111101111111111110011111111111010111111111110001111111111011011111111110100111111111100101111111111000011111111101110111111111011001111111110101011111111101000111111111001101111111110010011111111100010111111111000001111111101111011111111011100111111110110101111111101100011111...

result:

ok meet maximum 134275071

Test #84:

score: 0
Accepted
time: 11ms
memory: 36212kb

input:

32779

output:

101010101001010101010100110101010100101101010101000011010101001100110101010010101101010100100011010101000100110101010000101101010100000011010100110100110101001100101101010011000011010100101100110101001010101101010010100011010100100100110101001000101101010010000011010100011000110101000101001101010001...

result:

ok meet maximum 536821761

Test #85:

score: 0
Accepted
time: 13ms
memory: 35940kb

input:

32780

output:

010101010100101010101010011010101010010110101010100001101010100110011010101001010110101010010001101010100010011010101000010110101010000001101010011010011010100110010110101001100001101010010110011010100101010110101001010001101010010010011010100100010110101001000001101010001100011010100010100110101000...

result:

ok meet maximum 536854527

Test #86:

score: 0
Accepted
time: 4ms
memory: 36240kb

input:

32781

output:

101010101010010101010101001101010101001011010101010000110101010011001101010100101011010101001000110101010001001101010100001011010101000000110101001101001101010011001011010100110000110101001011001101010010101011010100101000110101001001001101010010001011010100100000110101000110001101010001010011010100...

result:

ok meet maximum 536887294

Test #87:

score: 0
Accepted
time: 8ms
memory: 37080kb

input:

32782

output:

000000000000000111111111111111011111111111110011111111111101011111111111100011111111111011011111111111010011111111111001011111111111000011111111110111011111111110110011111111110101011111111110100011111111110011011111111110010011111111110001011111111110000011111111101111011111111101110011111111101101...

result:

ok meet maximum 536920062

Test #88:

score: 0
Accepted
time: 15ms
memory: 37064kb

input:

32783

output:

000000000000000011111111111111101111111111111001111111111110101111111111110001111111111101101111111111101001111111111100101111111111100001111111111011101111111111011001111111111010101111111111010001111111111001101111111111001001111111111000101111111111000001111111110111101111111110111001111111110110...

result:

ok meet maximum 536952830

Test #89:

score: 0
Accepted
time: 7ms
memory: 37100kb

input:

32784

output:

100000000000000111111111111111011111111111110011111111111101011111111111100011111111111011011111111111010011111111111001011111111111000011111111110111011111111110110011111111110101011111111110100011111111110011011111111110010011111111110001011111111110000011111111101111011111111101110011111111101101...

result:

ok meet maximum 536985599

Test #90:

score: 0
Accepted
time: 11ms
memory: 37552kb

input:

65548

output:

110101011010101001010100101010110101011010101110101011010001110101011001101110101011001001110101011000101110101011000001110101010111001110101010110101110101010110001110101010101101110101010101001110101010100101110101010100001110101010011001110101010010101110101010010001110101010001101110101010001001...

result:

ok meet maximum 2147385345

Test #91:

score: 0
Accepted
time: 11ms
memory: 37612kb

input:

65549

output:

010101010101010110101010101000110101010100100110101010100010110101010100000110101010011000110101010010100110101010010010110101010010000110101010001100110101010001010110101010001000110101010000100110101010000010110101010000000110101001101000110101001100100110101001100010110101001100000110101001011000...

result:

ok meet maximum 2147450879

Test #92:

score: 0
Accepted
time: 15ms
memory: 37296kb

input:

65550

output:

101010101010101011010101010100011010101010010011010101010001011010101010000011010101001100011010101001010011010101001001011010101001000011010101000110011010101000101011010101000100011010101000010011010101000001011010101000000011010100110100011010100110010011010100110001011010100110000011010100101100...

result:

ok meet maximum 2147516414

Test #93:

score: 0
Accepted
time: 21ms
memory: 40028kb

input:

65551

output:

000000000000000011111111111111110111111111111110011111111111110101111111111111000111111111111011011111111111101001111111111110010111111111111000011111111111011101111111111101100111111111110101011111111111010001111111111100110111111111110010011111111111000101111111111100000111111111101111011111111110...

result:

ok meet maximum 2147581950

Test #94:

score: 0
Accepted
time: 19ms
memory: 39804kb

input:

65552

output:

000000000000000001111111111111111011111111111111001111111111111010111111111111100011111111111101101111111111110100111111111111001011111111111100001111111111101110111111111110110011111111111010101111111111101000111111111110011011111111111001001111111111100010111111111110000011111111110111101111111111...

result:

ok meet maximum 2147647486

Test #95:

score: 0
Accepted
time: 19ms
memory: 39760kb

input:

65553

output:

100000000000000011111111111111110111111111111110011111111111110101111111111111000111111111111011011111111111101001111111111110010111111111111000011111111111011101111111111101100111111111110101011111111111010001111111111100110111111111110010011111111111000101111111111100000111111111101111011111111110...

result:

ok meet maximum 2147713023

Test #96:

score: 0
Accepted
time: 22ms
memory: 42028kb

input:

131085

output:

101010101010010101010101010011010101010100101101010101010000110101010100110011010101010010101101010101001000110101010100010011010101010000101101010101000000110101010011010011010101001100101101010100110000110101010010110011010101001010101101010100101000110101010010010011010101001000101101010100100000...

result:

ok meet maximum 8589737985

Test #97:

score: 0
Accepted
time: 26ms
memory: 40348kb

input:

131086

output:

010101010101001010101010101001101010101010010110101010101000011010101010011001101010101001010110101010100100011010101010001001101010101000010110101010100000011010101001101001101010100110010110101010011000011010101001011001101010100101010110101010010100011010101001001001101010100100010110101010010000...

result:

ok meet maximum 8589869055

Test #98:

score: 0
Accepted
time: 21ms
memory: 40168kb

input:

131087

output:

101010101010100101010101010100110101010101001011010101010100001101010101001100110101010100101011010101010010001101010101000100110101010100001011010101010000001101010100110100110101010011001011010101001100001101010100101100110101010010101011010101001010001101010100100100110101010010001011010101001000...

result:

ok meet maximum 8590000126

Test #99:

score: 0
Accepted
time: 22ms
memory: 45728kb

input:

131088

output:

000000000000000001111111111111111101111111111111110011111111111111010111111111111110001111111111111011011111111111110100111111111111100101111111111111000011111111111101110111111111111011001111111111110101011111111111101000111111111111001101111111111110010011111111111100010111111111111000001111111111...

result:

ok meet maximum 8590131198

Test #100:

score: 0
Accepted
time: 26ms
memory: 45408kb

input:

131089

output:

000000000000000000111111111111111110111111111111111001111111111111101011111111111111000111111111111101101111111111111010011111111111110010111111111111100001111111111110111011111111111101100111111111111010101111111111110100011111111111100110111111111111001001111111111110001011111111111100000111111111...

result:

ok meet maximum 8590262270

Test #101:

score: 0
Accepted
time: 37ms
memory: 45884kb

input:

131090

output:

100000000000000001111111111111111101111111111111110011111111111111010111111111111110001111111111111011011111111111110100111111111111100101111111111111000011111111111101110111111111111011001111111111110101011111111111101000111111111111001101111111111110010011111111111100010111111111111000001111111111...

result:

ok meet maximum 8590393343

Test #102:

score: 0
Accepted
time: 7ms
memory: 34880kb

input:

8197

output:

101001010101010011010101001011010101000011010100110011010100101011010100100011010100010011010100001011010100000011010011010011001011010011000011010010110011010010101011010010100011010010010011010010001011010010000011010001100011010001010011010001001011010001000011010000110011010000101011010000100011...

result:

ok meet maximum 33509395

Test #103:

score: 0
Accepted
time: 4ms
memory: 35064kb

input:

16328

output:

100101010100101101010101110110101000111011010011011101101001001110110100010111011010000011101100111001110110011010111011001100011101100101101110110010100111011001001011101100100001110110001100111011000101011101100010001110110000110111011000010011101100000101110110000000111010111010011101011100101110...

result:

ok meet maximum 133114152

Test #104:

score: 0
Accepted
time: 6ms
memory: 35772kb

input:

32608

output:

001100100111001100110010011111001100010111110011000001111100101111011111001011100111110010110101111100101100011111001010110111110010101001111100101001011111001010000111110010011101111100100110011111001001010111110010010001111100100011011111001000100111110010000101111100100000011111000111100111110001...

result:

ok meet maximum 531233481

Test #105:

score: 0
Accepted
time: 13ms
memory: 37480kb

input:

65141

output:

101101110010111010010001101000101101111101000101001111101000100101111101000100001111101000011101111101000011001111101000010101111101000010001111101000001101111101000001001111101000000101111101000000001111100111110001111100111101101111100111101001111100111100101111100111100001111100111011101111100111...

result:

ok meet maximum 2120796035

Test #106:

score: 0
Accepted
time: 23ms
memory: 40216kb

input:

130420

output:

010001011010110010111101101011000011110110101011101111011010101100111101101010101011110110101010001111011010100110111101101010010011110110101000101111011010100000111101101001110011110110100110101111011010011000111101101001011011110110100101001111011010010010111101101001000011110110100011101111011010...

result:

ok meet maximum 8502797880

Test #107:

score: 0
Accepted
time: 4ms
memory: 34964kb

input:

8265

output:

000000010011111111111010000000000011000000000010111111111111000000000000111111111111101111111111100111111111101011111111110001111111110110111111111010011111111100101111111110000111111110111011111111011001111111101010111111110100011111111001101111111100100111111110001011111111000001111111011110111111...

result:

ok meet maximum 34068260

Test #108:

score: 0
Accepted
time: 4ms
memory: 35676kb

input:

16508

output:

110000000001000111111111110010000000000011100000000001001111111111110100000000000011000000000001011111111111110000000000000111111111111110111111111111001111111111101011111111111000111111111101101111111111010011111111110010111111111100001111111110111011111111101100111111111010101111111110100011111111...

result:

ok meet maximum 136067031

Test #109:

score: 0
Accepted
time: 7ms
memory: 37052kb

input:

33008

output:

000001000000000111111000000001000001111111111000010000000000111110000000001000011111111111000100000000000111100000000001000111111111111001000000000000111000000000001001111111111111010000000000000110000000000001011111111111111000000000000001111111111111110111111111111100111111111111010111111111111000...

result:

ok meet maximum 544351055

Test #110:

score: 0
Accepted
time: 16ms
memory: 39788kb

input:

65964

output:

111011010000000000110011111111111101010000000000001010000000000011011111111111110111111111111110011111111111110101111111111111000111111111111011011111111111101001111111111110010111111111111000011111111111011101111111111101100111111111110101011111111111010001111111111100110111111111110010011111111111...

result:

ok meet maximum 2174733396

Test #111:

score: 0
Accepted
time: 37ms
memory: 45936kb

input:

131692

output:

111111111110010010000000000011011000000000001011001111111111101010100000000000101010000000000110101111111111110011100000000000101001111111111110110100000000000110011111111111110101000000000000010100000000000011011111111111111011111111111111100111111111111110101111111111111100011111111111110110111111...

result:

ok meet maximum 8669480792

Test #112:

score: 0
Accepted
time: 7ms
memory: 35276kb

input:

15843

output:

100010111000001110100100001000101101111011101011000110001010111100111011100010100110001110101101001000101001011011101011010110001010010100011010110100010010100101110110101101001100101001001001101011011011001010110010011010100110110010111100100111100001111111101110111111110110011111111010101111111101...

result:

ok meet maximum 125318747

Test #113:

score: 0
Accepted
time: 3ms
memory: 35816kb

input:

31560

output:

000101010100100110101010110110010101010110011010101010111001010101110001101011100011100101001001001110101101111100010101100000111010101000010001010101111011101011100011000111000111001110010010010100011011011011111001001011000001101101010000101100101011110100110111000010110110001111010010100100001011...

result:

ok meet maximum 497623597

Test #114:

score: 0
Accepted
time: 7ms
memory: 37256kb

input:

64241

output:

010000101101001101111010010110110000101101001001111010010111110000101111000001111010001000010000101110111101111010011000110000100101111001111011010001010001100101110101110011010001110001100111110001110101000010010001010111101101110111000010110011000111101001101001000011110010111000100001101000111011...

result:

ok meet maximum 2062587185

Test #115:

score: 0
Accepted
time: 7ms
memory: 39964kb

input:

73307

output:

101101010001111101001011001000001011010011011111010010110110000010110100100111110100101110100000101101000101111101001011111000001011110000011111010001000010000010111011110111110100010001100000101110111001111101000100101000001011101101011111010001001110000010111011000111110100010100100000101110101101...

result:

ok meet maximum 2685953056

Test #116:

score: 0
Accepted
time: 20ms
memory: 40000kb

input:

129593

output:

100000111001000110000100011011100111101110010010100011000110110101110011100100111001110001100100101001111001101101101000111001001001111111100100010111111110010000011111111000111101111111100011100111111110001101011111111000110001111111100010110111111110001010011111111000100101111111100010000111111110...

result:

ok meet maximum 8395295323