QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#201654 | #5156. Going in Circles | Vengeful_Spirit# | WA | 15ms | 3852kb | C++14 | 1.7kb | 2023-10-05 15:52:07 | 2023-10-05 15:52:07 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int x;
int move_left(){
cout<<"? left"<<endl;
cin>>x;
return x;
}
int move_right(){
cout<<"? right"<<endl;
cin>>x;
return x;
}
int set_bit(int p){
if(x!=p){
cout<<"? flip"<<endl;
cin>>x;
return 1;
}
return 0;
}
/*
int p=0,C=50;
int a[100];
int move_left(){
// cout<<"left"<<endl;
p=(p-1+C)%C;
x=a[p];
return a[p];
}
int move_right(){
// cout<<"right"<<endl;
p=(p+1+C)%C;
x=a[p];
return a[p];
}
int set_bit(int po){
if(x!=po){
// cout<<"flip"<<endl;
a[p]^=1;
x=a[p];
return 1;
}
return 0;
}
*/
int check(int mid){
for(int i=1;i<=mid;i++){
set_bit(0);
move_right();
}
int ans=(x==0);
for(int i=1;i<=mid;i++){
move_left();
set_bit(1);
}
return ans;
}
int main(){
srand(time(0));
ios::sync_with_stdio(0);
cin.tie(0);
cin>>x;
for(int i=1;i<=30;i++){
set_bit(1);
move_left();
}
int l=3,r=30,mid=-1,res=-1;
while(l<=r){
int mid=(l+r)/2;
if(check(mid))res=mid,r=mid-1;
else l=mid+1;
}
if(res!=-1){
cout<<"! "<<res<<endl;
return 0;
}
int mod=0;
for(int i=0;i<30;i++){
int cur=rand()%2;
mod<<=1;
if(cur)mod|=1;
set_bit(cur);
move_right();
}
int my=0,cnt=0;
while(1){
my<<=1;
my|=x;
my&=((1<<30)-1);
cnt++;
if(cnt>=16000)assert(0);
move_right();
if(my==mod){
cout<<"! "<<cnt<<endl;
return 0;
}
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 10ms
memory: 3648kb
input:
0 1 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip...
result:
ok Queries used; 5592.
Test #2:
score: 0
Accepted
time: 6ms
memory: 3824kb
input:
1 1 1 0 1 0 1 1 0 1 0 1 1 1 0 1 1 0 1 1 0 1 1 0 1 0 1 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? left ? flip ? left...
result:
ok Queries used; 5440.
Test #3:
score: 0
Accepted
time: 6ms
memory: 3772kb
input:
0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 1 0 1 1 0 1 0 1 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left...
result:
ok Queries used; 5586.
Test #4:
score: 0
Accepted
time: 3ms
memory: 3720kb
input:
0 1 1 0 1 0 1 1 1 1 1 0 1 0 1 1 0 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip...
result:
ok Queries used; 4681.
Test #5:
score: 0
Accepted
time: 5ms
memory: 3812kb
input:
0 1 0 1 1 0 1 0 1 1 1 1 1 0 1 0 1 1 0 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip...
result:
ok Queries used; 4682.
Test #6:
score: 0
Accepted
time: 10ms
memory: 3660kb
input:
0 1 0 1 0 1 1 0 1 0 1 1 1 1 1 0 1 0 1 1 0 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left...
result:
ok Queries used; 4685.
Test #7:
score: 0
Accepted
time: 6ms
memory: 3724kb
input:
0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left...
result:
ok Queries used; 5598.
Test #8:
score: 0
Accepted
time: 13ms
memory: 3808kb
input:
0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left...
result:
ok Queries used; 5449.
Test #9:
score: 0
Accepted
time: 9ms
memory: 3776kb
input:
0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left...
result:
ok Queries used; 5604.
Test #10:
score: 0
Accepted
time: 6ms
memory: 3660kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 4700.
Test #11:
score: 0
Accepted
time: 13ms
memory: 3608kb
input:
0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left...
result:
ok Queries used; 4700.
Test #12:
score: 0
Accepted
time: 9ms
memory: 3668kb
input:
0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left...
result:
ok Queries used; 4701.
Test #13:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
0 1 0 1 1 0 1 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? flip ? left ? left ? left ? flip ? left ? left...
result:
ok Queries used; 641.
Test #14:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
0 1 1 0 1 0 1 1 1 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left...
result:
ok Queries used; 2285.
Test #15:
score: 0
Accepted
time: 4ms
memory: 3800kb
input:
0 1 1 0 1 0 1 0 1 1 1 1 1 0 1 1 1 1 0 1 0 1 0 1 1 0 1 1 1 0 1 1 1 1 0 1 0 1 0 1 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? flip...
result:
ok Queries used; 3798.
Test #16:
score: 0
Accepted
time: 11ms
memory: 3716kb
input:
0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left...
result:
ok Queries used; 5496.
Test #17:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left...
result:
ok Queries used; 5420.
Test #18:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left...
result:
ok Queries used; 5409.
Test #19:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left...
result:
ok Queries used; 5413.
Test #20:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
0 1 0 1 1 0 1 0 1 0 1 1 1 0 1 0 1 1 1 0 1 1 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? left ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? left ? flip ? left ? left...
result:
ok Queries used; 5513.
Test #21:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
1 1 1 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 1 1 1 1 1 1 0 1 0 1 0 1 1 1 0 1 1 0 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? flip...
result:
ok Queries used; 5579.
Test #22:
score: 0
Accepted
time: 7ms
memory: 3700kb
input:
1 0 1 1 0 1 1 1 0 1 1 1 0 1 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 0 1 1 1 0 1 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? flip ? left ? left ? flip ? left ? left ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left...
result:
ok Queries used; 5113.
Test #23:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
1 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 1 0 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? left ? flip ? left ? left ? left ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? flip ? left ? left ? left ? left ? flip ? left ? left ? right ? flip ? right ? flip ? ri...
result:
ok Queries used; 5308.
Test #24:
score: 0
Accepted
time: 5ms
memory: 3720kb
input:
0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip...
result:
ok Queries used; 5474.
Test #25:
score: 0
Accepted
time: 4ms
memory: 3724kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 5045.
Test #26:
score: 0
Accepted
time: 4ms
memory: 3716kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 5495.
Test #27:
score: 0
Accepted
time: 4ms
memory: 3800kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 5518.
Test #28:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 4591.
Test #29:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1 0 1 0 1
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? rig...
result:
ok Queries used; 120.
Test #30:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 0 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? right ? righ...
result:
ok Queries used; 142.
Test #31:
score: 0
Accepted
time: 1ms
memory: 3776kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right...
result:
ok Queries used; 148.
Test #32:
score: 0
Accepted
time: 1ms
memory: 3668kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 174.
Test #33:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 ...
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 180.
Test #34:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 192.
Test #35:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 196.
Test #36:
score: 0
Accepted
time: 2ms
memory: 3776kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 202.
Test #37:
score: 0
Accepted
time: 2ms
memory: 3648kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 672.
Test #38:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 1334.
Test #39:
score: 0
Accepted
time: 15ms
memory: 3716kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 2539.
Test #40:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 4279.
Test #41:
score: 0
Accepted
time: 4ms
memory: 3648kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 4670.
Test #42:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 5573.
Test #43:
score: 0
Accepted
time: 8ms
memory: 3852kb
input:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 5574.
Test #44:
score: 0
Accepted
time: 1ms
memory: 3780kb
input:
0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1 0 1 0 1
output:
? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? right ? right ? right ...
result:
ok Queries used; 123.
Test #45:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 0 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? ...
result:
ok Queries used; 146.
Test #46:
score: 0
Accepted
time: 1ms
memory: 3804kb
input:
0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? r...
result:
ok Queries used; 153.
Test #47:
score: 0
Accepted
time: 1ms
memory: 3812kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? f...
result:
ok Queries used; 180.
Test #48:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? ri...
result:
ok Queries used; 187.
Test #49:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? fl...
result:
ok Queries used; 200.
Test #50:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? rig...
result:
ok Queries used; 205.
Test #51:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? fli...
result:
ok Queries used; 212.
Test #52:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 702.
Test #53:
score: 0
Accepted
time: 5ms
memory: 3636kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 948.
Test #54:
score: 0
Accepted
time: 8ms
memory: 3780kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 1495.
Test #55:
score: 0
Accepted
time: 2ms
memory: 3720kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 3164.
Test #56:
score: 0
Accepted
time: 8ms
memory: 3664kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 4699.
Test #57:
score: 0
Accepted
time: 4ms
memory: 3712kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 5605.
Test #58:
score: 0
Accepted
time: 4ms
memory: 3780kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 5606.
Test #59:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1 0 1 0 1
output:
? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? right ? right ? right ? right...
result:
ok Queries used; 122.
Test #60:
score: 0
Accepted
time: 1ms
memory: 3848kb
input:
0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 0 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1
output:
? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ?...
result:
ok Queries used; 145.
Test #61:
score: 0
Accepted
time: 1ms
memory: 3668kb
input:
0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
output:
? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ?...
result:
ok Queries used; 150.
Test #62:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
1 0 1 0 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 1 0 1 0 1 0 1 ...
output:
? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? ...
result:
ok Queries used; 178.
Test #63:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 ...
output:
? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? f...
result:
ok Queries used; 186.
Test #64:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ?...
result:
ok Queries used; 194.
Test #65:
score: 0
Accepted
time: 2ms
memory: 3716kb
input:
1 0 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? r...
result:
ok Queries used; 201.
Test #66:
score: 0
Accepted
time: 4ms
memory: 3800kb
input:
1 0 1 1 1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 1 1 1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? flip ? left...
result:
ok Queries used; 714.
Test #67:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 0 1 1 1 0 1 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 1 0 1 1 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left...
result:
ok Queries used; 978.
Test #68:
score: 0
Accepted
time: 2ms
memory: 3780kb
input:
0 1 1 1 0 1 1 1 1 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 1 0 1 0 1 1 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? left ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 1137.
Test #69:
score: 0
Accepted
time: 4ms
memory: 3716kb
input:
1 0 1 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? flip ? left ? left ? righ...
result:
ok Queries used; 1317.
Test #70:
score: 0
Accepted
time: 3ms
memory: 3776kb
input:
1 1 0 1 1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 0 1 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left...
result:
ok Queries used; 1644.
Test #71:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
0 1 0 1 1 0 1 0 1 1 1 1 1 1 1 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? flip...
result:
ok Queries used; 1923.
Test #72:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
1 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left...
result:
ok Queries used; 2245.
Test #73:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? flip ? left...
result:
ok Queries used; 2544.
Test #74:
score: 0
Accepted
time: 3ms
memory: 3784kb
input:
1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 1 0 1 0 1 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? flip ? left ? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left...
result:
ok Queries used; 2839.
Test #75:
score: 0
Accepted
time: 7ms
memory: 3780kb
input:
0 1 1 0 1 0 1 1 1 1 1 1 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? flip ? left...
result:
ok Queries used; 3078.
Test #76:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
1 1 0 1 1 1 1 1 0 1 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? left ? flip ? left...
result:
ok Queries used; 3315.
Test #77:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left...
result:
ok Queries used; 3676.
Test #78:
score: 0
Accepted
time: 4ms
memory: 3716kb
input:
1 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? left ? left ? flip ? left ? left ? left...
result:
ok Queries used; 3797.
Test #79:
score: 0
Accepted
time: 6ms
memory: 3792kb
input:
0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? left ? left...
result:
ok Queries used; 4068.
Test #80:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 1 1 0 1 0 1 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left...
result:
ok Queries used; 4332.
Test #81:
score: 0
Accepted
time: 4ms
memory: 3796kb
input:
0 1 0 1 1 0 1 1 0 1 1 0 1 1 1 0 1 1 0 1 1 0 1 0 1 1 1 0 1 1 1 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip...
result:
ok Queries used; 4550.
Test #82:
score: 0
Accepted
time: 8ms
memory: 3720kb
input:
1 0 1 0 1 1 1 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1 1 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? left ? flip ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? flip ? left ? left ? left ? left ? flip ? left...
result:
ok Queries used; 4765.
Test #83:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
1 0 1 1 1 0 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 1 0 1 0 1 1 1 0 1 0 1 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left...
result:
ok Queries used; 5053.
Test #84:
score: 0
Accepted
time: 6ms
memory: 3768kb
input:
0 1 1 0 1 1 1 0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? flip...
result:
ok Queries used; 5251.
Test #85:
score: 0
Accepted
time: 13ms
memory: 3716kb
input:
0 1 1 0 1 1 0 1 0 1 1 1 1 0 1 1 1 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...
output:
? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? flip ? left ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? left ? flip ? left ? left ? flip...
result:
ok Queries used; 5415.
Test #86:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
1 1 1 0 1 0 1 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? flip ? left ? flip ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? left ? left ? left...
result:
ok Queries used; 5582.
Test #87:
score: 0
Accepted
time: 9ms
memory: 3716kb
input:
1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? flip ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? flip ? left ? left ? flip ? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? flip ? left ? left ? left ? flip ? left ? left ? flip ? left...
result:
ok Queries used; 5589.
Test #88:
score: 0
Accepted
time: 1ms
memory: 3668kb
input:
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1 0 1 0 1
output:
? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? righ...
result:
ok Queries used; 121.
Test #89:
score: 0
Accepted
time: 1ms
memory: 3780kb
input:
1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 0 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1
output:
? left ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? right...
result:
ok Queries used; 143.
Test #90:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
1 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
output:
? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ?...
result:
ok Queries used; 150.
Test #91:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ?...
result:
ok Queries used; 176.
Test #92:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 ...
output:
? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ?...
result:
ok Queries used; 181.
Test #93:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ?...
result:
ok Queries used; 193.
Test #94:
score: -100
Wrong Answer
time: 0ms
memory: 3720kb
input:
1 1 1 1 1 0 1 0 1 1 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 0 1 1 0 1 1 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
output:
? left ? left ? left ? left ? left ? flip ? left ? flip ? left ? left ? left ? left ? left ? left ? flip ? left ? left ? left ? flip ? left ? left ? left ? left ? left ? left ? flip ? left ? left ? flip ? left ? left ? left ? left ? flip ? left ? left ? left ? flip ? right ? flip ? right ? flip ? ri...
result:
wrong answer Wrong answer: correct guess, but used too many queries. Queries used: 619 (5 too many)