QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#201649 | #5156. Going in Circles | Vengeful_Spirit# | WA | 28ms | 3616kb | C++14 | 1.7kb | 2023-10-05 15:50:05 | 2023-10-05 15:50:06 |
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(){
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;
}
}
}
详细
Test #1:
score: 100
Accepted
time: 6ms
memory: 3496kb
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; 5591.
Test #2:
score: 0
Accepted
time: 4ms
memory: 3612kb
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; 5439.
Test #3:
score: 0
Accepted
time: 11ms
memory: 3436kb
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; 5590.
Test #4:
score: 0
Accepted
time: 0ms
memory: 3568kb
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; 4685.
Test #5:
score: 0
Accepted
time: 0ms
memory: 3604kb
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; 4686.
Test #6:
score: 0
Accepted
time: 0ms
memory: 3432kb
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; 4689.
Test #7:
score: 0
Accepted
time: 7ms
memory: 3432kb
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; 5602.
Test #8:
score: 0
Accepted
time: 11ms
memory: 3616kb
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; 5453.
Test #9:
score: 0
Accepted
time: 4ms
memory: 3436kb
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; 5602.
Test #10:
score: 0
Accepted
time: 3ms
memory: 3612kb
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; 4698.
Test #11:
score: 0
Accepted
time: 8ms
memory: 3440kb
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; 4698.
Test #12:
score: 0
Accepted
time: 7ms
memory: 3356kb
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; 4699.
Test #13:
score: 0
Accepted
time: 3ms
memory: 3436kb
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; 639.
Test #14:
score: 0
Accepted
time: 2ms
memory: 3448kb
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; 2283.
Test #15:
score: 0
Accepted
time: 0ms
memory: 3444kb
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; 3796.
Test #16:
score: 0
Accepted
time: 6ms
memory: 3436kb
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; 5494.
Test #17:
score: 0
Accepted
time: 5ms
memory: 3400kb
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; 5418.
Test #18:
score: 0
Accepted
time: 0ms
memory: 3444kb
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; 5407.
Test #19:
score: 0
Accepted
time: 5ms
memory: 3560kb
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; 5411.
Test #20:
score: 0
Accepted
time: 4ms
memory: 3552kb
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; 5511.
Test #21:
score: 0
Accepted
time: 4ms
memory: 3436kb
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; 5577.
Test #22:
score: 0
Accepted
time: 0ms
memory: 3376kb
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; 5111.
Test #23:
score: 0
Accepted
time: 0ms
memory: 3344kb
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; 5306.
Test #24:
score: 0
Accepted
time: 0ms
memory: 3400kb
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; 5472.
Test #25:
score: 0
Accepted
time: 15ms
memory: 3436kb
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; 5043.
Test #26:
score: 0
Accepted
time: 0ms
memory: 3376kb
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; 5493.
Test #27:
score: 0
Accepted
time: 3ms
memory: 3376kb
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; 5519.
Test #28:
score: 0
Accepted
time: 7ms
memory: 3440kb
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; 4592.
Test #29:
score: 0
Accepted
time: 1ms
memory: 3396kb
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: 3376kb
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: 3432kb
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: 0ms
memory: 3348kb
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: 3608kb
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: 0ms
memory: 3376kb
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: 1ms
memory: 3556kb
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: 1ms
memory: 3608kb
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: 0ms
memory: 3396kb
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; 673.
Test #38:
score: 0
Accepted
time: 0ms
memory: 3612kb
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; 1335.
Test #39:
score: 0
Accepted
time: 3ms
memory: 3340kb
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; 2540.
Test #40:
score: 0
Accepted
time: 8ms
memory: 3392kb
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; 4280.
Test #41:
score: 0
Accepted
time: 3ms
memory: 3604kb
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; 4671.
Test #42:
score: 0
Accepted
time: 11ms
memory: 3436kb
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: 5ms
memory: 3396kb
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: 0ms
memory: 3396kb
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: 3444kb
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: 0ms
memory: 3400kb
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: 3556kb
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: 2ms
memory: 3436kb
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: 2ms
memory: 3564kb
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: 2ms
memory: 3448kb
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: 2ms
memory: 3396kb
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: 6ms
memory: 3432kb
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: 3ms
memory: 3400kb
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: 0ms
memory: 3436kb
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: 3ms
memory: 3600kb
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: 4ms
memory: 3440kb
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: 0ms
memory: 3604kb
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; 5602.
Test #58:
score: 0
Accepted
time: 6ms
memory: 3428kb
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; 5603.
Test #59:
score: 0
Accepted
time: 0ms
memory: 3436kb
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: 3376kb
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: 0ms
memory: 3432kb
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: 0ms
memory: 3568kb
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: 3616kb
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: 3448kb
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: 1ms
memory: 3556kb
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: 0ms
memory: 3436kb
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; 711.
Test #67:
score: 0
Accepted
time: 0ms
memory: 3500kb
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; 975.
Test #68:
score: 0
Accepted
time: 6ms
memory: 3396kb
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; 1134.
Test #69:
score: 0
Accepted
time: 0ms
memory: 3436kb
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; 1314.
Test #70:
score: 0
Accepted
time: 2ms
memory: 3496kb
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; 1641.
Test #71:
score: 0
Accepted
time: 2ms
memory: 3436kb
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; 1920.
Test #72:
score: 0
Accepted
time: 3ms
memory: 3392kb
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; 2242.
Test #73:
score: 0
Accepted
time: 14ms
memory: 3492kb
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; 2541.
Test #74:
score: 0
Accepted
time: 5ms
memory: 3440kb
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; 2836.
Test #75:
score: 0
Accepted
time: 0ms
memory: 3440kb
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: 3444kb
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: 5ms
memory: 3340kb
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: 3440kb
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: 3ms
memory: 3496kb
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: 4ms
memory: 3444kb
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: 3440kb
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: 6ms
memory: 3448kb
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; 4769.
Test #83:
score: 0
Accepted
time: 28ms
memory: 3376kb
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; 5057.
Test #84:
score: 0
Accepted
time: 0ms
memory: 3448kb
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; 5255.
Test #85:
score: 0
Accepted
time: 6ms
memory: 3400kb
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; 5419.
Test #86:
score: 0
Accepted
time: 8ms
memory: 3556kb
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; 5586.
Test #87:
score: 0
Accepted
time: 0ms
memory: 3400kb
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: 3444kb
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: 0ms
memory: 3436kb
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: 3560kb
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: 3396kb
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: 3440kb
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: 3600kb
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: 6ms
memory: 3556kb
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)