QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#776349 | #9783. Duloc Network | ucup-team159# | WA | 8ms | 3924kb | C++20 | 5.6kb | 2024-11-23 18:18:30 | 2024-11-23 18:18:30 |
Judging History
answer
#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rep1(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < (t); ++i)
#define rng(a) a.begin(),a.end()
#define rrng(a) a.rbegin(),a.rend()
#define fi first
#define se second
#define pb push_back
#define eb emplace_back
#define em emplace
#define pob pop_back
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define snuke srand((unsigned)clock()+(unsigned)time(NULL));
#define newline puts("")
#define vc vector
using namespace std;
template<class T> using vv = vc<vc<T>>;
template<class T> using PQ = priority_queue<T,vc<T>,greater<T>>;
using uint = unsigned; using ull = unsigned long long;
using vi = vc<int>; using vvi = vv<int>; using vvvi = vv<vi>;
using ll = long long; using vl = vc<ll>; using vvl = vv<ll>; using vvvl = vv<vl>;
using P = pair<int,int>; using vp = vc<P>; using vvp = vv<P>; using LP = pair<ll,ll>;
int geti(){int x;scanf("%d",&x);return x;}
vi pm(int n, int s=0) { vi a(n); iota(rng(a),s); return a;}
template<class T1,class T2>istream& operator>>(istream&i,pair<T1,T2>&v){return i>>v.fi>>v.se;}
template<class T1,class T2>ostream& operator<<(ostream&o,const pair<T1,T2>&v){return o<<v.fi<<","<<v.se;}
template<class T>istream& operator>>(istream&i,vc<T>&v){rep(j,sz(v))i>>v[j];return i;}
template<class T>string join(const T&v,const string&d=""){stringstream s;rep(i,sz(v))(i?s<<d:s)<<v[i];return s.str();}
template<class T>ostream& operator<<(ostream&o,const vc<T>&v){if(sz(v))o<<join(v," ");return o;}
template<class T>void vin(vc<T>&a){int n;cin>>n;a=vc<T>(n);cin>>a;}
template<class T>void vin(vv<T>&a){int n,m;cin>>n>>m;a=vv<T>(n,vc<T>(m));cin>>a;}
template<class T1,class T2>void operator--(pair<T1,T2>&a,int){a.fi--;a.se--;}
template<class T1,class T2>void operator++(pair<T1,T2>&a,int){a.fi++;a.se++;}
template<class T>void operator--(vc<T>&a,int){for(T&x:a)x--;}
template<class T>void operator++(vc<T>&a,int){for(T&x:a)x++;}
template<class T1,class T2>void operator+=(vc<T1>&a,T2 b){for(T1&x:a)x+=b;}
template<class T1,class T2>void operator-=(vc<T1>&a,T2 b){for(T1&x:a)x-=b;}
template<class T1,class T2>void operator*=(vc<T1>&a,T2 b){for(T1&x:a)x*=b;}
template<class T1,class T2>void operator/=(vc<T1>&a,T2 b){for(T1&x:a)x/=b;}
template<class T>void operator+=(vc<T>&a,const vc<T>&b){a.insert(a.end(),rng(b));}
template<class T1,class T2>pair<T1,T2>operator+(const pair<T1,T2>&a,const pair<T1,T2>&b){return {a.fi+b.fi,a.se+b.se};}
template<class T1,class T2>pair<T1,T2>operator-(const pair<T1,T2>&a,const pair<T1,T2>&b){return {a.fi-b.fi,a.se-b.se};}
template<class T>pair<T,T>operator*(const pair<T,T>&a,T b){return {a.fi*b,a.se*b};}
template<class T1,class T2>bool mins(T1& x,const T2&y){if(y<x){x=y;return true;}else return false;}
template<class T1,class T2>bool maxs(T1& x,const T2&y){if(x<y){x=y;return true;}else return false;}
template<class T>T min(const vc<T>&a){return *min_element(rng(a));}
template<class T>T max(const vc<T>&a){return *max_element(rng(a));}
template<class Tx,class Ty>Tx dup(Tx x, Ty y){return (x+y-1)/y;}
template<class T>ll suma(const vc<T>&a){ll s=0;for(auto&&x:a)s+=x;return s;}
template<class T>ll suma(const vv<T>&a){ll s=0;for(auto&&x:a)s+=suma(x);return s;}
template<class T>void uni(T&a){sort(rng(a));a.erase(unique(rng(a)),a.end());}
template<class T>void prepend(vc<T>&a,const T&x){a.insert(a.begin(),x);}
const double eps = 1e-10;
const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;
#define dame { puts("-1"); return;}
#define yes { puts("Yes"); return;}
#define no { puts("No"); return;}
#define rtn(x) { cout<<(x)<<'\n'; return;} // flush!
#define yn {puts("Yes");}else{puts("No");}
random_device _rd;
struct xrand {
static const uint64_t _x = 88172645463325252ull;
uint64_t x;
xrand(): x(_x ^ (_rd()+time(0))) {}
xrand(uint64_t seed): x(_x ^ seed) {}
uint64_t get() {
x = x ^ (x << 7);
return x = x ^ (x >> 9);
}
ull operator()() { return get();}
ull operator()(ull n) { return get()%n;}
ll operator()(ll l, ll r) { return get()%(r-l+1) + l;}
} rnd;
template<typename T> void shuffle(vc<T>& a) {
for (int i = a.size(); i >= 2; --i) swap(a[i-1],a[rnd(i)]);
}
struct Solver {
void solve() {
int n;
cin>>n;
int rem = 3500;
auto f = [&](const vi& a) {
rem--;
string s(n,'0');
for (int i : a) s[i] = '1';
cout<<"? "<<s<<endl;
int r; cin>>r;
return r;
};
auto fans = [&](int ans) {
if (ans == -1) ans = rnd(2);
cout<<"! "<<ans<<endl;
};
vi deg(n);
rep(i,n) deg[i] = f(vi(1,i));
vi vs; int now = 0;
{
vi cand; int mx = -1;
rep(i,n) {
if (mx > deg[i]) continue;
if (mx < deg[i]) mx = deg[i], cand = vi();
cand.pb(i);
}
vs.pb(cand[rnd(sz(cand))]);
now = mx;
}
set<int> us;
rep(i,n) us.insert(i);
us.erase(vs[0]);
while (rem && sz(us)) {
vi ws;
for (int i : us) ws.pb(i);
shuffle(ws);
for (int u : ws) {
vs.pb(u);
int res = f(vs);
if (res == deg[u]+now) {
vs.pob();
} else {
now = res;
us.erase(u);
}
if (sz(us) == 0) {fans(1); return;}
if (now == 0) {fans(0); return;}
if (rem == 0) {fans(-1); return;}
}
}
fans(-1);
}
};
int main() {
// cin.tie(nullptr); ios::sync_with_stdio(false);
int ts = 1;
// scanf("%d",&ts);
rep1(ti,ts) {
Solver solver;
solver.solve();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3664kb
input:
4 1 3 2 2 2 1 0
output:
? 1000 ? 0100 ? 0010 ? 0001 ? 0110 ? 1110 ? 1111 ! 1
result:
ok Correct answer with 7 queries.
Test #2:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
2 0 0 0
output:
? 10 ? 01 ? 11 ! 0
result:
ok Correct answer with 3 queries.
Test #3:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
4 1 3 2 2 2 1 0
output:
? 1000 ? 0100 ? 0010 ? 0001 ? 0101 ? 1101 ? 1111 ! 1
result:
ok Correct answer with 7 queries.
Test #4:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
2 0 0 0
output:
? 10 ? 01 ? 11 ! 0
result:
ok Correct answer with 3 queries.
Test #5:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
50 3 1 1 1 1 4 3 1 1 2 3 3 2 1 2 4 3 1 1 1 2 4 1 3 1 4 3 2 2 2 4 2 2 1 1 2 1 2 4 1 1 3 3 3 6 2 1 3 2 3 6 7 5 8 6 7 7 7 7 7 7 9 8 9 10 10 11 13 11 11 11 13 14 14 12 14 13 13 12 14 16 18 20 18 17 16 16 15 14 13 12 12 13 12 11 12 11 11 10 9 8 8 7 6 5 4 5 3 3 2 3 3 3 3 5 1 0
output:
? 10000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 00010000000000000000000000000000000000000000000000 ? 00001000000000000000000000000000000000000000000000 ? 000001000000000000000000000000000...
result:
ok Correct answer with 117 queries.
Test #6:
score: 0
Accepted
time: 1ms
memory: 3884kb
input:
50 10 13 8 6 13 8 10 8 8 8 9 13 15 11 9 10 14 6 16 10 15 10 7 8 10 10 10 13 10 15 9 10 11 5 16 10 14 11 10 9 9 15 11 10 7 11 12 10 9 10 21 27 32 32 36 35 34 35 37 37 37 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
output:
? 10000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 00010000000000000000000000000000000000000000000000 ? 00001000000000000000000000000000000000000000000000 ? 000001000000000000000000000000000...
result:
ok Correct answer with 99 queries.
Test #7:
score: 0
Accepted
time: 1ms
memory: 3888kb
input:
50 1 3 1 4 3 1 1 1 1 3 1 1 1 1 3 5 1 1 1 1 3 2 5 1 2 1 4 1 2 3 4 3 3 2 3 1 1 1 1 3 2 2 1 3 4 2 4 2 3 2 6 6 7 7 8 6 7 7 10 9 9 11 13 14 14 15 12 14 12 14 17 16 18 17 17 17 18 18 17 16 15 16 15 16 14 15 13 12 11 10 10 9 10 8 7 6 5 4 3 4 4 4 4 3 2 3 3 3 1 2 4 2 0
output:
? 10000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 00010000000000000000000000000000000000000000000000 ? 00001000000000000000000000000000000000000000000000 ? 000001000000000000000000000000000...
result:
ok Correct answer with 113 queries.
Test #8:
score: 0
Accepted
time: 1ms
memory: 3916kb
input:
50 2 14 8 8 7 12 12 8 8 9 9 10 8 8 4 8 9 9 9 11 13 11 8 7 9 12 7 5 6 4 7 8 10 5 5 10 8 4 10 9 11 7 10 8 6 8 10 7 5 9 22 15 21 21 25 28 30 31 30 29 28 30 32 32 32 32 31 30 30 29 28 27 26 25 24 23 22 21 20 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
output:
? 10000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 00010000000000000000000000000000000000000000000000 ? 00001000000000000000000000000000000000000000000000 ? 000001000000000000000000000000000...
result:
ok Correct answer with 100 queries.
Test #9:
score: 0
Accepted
time: 1ms
memory: 3888kb
input:
50 3 1 1 1 2 1 1 1 1 5 1 2 1 1 1 1 3 1 1 2 1 1 1 2 2 1 1 1 1 3 1 2 1 1 2 3 1 2 3 2 1 3 1 2 3 1 2 2 1 1 7 6 6 6 6 7 6 6 5 6 6 7 8 9 8 9 9 10 9 10 9 11 10 11 8 9 9 11 9 9 9 9 9 10 11 10 9 9 8 9 7 9 8 6 7 5 4 5 5 5 5 6 5 5 6 5 5 6 5 7 3 5 3 2 3 3 3 3 3 3 5 3 3 3 4 3 1 2 4 2 0
output:
? 10000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 00010000000000000000000000000000000000000000000000 ? 00001000000000000000000000000000000000000000000000 ? 000001000000000000000000000000000...
result:
ok Correct answer with 131 queries.
Test #10:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
100 1 2 1 1 1 1 1 1 3 3 1 1 2 3 4 1 2 2 2 1 2 2 1 2 2 1 1 1 3 2 1 2 2 1 4 1 1 1 3 2 4 1 3 2 3 3 3 1 1 1 1 2 1 2 2 4 3 1 2 1 1 1 1 3 3 3 2 1 1 2 1 2 2 3 2 1 5 3 5 1 1 1 1 1 1 1 1 3 4 1 2 1 2 1 1 2 1 3 2 1 6 6 7 6 7 5 6 7 7 6 7 4 4 5 5 6 7 5 7 5 7 5 7 6 6 5 5 6 6 6 6 5 4 5 5 6 8 5 6 6 6 6 7 7 7 9 7 9 ...
output:
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 308 queries.
Test #11:
score: 0
Accepted
time: 2ms
memory: 3884kb
input:
100 11 13 9 11 8 7 15 12 8 8 7 6 9 12 11 9 10 9 11 16 10 8 9 8 10 6 8 9 13 10 9 7 5 11 14 6 11 16 7 7 8 8 11 8 13 15 11 12 11 11 11 9 10 12 10 6 11 10 5 13 9 9 6 6 6 12 7 12 10 10 9 11 7 11 5 6 9 6 5 9 5 16 11 13 13 10 5 5 8 8 12 11 5 8 8 10 8 10 8 10 24 32 37 42 44 48 51 59 61 67 67 67 70 74 74 76 ...
output:
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 199 queries.
Test #12:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
100 5 3 3 4 2 2 2 8 4 5 4 4 2 2 3 4 6 5 1 4 3 3 2 5 5 2 2 4 3 4 4 4 4 1 3 5 3 4 4 3 3 4 1 3 3 2 5 5 5 1 3 4 3 4 2 2 4 2 1 3 3 7 3 5 5 6 6 1 3 2 3 3 3 2 1 6 3 5 5 3 4 4 2 2 1 5 7 3 3 1 6 2 2 5 2 5 3 3 6 4 11 13 15 18 17 20 18 16 20 21 24 30 29 32 34 35 36 36 35 37 37 37 38 37 36 38 41 40 39 39 41 44 ...
output:
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 210 queries.
Test #13:
score: 0
Accepted
time: 2ms
memory: 3664kb
input:
100 1 1 1 3 1 1 3 1 4 1 2 3 4 1 1 2 4 1 3 2 1 3 2 4 1 3 1 1 2 1 1 1 3 1 1 4 1 1 1 1 4 1 2 1 3 3 1 1 3 4 1 2 2 3 3 1 1 1 1 4 1 1 1 1 1 2 2 2 2 1 2 2 2 2 2 1 1 2 5 1 2 2 1 1 2 2 2 4 1 1 1 5 4 1 3 1 1 1 2 1 6 8 7 4 6 5 5 5 9 6 6 5 5 5 6 5 5 5 6 8 8 7 7 10 7 7 9 8 8 8 6 7 7 7 10 7 10 8 7 9 8 10 8 11 11 ...
output:
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 324 queries.
Test #14:
score: 0
Accepted
time: 2ms
memory: 3880kb
input:
100 1 1 2 3 1 3 2 1 1 1 1 1 1 4 1 1 1 2 1 1 2 3 1 1 1 2 1 2 2 2 1 2 1 1 1 4 3 1 1 1 1 2 2 3 2 1 1 1 1 1 1 1 1 5 3 1 1 2 1 1 2 1 2 2 1 2 3 1 1 1 1 1 3 1 1 1 1 1 3 1 1 1 2 2 1 3 3 2 1 4 3 1 2 3 1 1 2 1 2 1 6 7 7 6 6 6 6 8 6 6 6 5 6 6 7 7 6 6 7 7 6 6 4 5 5 7 5 8 5 6 5 5 4 6 7 7 5 6 7 6 8 6 7 9 9 8 8 8 ...
output:
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 277 queries.
Test #15:
score: 0
Accepted
time: 2ms
memory: 3660kb
input:
150 4 2 3 2 2 3 2 4 3 3 4 2 2 4 6 1 3 2 3 5 3 4 4 3 6 3 1 2 4 5 5 3 2 3 3 2 3 1 2 4 2 4 4 1 2 3 2 3 1 1 4 4 3 2 2 1 3 3 1 2 1 6 1 3 2 4 1 4 2 1 4 3 4 1 3 4 2 4 2 5 3 4 2 6 6 2 2 2 3 2 4 4 4 2 2 1 2 1 3 2 3 7 2 1 3 2 5 4 1 2 3 2 3 2 3 5 3 4 5 2 3 1 3 1 2 3 1 3 1 2 3 3 2 3 7 1 2 1 4 2 2 2 3 4 4 3 6 3 ...
output:
? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 324 queries.
Test #16:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
150 4 2 2 1 2 1 1 8 1 2 1 3 4 2 1 4 3 2 1 4 3 1 1 4 5 3 2 3 3 2 4 1 3 4 4 5 4 2 6 4 2 2 2 2 3 6 2 3 3 4 3 3 2 3 2 4 2 1 1 1 1 2 2 4 2 3 3 3 7 1 4 3 3 3 4 2 2 1 2 2 2 1 2 4 2 1 2 2 4 2 2 4 2 6 2 4 4 2 1 2 4 2 5 1 4 3 3 1 2 4 4 2 2 3 4 1 4 2 2 3 3 3 2 3 2 6 3 3 2 3 1 1 3 5 2 3 2 2 2 3 1 3 3 4 3 3 2 3 ...
output:
? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 340 queries.
Test #17:
score: 0
Accepted
time: 3ms
memory: 3740kb
input:
150 3 1 4 1 4 2 3 1 1 3 1 1 4 5 7 1 2 1 2 3 4 2 3 5 1 5 1 2 2 5 3 6 2 2 1 3 5 1 3 2 2 3 1 2 1 3 2 2 1 3 2 2 2 5 1 2 2 5 5 2 3 4 1 3 1 2 1 2 2 1 1 5 3 1 3 1 2 3 1 2 2 2 1 4 1 2 2 5 3 2 1 4 2 2 5 1 3 3 1 4 3 2 4 1 5 3 4 2 2 3 1 2 4 3 3 2 1 2 3 1 1 2 1 3 4 3 1 2 4 4 3 1 7 4 1 1 1 1 4 3 2 3 2 2 1 3 3 1 ...
output:
? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 379 queries.
Test #18:
score: 0
Accepted
time: 2ms
memory: 3728kb
input:
150 4 4 5 4 2 2 5 3 1 4 2 2 3 1 1 2 2 3 3 3 8 2 1 3 2 2 3 1 1 3 2 3 2 3 3 7 1 2 1 5 4 1 4 4 3 2 3 2 5 7 3 2 1 2 1 3 5 3 3 6 3 3 5 3 5 5 1 4 2 5 2 3 2 2 1 3 2 2 2 2 1 3 2 1 2 5 4 3 6 3 2 3 1 2 3 3 1 4 2 2 2 3 4 3 1 5 2 1 5 2 4 6 3 3 2 3 3 2 3 1 5 1 3 2 3 8 2 5 1 4 5 4 1 1 3 1 1 1 5 3 1 3 4 2 3 2 2 4 ...
output:
? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 333 queries.
Test #19:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
150 2 1 1 3 2 2 2 1 1 1 1 1 2 2 2 1 1 3 3 2 2 1 2 1 2 5 4 2 1 2 2 2 2 1 2 1 2 1 2 3 3 2 3 2 1 1 2 2 3 1 2 1 1 3 3 2 4 2 1 1 2 5 2 2 2 2 1 1 3 2 1 3 1 5 3 1 3 1 4 1 2 1 3 1 1 1 3 1 1 2 1 5 3 1 1 1 2 1 2 1 2 1 1 2 2 3 1 2 1 2 2 2 2 2 3 1 5 2 1 2 3 2 1 2 4 1 1 2 3 3 3 1 2 1 3 2 2 1 1 2 2 3 1 1 1 1 4 1 ...
output:
? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 528 queries.
Test #20:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
200 1 3 1 3 3 1 1 1 1 1 2 1 3 2 2 1 1 3 1 2 1 1 1 1 2 2 1 1 1 2 1 4 1 1 1 1 2 1 1 2 3 1 1 1 4 1 1 1 1 3 1 1 1 1 2 1 1 1 1 2 1 2 1 2 1 1 1 1 1 4 1 1 1 1 1 1 1 1 1 2 1 1 2 1 2 2 2 4 1 2 1 1 5 2 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 3 1 2 1 1 3 1 1 1 2 1 5 1 1 1 1 4 1 4 1 1 3 1 3 1 3 1 1 4 1 2 1 3 1 2 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 740 queries.
Test #21:
score: 0
Accepted
time: 5ms
memory: 3600kb
input:
200 3 2 2 2 2 2 1 1 1 4 2 1 2 2 2 2 1 1 2 1 1 3 1 1 2 2 2 3 1 2 1 1 2 1 2 2 2 3 3 3 2 2 1 1 4 1 1 2 2 2 2 1 2 2 1 3 2 3 2 1 1 1 1 1 2 2 1 1 2 1 1 4 2 1 1 1 1 2 3 2 1 2 3 4 1 1 2 5 5 2 1 3 2 3 1 3 1 2 1 2 1 1 3 2 2 3 3 4 1 1 2 1 3 2 1 1 1 1 1 4 2 1 1 1 1 2 2 2 3 2 2 2 1 1 1 2 3 3 2 2 2 3 1 4 1 3 2 1 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 866 queries.
Test #22:
score: 0
Accepted
time: 3ms
memory: 3568kb
input:
200 1 2 1 1 1 3 1 1 2 1 2 3 2 3 1 3 2 1 3 1 2 3 1 1 1 2 2 1 4 2 1 1 5 2 3 1 3 3 2 2 2 2 1 2 3 3 2 2 1 1 4 2 2 2 5 2 2 3 3 3 2 1 2 2 2 1 1 2 2 1 1 1 3 2 3 2 1 3 3 3 2 2 1 2 2 5 1 3 3 1 1 1 1 1 3 1 1 1 1 4 3 1 3 1 3 2 1 3 3 1 1 4 1 2 2 2 1 2 3 2 4 3 1 1 3 3 1 1 2 1 1 2 2 1 1 1 3 1 2 1 1 1 2 3 2 1 1 1 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 997 queries.
Test #23:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
200 1 1 1 1 1 2 3 2 1 1 4 1 2 2 3 2 3 1 2 1 2 2 3 2 1 3 3 3 2 4 2 4 4 1 2 2 2 3 3 1 2 1 2 1 2 4 1 1 2 2 1 2 2 2 2 2 2 1 3 1 2 2 2 2 1 2 1 4 1 4 1 2 1 1 2 1 1 3 2 3 1 2 3 2 1 2 3 1 1 1 3 2 2 1 1 2 3 3 3 4 1 3 1 2 1 3 4 1 1 3 1 2 2 1 4 1 3 2 2 2 1 1 1 2 3 2 2 1 3 1 1 3 2 1 2 3 1 3 4 2 3 2 1 1 4 2 1 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1102 queries.
Test #24:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
200 1 3 2 2 3 3 2 2 2 2 3 2 1 1 4 4 3 4 4 3 3 2 4 6 2 6 3 3 1 1 3 3 2 2 2 2 4 2 2 4 2 3 3 3 2 3 5 3 3 2 6 1 2 4 2 2 4 4 2 4 3 2 2 2 2 3 3 2 1 5 3 2 5 3 3 3 3 2 3 2 1 2 2 1 1 3 3 3 3 4 2 2 5 3 3 4 4 1 1 2 2 2 1 2 2 1 1 2 2 4 1 3 4 3 4 2 4 1 5 1 2 2 4 3 1 4 2 3 2 4 3 7 3 1 2 3 2 3 8 7 5 4 4 3 1 5 3 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 475 queries.
Test #25:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
200 6 6 5 5 3 3 1 3 2 4 6 4 5 5 3 7 5 3 7 10 6 4 8 1 2 3 4 3 4 5 5 6 2 5 5 10 10 1 1 7 2 3 6 4 2 8 5 3 3 3 1 7 5 9 4 3 2 4 3 3 3 3 7 7 4 2 4 1 9 4 4 3 6 6 1 4 2 2 7 5 6 3 7 3 5 4 4 6 2 3 4 5 9 6 2 8 4 6 3 1 7 4 3 4 3 8 3 8 12 3 4 3 3 7 2 7 7 6 8 5 3 6 6 3 6 4 5 7 6 3 1 3 1 3 1 2 4 2 5 2 4 4 5 3 5 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 419 queries.
Test #26:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
200 2 9 4 4 6 4 2 3 4 5 5 4 5 7 6 3 3 5 3 1 5 4 4 7 3 4 1 3 5 1 6 2 4 4 4 5 2 3 1 2 5 4 3 3 5 4 2 4 5 3 4 3 3 5 5 3 3 4 1 3 4 2 5 7 1 5 7 7 4 6 6 7 7 5 4 6 3 3 4 5 5 4 2 5 7 2 3 3 1 4 3 7 4 4 5 3 9 4 5 7 5 4 6 4 9 6 3 3 7 3 4 4 5 4 5 2 5 5 4 6 4 8 5 6 3 6 3 8 4 2 8 5 2 3 8 3 1 2 6 2 5 6 6 2 7 1 4 7 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 419 queries.
Test #27:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
200 4 3 3 1 5 5 4 1 1 4 5 2 2 2 1 5 3 5 4 2 6 7 2 6 1 1 8 2 8 4 3 4 1 5 2 1 4 3 3 4 2 3 5 5 2 1 3 4 2 8 2 4 4 3 6 4 7 1 1 6 2 6 4 5 6 2 1 6 2 2 9 3 3 1 1 1 2 5 3 6 1 2 3 4 7 3 2 5 4 5 3 3 4 6 5 4 6 4 1 2 4 6 8 3 2 4 3 3 5 6 5 4 3 4 4 3 5 2 2 4 5 5 4 2 1 6 3 5 7 6 3 2 2 6 3 1 4 4 4 3 2 1 3 1 4 6 4 3 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 432 queries.
Test #28:
score: 0
Accepted
time: 3ms
memory: 3636kb
input:
200 6 1 8 4 8 7 3 6 3 2 6 4 10 6 6 7 1 3 9 5 5 3 4 3 5 6 2 3 3 4 5 3 3 6 2 5 3 6 3 10 3 5 2 6 5 6 5 8 2 6 4 3 8 4 3 3 4 7 2 4 4 3 4 5 4 4 2 4 10 9 5 9 9 5 2 8 6 3 2 3 2 1 5 3 5 4 2 5 3 5 3 4 2 5 3 4 2 5 5 2 4 5 3 5 3 2 2 6 5 2 4 6 12 6 9 3 3 4 5 4 6 7 4 4 2 3 6 7 4 4 4 4 5 6 4 9 4 5 6 5 5 3 5 3 3 3 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 416 queries.
Test #29:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
200 7 4 6 3 4 2 3 3 1 9 4 6 2 4 7 3 4 4 3 8 5 6 3 7 10 5 7 4 5 2 3 6 3 2 3 3 3 1 6 5 3 3 4 4 3 5 4 3 5 4 5 8 4 4 5 4 6 3 3 6 4 2 3 4 3 3 2 2 4 4 2 6 3 8 5 4 2 7 2 5 6 5 2 9 2 4 4 5 1 5 9 6 6 8 5 2 5 7 3 4 6 4 2 3 4 6 6 5 7 4 7 7 2 5 6 3 4 3 4 4 6 2 2 5 2 4 5 6 3 5 3 8 4 2 2 4 6 2 9 6 3 8 4 5 6 2 3 7...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 416 queries.
Test #30:
score: 0
Accepted
time: 6ms
memory: 3700kb
input:
200 2 2 2 1 1 2 1 1 2 1 2 1 1 1 1 2 3 2 1 1 3 2 2 4 2 1 3 3 2 1 1 3 5 1 3 1 1 2 1 1 2 3 4 2 1 1 2 3 1 5 1 2 1 2 2 3 3 3 2 1 2 2 2 3 1 1 3 1 1 1 1 4 3 1 2 2 2 3 3 1 2 2 3 3 1 3 1 2 3 2 2 1 2 2 1 2 1 2 2 1 1 2 2 1 1 3 2 1 2 5 1 2 3 3 1 1 3 3 3 1 1 3 1 1 2 2 2 3 3 2 2 2 1 2 1 2 2 4 3 2 3 3 2 4 2 3 2 1 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1023 queries.
Test #31:
score: 0
Accepted
time: 5ms
memory: 3668kb
input:
200 1 1 2 3 1 1 1 3 2 1 1 2 1 2 3 3 1 3 1 1 2 2 3 1 1 2 2 4 3 2 2 2 2 3 1 3 2 1 2 1 1 3 1 2 2 1 1 2 1 1 3 3 2 2 2 4 1 2 1 2 2 2 3 1 2 4 2 2 1 1 2 2 2 2 1 1 2 2 2 3 2 3 1 2 4 2 1 3 1 1 3 1 3 2 3 2 2 2 2 2 3 3 1 3 3 1 1 1 2 2 1 1 3 3 1 1 3 2 3 1 1 2 2 2 2 1 3 2 1 1 3 1 3 2 2 6 1 2 2 2 3 2 2 1 1 3 1 3 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 807 queries.
Test #32:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
200 1 2 4 1 2 3 3 1 1 4 2 3 2 4 2 2 3 2 1 3 1 2 2 1 1 2 2 2 1 3 1 2 1 3 1 2 5 3 1 4 1 2 1 1 1 3 1 1 3 1 1 1 1 3 1 2 2 2 3 1 2 1 2 1 1 3 3 4 4 1 2 1 1 1 1 4 2 1 1 1 2 3 1 2 2 2 2 1 2 4 2 2 2 3 2 1 2 1 2 1 1 2 2 1 2 3 3 1 1 2 3 3 2 1 3 1 2 1 2 2 3 3 3 4 1 1 1 4 3 1 1 2 4 2 1 3 3 1 1 4 4 2 2 3 1 3 3 1 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 964 queries.
Test #33:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
200 1 1 3 3 3 1 3 3 2 1 1 5 3 3 1 1 1 1 3 3 1 1 2 2 1 1 2 2 1 1 1 2 2 1 3 2 3 2 4 1 3 1 2 1 1 4 1 1 4 1 2 1 2 3 4 2 2 2 2 1 1 1 3 3 2 2 3 4 1 1 1 1 1 1 2 3 3 3 1 2 1 2 2 3 1 3 2 3 2 1 3 2 1 2 2 2 1 4 1 3 5 2 1 1 5 2 1 1 3 1 2 3 2 1 1 1 3 4 1 1 2 1 1 5 2 2 1 2 1 1 3 1 2 4 2 1 4 3 2 1 6 2 2 2 2 4 1 3 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 821 queries.
Test #34:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
200 2 1 2 2 2 3 3 3 1 1 1 3 3 1 1 2 2 1 2 2 3 3 1 2 1 2 4 3 3 1 2 2 2 2 3 2 1 4 1 3 1 2 2 2 1 1 2 5 1 1 1 2 3 1 1 3 1 1 1 4 1 2 4 1 1 1 3 2 2 2 2 2 1 2 3 3 2 1 2 2 4 1 3 1 1 2 1 3 1 2 4 2 2 2 1 1 2 4 1 1 1 1 5 3 2 3 2 4 2 2 2 1 2 2 4 1 2 2 1 2 1 2 1 2 2 1 1 2 2 1 1 2 2 2 3 2 1 2 3 3 3 1 2 1 2 2 4 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 818 queries.
Test #35:
score: 0
Accepted
time: 4ms
memory: 3892kb
input:
200 3 3 2 2 3 2 2 3 2 3 2 3 1 3 2 2 2 2 3 2 2 2 2 3 2 2 2 3 2 2 3 3 3 2 2 2 1 2 2 2 3 2 2 1 3 3 3 2 3 3 2 2 2 3 3 2 2 3 2 3 3 3 1 2 3 2 2 2 1 3 3 2 2 2 2 3 2 2 2 3 2 2 3 1 2 2 2 2 3 2 2 2 2 2 3 1 2 3 2 3 1 2 2 2 3 2 2 2 2 3 3 2 2 3 2 2 3 2 3 2 3 2 2 2 3 2 2 3 2 3 2 2 2 1 2 2 3 3 2 3 2 2 2 2 2 3 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 665 queries.
Test #36:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
200 1 2 2 2 3 2 3 2 3 3 2 3 2 3 3 3 2 3 2 3 2 3 2 2 3 2 3 2 2 3 2 2 3 2 3 3 2 3 2 3 2 3 2 3 3 2 2 2 2 1 1 2 2 2 3 2 3 2 3 3 2 3 2 3 3 3 2 3 2 3 2 3 2 2 3 2 3 2 2 3 2 2 3 2 3 3 2 3 2 3 2 3 2 3 3 2 2 2 2 1 1 2 2 2 3 2 3 2 3 3 2 3 2 3 3 3 2 3 2 3 2 3 2 2 3 2 3 2 2 3 2 2 3 2 3 3 2 3 2 3 2 3 2 3 3 2 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 621 queries.
Test #37:
score: 0
Accepted
time: 7ms
memory: 3900kb
input:
200 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 3500 queries.
Test #38:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
200 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 3329 queries.
Test #39:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
200 3 1 2 1 1 2 2 1 2 1 1 1 2 3 3 1 2 1 2 1 2 1 3 1 1 2 2 2 1 1 2 3 2 3 2 1 1 1 1 1 3 3 2 2 2 3 3 2 2 2 2 2 1 2 2 4 1 1 4 3 2 1 1 5 1 1 1 1 2 3 2 2 1 2 1 3 1 1 1 2 2 3 1 2 1 1 1 3 2 3 1 2 1 1 3 2 3 2 2 1 2 1 2 2 2 2 1 2 3 2 2 1 1 2 1 2 4 1 2 1 3 2 1 1 2 1 1 4 2 1 2 2 2 1 3 2 3 5 2 2 2 1 1 4 1 1 2 3 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 942 queries.
Test #40:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
200 2 1 2 4 2 2 1 2 1 3 2 1 1 3 3 1 1 1 3 2 2 1 2 2 2 3 1 1 4 2 1 3 3 4 3 4 3 2 1 3 3 2 3 1 3 2 1 4 1 1 5 2 1 2 1 2 1 1 2 2 4 4 1 2 1 3 2 2 1 3 2 3 1 3 1 1 1 2 1 1 2 1 1 2 1 1 1 1 2 1 1 3 1 2 5 1 2 3 4 1 1 1 4 3 1 2 1 2 1 2 2 2 3 2 2 2 2 1 1 2 2 4 2 4 1 1 1 3 3 2 3 3 2 1 2 1 1 2 1 2 2 3 2 1 3 1 3 1 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1054 queries.
Test #41:
score: 0
Accepted
time: 2ms
memory: 3668kb
input:
200 3 2 1 2 4 3 2 1 1 2 2 1 2 6 2 1 1 1 1 2 3 1 3 1 1 2 2 1 3 2 1 4 3 3 1 3 2 5 1 3 1 3 2 2 1 1 2 1 3 2 3 4 3 1 2 1 3 2 3 1 2 1 1 2 2 1 1 1 1 2 1 3 1 1 2 2 1 3 2 2 5 1 2 3 3 2 2 2 6 1 1 1 2 1 2 2 1 1 1 2 1 1 2 2 1 2 4 1 3 3 2 2 1 2 2 3 3 1 3 2 2 2 3 3 3 3 1 2 1 1 3 1 3 3 4 3 3 1 3 4 2 2 2 1 1 2 3 1 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1080 queries.
Test #42:
score: 0
Accepted
time: 6ms
memory: 3892kb
input:
200 4 4 1 1 3 2 2 2 3 2 1 1 3 2 3 1 2 2 2 2 1 5 2 4 4 4 1 1 1 3 3 1 1 2 1 2 1 1 1 4 1 2 1 1 2 2 1 4 2 1 1 2 1 2 1 2 1 1 1 1 2 1 1 2 1 1 2 3 2 1 1 3 2 2 1 1 3 2 2 2 2 3 2 2 1 1 2 1 2 1 2 2 2 4 4 1 2 2 2 1 2 1 2 1 2 1 2 1 2 3 3 4 4 3 4 1 1 1 3 5 4 4 2 1 3 2 3 3 2 1 1 1 1 1 3 1 1 2 1 1 2 1 1 4 2 1 2 3 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 887 queries.
Test #43:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
200 1 1 2 3 2 2 2 3 2 2 3 4 1 4 3 2 1 1 3 4 1 2 3 3 2 1 1 1 4 2 3 3 4 1 1 1 1 1 3 1 2 1 2 3 1 1 2 1 3 2 2 1 3 2 5 2 1 1 2 2 1 1 2 1 2 3 2 4 1 2 2 4 1 2 2 1 2 1 2 2 1 1 1 1 2 1 1 4 1 2 1 4 2 3 3 1 2 2 1 1 2 2 4 1 1 2 2 1 3 1 3 2 2 1 2 2 3 2 2 2 1 1 1 1 1 3 5 1 3 2 2 3 2 2 2 1 1 1 2 2 3 2 2 1 1 1 2 1 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 938 queries.
Test #44:
score: 0
Accepted
time: 3ms
memory: 3924kb
input:
200 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 399 queries.
Test #45:
score: 0
Accepted
time: 5ms
memory: 3668kb
input:
200 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 198 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 399 queries.
Test #46:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
200 16 14 18 11 22 8 14 26 11 12 15 14 20 9 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 581 queries.
Test #47:
score: 0
Accepted
time: 0ms
memory: 3900kb
input:
200 15 15 16 19 17 16 13 16 6 17 13 16 13 20 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 825 queries.
Test #48:
score: 0
Accepted
time: 8ms
memory: 3892kb
input:
200 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 3500 queries.
Test #49:
score: 0
Accepted
time: 3ms
memory: 3820kb
input:
200 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 3500 queries.
Test #50:
score: 0
Accepted
time: 5ms
memory: 3684kb
input:
200 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 3500 queries.
Test #51:
score: 0
Accepted
time: 8ms
memory: 3676kb
input:
200 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 3500 queries.
Test #52:
score: 0
Accepted
time: 5ms
memory: 3900kb
input:
200 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 2489 queries.
Test #53:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
200 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 2386 queries.
Test #54:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
200 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 3 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1517 queries.
Test #55:
score: -100
Wrong Answer
time: 4ms
memory: 3660kb
input:
200 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
wrong answer Wrong answer.