QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#117012 | #6668. Trokuti | hos_lyric# | 26.824242 | 112ms | 21684kb | C++14 | 6.5kb | 2023-06-30 12:10:33 | 2024-05-31 18:37:25 |
Judging History
answer
#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
using Int = long long;
template <class T1, class T2> ostream &operator<<(ostream &os, const pair<T1, T2> &a) { return os << "(" << a.first << ", " << a.second << ")"; };
template <class T> ostream &operator<<(ostream &os, const vector<T> &as) { const int sz = as.size(); os << "["; for (int i = 0; i < sz; ++i) { if (i >= 256) { os << ", ..."; break; } if (i > 0) { os << ", "; } os << as[i]; } return os << "]"; }
template <class T> void pv(T a, T b) { for (T i = a; i != b; ++i) cerr << *i << " "; cerr << endl; }
template <class T> bool chmin(T &t, const T &f) { if (t > f) { t = f; return true; } return false; }
template <class T> bool chmax(T &t, const T &f) { if (t < f) { t = f; return true; } return false; }
// [0, 2^32)
unsigned xrand() {
static unsigned x = 314159265, y = 358979323, z = 846264338, w = 327950288;
unsigned t = x ^ x << 11; x = y; y = z; z = w; return w = w ^ w >> 19 ^ t ^ t >> 8;
}
// [a, b]
int xrand(int a, int b) { return a + xrand() % (b - a + 1); }
constexpr int N = 100;
#ifdef LOCAL
int secret[N][N];
int Q;
#endif
int Ask(int u, int v, int w) {
assert(0 <= u); assert(u < N);
assert(0 <= v); assert(v < N);
assert(0 <= w); assert(w < N);
assert(u != v); assert(v != w); assert(w != u);
int s;
#ifdef LOCAL
++Q;
s = secret[u][v] + secret[v][w] + secret[w][u];
#else
printf("? %d %d %d\n", u + 1, v + 1, w + 1);
fflush(stdout);
scanf("%d", &s);
#endif
return s;
}
int A[N][N];
void Answer() {
#ifdef LOCAL
for (int u = 0; u < N; ++u) for (int v = 0; v < N; ++v) {
assert(secret[u][v] == A[u][v]);
}
cerr << "Accepted: Q = " << Q << endl;
#else
puts("!");
for (int u = 0; u < N; ++u) {
for (int v = 0; v < N; ++v) {
printf("%d", A[u][v]);
}
puts("");
}
fflush(stdout);
#endif
}
map<vector<int>, vector<int>> psss[6];
void small() {
for (int n = 3; n <= 5; ++n) {
const int m = n * (n - 1) / 2;
for (int p = 0; p < 1 << m; ++p) {
int a[5][5] = {};
{
int pos = 0;
for (int u = 0; u < n; ++u) for (int v = u + 1; v < n; ++v) {
a[u][v] = a[v][u] = p >> pos & 1;
++pos;
}
}
vector<int> fs;
for (int u = 0; u < n; ++u) for (int v = u + 1; v < n; ++v) for (int w = v + 1; w < n; ++w) {
fs.push_back(a[u][v] + a[v][w] + a[w][u]);
}
psss[n][fs].push_back(p);
}
#ifdef LOCAL
for (const auto &kv : psss[n]) if (kv.second.size() >= 2) {
cerr << kv.first;
for (const int p : kv.second) {
cerr << " ";
for (int i = 0; i < m; ++i) cerr << ((p >> i) & 1);
}
cerr << endl;
}
#endif
}
}
void ae(int u, int v, int c) {
assert(0 <= u); assert(u < N);
assert(0 <= v); assert(v < N);
assert(c == 0 || c == 1);
if (!~A[u][v]) A[u][v] = c;
if (!~A[v][u]) A[v][u] = c;
assert(A[u][v] == c);
assert(A[v][u] == c);
}
void determine(int n, int us[]) {
assert(3 <= n); assert(n <= 5);
vector<int> fs;
for (int i = 0; i < n; ++i) for (int j = i + 1; j < n; ++j) for (int k = j + 1; k < n; ++k) {
fs.push_back(Ask(us[i], us[j], us[k]));
}
auto it = psss[n].find(fs);
assert(it != psss[n].end());
{
int pos = 0;
for (int i = 0; i < n; ++i) for (int j = i + 1; j < n; ++j) {
bool ok = true;
int c = -1;
for (const int p : it->second) {
if (!~c) c = p >> pos & 1;
ok = ok && (c == (p >> pos & 1));
}
if (ok) {
ae(us[i], us[j], c);
}
++pos;
}
}
}
int main() {
#ifdef LOCAL
for (int u = 0; u < N; ++u) {
char buf[N + 1];
scanf("%s", buf);
for (int v = 0; v < N; ++v) {
secret[u][v] = buf[v] - '0';
}
}
for (int u = 0; u < N; ++u) {
assert(secret[u][u] == 0);
}
for (int u = 0; u < N; ++u) for (int v = 0; v < N; ++v) {
assert(secret[u][v] == secret[v][u]);
}
#endif
small();
for (int u = 0; u < N; ++u) for (int v = 0; v < N; ++v) if (u != v) {
A[u][v] = -1;
}
vector<int> qs;
{
int us[4];
for (us[0] = 0 ; us[0] < N; ++us[0])
for (us[1] = us[0] + 1; us[1] < N; ++us[1])
for (us[2] = us[1] + 1; us[2] < N; ++us[2])
for (us[3] = us[2] + 1; us[3] < N; ++us[3])
{
bool ok = true;
for (int i = 0; i < 4; ++i) for (int j = i + 1; j < 4; ++j) {
ok = ok && (!~A[us[i]][us[j]]);
}
if (ok) {
int key = 0;
for (int i = 0; i < 4; ++i) key |= us[i] << (8*i);
qs.emplace_back(key);
}
}
}
// cerr<<"|qs| = "<<qs.size()<<endl;
for (int i = 0; i < (int)qs.size(); ++i) {
swap(qs[xrand(0, i)], qs[i]);
}
for (const int key : qs) {
int us[4];
for (int i = 0; i < 4; ++i) us[i] = key >> (8*i) & 255;
bool ok = true;
for (int i = 0; i < 4; ++i) for (int j = i + 1; j < 4; ++j) {
ok = ok && (!~A[us[i]][us[j]]);
}
if (ok) {
determine(4, us);
}
}
int mn = N;
int rm = -1;
for (int r = 0; r < N; ++r) {
int cnt = 0;
for (int u = 0; u < N; ++u) if (r != u && !~A[r][u]) {
++cnt;
}
if (chmin(mn, cnt)) {
rm = r;
}
}
// cerr<<"mn = "<<mn<<endl;
{
vector<int> ss;
for (int u = 0; u < N; ++u) if (rm != u && !~A[rm][u]) {
ss.push_back(u);
}
const int ssLen = ss.size();
for (int h = 0; h < ssLen; h += 4) {
vector<int> used(N, 0);
int us[5];
fill(us, us + 5, -1);
used[us[0] = rm] = 1;
for (int i = 1; i < 5; ++i) if (h + (i - 1) < ssLen) {
used[us[i] = ss[h + (i - 1)]] = 1;
}
for (int i = 1; i < 5; ++i) if (!~us[i]) {
for (int u = 0; u < N; ++u) if (!used[u]) {
used[us[i] = u] = 1;
break;
}
assert(~us[i]);
}
// pv(us,us+5);
determine(5, us);
}
}
for (int u = 0; u < N; ++u) for (int v = u + 1; v < N; ++v) if (!~A[u][v]) {
const int res = Ask(rm, u, v);
ae(u, v, res - A[rm][u] - A[rm][v]);
}
Answer();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 26.8242
Acceptable Answer
Test #1:
score: 92.4581
Acceptable Answer
time: 96ms
memory: 21436kb
input:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.92458064520 points 0.92458064520 correct 3567 queries
Test #2:
score: 92.4581
Acceptable Answer
time: 91ms
memory: 20580kb
input:
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.92458064520 points 0.92458064520 correct 3567 queries
Test #3:
score: 92.4581
Acceptable Answer
time: 111ms
memory: 21028kb
input:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.92458064520 points 0.92458064520 correct 3567 queries
Test #4:
score: 92.4581
Acceptable Answer
time: 98ms
memory: 20884kb
input:
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.92458064520 points 0.92458064520 correct 3567 queries
Test #5:
score: 92.4581
Acceptable Answer
time: 112ms
memory: 20648kb
input:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.92458064520 points 0.92458064520 correct 3567 queries
Test #6:
score: 92.4581
Acceptable Answer
time: 101ms
memory: 20736kb
input:
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.92458064520 points 0.92458064520 correct 3567 queries
Test #7:
score: 74.8903
Acceptable Answer
time: 98ms
memory: 19956kb
input:
1 1 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 2 2 0 1 1 0 0 0 0 0 0 0 0 0 1 1 0 0 2 1 1 0 0 0 0 0 1 2 1 0 1 1 0 1 2 0 1 0 0 0 0 1 1 2 2 0 1 0 1 2 1 1 0 0 0 0 0 1 1 0 2 2 1 3 2 1 3 1 1 1 1 0 2 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1 2 1 0 1 1 0 1 0 1 2 2 1 2 0 1 1 1 2 1 2 0 0 0 0 1 0 0 1 1 1 0 0 1 1 0 0 0 0 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.74890322580 points 0.74890322580 correct 3956 queries
Test #8:
score: 64.9097
Acceptable Answer
time: 84ms
memory: 19660kb
input:
0 0 0 0 2 3 2 1 1 2 0 1 1 2 1 2 1 1 0 0 2 1 2 1 2 1 1 2 0 0 1 1 3 2 2 1 2 1 1 2 0 0 1 1 1 1 0 2 1 1 1 1 0 1 1 0 1 3 1 1 1 3 1 1 2 1 1 2 1 2 0 1 2 2 1 1 0 1 1 0 1 1 1 1 1 2 0 1 2 1 1 2 1 2 0 1 2 2 3 1 1 1 2 0 1 0 1 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 2 1 1 1 1 1 1 0 0 1 1 2 0 2 2 0 2 0 0 0 0 0 1 0 1 1 2 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.64909677420 points 0.64909677420 correct 4177 queries
Test #9:
score: 92.4581
Acceptable Answer
time: 100ms
memory: 21096kb
input:
2 2 2 0 1 1 0 2 0 0 1 1 0 0 1 1 1 1 0 2 0 0 1 1 1 1 0 2 0 0 1 1 0 0 1 1 2 2 2 0 3 3 2 2 1 1 0 2 0 0 0 0 3 3 2 2 0 0 0 0 1 1 0 2 2 2 3 1 0 0 1 1 2 2 2 0 3 3 2 2 3 3 2 2 2 2 2 0 2 2 2 0 3 3 3 3 0 0 0 0 2 2 2 0 3 3 3 3 2 2 2 0 2 2 2 0 0 0 1 1 3 3 3 3 1 1 1 3 1 1 1 3 1 1 0 2 3 3 3 3 3 3 3 3 3 3 3 3 0 0 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.92458064520 points 0.92458064520 correct 3567 queries
Test #10:
score: 26.8242
Acceptable Answer
time: 85ms
memory: 21616kb
input:
0 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 0 2 2 2 2 2 2 0 2 2 2 0 0 0 0 0 0 0 0 0 2 2 2 0 2 2 2 2 0 2 2 2 2 2 2 0 2 2 2 2 2 2 2 0 2 2 2 0 2 2 2 0 2 2 2 0 0 2 2 2 2 2 2 2 2 2 2 2 0 0 0 0 2 2 2 2 2 2 2 2 2 2 2 2 0 2 2 2 2 2 2 0 2 2 2 2 2 2 2 2 2 2 2 2 0 2 2 2 0 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 0 2 2 2 2 2 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.26824242420 points 0.26824242420 correct 6522 queries
Test #11:
score: 55.2903
Acceptable Answer
time: 105ms
memory: 21684kb
input:
3 1 1 1 1 2 2 1 2 1 0 1 1 0 2 1 1 1 1 1 2 2 3 3 3 2 1 2 1 2 1 2 1 2 2 1 2 2 1 3 0 0 1 1 0 2 1 1 1 1 1 1 1 1 1 3 1 3 1 1 1 2 3 2 1 2 2 3 2 3 1 2 2 3 2 1 1 2 0 1 3 3 2 2 3 1 1 1 1 1 3 1 3 1 2 2 0 1 1 2 1 1 2 2 1 0 2 1 2 1 2 1 0 1 2 1 2 2 1 1 3 3 3 3 1 1 1 1 0 0 1 1 2 1 1 2 1 1 0 2 2 2 1 1 1 0 0 1 1 0 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.55290322580 points 0.55290322580 correct 4390 queries
Test #12:
score: 54.2065
Acceptable Answer
time: 110ms
memory: 21168kb
input:
3 2 2 1 1 0 2 1 1 2 2 1 2 1 0 1 2 2 2 2 1 2 2 1 2 3 3 2 1 2 0 1 0 2 1 1 2 2 2 2 3 1 2 2 2 2 1 3 2 2 2 0 1 2 1 2 1 1 1 3 1 1 1 1 1 1 1 3 1 2 2 1 2 3 2 3 2 0 2 2 0 0 1 1 2 2 2 0 1 0 0 1 0 0 0 0 2 1 1 0 2 1 1 2 2 3 1 2 2 1 1 2 2 2 3 1 3 3 3 3 1 1 2 2 1 2 1 2 2 0 2 2 1 0 1 0 1 1 2 0 1 0 2 1 2 1 1 0 2 2 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.54206451610 points 0.54206451610 correct 4414 queries
Test #13:
score: 52.8968
Acceptable Answer
time: 105ms
memory: 21140kb
input:
1 2 2 3 1 1 2 0 3 1 2 2 3 2 1 2 1 1 0 2 2 1 0 1 1 2 1 0 1 2 0 1 1 1 2 2 3 3 2 2 2 1 3 2 3 2 2 1 2 2 2 0 3 2 2 1 1 1 1 1 0 2 2 2 1 2 2 1 0 1 2 1 2 2 0 2 1 1 3 1 2 2 1 1 1 1 1 1 0 1 1 0 2 2 2 2 1 3 1 1 0 0 1 1 0 1 1 2 2 1 2 3 3 2 2 1 0 1 1 2 2 2 2 2 1 0 1 2 1 2 3 2 2 2 0 2 2 2 2 2 2 1 2 1 2 2 2 2 1 0 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.52896774190 points 0.52896774190 correct 4443 queries
Test #14:
score: 57.0968
Acceptable Answer
time: 106ms
memory: 19656kb
input:
2 2 3 3 1 0 1 2 3 2 3 2 1 1 3 1 1 0 2 1 1 1 2 2 2 2 0 2 1 1 2 0 3 3 2 2 3 2 2 1 3 2 3 2 1 2 2 1 3 1 2 2 2 1 0 1 3 2 3 2 2 2 0 2 1 2 1 0 2 3 2 1 1 0 0 1 1 2 2 3 1 1 2 2 2 2 2 2 2 3 1 2 1 1 2 0 2 2 1 1 1 2 3 2 0 2 1 1 0 2 2 2 1 2 1 0 1 2 3 2 2 2 2 2 3 3 2 2 2 2 3 3 1 1 2 2 0 1 2 1 0 2 1 1 1 1 1 1 1 1 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.57096774190 points 0.57096774190 correct 4350 queries
Test #15:
score: 56.1032
Acceptable Answer
time: 107ms
memory: 20276kb
input:
1 2 1 2 1 2 2 1 2 2 3 3 3 2 3 2 3 2 2 1 1 2 1 2 2 1 2 1 2 1 2 3 1 1 2 2 0 0 1 1 2 2 3 3 2 2 3 1 0 1 0 1 3 3 2 2 3 1 2 2 1 2 2 1 0 2 2 2 2 2 2 0 1 2 2 3 1 1 1 3 2 3 1 2 1 1 1 1 1 0 1 0 1 2 1 2 0 0 1 1 1 2 2 3 1 0 1 0 1 1 2 0 2 2 2 0 2 2 3 1 1 2 1 2 2 2 0 2 2 2 2 2 2 1 2 1 2 1 2 1 3 2 3 2 0 1 1 0 2 1 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.56103225810 points 0.56103225810 correct 4372 queries
Test #16:
score: 53.0774
Acceptable Answer
time: 107ms
memory: 20036kb
input:
3 3 2 2 2 3 2 1 2 2 1 3 3 2 2 1 0 1 0 1 2 2 2 2 2 3 1 2 2 2 1 3 1 2 2 1 2 3 3 2 2 2 3 1 1 0 1 0 0 0 0 0 1 1 1 1 2 3 2 1 1 1 2 0 3 2 2 3 2 1 1 2 2 1 0 1 1 2 0 1 1 1 1 1 1 1 2 0 1 1 1 1 3 3 2 2 0 0 0 0 2 2 3 3 2 2 3 3 2 1 2 1 1 1 0 0 2 1 1 2 0 0 1 1 0 1 1 0 1 1 3 1 1 1 0 2 2 2 2 0 1 1 1 1 1 1 1 1 3 1 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.53077419350 points 0.53077419350 correct 4439 queries
Test #17:
score: 55.9677
Acceptable Answer
time: 101ms
memory: 19764kb
input:
0 1 2 1 1 1 1 1 2 3 2 3 1 1 3 1 1 1 2 2 2 1 1 2 1 1 1 1 2 2 3 3 0 1 1 2 0 0 0 0 1 1 1 1 0 0 1 1 1 1 1 1 1 1 2 2 1 2 3 2 1 1 0 2 0 1 1 2 2 2 3 3 1 0 1 2 0 0 1 1 1 1 1 1 1 2 1 0 1 1 1 3 3 2 2 3 2 1 1 2 2 2 3 3 2 1 0 1 0 1 1 0 0 1 1 0 2 3 3 2 1 1 1 1 0 2 2 2 2 3 3 2 2 0 2 2 3 1 2 2 2 2 0 2 1 0 1 2 3 2 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.55967741940 points 0.55967741940 correct 4375 queries
Test #18:
score: 55.9677
Acceptable Answer
time: 82ms
memory: 19716kb
input:
1 2 1 0 3 1 2 2 1 1 3 1 1 3 2 2 1 1 0 2 1 1 3 1 0 1 2 1 2 1 3 2 1 1 1 3 2 0 1 1 1 0 1 0 2 2 3 3 2 2 0 2 1 0 2 1 3 3 3 3 0 1 0 1 1 2 2 3 1 0 1 2 1 1 3 1 3 1 1 1 1 3 1 1 0 0 1 1 1 3 1 1 2 2 1 1 2 2 2 2 1 2 2 1 3 3 3 3 1 2 0 1 2 2 3 3 1 1 1 3 2 0 1 1 2 2 2 0 0 1 2 1 3 3 3 3 2 2 2 2 1 1 1 1 3 3 2 2 2 1 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.55967741940 points 0.55967741940 correct 4375 queries
Test #19:
score: 57.3677
Acceptable Answer
time: 89ms
memory: 19808kb
input:
2 1 0 1 2 1 1 2 2 3 3 2 2 3 3 2 1 1 2 2 2 3 3 2 2 2 1 1 1 0 1 0 2 3 3 2 2 0 2 2 0 2 2 2 1 2 1 2 1 0 1 0 2 2 2 2 0 0 0 0 1 1 2 0 1 1 2 2 0 0 0 0 2 0 2 2 2 0 1 1 2 2 3 1 1 1 1 1 1 2 2 1 1 1 3 1 1 0 2 1 3 2 2 3 2 1 2 3 2 2 3 3 3 3 3 3 2 2 2 0 1 3 2 2 2 1 2 1 1 1 1 1 1 2 1 2 1 0 1 2 2 1 2 3 2 1 2 1 2 1 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.57367741940 points 0.57367741940 correct 4344 queries
Test #20:
score: 54.4774
Acceptable Answer
time: 100ms
memory: 20100kb
input:
2 0 1 1 0 0 0 0 1 0 1 2 2 1 1 0 2 1 2 1 3 3 3 3 1 3 2 2 2 2 3 1 1 2 1 2 1 2 3 2 2 2 1 1 2 2 1 1 3 3 2 2 2 2 1 1 2 2 1 3 0 0 0 0 1 0 1 2 2 1 1 2 2 3 2 3 2 2 2 2 2 1 2 1 2 1 2 3 0 2 2 2 1 1 2 2 2 2 1 3 1 2 1 0 1 1 3 1 1 2 2 1 0 1 0 1 1 1 1 1 1 2 2 1 1 1 1 3 0 2 2 2 0 0 0 0 3 3 3 3 1 2 2 3 1 1 1 1 3 2 ...
output:
? 7 32 50 ? 7 32 79 ? 7 50 79 ? 32 50 79 ? 11 25 75 ? 11 25 87 ? 11 75 87 ? 25 75 87 ? 10 31 52 ? 10 31 78 ? 10 52 78 ? 31 52 78 ? 33 39 55 ? 33 39 63 ? 33 55 63 ? 39 55 63 ? 11 28 61 ? 11 28 71 ? 11 61 71 ? 28 61 71 ? 6 10 28 ? 6 10 57 ? 6 28 57 ? 10 28 57 ? 4 69 88 ? 4 69 92 ? 4 88 92 ? 69 88 92 ?...
result:
points 0.54477419350 points 0.54477419350 correct 4408 queries