QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#488005 | #8595. Точки на прямiй | Yarema# | 100 ✓ | 43ms | 3892kb | C++20 | 916b | 2024-07-23 14:49:01 | 2024-07-23 14:49:02 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define RFOR(i, a, b) for(int i = (a) - 1; i >= (b); i--)
#define SZ(a) int(a.size())
#define ALL(a) a.begin(), a.end()
#define PB push_back
#define MP make_pair
#define F first
#define S second
typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PII;
typedef double db;
mt19937 rng;
int main()
{
//ios::sync_with_stdio(0);
//cin.tie(0);
int n;
cin >> n;
VI v(n);
iota(ALL(v), 1);
shuffle(ALL(v), rng);
int i = v[0];
int j = v[1];
FOR (idx, 2, n)
{
int k = v[idx];
cout << "? " << i << ' ' << j << ' ' << k << endl;
int ans;
cin >> ans;
if (ans)
continue;
cout << "? " << i << ' ' << k << ' ' << j << endl;
cin >> ans;
if (ans)
j = k;
else
i = k;
}
cout << "! " << i << ' ' << j << endl;
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 17
Accepted
Test #1:
score: 17
Accepted
time: 0ms
memory: 3604kb
input:
3 0 1
output:
? 1 3 2 ? 1 2 3 ! 1 2
result:
ok ok, 2 queries used
Test #2:
score: 17
Accepted
time: 0ms
memory: 3604kb
input:
3 0 0
output:
? 1 3 2 ? 1 2 3 ! 2 3
result:
ok ok, 2 queries used
Test #3:
score: 17
Accepted
time: 0ms
memory: 3576kb
input:
4 1 0 1
output:
? 3 4 1 ? 3 4 2 ? 3 2 4 ! 3 2
result:
ok ok, 3 queries used
Test #4:
score: 17
Accepted
time: 0ms
memory: 3532kb
input:
20 1 1 1 1 1 1 1 0 0 1 1 1 0 1 1 1 1 1 1 1
output:
? 3 10 1 ? 3 10 15 ? 3 10 5 ? 3 10 19 ? 3 10 8 ? 3 10 12 ? 3 10 4 ? 3 10 9 ? 3 9 10 ? 9 10 17 ? 9 10 13 ? 9 10 14 ? 9 10 18 ? 9 18 10 ? 9 18 6 ? 9 18 7 ? 9 18 11 ? 9 18 20 ? 9 18 16 ? 9 18 2 ! 9 18
result:
ok ok, 20 queries used
Test #5:
score: 17
Accepted
time: 0ms
memory: 3580kb
input:
20 0 1 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1
output:
? 3 10 1 ? 3 1 10 ? 3 1 15 ? 3 15 1 ? 3 15 5 ? 3 15 19 ? 3 15 8 ? 3 15 12 ? 3 15 4 ? 3 15 9 ? 3 15 17 ? 3 15 13 ? 3 15 14 ? 3 15 18 ? 3 15 6 ? 3 6 15 ? 3 6 7 ? 3 6 11 ? 3 6 20 ? 3 6 16 ? 3 6 2 ! 3 6
result:
ok ok, 21 queries used
Test #6:
score: 17
Accepted
time: 1ms
memory: 3604kb
input:
20 0 0 0 1 0 0 0 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1 1 0 0 1 1
output:
? 3 10 1 ? 3 1 10 ? 1 10 15 ? 1 15 10 ? 1 15 5 ? 1 5 15 ? 5 15 19 ? 5 19 15 ? 5 19 8 ? 5 8 19 ? 8 19 12 ? 8 19 4 ? 8 19 9 ? 8 9 19 ? 9 19 17 ? 9 17 19 ? 17 19 13 ? 17 19 14 ? 17 19 18 ? 17 18 19 ? 18 19 6 ? 18 19 7 ? 18 19 11 ? 18 19 20 ? 18 20 19 ? 20 19 16 ? 20 19 2 ! 20 19
result:
ok ok, 27 queries used
Test #7:
score: 17
Accepted
time: 1ms
memory: 3588kb
input:
20 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 3 10 1 ? 3 1 10 ? 1 10 15 ? 1 15 10 ? 1 15 5 ? 1 5 15 ? 1 5 19 ? 1 5 8 ? 1 5 12 ? 1 5 4 ? 1 4 5 ? 1 4 9 ? 1 4 17 ? 1 4 13 ? 1 4 14 ? 1 4 18 ? 1 4 6 ? 1 4 7 ? 1 4 11 ? 1 4 20 ? 1 4 16 ? 1 4 2 ! 1 4
result:
ok ok, 22 queries used
Test #8:
score: 17
Accepted
time: 0ms
memory: 3596kb
input:
20 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0
output:
? 3 10 1 ? 3 1 10 ? 1 10 15 ? 1 15 10 ? 1 15 5 ? 1 15 19 ? 1 19 15 ? 1 19 8 ? 1 19 12 ? 1 19 4 ? 1 19 9 ? 1 19 17 ? 1 19 13 ? 1 19 14 ? 1 19 18 ? 1 19 6 ? 1 19 7 ? 1 19 11 ? 1 19 20 ? 1 20 19 ? 1 20 16 ? 1 20 2 ? 1 2 20 ! 2 20
result:
ok ok, 23 queries used
Test #9:
score: 17
Accepted
time: 1ms
memory: 3740kb
input:
20 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1
output:
? 3 10 1 ? 3 1 10 ? 1 10 15 ? 1 15 10 ? 1 15 5 ? 1 15 19 ? 1 19 15 ? 1 19 8 ? 1 19 12 ? 1 19 4 ? 1 19 9 ? 1 19 17 ? 1 19 13 ? 1 19 14 ? 1 19 18 ? 1 19 6 ? 1 19 7 ? 1 19 11 ? 1 19 20 ? 1 20 19 ? 1 20 16 ? 1 20 2 ! 1 20
result:
ok ok, 22 queries used
Test #10:
score: 17
Accepted
time: 1ms
memory: 3576kb
input:
20 0 0 0 1 1 0 0 1 1 1 1 1 1 1 0 1 1 1 1 0 1 1 1
output:
? 3 10 1 ? 3 1 10 ? 1 10 15 ? 1 15 10 ? 1 15 5 ? 1 15 19 ? 1 19 15 ? 19 15 8 ? 19 15 12 ? 19 15 4 ? 19 15 9 ? 19 15 17 ? 19 15 13 ? 19 15 14 ? 19 15 18 ? 19 18 15 ? 19 18 6 ? 19 18 7 ? 19 18 11 ? 19 18 20 ? 19 20 18 ? 19 20 16 ? 19 20 2 ! 19 20
result:
ok ok, 23 queries used
Test #11:
score: 17
Accepted
time: 0ms
memory: 3512kb
input:
20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 3 10 1 ? 3 1 10 ? 3 1 15 ? 3 1 5 ? 3 1 19 ? 3 1 8 ? 3 1 12 ? 3 1 4 ? 3 1 9 ? 3 1 17 ? 3 1 13 ? 3 1 14 ? 3 1 18 ? 3 1 6 ? 3 1 7 ? 3 1 11 ? 3 1 20 ? 3 1 16 ? 3 1 2 ! 3 1
result:
ok ok, 19 queries used
Test #12:
score: 17
Accepted
time: 1ms
memory: 3804kb
input:
20 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 1 1
output:
? 3 10 1 ? 3 10 15 ? 3 15 10 ? 15 10 5 ? 15 10 19 ? 15 19 10 ? 19 10 8 ? 19 10 12 ? 19 10 4 ? 19 10 9 ? 19 10 17 ? 19 10 13 ? 19 10 14 ? 19 10 18 ? 19 10 6 ? 19 10 7 ? 19 10 11 ? 19 11 10 ? 19 11 20 ? 19 20 11 ? 20 11 16 ? 20 16 11 ? 20 16 2 ! 20 16
result:
ok ok, 23 queries used
Test #13:
score: 17
Accepted
time: 1ms
memory: 3512kb
input:
20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0
output:
? 3 10 1 ? 3 1 10 ? 3 1 15 ? 3 1 5 ? 3 1 19 ? 3 1 8 ? 3 1 12 ? 3 1 4 ? 3 1 9 ? 3 1 17 ? 3 1 13 ? 3 1 14 ? 3 1 18 ? 3 1 6 ? 3 1 7 ? 3 1 11 ? 3 1 20 ? 3 1 16 ? 3 1 2 ? 3 2 1 ! 2 1
result:
ok ok, 20 queries used
Subtask #2:
score: 16
Accepted
Test #14:
score: 16
Accepted
time: 1ms
memory: 3600kb
input:
100 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 0 1 0 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 63 22 28 ? 63 28 22 ? 28 22 86 ? 28 22 5 ? 28 22 51 ? 28 22 41 ? 28 22 67 ? 28 22 61 ? 28 22 82 ? 28 22 17 ? 28 22 13 ? 28 22 23 ? 28 22 70 ? 28 22 24 ? 28 22 29 ? 28 22 11 ? 28 22 59 ? 28 22 16 ? 28 22 91 ? 28 91 22 ? 91 22 34 ? 91 22 10 ? 91 22 14 ? 91 22 6 ? 91 6 22 ? 91 6 32 ? 91 32 6 ? 91 32 ...
result:
ok ok, 107 queries used
Test #15:
score: 16
Accepted
time: 1ms
memory: 3596kb
input:
100 0 0 1 0 0 0 0 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 63 22 28 ? 63 28 22 ? 28 22 86 ? 28 22 5 ? 28 5 22 ? 5 22 51 ? 5 51 22 ? 51 22 41 ? 51 22 67 ? 51 67 22 ? 51 67 61 ? 51 67 82 ? 51 67 17 ? 51 67 13 ? 51 67 23 ? 51 23 67 ? 51 23 70 ? 51 23 24 ? 51 23 29 ? 51 23 11 ? 51 23 59 ? 51 23 16 ? 51 23 91 ? 51 91 23 ? 91 23 34 ? 91 23 10 ? 91 23 14 ? 91 23...
result:
ok ok, 107 queries used
Test #16:
score: 16
Accepted
time: 0ms
memory: 3584kb
input:
100 0 0 1 0 1 0 0 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 63 22 28 ? 63 28 22 ? 28 22 86 ? 28 22 5 ? 28 5 22 ? 28 5 51 ? 28 51 5 ? 51 5 41 ? 51 5 67 ? 51 5 61 ? 51 5 82 ? 51 5 17 ? 51 17 5 ? 17 5 13 ? 17 5 23 ? 17 5 70 ? 17 5 24 ? 17 5 29 ? 17 5 11 ? 17 5 59 ? 17 5 16 ? 17 5 91 ? 17 5 34 ? 17 34 5 ? 34 5 10 ? 34 5 14 ? 34 14 5 ? 34 14 6 ? 34 14 32 ? 34 1...
result:
ok ok, 106 queries used
Test #17:
score: 16
Accepted
time: 1ms
memory: 3568kb
input:
100 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 63 22 28 ? 63 22 86 ? 63 86 22 ? 63 86 5 ? 63 86 51 ? 63 86 41 ? 63 86 67 ? 63 86 61 ? 63 86 82 ? 63 86 17 ? 63 86 13 ? 63 13 86 ? 63 13 23 ? 63 13 70 ? 63 13 24 ? 63 13 29 ? 63 13 11 ? 63 13 59 ? 63 13 16 ? 63 13 91 ? 63 13 34 ? 63 34 13 ? 63 34 10 ? 63 34 14 ? 63 34 6 ? 63 34 32 ? 63 32 34 ? 63 ...
result:
ok ok, 104 queries used
Test #18:
score: 16
Accepted
time: 0ms
memory: 3580kb
input:
100 1 1 0 1 1 1 0 0 1 1 0 1 1 1 0 0 0 0 1 1 1 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1
output:
? 63 22 28 ? 63 22 86 ? 63 22 5 ? 63 5 22 ? 63 5 51 ? 63 5 41 ? 63 5 67 ? 63 67 5 ? 67 5 61 ? 67 5 82 ? 67 5 17 ? 67 17 5 ? 67 17 13 ? 67 17 23 ? 67 17 70 ? 67 70 17 ? 70 17 24 ? 70 24 17 ? 24 17 29 ? 24 17 11 ? 24 17 59 ? 24 17 16 ? 24 16 17 ? 24 16 91 ? 24 16 34 ? 24 34 16 ? 34 16 10 ? 34 16 14 ? ...
result:
ok ok, 111 queries used
Test #19:
score: 16
Accepted
time: 1ms
memory: 3512kb
input:
100 0 1 1 0 0 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 63 22 28 ? 63 28 22 ? 63 28 86 ? 63 28 5 ? 63 5 28 ? 5 28 51 ? 5 28 41 ? 5 28 67 ? 5 28 61 ? 5 28 82 ? 5 82 28 ? 82 28 17 ? 82 17 28 ? 82 17 13 ? 82 17 23 ? 82 17 70 ? 82 17 24 ? 82 17 29 ? 82 17 11 ? 82 17 59 ? 82 17 16 ? 82 17 91 ? 82 17 34 ? 82 17 10 ? 82 17 14 ? 82 17 6 ? 82 17 32 ? 82 17 53 ?...
result:
ok ok, 104 queries used
Test #20:
score: 16
Accepted
time: 1ms
memory: 3580kb
input:
100 1 0 0 0 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 63 22 28 ? 63 22 86 ? 63 86 22 ? 86 22 5 ? 86 5 22 ? 86 5 51 ? 86 5 41 ? 86 5 67 ? 86 5 61 ? 86 5 82 ? 86 5 17 ? 86 5 13 ? 86 13 5 ? 86 13 23 ? 86 13 70 ? 86 70 13 ? 86 70 24 ? 86 70 29 ? 86 70 11 ? 86 70 59 ? 86 70 16 ? 86 70 91 ? 86 91 70 ? 91 70 34 ? 91 70 10 ? 91 70 14 ? 91 70 6 ? 91 70 32 ? 9...
result:
ok ok, 109 queries used
Test #21:
score: 16
Accepted
time: 1ms
memory: 3516kb
input:
100 0 0 1 0 0 1 1 1 1 1 0 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 63 22 28 ? 63 28 22 ? 28 22 86 ? 28 22 5 ? 28 5 22 ? 5 22 51 ? 5 22 41 ? 5 22 67 ? 5 22 61 ? 5 22 82 ? 5 22 17 ? 5 17 22 ? 5 17 13 ? 5 13 17 ? 5 13 23 ? 5 13 70 ? 5 13 24 ? 5 13 29 ? 5 13 11 ? 5 11 13 ? 5 11 59 ? 5 11 16 ? 5 11 91 ? 5 11 34 ? 5 11 10 ? 5 11 14 ? 5 11 6 ? 5 6 11 ? 5 6 32 ? 5 6 53 ?...
result:
ok ok, 106 queries used
Test #22:
score: 16
Accepted
time: 1ms
memory: 3604kb
input:
100 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 0 1 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 63 22 28 ? 63 22 86 ? 63 86 22 ? 86 22 5 ? 86 5 22 ? 86 5 51 ? 86 5 41 ? 86 5 67 ? 86 5 61 ? 86 5 82 ? 86 5 17 ? 86 5 13 ? 86 5 23 ? 86 5 70 ? 86 5 24 ? 86 5 29 ? 86 5 11 ? 86 5 59 ? 86 5 16 ? 86 5 91 ? 86 91 5 ? 91 5 34 ? 91 5 10 ? 91 5 14 ? 91 5 6 ? 91 5 32 ? 91 5 53 ? 91 5 92 ? 91 92 5 ? 92 5 6...
result:
ok ok, 106 queries used
Test #23:
score: 16
Accepted
time: 1ms
memory: 3816kb
input:
100 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 63 22 28 ? 63 22 86 ? 63 86 22 ? 86 22 5 ? 86 5 22 ? 86 5 51 ? 86 5 41 ? 86 5 67 ? 86 5 61 ? 86 5 82 ? 86 5 17 ? 86 5 13 ? 86 5 23 ? 86 5 70 ? 86 5 24 ? 86 5 29 ? 86 5 11 ? 86 5 59 ? 86 5 16 ? 86 5 91 ? 86 91 5 ? 91 5 34 ? 91 5 10 ? 91 5 14 ? 91 5 6 ? 91 5 32 ? 91 5 53 ? 91 5 92 ? 91 92 5 ? 92 5 6...
result:
ok ok, 105 queries used
Test #24:
score: 16
Accepted
time: 0ms
memory: 3468kb
input:
100 0 1 0 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 63 22 28 ? 63 28 22 ? 63 28 86 ? 63 86 28 ? 63 86 5 ? 63 86 51 ? 63 86 41 ? 63 86 67 ? 63 86 61 ? 63 86 82 ? 63 86 17 ? 63 86 13 ? 63 86 23 ? 63 86 70 ? 63 70 86 ? 70 86 24 ? 70 86 29 ? 70 86 11 ? 70 86 59 ? 70 86 16 ? 70 86 91 ? 70 91 86 ? 70 91 34 ? 70 91 10 ? 70 91 14 ? 70 91 6 ? 70 91 32 ? 70 ...
result:
ok ok, 106 queries used
Test #25:
score: 16
Accepted
time: 1ms
memory: 3592kb
input:
100 1 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 63 22 28 ? 63 22 86 ? 63 86 22 ? 86 22 5 ? 86 5 22 ? 86 5 51 ? 86 5 41 ? 86 5 67 ? 86 5 61 ? 86 5 82 ? 86 82 5 ? 82 5 17 ? 82 17 5 ? 17 5 13 ? 17 5 23 ? 17 5 70 ? 17 5 24 ? 17 5 29 ? 17 5 11 ? 17 5 59 ? 17 5 16 ? 17 5 91 ? 17 5 34 ? 17 5 10 ? 17 10 5 ? 10 5 14 ? 10 5 6 ? 10 6 5 ? 6 5 32 ? 6 5 53 ?...
result:
ok ok, 107 queries used
Test #26:
score: 16
Accepted
time: 1ms
memory: 3572kb
input:
100 1 0 0 0 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 63 22 28 ? 63 22 86 ? 63 86 22 ? 86 22 5 ? 86 5 22 ? 86 5 51 ? 86 5 41 ? 86 5 67 ? 86 5 61 ? 86 5 82 ? 86 5 17 ? 86 5 13 ? 86 5 23 ? 86 5 70 ? 86 70 5 ? 86 70 24 ? 86 70 29 ? 86 70 11 ? 86 70 59 ? 86 70 16 ? 86 70 91 ? 86 91 70 ? 86 91 34 ? 86 91 10 ? 86 91 14 ? 86 91 6 ? 86 91 32 ? 86 91 53 ? 86 ...
result:
ok ok, 106 queries used
Test #27:
score: 16
Accepted
time: 1ms
memory: 3472kb
input:
100 1 0 0 0 0 1 1 1 1 1 0 1 0 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
? 63 22 28 ? 63 22 86 ? 63 86 22 ? 86 22 5 ? 86 5 22 ? 5 22 51 ? 5 22 41 ? 5 22 67 ? 5 22 61 ? 5 22 82 ? 5 22 17 ? 5 17 22 ? 5 17 13 ? 5 13 17 ? 5 13 23 ? 5 13 70 ? 5 13 24 ? 5 13 29 ? 5 13 11 ? 5 11 13 ? 5 11 59 ? 5 11 16 ? 5 11 91 ? 5 11 34 ? 5 11 10 ? 5 10 11 ? 5 10 14 ? 5 10 6 ? 5 10 32 ? 5 10 5...
result:
ok ok, 107 queries used
Subtask #3:
score: 30
Accepted
Test #28:
score: 30
Accepted
time: 7ms
memory: 3832kb
input:
10000 1 1 1 1 0 0 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 2431 312 ? 2184 2431 7913 ? 2184 2431 9918 ? 2184 2431 9437 ? 2184 9437 2431 ? 9437 2431 6313 ? 9437 2431 536 ? 9437 536 2431 ? 9437 536 4896 ? 9437 536 7323 ? 9437 536 5754 ? 9437 536 8145 ? 9437 536 2265 ? 9437 536 3284 ? 9437 3284 536 ? 9437 3284 847 ? 9437 847 3284 ? 847 ...
result:
ok ok, 10011 queries used
Test #29:
score: 30
Accepted
time: 0ms
memory: 3616kb
input:
10000 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 2431 312 ? 2184 2431 7913 ? 2184 2431 9918 ? 2184 2431 9437 ? 2184 2431 6313 ? 2184 2431 536 ? 2184 2431 4896 ? 2184 2431 7323 ? 2184 2431 5754 ? 2184 5754 2431 ? 2184 5754 8145 ? 2184 5754 2265 ? 2184 5754 3284 ? 2184 5754 847 ? 2184 5754 3975 ? 2184 5754 5233 ? 2184 5754 71...
result:
ok ok, 10004 queries used
Test #30:
score: 30
Accepted
time: 8ms
memory: 3768kb
input:
10000 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 2184 7871 312 ? 2184 312 7871 ? 312 7871 7913 ? 312 7871 9918 ? 312 7871 9437 ? 312 7871 6313 ? 312 7871 536 ? 312 7871 4896 ? 312 7871 7323 ? 312 7871 5754 ? 312 7871 8145 ? 312 7871 2265 ? 312 7871 3284 ? 312 7871 847 ? 312 7871 3975 ? 312 7871 5233 ? 312 7871 7...
result:
ok ok, 10016 queries used
Test #31:
score: 30
Accepted
time: 35ms
memory: 3568kb
input:
10000 1 0 1 0 1 1 1 1 1 1 0 1 1 1 1 1 0 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 2431 312 ? 2184 312 2431 ? 2184 312 7913 ? 2184 7913 312 ? 2184 7913 9918 ? 2184 7913 9437 ? 2184 7913 6313 ? 2184 7913 536 ? 2184 7913 4896 ? 2184 7913 7323 ? 2184 7323 7913 ? 2184 7323 5754 ? 2184 7323 8145 ? 2184 7323 2265 ? 2184 7323 3284 ? 2184 7323 847 ? 2184 847 7323 ?...
result:
ok ok, 10016 queries used
Test #32:
score: 30
Accepted
time: 23ms
memory: 3636kb
input:
10000 0 0 0 0 0 1 1 1 0 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 7871 2431 312 ? 7871 312 2431 ? 312 2431 7913 ? 312 7913 2431 ? 312 7913 9918 ? 312 7913 9437 ? 312 7913 6313 ? 312 6313 7913 ? 6313 7913 536 ? 6313 7913 4896 ? 6313 7913 7323 ? 6313 7913 5754 ? 6313 7913 8145 ? 6313 7913 2265 ? 6313 7913 3284 ? 6313 3284 7913 ? 3...
result:
ok ok, 10014 queries used
Test #33:
score: 30
Accepted
time: 16ms
memory: 3620kb
input:
10000 1 1 0 1 1 1 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 1 0 0 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 2431 312 ? 2184 2431 7913 ? 2184 7913 2431 ? 2184 7913 9918 ? 2184 7913 9437 ? 2184 7913 6313 ? 2184 7913 536 ? 2184 7913 4896 ? 2184 7913 7323 ? 2184 7913 5754 ? 2184 5754 7913 ? 2184 5754 8145 ? 2184 5754 2265 ? 2184 5754 3284 ? 2184 3284 5754 ? 2184 3284 847 ? 2184 3284 39...
result:
ok ok, 10023 queries used
Test #34:
score: 30
Accepted
time: 10ms
memory: 3824kb
input:
10000 0 1 0 0 0 1 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 2184 7871 312 ? 2184 312 7871 ? 312 7871 7913 ? 312 7913 7871 ? 312 7913 9918 ? 312 9918 7913 ? 312 9918 9437 ? 312 9437 9918 ? 9437 9918 6313 ? 9437 9918 536 ? 9437 9918 4896 ? 9437 9918 7323 ? 9437 9918 5754 ? 9437 9918 8145 ? 9437 9918 2265 ? 9437 9918 3284 ? 9...
result:
ok ok, 10011 queries used
Test #35:
score: 30
Accepted
time: 24ms
memory: 3804kb
input:
10000 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 2431 312 ? 2184 312 2431 ? 2184 312 7913 ? 2184 312 9918 ? 2184 312 9437 ? 2184 312 6313 ? 2184 312 536 ? 2184 312 4896 ? 2184 312 7323 ? 2184 312 5754 ? 2184 312 8145 ? 2184 312 2265 ? 2184 312 3284 ? 2184 312 847 ? 2184 847 312 ? 847 312 3975 ? 847 312 5233 ? 847 312 7117 ?...
result:
ok ok, 10015 queries used
Test #36:
score: 30
Accepted
time: 10ms
memory: 3548kb
input:
10000 0 1 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 2184 7871 312 ? 2184 312 7871 ? 312 7871 7913 ? 312 7913 7871 ? 312 7913 9918 ? 312 9918 7913 ? 312 9918 9437 ? 312 9918 6313 ? 312 9918 536 ? 312 9918 4896 ? 312 9918 7323 ? 312 9918 5754 ? 312 9918 8145 ? 312 9918 2265 ? 312 9918 3284 ? 312 9918 847 ? 312 9918 3...
result:
ok ok, 10011 queries used
Test #37:
score: 30
Accepted
time: 34ms
memory: 3508kb
input:
10000 0 1 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 2184 7871 312 ? 2184 312 7871 ? 312 7871 7913 ? 312 7913 7871 ? 312 7913 9918 ? 312 9918 7913 ? 312 9918 9437 ? 312 9918 6313 ? 312 9918 536 ? 312 9918 4896 ? 312 9918 7323 ? 312 9918 5754 ? 312 9918 8145 ? 312 9918 2265 ? 312 9918 3284 ? 312 9918 847 ? 312 9918 3...
result:
ok ok, 10012 queries used
Test #38:
score: 30
Accepted
time: 17ms
memory: 3504kb
input:
10000 0 0 1 0 0 0 0 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 7871 2431 312 ? 7871 2431 7913 ? 7871 7913 2431 ? 7913 2431 9918 ? 7913 9918 2431 ? 9918 2431 9437 ? 9918 2431 6313 ? 9918 2431 536 ? 9918 2431 4896 ? 9918 4896 2431 ? 9918 4896 7323 ? 9918 4896 5754 ? 9918 4896 8145 ? 9918 4896 2265 ? 9918 4896 3284 ? 9918 4896 8...
result:
ok ok, 10017 queries used
Test #39:
score: 30
Accepted
time: 19ms
memory: 3556kb
input:
10000 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 2431 312 ? 2184 312 2431 ? 312 2431 7913 ? 312 2431 9918 ? 312 2431 9437 ? 312 2431 6313 ? 312 2431 536 ? 312 2431 4896 ? 312 2431 7323 ? 312 2431 5754 ? 312 2431 8145 ? 312 2431 2265 ? 312 2431 3284 ? 312 2431 847 ? 312 2431 3975 ? 312 2431 5233 ? 312 2431 7117 ? 312 2431 61...
result:
ok ok, 10011 queries used
Test #40:
score: 30
Accepted
time: 4ms
memory: 3620kb
input:
10000 0 1 0 0 0 1 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 2184 7871 312 ? 2184 312 7871 ? 312 7871 7913 ? 312 7913 7871 ? 312 7913 9918 ? 312 9918 7913 ? 312 9918 9437 ? 312 9918 6313 ? 312 9918 536 ? 312 9918 4896 ? 312 9918 7323 ? 312 9918 5754 ? 312 9918 8145 ? 312 9918 2265 ? 312 9918 3284 ? 312 3284 9918 ? 3284 9918...
result:
ok ok, 10016 queries used
Test #41:
score: 30
Accepted
time: 16ms
memory: 3504kb
input:
10000 0 1 0 0 0 1 0 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 2184 7871 312 ? 2184 312 7871 ? 312 7871 7913 ? 312 7913 7871 ? 312 7913 9918 ? 312 9918 7913 ? 312 9918 9437 ? 312 9918 6313 ? 312 6313 9918 ? 312 6313 536 ? 312 6313 4896 ? 312 6313 7323 ? 312 6313 5754 ? 312 6313 8145 ? 312 6313 2265 ? 312 6313 3284 ? 312 6313 ...
result:
ok ok, 10014 queries used
Subtask #4:
score: 23
Accepted
Test #42:
score: 23
Accepted
time: 25ms
memory: 3656kb
input:
20000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 2431 19391 ? 14239 2431 15020 ? 14239 2431 536 ? 14239 2431 14107 ? 14239 2431 7323 ? 14239 2431 11421 ? 14239 2431 8145 ? 14239 2431 10001 ? 14239 2431 3284 ? 14239 2431 847 ? 14239 2431 16284 ? 14239 2431 16143 ? 14...
result:
ok ok, 19998 queries used
Test #43:
score: 23
Accepted
time: 41ms
memory: 3592kb
input:
20000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 2431 19391 ? 14239 2431 15020 ? 14239 2431 536 ? 14239 2431 14107 ? 14239 2431 7323 ? 14239 2431 11421 ? 14239 2431 8145 ? 14239 2431 10001 ? 14239 2431 3284 ? 14239 2431 847 ? 14239 2431 16284 ? 14239 2431 16143 ? 14...
result:
ok ok, 19999 queries used
Test #44:
score: 23
Accepted
time: 25ms
memory: 3548kb
input:
20000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 2431 19391 ? 14239 2431 15020 ? 14239 2431 536 ? 14239 2431 14107 ? 14239 2431 7323 ? 14239 2431 11421 ? 14239 2431 8145 ? 14239 2431 10001 ? 14239 2431 3284 ? 14239 2431 847 ? 14239 2431 16284 ? 14239 2431 16143 ? 14...
result:
ok ok, 19999 queries used
Test #45:
score: 23
Accepted
time: 33ms
memory: 3656kb
input:
20000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 2431 19391 ? 14239 2431 15020 ? 14239 2431 536 ? 14239 2431 14107 ? 14239 2431 7323 ? 14239 2431 11421 ? 14239 2431 8145 ? 14239 2431 10001 ? 14239 2431 3284 ? 14239 2431 847 ? 14239 2431 16284 ? 14239 2431 16143 ? 14...
result:
ok ok, 19999 queries used
Test #46:
score: 23
Accepted
time: 20ms
memory: 3676kb
input:
20000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 2431 19391 ? 14239 2431 15020 ? 14239 2431 536 ? 14239 2431 14107 ? 14239 2431 7323 ? 14239 2431 11421 ? 14239 2431 8145 ? 14239 2431 10001 ? 14239 2431 3284 ? 14239 2431 847 ? 14239 2431 16284 ? 14239 2431 16143 ? 14...
result:
ok ok, 19999 queries used
Test #47:
score: 23
Accepted
time: 35ms
memory: 3624kb
input:
20000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 2431 19391 ? 14239 2431 15020 ? 14239 2431 536 ? 14239 2431 14107 ? 14239 2431 7323 ? 14239 2431 11421 ? 14239 2431 8145 ? 14239 2431 10001 ? 14239 2431 3284 ? 14239 2431 847 ? 14239 2431 16284 ? 14239 2431 16143 ? 14...
result:
ok ok, 19999 queries used
Test #48:
score: 23
Accepted
time: 40ms
memory: 3616kb
input:
20000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 2431 19391 ? 14239 2431 15020 ? 14239 2431 536 ? 14239 2431 14107 ? 14239 2431 7323 ? 14239 2431 11421 ? 14239 2431 8145 ? 14239 2431 10001 ? 14239 2431 3284 ? 14239 2431 847 ? 14239 2431 16284 ? 14239 2431 16143 ? 14...
result:
ok ok, 19999 queries used
Test #49:
score: 23
Accepted
time: 21ms
memory: 3668kb
input:
20000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 2431 19391 ? 14239 2431 15020 ? 14239 2431 536 ? 14239 2431 14107 ? 14239 2431 7323 ? 14239 2431 11421 ? 14239 2431 8145 ? 14239 2431 10001 ? 14239 2431 3284 ? 14239 2431 847 ? 14239 2431 16284 ? 14239 2431 16143 ? 14...
result:
ok ok, 19999 queries used
Test #50:
score: 23
Accepted
time: 12ms
memory: 3612kb
input:
20000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 2431 19391 ? 14239 2431 15020 ? 14239 2431 536 ? 14239 2431 14107 ? 14239 2431 7323 ? 14239 2431 11421 ? 14239 2431 8145 ? 14239 2431 10001 ? 14239 2431 3284 ? 14239 2431 847 ? 14239 2431 16284 ? 14239 2431 16143 ? 14...
result:
ok ok, 19998 queries used
Test #51:
score: 23
Accepted
time: 24ms
memory: 3684kb
input:
20000 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 13296 2431 ? 14239 13296 16639 ? 14239 13296 15722 ? 14239 13296 9918 ? 14239 13296 19391 ? 14239 13296 15020 ? 14239 13296 536 ? 14239 13296 14107 ? 14239 13296 7323 ? 14239 13296 11421 ? 14239 13296 8145 ? 14239 13296 10001 ? 14239 13296 3284 ? 14239 13296 847 ? 14239 13...
result:
ok ok, 19999 queries used
Test #52:
score: 23
Accepted
time: 39ms
memory: 3888kb
input:
20000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 2431 19391 ? 14239 2431 15020 ? 14239 2431 536 ? 14239 2431 14107 ? 14239 2431 7323 ? 14239 2431 11421 ? 14239 2431 8145 ? 14239 2431 10001 ? 14239 2431 3284 ? 14239 2431 847 ? 14239 2431 16284 ? 14239 2431 16143 ? 14...
result:
ok ok, 19998 queries used
Test #53:
score: 23
Accepted
time: 21ms
memory: 3668kb
input:
20000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 2431 19391 ? 14239 2431 15020 ? 14239 2431 536 ? 14239 2431 14107 ? 14239 2431 7323 ? 14239 2431 11421 ? 14239 2431 8145 ? 14239 2431 10001 ? 14239 2431 3284 ? 14239 2431 847 ? 14239 2431 16284 ? 14239 2431 16143 ? 14...
result:
ok ok, 19998 queries used
Subtask #5:
score: 10
Accepted
Test #54:
score: 10
Accepted
time: 24ms
memory: 3512kb
input:
12000 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 2431 312 ? 2184 2431 7913 ? 2184 2431 9918 ? 2184 2431 9437 ? 2184 2431 6313 ? 2184 6313 2431 ? 2184 6313 536 ? 2184 536 6313 ? 536 6313 4896 ? 536 6313 7323 ? 536 6313 11421 ? 536 6313 8145 ? 536 6313 10001 ? 536 6313 3284 ? 536 6313 847 ? 536 6313 3975 ? 536 6313 5233 ? 536...
result:
ok ok, 12014 queries used
Test #55:
score: 10
Accepted
time: 4ms
memory: 3648kb
input:
12000 0 1 0 1 1 1 1 0 0 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 2184 7871 312 ? 2184 312 7871 ? 2184 312 7913 ? 2184 312 9918 ? 2184 312 9437 ? 2184 312 6313 ? 2184 6313 312 ? 6313 312 536 ? 6313 536 312 ? 6313 536 4896 ? 6313 536 7323 ? 6313 536 11421 ? 6313 536 8145 ? 6313 536 10001 ? 6313 536 3284 ? 6313 3284 536 ? 3284 536...
result:
ok ok, 12018 queries used
Test #56:
score: 10
Accepted
time: 31ms
memory: 3620kb
input:
12000 1 0 0 1 0 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 2431 312 ? 2184 312 2431 ? 312 2431 7913 ? 312 2431 9918 ? 312 9918 2431 ? 312 9918 9437 ? 312 9918 6313 ? 312 9918 536 ? 312 9918 4896 ? 312 4896 9918 ? 312 4896 7323 ? 312 4896 11421 ? 312 4896 8145 ? 312 8145 4896 ? 312 8145 10001 ? 312 8145 3284 ? 312 8145 847 ? 312 8145 ...
result:
ok ok, 12013 queries used
Test #57:
score: 10
Accepted
time: 8ms
memory: 3624kb
input:
12000 0 0 0 0 0 1 1 0 0 0 1 1 1 0 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 7871 2431 312 ? 7871 312 2431 ? 312 2431 7913 ? 312 7913 2431 ? 312 7913 9918 ? 312 7913 9437 ? 312 9437 7913 ? 9437 7913 6313 ? 9437 6313 7913 ? 9437 6313 536 ? 9437 6313 4896 ? 9437 6313 7323 ? 9437 7323 6313 ? 9437 7323 11421 ? 9437 7323 8145 ? 9437 7323 10001 ...
result:
ok ok, 12015 queries used
Test #58:
score: 10
Accepted
time: 19ms
memory: 3612kb
input:
12000 1 0 0 1 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 0 ...
output:
? 2184 2431 7871 ? 2184 2431 312 ? 2184 312 2431 ? 312 2431 7913 ? 312 2431 9918 ? 312 2431 9437 ? 312 2431 6313 ? 312 2431 536 ? 312 2431 4896 ? 312 2431 7323 ? 312 7323 2431 ? 7323 2431 11421 ? 7323 11421 2431 ? 11421 2431 8145 ? 11421 8145 2431 ? 8145 2431 10001 ? 8145 2431 3284 ? 8145 2431 847 ?...
result:
ok ok, 12016 queries used
Test #59:
score: 10
Accepted
time: 27ms
memory: 3564kb
input:
12000 0 0 1 1 1 0 0 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 0 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 7871 2431 312 ? 7871 2431 7913 ? 7871 2431 9918 ? 7871 2431 9437 ? 7871 9437 2431 ? 9437 2431 6313 ? 9437 6313 2431 ? 9437 6313 536 ? 9437 6313 4896 ? 9437 4896 6313 ? 9437 4896 7323 ? 9437 4896 11421 ? 9437 11421 4896 ? 9437 11421 8145 ? 9437 8145 11421 ? 8145 11...
result:
ok ok, 12023 queries used
Test #60:
score: 10
Accepted
time: 8ms
memory: 3648kb
input:
12000 0 1 0 0 0 1 0 1 0 0 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 2184 7871 312 ? 2184 312 7871 ? 312 7871 7913 ? 312 7913 7871 ? 312 7913 9918 ? 312 9918 7913 ? 312 9918 9437 ? 312 9437 9918 ? 9437 9918 6313 ? 9437 9918 536 ? 9437 9918 4896 ? 9437 9918 7323 ? 9437 9918 11421 ? 9437 11421 9918 ? 11421 9918 8145 ? 11421 9918 1000...
result:
ok ok, 12016 queries used
Test #61:
score: 10
Accepted
time: 15ms
memory: 3856kb
input:
12000 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 2431 312 ? 2184 312 2431 ? 312 2431 7913 ? 312 2431 9918 ? 312 2431 9437 ? 312 2431 6313 ? 312 2431 536 ? 312 2431 4896 ? 312 2431 7323 ? 312 2431 11421 ? 312 2431 8145 ? 312 2431 10001 ? 312 2431 3284 ? 312 2431 847 ? 312 2431 3975 ? 312 2431 5233 ? 312 2431 7117 ? 312 2431 ...
result:
ok ok, 12017 queries used
Test #62:
score: 10
Accepted
time: 9ms
memory: 3512kb
input:
12000 0 1 0 0 0 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 2184 7871 312 ? 2184 312 7871 ? 312 7871 7913 ? 312 7913 7871 ? 312 7913 9918 ? 312 9918 7913 ? 312 9918 9437 ? 312 9918 6313 ? 312 9918 536 ? 312 9918 4896 ? 312 9918 7323 ? 312 9918 11421 ? 312 11421 9918 ? 312 11421 8145 ? 312 11421 10001 ? 312 11421 3284 ? 312...
result:
ok ok, 12017 queries used
Test #63:
score: 10
Accepted
time: 16ms
memory: 3840kb
input:
12000 0 1 0 0 0 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 2184 7871 312 ? 2184 312 7871 ? 312 7871 7913 ? 312 7913 7871 ? 312 7913 9918 ? 312 9918 7913 ? 312 9918 9437 ? 312 9918 6313 ? 312 9918 536 ? 312 9918 4896 ? 312 9918 7323 ? 312 9918 11421 ? 312 11421 9918 ? 312 11421 8145 ? 312 11421 10001 ? 312 11421 3284 ? 312...
result:
ok ok, 12016 queries used
Test #64:
score: 10
Accepted
time: 29ms
memory: 3624kb
input:
12000 0 0 1 0 0 0 0 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 7871 2431 312 ? 7871 2431 7913 ? 7871 7913 2431 ? 7913 2431 9918 ? 7913 9918 2431 ? 9918 2431 9437 ? 9918 2431 6313 ? 9918 2431 536 ? 9918 2431 4896 ? 9918 2431 7323 ? 9918 2431 11421 ? 9918 11421 2431 ? 11421 2431 8145 ? 11421 8145 2431 ? 11421 8145 10001 ? 11421...
result:
ok ok, 12013 queries used
Test #65:
score: 10
Accepted
time: 18ms
memory: 3624kb
input:
12000 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 2184 7871 312 ? 2184 312 7871 ? 2184 312 7913 ? 2184 312 9918 ? 2184 312 9437 ? 2184 312 6313 ? 2184 312 536 ? 2184 312 4896 ? 2184 312 7323 ? 2184 312 11421 ? 2184 312 8145 ? 2184 312 10001 ? 2184 312 3284 ? 2184 312 847 ? 2184 847 312 ? 847 312 3975 ? 847 312 52...
result:
ok ok, 12012 queries used
Test #66:
score: 10
Accepted
time: 16ms
memory: 3816kb
input:
12000 0 1 0 0 0 1 0 1 1 0 0 1 1 1 0 1 0 0 1 1 1 1 1 1 1 1 1 0 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 2184 7871 312 ? 2184 312 7871 ? 312 7871 7913 ? 312 7913 7871 ? 312 7913 9918 ? 312 9918 7913 ? 312 9918 9437 ? 312 9918 6313 ? 312 6313 9918 ? 6313 9918 536 ? 6313 9918 4896 ? 6313 9918 7323 ? 6313 9918 11421 ? 6313 11421 9918 ? 6313 11421 8145 ? 6313 8145 11421 ...
result:
ok ok, 12018 queries used
Test #67:
score: 10
Accepted
time: 18ms
memory: 3580kb
input:
12000 0 1 0 0 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 2184 2431 7871 ? 2184 7871 2431 ? 2184 7871 312 ? 2184 312 7871 ? 312 7871 7913 ? 312 7913 7871 ? 312 7913 9918 ? 312 9918 7913 ? 312 9918 9437 ? 312 9437 9918 ? 312 9437 6313 ? 312 6313 9437 ? 312 6313 536 ? 312 6313 4896 ? 312 6313 7323 ? 312 6313 11421 ? 312 6313 8145 ? 312 6313 10001 ? 312 631...
result:
ok ok, 12020 queries used
Subtask #6:
score: 4
Accepted
Test #68:
score: 4
Accepted
time: 12ms
memory: 3636kb
input:
20000 1 1 0 1 1 0 0 1 1 1 1 1 1 0 1 1 1 1 0 1 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 15722 2431 ? 14239 15722 9918 ? 14239 15722 19391 ? 14239 19391 15722 ? 19391 15722 15020 ? 19391 15722 536 ? 19391 15722 14107 ? 19391 15722 7323 ? 19391 15722 11421 ? 19391 15722 8145 ? 19391 15722 10001 ? 19391 10001 15722 ? 19391 1...
result:
ok ok, 20021 queries used
Test #69:
score: 4
Accepted
time: 43ms
memory: 3888kb
input:
20000 0 0 0 0 0 1 1 1 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 13296 2431 ? 13296 2431 16639 ? 13296 16639 2431 ? 16639 2431 15722 ? 16639 15722 2431 ? 16639 15722 9918 ? 16639 15722 19391 ? 16639 15722 15020 ? 16639 15722 536 ? 16639 15722 14107 ? 16639 15722 7323 ? 16639 15722 11421 ? 16639 11421 15722 ? 16639 11421 8145 ? 16639 814...
result:
ok ok, 20013 queries used
Test #70:
score: 4
Accepted
time: 35ms
memory: 3592kb
input:
20000 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 1 1 1 1 0 0 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 14239 16639 15722 ? 14239 16639 9918 ? 14239 16639 19391 ? 14239 16639 15020 ? 14239 16639 536 ? 14239 16639 14107 ? 14239 14107 16639 ? 14239 14107 7323 ? 14239 14107 11421 ? 14239 14107 8145 ? 14239 14107 10001 ? 14239 14107 3284 ? 14239 1...
result:
ok ok, 20015 queries used
Test #71:
score: 4
Accepted
time: 22ms
memory: 3876kb
input:
20000 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 13296 2431 ? 13296 2431 16639 ? 13296 2431 15722 ? 13296 15722 2431 ? 13296 15722 9918 ? 13296 15722 19391 ? 13296 15722 15020 ? 13296 15722 536 ? 13296 15722 14107 ? 13296 15722 7323 ? 13296 15722 11421 ? 13296 15722 8145 ? 13296 15722 10001 ? 13296 15722 3284 ? 13296 157...
result:
ok ok, 20017 queries used
Test #72:
score: 4
Accepted
time: 37ms
memory: 3640kb
input:
20000 0 1 0 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 13296 2431 ? 14239 13296 16639 ? 14239 16639 13296 ? 14239 16639 15722 ? 14239 15722 16639 ? 15722 16639 9918 ? 15722 9918 16639 ? 9918 16639 19391 ? 9918 19391 16639 ? 19391 16639 15020 ? 19391 15020 16639 ? 19391 15020 536 ? 19391 15020 14107 ? 19391 15020 7323 ? 19391 1...
result:
ok ok, 20022 queries used
Test #73:
score: 4
Accepted
time: 18ms
memory: 3892kb
input:
20000 1 0 1 1 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 14239 16639 15722 ? 14239 16639 9918 ? 14239 9918 16639 ? 9918 16639 19391 ? 9918 16639 15020 ? 9918 16639 536 ? 9918 536 16639 ? 9918 536 14107 ? 9918 536 7323 ? 9918 536 11421 ? 9918 536 8145 ? 9918 536 10001 ? 9918 536 3284 ? 9918 536 847...
result:
ok ok, 20017 queries used
Test #74:
score: 4
Accepted
time: 34ms
memory: 3548kb
input:
20000 1 0 0 1 1 1 0 0 0 0 1 1 1 1 0 0 0 1 1 1 1 1 0 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 16639 2431 15722 ? 16639 2431 9918 ? 16639 2431 19391 ? 16639 2431 15020 ? 16639 15020 2431 ? 15020 2431 536 ? 15020 536 2431 ? 536 2431 14107 ? 536 2431 7323 ? 536 2431 11421 ? 536 2431 8145 ? 536 2431 10001 ? 536 10001 2431 ? 10001 2431 32...
result:
ok ok, 20015 queries used
Test #75:
score: 4
Accepted
time: 18ms
memory: 3616kb
input:
20000 1 0 0 0 0 1 1 1 1 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 16639 2431 15722 ? 16639 15722 2431 ? 15722 2431 9918 ? 15722 2431 19391 ? 15722 2431 15020 ? 15722 2431 536 ? 15722 2431 14107 ? 15722 2431 7323 ? 15722 7323 2431 ? 7323 2431 11421 ? 7323 2431 8145 ? 7323 8145 2431 ? 8145 2431 10001 ? 8145 ...
result:
ok ok, 20016 queries used
Test #76:
score: 4
Accepted
time: 14ms
memory: 3592kb
input:
20000 0 0 1 1 0 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 13296 2431 ? 13296 2431 16639 ? 13296 2431 15722 ? 13296 2431 9918 ? 13296 9918 2431 ? 13296 9918 19391 ? 13296 9918 15020 ? 13296 9918 536 ? 13296 9918 14107 ? 13296 9918 7323 ? 13296 7323 9918 ? 7323 9918 11421 ? 7323 11421 9918 ? 7323 11421 8145 ? 7323 11421 10001 ? 732...
result:
ok ok, 20011 queries used
Test #77:
score: 4
Accepted
time: 24ms
memory: 3676kb
input:
20000 1 0 0 0 0 1 0 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 16639 2431 15722 ? 16639 15722 2431 ? 15722 2431 9918 ? 15722 2431 19391 ? 15722 19391 2431 ? 19391 2431 15020 ? 19391 2431 536 ? 19391 2431 14107 ? 19391 2431 7323 ? 19391 2431 11421 ? 19391 2431 8145 ? 19391 2431 10001 ? 19391 2431 3284 ? ...
result:
ok ok, 20014 queries used
Test #78:
score: 4
Accepted
time: 25ms
memory: 3592kb
input:
20000 1 0 0 1 0 0 1 1 0 1 1 1 0 0 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 16639 2431 15722 ? 16639 2431 9918 ? 16639 9918 2431 ? 9918 2431 19391 ? 9918 2431 15020 ? 9918 2431 536 ? 9918 536 2431 ? 9918 536 14107 ? 9918 536 7323 ? 9918 536 11421 ? 9918 11421 536 ? 11421 536 8145 ? 11421 536 10001 ? 11421 536 3284 ?...
result:
ok ok, 20020 queries used
Test #79:
score: 4
Accepted
time: 27ms
memory: 3592kb
input:
20000 0 1 1 0 1 0 1 1 0 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 13296 2431 ? 14239 13296 16639 ? 14239 13296 15722 ? 14239 15722 13296 ? 14239 15722 9918 ? 14239 9918 15722 ? 14239 9918 19391 ? 14239 9918 15020 ? 14239 15020 9918 ? 14239 15020 536 ? 14239 536 15020 ? 536 15020 14107 ? 536 14107 15020 ? 14107 15020 7323 ? 14107 7323 150...
result:
ok ok, 20017 queries used
Test #80:
score: 4
Accepted
time: 28ms
memory: 3664kb
input:
20000 1 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 16639 2431 15722 ? 16639 2431 9918 ? 16639 2431 19391 ? 16639 19391 2431 ? 16639 19391 15020 ? 16639 19391 536 ? 16639 19391 14107 ? 16639 19391 7323 ? 16639 19391 11421 ? 16639 19391 8145 ? 16639 19391 10001 ? 16639 19391 3284 ? 16639 19391...
result:
ok ok, 20015 queries used
Test #81:
score: 4
Accepted
time: 14ms
memory: 3888kb
input:
20000 1 1 1 0 0 1 1 0 1 1 0 0 1 1 1 1 0 0 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 9918 2431 ? 9918 2431 19391 ? 9918 2431 15020 ? 9918 2431 536 ? 9918 536 2431 ? 9918 536 14107 ? 9918 536 7323 ? 9918 7323 536 ? 7323 536 11421 ? 7323 536 8145 ? 7323 536 10001 ? 7323 536 3284 ? 7323 536 847 ? 7323 84...
result:
ok ok, 20015 queries used
Test #82:
score: 4
Accepted
time: 33ms
memory: 3652kb
input:
20000 1 0 0 1 1 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 16639 2431 15722 ? 16639 2431 9918 ? 16639 2431 19391 ? 16639 19391 2431 ? 19391 2431 15020 ? 19391 2431 536 ? 19391 536 2431 ? 19391 536 14107 ? 19391 536 7323 ? 19391 536 11421 ? 19391 536 8145 ? 19391 536 10001 ? 19391 536 3284 ? 19391 53...
result:
ok ok, 20013 queries used
Test #83:
score: 4
Accepted
time: 30ms
memory: 3672kb
input:
20000 1 0 0 1 1 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 16639 2431 15722 ? 16639 2431 9918 ? 16639 2431 19391 ? 16639 19391 2431 ? 19391 2431 15020 ? 19391 2431 536 ? 19391 536 2431 ? 19391 536 14107 ? 19391 536 7323 ? 19391 536 11421 ? 19391 536 8145 ? 19391 536 10001 ? 19391 536 3284 ? 19391 53...
result:
ok ok, 20013 queries used
Test #84:
score: 4
Accepted
time: 17ms
memory: 3608kb
input:
20000 1 0 0 1 1 0 0 1 0 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 16639 2431 15722 ? 16639 2431 9918 ? 16639 2431 19391 ? 16639 19391 2431 ? 19391 2431 15020 ? 19391 2431 536 ? 19391 536 2431 ? 19391 536 14107 ? 19391 14107 536 ? 19391 14107 7323 ? 19391 14107 11421 ? 19391 14107 8145 ? 19391 14107 10001 ?...
result:
ok ok, 20012 queries used
Test #85:
score: 4
Accepted
time: 29ms
memory: 3588kb
input:
20000 1 1 1 0 0 1 1 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 9918 2431 ? 9918 2431 19391 ? 9918 2431 15020 ? 9918 2431 536 ? 9918 536 2431 ? 9918 536 14107 ? 9918 536 7323 ? 9918 536 11421 ? 9918 536 8145 ? 9918 536 10001 ? 9918 536 3284 ? 9918 3284 536 ? 3284 536 847 ? 3284 53...
result:
ok ok, 20016 queries used
Test #86:
score: 4
Accepted
time: 17ms
memory: 3876kb
input:
20000 1 0 0 1 1 0 0 1 0 1 1 1 1 1 1 1 0 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 16639 2431 15722 ? 16639 2431 9918 ? 16639 2431 19391 ? 16639 19391 2431 ? 19391 2431 15020 ? 19391 2431 536 ? 19391 536 2431 ? 19391 536 14107 ? 19391 536 7323 ? 19391 536 11421 ? 19391 536 8145 ? 19391 536 10001 ? 19391 536 3284 ? 19391 53...
result:
ok ok, 20017 queries used
Test #87:
score: 4
Accepted
time: 13ms
memory: 3816kb
input:
20000 1 1 1 1 1 1 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 2431 19391 ? 14239 2431 15020 ? 14239 2431 536 ? 14239 536 2431 ? 14239 536 14107 ? 14239 536 7323 ? 14239 7323 536 ? 7323 536 11421 ? 7323 536 8145 ? 7323 536 10001 ? 7323 536 3284 ? 7323 536 847 ? 7323 536 16284 ? 7...
result:
ok ok, 20014 queries used
Test #88:
score: 4
Accepted
time: 28ms
memory: 3592kb
input:
20000 0 1 0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 13296 2431 ? 14239 13296 16639 ? 14239 16639 13296 ? 16639 13296 15722 ? 16639 13296 9918 ? 16639 13296 19391 ? 16639 19391 13296 ? 19391 13296 15020 ? 19391 13296 536 ? 19391 13296 14107 ? 19391 13296 7323 ? 19391 13296 11421 ? 19391 13296 8145 ? 19391 13296 10001 ? 19391...
result:
ok ok, 20016 queries used
Test #89:
score: 4
Accepted
time: 22ms
memory: 3892kb
input:
20000 1 1 1 0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 2431 15722 ? 14239 2431 9918 ? 14239 9918 2431 ? 9918 2431 19391 ? 9918 2431 15020 ? 9918 2431 536 ? 9918 536 2431 ? 536 2431 14107 ? 536 2431 7323 ? 536 2431 11421 ? 536 2431 8145 ? 536 2431 10001 ? 536 2431 3284 ? 536 2431 847 ? 536 2431 16284 ? 536 24...
result:
ok ok, 20017 queries used
Test #90:
score: 4
Accepted
time: 30ms
memory: 3680kb
input:
20000 1 0 0 1 1 0 0 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 16639 2431 15722 ? 16639 2431 9918 ? 16639 2431 19391 ? 16639 19391 2431 ? 19391 2431 15020 ? 19391 2431 536 ? 19391 536 2431 ? 19391 536 14107 ? 19391 536 7323 ? 19391 536 11421 ? 19391 11421 536 ? 19391 11421 8145 ? 19391 11421 10001 ? 193...
result:
ok ok, 20016 queries used
Test #91:
score: 4
Accepted
time: 22ms
memory: 3668kb
input:
20000 1 0 0 1 1 0 0 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 16639 2431 15722 ? 16639 2431 9918 ? 16639 2431 19391 ? 16639 19391 2431 ? 19391 2431 15020 ? 19391 2431 536 ? 19391 536 2431 ? 19391 536 14107 ? 19391 536 7323 ? 19391 536 11421 ? 19391 536 8145 ? 19391 536 10001 ? 19391 536 3284 ? 19391 32...
result:
ok ok, 20016 queries used
Test #92:
score: 4
Accepted
time: 26ms
memory: 3660kb
input:
20000 1 0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 16639 2431 15722 ? 16639 2431 9918 ? 16639 2431 19391 ? 16639 19391 2431 ? 19391 2431 15020 ? 19391 2431 536 ? 19391 2431 14107 ? 19391 2431 7323 ? 19391 2431 11421 ? 19391 2431 8145 ? 19391 2431 10001 ? 19391 2431 3284 ? 19391 2431 847 ? 19...
result:
ok ok, 20011 queries used
Test #93:
score: 4
Accepted
time: 29ms
memory: 3592kb
input:
20000 0 0 1 1 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 13296 2431 ? 13296 2431 16639 ? 13296 2431 15722 ? 13296 2431 9918 ? 13296 9918 2431 ? 9918 2431 19391 ? 9918 2431 15020 ? 9918 2431 536 ? 9918 536 2431 ? 9918 536 14107 ? 9918 536 7323 ? 9918 536 11421 ? 9918 536 8145 ? 9918 536 10001 ? 9918 536 3284 ? 9918 536 847 ? 9918...
result:
ok ok, 20017 queries used
Test #94:
score: 4
Accepted
time: 32ms
memory: 3676kb
input:
20000 1 0 0 1 1 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 2431 16639 ? 14239 16639 2431 ? 16639 2431 15722 ? 16639 2431 9918 ? 16639 2431 19391 ? 16639 19391 2431 ? 19391 2431 15020 ? 19391 2431 536 ? 19391 536 2431 ? 19391 536 14107 ? 19391 536 7323 ? 19391 536 11421 ? 19391 536 8145 ? 19391 536 10001 ? 19391 536 3284 ? 19391 53...
result:
ok ok, 20021 queries used
Test #95:
score: 4
Accepted
time: 14ms
memory: 3876kb
input:
20000 0 0 1 1 0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
? 14239 2431 13296 ? 14239 13296 2431 ? 13296 2431 16639 ? 13296 2431 15722 ? 13296 2431 9918 ? 13296 9918 2431 ? 9918 2431 19391 ? 9918 2431 15020 ? 9918 2431 536 ? 9918 536 2431 ? 536 2431 14107 ? 536 2431 7323 ? 536 2431 11421 ? 536 2431 8145 ? 536 2431 10001 ? 536 2431 3284 ? 536 2431 847 ? 536 ...
result:
ok ok, 20014 queries used
Extra Test:
score: 0
Extra Test Passed