QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#120458 | #5156. Going in Circles | PetroTarnavskyi# | AC ✓ | 65ms | 3556kb | C++17 | 1.8kb | 2023-07-06 18:26:46 | 2023-07-06 18:26:48 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using ULL = unsigned long long;
using VI = vector<int>;
using VL = vector<LL>;
using PII = pair<int, int>;
using PLL = pair<LL, LL>;
using ld = long double;
#define SZ(a) (int)a.size()
#define ALL(a) a.begin(), a.end()
#define MP make_pair
#define PB push_back
#define EB emplace_back
#define F first
#define S second
#define FOR(i, a, b) for (int i = (a); i<(b); ++i)
#define RFOR(i, b, a) for (int i = (b)-1; i>=(a); --i)
#define FILL(a, b) memset(a, b, sizeof(a))
int hs = 447477;
int val = hs;
const int len = 20;
void check(int x)
{
int a = 0;
FOR (i, 0, x)
{
cout << "? left" << endl;
cin >> a;
}
if (a == 0)
{
cout << "! " << x << endl;
exit(0);
}
FOR (i, 0, x)
{
cout << "? right" << endl;
cin >> a;
}
}
void build()
{
int x;
cin >> x;
if (x == 0)
{
cout << "? flip" << endl;
cin >> x;
}
cout << "? right" << endl;
FOR (i, 1, len)
{
cin >> x;
if (x == 1)
{
cout << "? flip" << endl;
cin >> x;
check(i);
}
if ((hs >> i) & 1)
{
cout << "? flip" << endl;
cin >> x;
}
cout << "? right" << endl;
}
}
VI v;
bool bad()
{
if (SZ(v) == 1) return true;
if (SZ(v) % 2 == 0) return true;
int l = v.back() - v[0];
if (l & 1) return true;
l /= 2;
FOR (i, 0, SZ(v) / 2)
{
if (v[i] + l != v[i + SZ(v) / 2]) return true;
}
cout << "! " << l << endl;
exit(0);
return false;
}
void solve()
{
build();
v.PB(len - 1);
int idx = len;
int x;
while (bad())
{
cin >> x;
val >>= 1;
val += x << (len - 1);
if (val == hs)
v.PB(idx);
idx++;
cout << "? right" << endl;
}
assert(0);
}
int main()
{
//ios_base::sync_with_stdio(0);
//cin.tie(0);
int t = 1;
//cin >> t;
while (t--)
{
solve();
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 51ms
memory: 3496kb
input:
0 1 1 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ?...
result:
ok Queries used; 10305.
Test #2:
score: 0
Accepted
time: 5ms
memory: 3516kb
input:
1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 1 1 0 0 1 1 0 0 0 1 0 ...
output:
? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 9839.
Test #3:
score: 0
Accepted
time: 11ms
memory: 3380kb
input:
0 1 0 1 0 0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ?...
result:
ok Queries used; 10134.
Test #4:
score: 0
Accepted
time: 11ms
memory: 3496kb
input:
0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 8470.
Test #5:
score: 0
Accepted
time: 6ms
memory: 3516kb
input:
0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 8472.
Test #6:
score: 0
Accepted
time: 38ms
memory: 3492kb
input:
0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 8474.
Test #7:
score: 0
Accepted
time: 22ms
memory: 3360kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 10033.
Test #8:
score: 0
Accepted
time: 22ms
memory: 3384kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 9735.
Test #9:
score: 0
Accepted
time: 39ms
memory: 3552kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 10033.
Test #10:
score: 0
Accepted
time: 11ms
memory: 3272kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 8223.
Test #11:
score: 0
Accepted
time: 14ms
memory: 3344kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 8225.
Test #12:
score: 0
Accepted
time: 6ms
memory: 3384kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 8227.
Test #13:
score: 0
Accepted
time: 8ms
memory: 3512kb
input:
0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? r...
result:
ok Queries used; 316.
Test #14:
score: 0
Accepted
time: 8ms
memory: 3368kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? right ? right ? right...
result:
ok Queries used; 3479.
Test #15:
score: 0
Accepted
time: 11ms
memory: 3512kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 1 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 1 1 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? right ...
result:
ok Queries used; 6472.
Test #16:
score: 0
Accepted
time: 13ms
memory: 3552kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 9856.
Test #17:
score: 0
Accepted
time: 17ms
memory: 3388kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? lef...
result:
ok Queries used; 9710.
Test #18:
score: 0
Accepted
time: 2ms
memory: 3368kb
input:
0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 0 0 1 0 1 1 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ?...
result:
ok Queries used; 9814.
Test #19:
score: 0
Accepted
time: 24ms
memory: 3384kb
input:
1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 0 0 0 1 1 ...
output:
? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ...
result:
ok Queries used; 9789.
Test #20:
score: 0
Accepted
time: 5ms
memory: 3380kb
input:
0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 10104.
Test #21:
score: 0
Accepted
time: 14ms
memory: 3476kb
input:
1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 ...
output:
? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? l...
result:
ok Queries used; 10236.
Test #22:
score: 0
Accepted
time: 10ms
memory: 3376kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 9289.
Test #23:
score: 0
Accepted
time: 9ms
memory: 3372kb
input:
1 1 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? r...
result:
ok Queries used; 9707.
Test #24:
score: 0
Accepted
time: 26ms
memory: 3380kb
input:
0 1 1 0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ?...
result:
ok Queries used; 10031.
Test #25:
score: 0
Accepted
time: 27ms
memory: 3508kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 0 1 1 1 0 0 0 1 0 1 0 1 0 0 0 1 1 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 8913.
Test #26:
score: 0
Accepted
time: 14ms
memory: 3492kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 1 0 1 0 0 0 0 0 0 1 0 0 1 0 1 1 1 0 1 1 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 9813.
Test #27:
score: 0
Accepted
time: 17ms
memory: 3512kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 1 0 1 1 1 0 0 1 0 1 0 0 0 1 1 0 1 1 1 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 9865.
Test #28:
score: 0
Accepted
time: 19ms
memory: 3364kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 1 0 1 1 0 0 1 0 1 0 0 0 1 1 1 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 8011.
Test #29:
score: 0
Accepted
time: 2ms
memory: 3508kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ! 3
result:
ok Queries used; 16.
Test #30:
score: 0
Accepted
time: 1ms
memory: 3476kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ! 4
result:
ok Queries used; 25.
Test #31:
score: 0
Accepted
time: 2ms
memory: 3388kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ! 5
result:
ok Queries used; 37.
Test #32:
score: 0
Accepted
time: 2ms
memory: 3384kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 51.
Test #33:
score: 0
Accepted
time: 0ms
memory: 3392kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 67.
Test #34:
score: 0
Accepted
time: 1ms
memory: 3388kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 85.
Test #35:
score: 0
Accepted
time: 2ms
memory: 3384kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 105.
Test #36:
score: 0
Accepted
time: 1ms
memory: 3408kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 127.
Test #37:
score: 0
Accepted
time: 4ms
memory: 3380kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 629.
Test #38:
score: 0
Accepted
time: 6ms
memory: 3416kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 1953.
Test #39:
score: 0
Accepted
time: 4ms
memory: 3388kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 4363.
Test #40:
score: 0
Accepted
time: 13ms
memory: 3384kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 7843.
Test #41:
score: 0
Accepted
time: 21ms
memory: 3392kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 8625.
Test #42:
score: 0
Accepted
time: 11ms
memory: 3544kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 10429.
Test #43:
score: 0
Accepted
time: 12ms
memory: 3380kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 10431.
Test #44:
score: 0
Accepted
time: 0ms
memory: 3368kb
input:
0 1 0 0 1 1 0 1 0 0
output:
? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ! 3
result:
ok Queries used; 9.
Test #45:
score: 0
Accepted
time: 2ms
memory: 3384kb
input:
0 1 0 0 1 0 1 0 0 1 0 0
output:
? flip ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ! 4
result:
ok Queries used; 11.
Test #46:
score: 0
Accepted
time: 2ms
memory: 3476kb
input:
0 1 0 0 1 0 0 1 1 0 1 0 1 0 0
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ! 5
result:
ok Queries used; 14.
Test #47:
score: 0
Accepted
time: 2ms
memory: 3380kb
input:
0 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ! 6
result:
ok Queries used; 17.
Test #48:
score: 0
Accepted
time: 2ms
memory: 3364kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 0
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ! 7
result:
ok Queries used; 20.
Test #49:
score: 0
Accepted
time: 1ms
memory: 3344kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 0
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ! 8
result:
ok Queries used; 23.
Test #50:
score: 0
Accepted
time: 2ms
memory: 3380kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 0
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ! 9
result:
ok Queries used; 26.
Test #51:
score: 0
Accepted
time: 3ms
memory: 3360kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 0
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ! 10
result:
ok Queries used; 29.
Test #52:
score: 0
Accepted
time: 3ms
memory: 3384kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 231.
Test #53:
score: 0
Accepted
time: 3ms
memory: 3552kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 723.
Test #54:
score: 0
Accepted
time: 7ms
memory: 3548kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 1817.
Test #55:
score: 0
Accepted
time: 19ms
memory: 3476kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 5155.
Test #56:
score: 0
Accepted
time: 32ms
memory: 3368kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 8225.
Test #57:
score: 0
Accepted
time: 19ms
memory: 3380kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 10031.
Test #58:
score: 0
Accepted
time: 28ms
memory: 3412kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 10033.
Test #59:
score: 0
Accepted
time: 2ms
memory: 3492kb
input:
0 1 1 0 1 0 0 1 1 0 1 0 0
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ! 3
result:
ok Queries used; 12.
Test #60:
score: 0
Accepted
time: 0ms
memory: 3340kb
input:
0 1 1 0 1 0 0 1 0 1 0 0 1 0 0
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ! 4
result:
ok Queries used; 14.
Test #61:
score: 0
Accepted
time: 1ms
memory: 3384kb
input:
0 1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 0
output:
? flip ? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ! 5
result:
ok Queries used; 29.
Test #62:
score: 0
Accepted
time: 1ms
memory: 3384kb
input:
1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0
output:
? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ! 6
result:
ok Queries used; 23.
Test #63:
score: 0
Accepted
time: 2ms
memory: 3360kb
input:
1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 0
output:
? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ! 7
result:
ok Queries used; 19.
Test #64:
score: 0
Accepted
time: 1ms
memory: 3548kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? ri...
result:
ok Queries used; 59.
Test #65:
score: 0
Accepted
time: 2ms
memory: 3380kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ?...
result:
ok Queries used; 48.
Test #66:
score: 0
Accepted
time: 5ms
memory: 3516kb
input:
1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 ...
output:
? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ?...
result:
ok Queries used; 549.
Test #67:
score: 0
Accepted
time: 9ms
memory: 3384kb
input:
0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? l...
result:
ok Queries used; 1005.
Test #68:
score: 0
Accepted
time: 0ms
memory: 3476kb
input:
0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 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 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 1379.
Test #69:
score: 0
Accepted
time: 13ms
memory: 3408kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? l...
result:
ok Queries used; 1729.
Test #70:
score: 0
Accepted
time: 5ms
memory: 3516kb
input:
1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 ...
output:
? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ?...
result:
ok Queries used; 2351.
Test #71:
score: 0
Accepted
time: 5ms
memory: 3272kb
input:
0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? r...
result:
ok Queries used; 2874.
Test #72:
score: 0
Accepted
time: 15ms
memory: 3556kb
input:
1 1 0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? ri...
result:
ok Queries used; 3473.
Test #73:
score: 0
Accepted
time: 13ms
memory: 3388kb
input:
0 1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? r...
result:
ok Queries used; 4078.
Test #74:
score: 0
Accepted
time: 4ms
memory: 3508kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? ri...
result:
ok Queries used; 4740.
Test #75:
score: 0
Accepted
time: 6ms
memory: 3360kb
input:
0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 5331.
Test #76:
score: 0
Accepted
time: 11ms
memory: 3556kb
input:
1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 ...
output:
? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 5727.
Test #77:
score: 0
Accepted
time: 1ms
memory: 3388kb
input:
0 1 1 0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ?...
result:
ok Queries used; 6437.
Test #78:
score: 0
Accepted
time: 13ms
memory: 3356kb
input:
1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 ...
output:
? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ?...
result:
ok Queries used; 6573.
Test #79:
score: 0
Accepted
time: 9ms
memory: 3496kb
input:
0 1 1 0 1 0 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? ...
result:
ok Queries used; 7253.
Test #80:
score: 0
Accepted
time: 10ms
memory: 3364kb
input:
1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 ...
output:
? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 7818.
Test #81:
score: 0
Accepted
time: 18ms
memory: 3384kb
input:
0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? ...
result:
ok Queries used; 8134.
Test #82:
score: 0
Accepted
time: 12ms
memory: 3384kb
input:
1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 ...
output:
? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 8624.
Test #83:
score: 0
Accepted
time: 5ms
memory: 3272kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ?...
result:
ok Queries used; 9210.
Test #84:
score: 0
Accepted
time: 14ms
memory: 3472kb
input:
0 1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ?...
result:
ok Queries used; 9599.
Test #85:
score: 0
Accepted
time: 28ms
memory: 3552kb
input:
0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 9934.
Test #86:
score: 0
Accepted
time: 27ms
memory: 3548kb
input:
1 1 0 1 0 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ?...
result:
ok Queries used; 10285.
Test #87:
score: 0
Accepted
time: 21ms
memory: 3496kb
input:
1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 ...
output:
? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? r...
result:
ok Queries used; 10160.
Test #88:
score: 0
Accepted
time: 1ms
memory: 3508kb
input:
1 1 0 1 0 0 1 1 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ! 3
result:
ok Queries used; 11.
Test #89:
score: 0
Accepted
time: 2ms
memory: 3372kb
input:
1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ! 4
result:
ok Queries used; 20.
Test #90:
score: 0
Accepted
time: 2ms
memory: 3552kb
input:
1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 0
output:
? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ! 5
result:
ok Queries used; 29.
Test #91:
score: 0
Accepted
time: 2ms
memory: 3384kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ! 6
result:
ok Queries used; 31.
Test #92:
score: 0
Accepted
time: 2ms
memory: 3380kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 54.
Test #93:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 0
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 70.
Test #94:
score: 0
Accepted
time: 4ms
memory: 3272kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 387.
Test #95:
score: 0
Accepted
time: 8ms
memory: 3408kb
input:
1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ?...
result:
ok Queries used; 573.
Test #96:
score: 0
Accepted
time: 8ms
memory: 3416kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? ...
result:
ok Queries used; 871.
Test #97:
score: 0
Accepted
time: 14ms
memory: 3384kb
input:
1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 1081.
Test #98:
score: 0
Accepted
time: 7ms
memory: 3388kb
input:
1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ?...
result:
ok Queries used; 1321.
Test #99:
score: 0
Accepted
time: 16ms
memory: 3392kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ?...
result:
ok Queries used; 1425.
Test #100:
score: 0
Accepted
time: 3ms
memory: 3476kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 1561.
Test #101:
score: 0
Accepted
time: 6ms
memory: 3368kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ?...
result:
ok Queries used; 1900.
Test #102:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 2050.
Test #103:
score: 0
Accepted
time: 26ms
memory: 3548kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 2286.
Test #104:
score: 0
Accepted
time: 9ms
memory: 3384kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? ri...
result:
ok Queries used; 2507.
Test #105:
score: 0
Accepted
time: 11ms
memory: 3552kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 2641.
Test #106:
score: 0
Accepted
time: 0ms
memory: 3516kb
input:
0 1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ?...
result:
ok Queries used; 2928.
Test #107:
score: 0
Accepted
time: 3ms
memory: 3508kb
input:
1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 ...
output:
? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? l...
result:
ok Queries used; 2868.
Test #108:
score: 0
Accepted
time: 8ms
memory: 3480kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? ...
result:
ok Queries used; 3231.
Test #109:
score: 0
Accepted
time: 5ms
memory: 3380kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 3388.
Test #110:
score: 0
Accepted
time: 6ms
memory: 3272kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 3731.
Test #111:
score: 0
Accepted
time: 4ms
memory: 3268kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? ri...
result:
ok Queries used; 3808.
Test #112:
score: 0
Accepted
time: 0ms
memory: 3512kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? l...
result:
ok Queries used; 4078.
Test #113:
score: 0
Accepted
time: 20ms
memory: 3548kb
input:
1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ?...
result:
ok Queries used; 4339.
Test #114:
score: 0
Accepted
time: 15ms
memory: 3344kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 4634.
Test #115:
score: 0
Accepted
time: 6ms
memory: 3548kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 4603.
Test #116:
score: 0
Accepted
time: 5ms
memory: 3388kb
input:
1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ?...
result:
ok Queries used; 4740.
Test #117:
score: 0
Accepted
time: 19ms
memory: 3344kb
input:
0 1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? r...
result:
ok Queries used; 5064.
Test #118:
score: 0
Accepted
time: 18ms
memory: 3472kb
input:
1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 ...
output:
? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ?...
result:
ok Queries used; 5336.
Test #119:
score: 0
Accepted
time: 10ms
memory: 3496kb
input:
1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 ...
output:
? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? ri...
result:
ok Queries used; 5494.
Test #120:
score: 0
Accepted
time: 16ms
memory: 3492kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 5709.
Test #121:
score: 0
Accepted
time: 23ms
memory: 3544kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? ri...
result:
ok Queries used; 6000.
Test #122:
score: 0
Accepted
time: 14ms
memory: 3472kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? ri...
result:
ok Queries used; 6119.
Test #123:
score: 0
Accepted
time: 14ms
memory: 3376kb
input:
1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 ...
output:
? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? l...
result:
ok Queries used; 6156.
Test #124:
score: 0
Accepted
time: 21ms
memory: 3476kb
input:
1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 0 1 0 0 1 ...
output:
? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 6400.
Test #125:
score: 0
Accepted
time: 8ms
memory: 3516kb
input:
1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 0 1 0 0 ...
output:
? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? r...
result:
ok Queries used; 6617.
Test #126:
score: 0
Accepted
time: 13ms
memory: 3384kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 7015.
Test #127:
score: 0
Accepted
time: 14ms
memory: 3388kb
input:
0 1 1 0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 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 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? ...
result:
ok Queries used; 7122.
Test #128:
score: 0
Accepted
time: 33ms
memory: 3408kb
input:
1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 ...
output:
? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? ...
result:
ok Queries used; 7337.
Test #129:
score: 0
Accepted
time: 16ms
memory: 3532kb
input:
0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? ...
result:
ok Queries used; 7530.
Test #130:
score: 0
Accepted
time: 6ms
memory: 3552kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? l...
result:
ok Queries used; 7617.
Test #131:
score: 0
Accepted
time: 6ms
memory: 3512kb
input:
1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ?...
result:
ok Queries used; 7888.
Test #132:
score: 0
Accepted
time: 21ms
memory: 3376kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? l...
result:
ok Queries used; 8003.
Test #133:
score: 0
Accepted
time: 16ms
memory: 3556kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 8353.
Test #134:
score: 0
Accepted
time: 15ms
memory: 3384kb
input:
1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ?...
result:
ok Queries used; 8471.
Test #135:
score: 0
Accepted
time: 17ms
memory: 3380kb
input:
1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 ...
output:
? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? ...
result:
ok Queries used; 8694.
Test #136:
score: 0
Accepted
time: 22ms
memory: 3512kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 8973.
Test #137:
score: 0
Accepted
time: 18ms
memory: 3388kb
input:
1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ?...
result:
ok Queries used; 9025.
Test #138:
score: 0
Accepted
time: 22ms
memory: 3384kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? ri...
result:
ok Queries used; 9293.
Test #139:
score: 0
Accepted
time: 10ms
memory: 3380kb
input:
0 1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? r...
result:
ok Queries used; 9554.
Test #140:
score: 0
Accepted
time: 33ms
memory: 3552kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 9630.
Test #141:
score: 0
Accepted
time: 28ms
memory: 3376kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 9956.
Test #142:
score: 0
Accepted
time: 6ms
memory: 3552kb
input:
0 1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? r...
result:
ok Queries used; 10052.
Test #143:
score: 0
Accepted
time: 65ms
memory: 3376kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? ...
result:
ok Queries used; 10394.
Test #144:
score: 0
Accepted
time: 27ms
memory: 3508kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? l...
result:
ok Queries used; 10178.
Test #145:
score: 0
Accepted
time: 18ms
memory: 3480kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? ...
result:
ok Queries used; 10431.
Test #146:
score: 0
Accepted
time: 2ms
memory: 3272kb
input:
1 0 1 0 0 1 0 0 1 1 0 1 0 0
output:
? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ! 3
result:
ok Queries used; 13.
Test #147:
score: 0
Accepted
time: 0ms
memory: 3344kb
input:
0 1 1 0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 0
output:
? flip ? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ! 4
result:
ok Queries used; 19.
Test #148:
score: 0
Accepted
time: 0ms
memory: 3380kb
input:
1 0 0 1 0 0 1 1 0 1 0 1 0 0
output:
? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ! 5
result:
ok Queries used; 13.
Test #149:
score: 0
Accepted
time: 2ms
memory: 3552kb
input:
1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0
output:
? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ! 6
result:
ok Queries used; 16.
Test #150:
score: 0
Accepted
time: 0ms
memory: 3496kb
input:
0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 0
output:
? flip ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ! 7
result:
ok Queries used; 29.
Test #151:
score: 0
Accepted
time: 0ms
memory: 3392kb
input:
0 1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 0
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? ...
result:
ok Queries used; 46.
Test #152:
score: 0
Accepted
time: 3ms
memory: 3556kb
input:
0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 0
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 54.
Test #153:
score: 0
Accepted
time: 1ms
memory: 3368kb
input:
0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 0
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? ...
result:
ok Queries used; 77.
Test #154:
score: 0
Accepted
time: 1ms
memory: 3356kb
input:
0 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ...
result:
ok Queries used; 341.
Test #155:
score: 0
Accepted
time: 5ms
memory: 3496kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? r...
result:
ok Queries used; 489.
Test #156:
score: 0
Accepted
time: 2ms
memory: 3384kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 649.
Test #157:
score: 0
Accepted
time: 5ms
memory: 3376kb
input:
0 1 1 0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? r...
result:
ok Queries used; 759.
Test #158:
score: 0
Accepted
time: 2ms
memory: 3552kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 917.
Test #159:
score: 0
Accepted
time: 5ms
memory: 3548kb
input:
0 1 0 1 0 0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? r...
result:
ok Queries used; 1313.
Test #160:
score: 0
Accepted
time: 4ms
memory: 3372kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? right ? right ? right...
result:
ok Queries used; 1306.
Test #161:
score: 0
Accepted
time: 5ms
memory: 3276kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? le...
result:
ok Queries used; 1671.
Test #162:
score: 0
Accepted
time: 6ms
memory: 3544kb
input:
0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 0 1 0 0 0 1 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ...
result:
ok Queries used; 1900.
Test #163:
score: 0
Accepted
time: 6ms
memory: 3416kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? lef...
result:
ok Queries used; 2057.
Test #164:
score: 0
Accepted
time: 14ms
memory: 3364kb
input:
0 1 1 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 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 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 1 0 1 0 0 0 0 1 0 0 0 1 0 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ?...
result:
ok Queries used; 2178.
Test #165:
score: 0
Accepted
time: 1ms
memory: 3368kb
input:
1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
output:
? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? r...
result:
ok Queries used; 2390.
Test #166:
score: 0
Accepted
time: 5ms
memory: 3268kb
input:
0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 0 1 0 0 0 1 1 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 ...
output:
? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left...
result:
ok Queries used; 2579.
Test #167:
score: 0
Accepted
time: 5ms
memory: 3376kb
input:
0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? l...
result:
ok Queries used; 2887.
Test #168:
score: 0
Accepted
time: 9ms
memory: 3384kb
input:
0 1 1 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 1 0 1 1 0 0 1 1 0 1 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 1 1 1 0 1 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? l...
result:
ok Queries used; 2898.
Test #169:
score: 0
Accepted
time: 5ms
memory: 3380kb
input:
0 1 0 1 0 0 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 1 1 0 0 0 1 0 0 0 1 0 1 0 1 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? le...
result:
ok Queries used; 3129.
Test #170:
score: 0
Accepted
time: 0ms
memory: 3368kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 1 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? right ? right ? right...
result:
ok Queries used; 3408.
Test #171:
score: 0
Accepted
time: 13ms
memory: 3392kb
input:
0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 0 1 0 0 1 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? rig...
result:
ok Queries used; 3639.
Test #172:
score: 0
Accepted
time: 9ms
memory: 3368kb
input:
0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ...
result:
ok Queries used; 3701.
Test #173:
score: 0
Accepted
time: 0ms
memory: 3344kb
input:
1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 3974.
Test #174:
score: 0
Accepted
time: 5ms
memory: 3508kb
input:
0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 1 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ?...
result:
ok Queries used; 4324.
Test #175:
score: 0
Accepted
time: 6ms
memory: 3344kb
input:
0 1 0 1 0 0 1 0 0 1 0 0 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 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right...
result:
ok Queries used; 4457.
Test #176:
score: 0
Accepted
time: 5ms
memory: 3480kb
input:
0 1 1 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ?...
result:
ok Queries used; 4515.
Test #177:
score: 0
Accepted
time: 12ms
memory: 3264kb
input:
0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ?...
result:
ok Queries used; 4791.
Test #178:
score: 0
Accepted
time: 5ms
memory: 3372kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? lef...
result:
ok Queries used; 5084.
Test #179:
score: 0
Accepted
time: 6ms
memory: 3416kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 5077.
Test #180:
score: 0
Accepted
time: 9ms
memory: 3416kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? righ...
result:
ok Queries used; 5306.
Test #181:
score: 0
Accepted
time: 6ms
memory: 3268kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? right ? right ? flip...
result:
ok Queries used; 5490.
Test #182:
score: 0
Accepted
time: 5ms
memory: 3372kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? right ...
result:
ok Queries used; 5835.
Test #183:
score: 0
Accepted
time: 13ms
memory: 3372kb
input:
0 1 0 1 0 0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 ...
output:
? flip ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? right ...
result:
ok Queries used; 5953.
Test #184:
score: 0
Accepted
time: 1ms
memory: 3508kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left...
result:
ok Queries used; 6117.
Test #185:
score: 0
Accepted
time: 10ms
memory: 3516kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? right ? right ? right ?...
result:
ok Queries used; 6457.
Test #186:
score: 0
Accepted
time: 11ms
memory: 3492kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 1 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? left...
result:
ok Queries used; 6649.
Test #187:
score: 0
Accepted
time: 17ms
memory: 3364kb
input:
0 1 1 0 1 0 0 1 0 0 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 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? left ? left ? left ?...
result:
ok Queries used; 6880.
Test #188:
score: 0
Accepted
time: 4ms
memory: 3500kb
input:
0 1 0 0 1 0 0 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 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? righ...
result:
ok Queries used; 7064.
Test #189:
score: 0
Accepted
time: 21ms
memory: 3348kb
input:
1 0 0 1 0 0 1 1 0 1 0 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 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 ...
output:
? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? ...
result:
ok Queries used; 7355.
Test #190:
score: 0
Accepted
time: 11ms
memory: 3356kb
input:
0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 1 1 1 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 7454.
Test #191:
score: 0
Accepted
time: 6ms
memory: 3384kb
input:
1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 ...
output:
? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? l...
result:
ok Queries used; 7532.
Test #192:
score: 0
Accepted
time: 28ms
memory: 3496kb
input:
1 0 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 1 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 ...
output:
? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? fli...
result:
ok Queries used; 7780.
Test #193:
score: 0
Accepted
time: 11ms
memory: 3364kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? righ...
result:
ok Queries used; 7848.
Test #194:
score: 0
Accepted
time: 4ms
memory: 3388kb
input:
0 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? ...
result:
ok Queries used; 8332.
Test #195:
score: 0
Accepted
time: 9ms
memory: 3508kb
input:
0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 ...
output:
? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ...
result:
ok Queries used; 8330.
Test #196:
score: 0
Accepted
time: 12ms
memory: 3548kb
input:
1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 0 1 0 0 1 0 0 0 ...
output:
? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? righ...
result:
ok Queries used; 8635.
Test #197:
score: 0
Accepted
time: 24ms
memory: 3548kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? le...
result:
ok Queries used; 8802.
Test #198:
score: 0
Accepted
time: 8ms
memory: 3360kb
input:
0 1 1 0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? flip ? right ? flip ? right ? right ? right ? right ? right ? r...
result:
ok Queries used; 9006.
Test #199:
score: 0
Accepted
time: 22ms
memory: 3552kb
input:
0 1 1 0 1 0 0 1 0 0 1 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 0 1 0 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 1 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 ...
output:
? flip ? right ? flip ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? right ? flip...
result:
ok Queries used; 9264.
Test #200:
score: 0
Accepted
time: 19ms
memory: 3552kb
input:
0 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 1 1 0 0 0 1 0 0 1 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ...
result:
ok Queries used; 9408.
Test #201:
score: 0
Accepted
time: 17ms
memory: 3516kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? right ? right ? flip ? left ? left ...
result:
ok Queries used; 9596.
Test #202:
score: 0
Accepted
time: 9ms
memory: 3412kb
input:
0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? right ? right ? right...
result:
ok Queries used; 9763.
Test #203:
score: 0
Accepted
time: 24ms
memory: 3548kb
input:
1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 ...
output:
? right ? right ? flip ? right ? flip ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ...
result:
ok Queries used; 9939.
Test #204:
score: 0
Accepted
time: 20ms
memory: 3380kb
input:
1 1 0 1 0 1 0 0 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 1 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 1 0 0 1 1 0 0 0 0 0 1 0 ...
output:
? right ? flip ? left ? right ? right ? flip ? left ? left ? right ? right ? flip ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? left ? right ? right ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? left ? left ? left ? left ? left ? l...
result:
ok Queries used; 10108.
Test #205:
score: 0
Accepted
time: 26ms
memory: 3380kb
input:
0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 ...
output:
? flip ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? right ? right ? right ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? flip ? right ? right ? right ? flip ? right ? right ? flip ? left ? left ? left ? left ? left ? left ? left ? ...
result:
ok Queries used; 10071.