QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#126199 | #6668. Trokuti | hxhuoxinghx | 90.019355 | 210ms | 3760kb | C++14 | 3.3kb | 2023-07-18 11:11:59 | 2023-07-18 11:12:01 |
Judging History
answer
#include <iostream>
#include <vector>
#include <utility>
#include <cstdlib>
#include <ctime>
using namespace std;
constexpr int NODECNT = 100;
struct Query {
int a, b, c;
Query() = default;
Query(int _a, int _b, int _c) {
if(_a < _b && _b < _c) a = _a, b = _b, c = _c;
if(_a < _c && _c < _b) a = _a, b = _c, c = _b;
if(_b < _a && _a < _c) a = _b, b = _a, c = _c;
if(_b < _c && _c < _a) a = _b, b = _c, c = _a;
if(_c < _a && _a < _b) a = _c, b = _a, c = _b;
if(_c < _b && _b < _a) a = _c, b = _b, c = _a;
}
bool operator==(const Query& rhs) const {
return a == rhs.a && b == rhs.b && c == rhs.c;
}
int ask()
{
cout << "? " << a + 1 << " " << b + 1 << " " << c + 1 << endl;
int res;
cin >> res;
return res;
}
};
vector<pair<Query, int> > query;
int ans[NODECNT][NODECNT];
void check(Query q, int res)
{
if(res == 0)
{
ans[q.a][q.b] = ans[q.b][q.a] = ans[q.a][q.c] = ans[q.c][q.a] = ans[q.b][q.c] = ans[q.c][q.b] = 0;
}
if(res == 3)
{
ans[q.a][q.b] = ans[q.b][q.a] = ans[q.a][q.c] = ans[q.c][q.a] = ans[q.b][q.c] = ans[q.c][q.b] = 1;
}
if(res == 1)
{
if(ans[q.a][q.b] == 0 && ans[q.a][q.c] == 0) ans[q.b][q.c] = ans[q.c][q.b] = 1;
if(ans[q.a][q.b] == 0 && ans[q.b][q.c] == 0) ans[q.a][q.c] = ans[q.c][q.a] = 1;
if(ans[q.a][q.c] == 0 && ans[q.b][q.c] == 0) ans[q.a][q.b] = ans[q.b][q.a] = 1;
if(ans[q.a][q.b] == 1) ans[q.a][q.c] = ans[q.c][q.a] = ans[q.b][q.c] = ans[q.c][q.b] = 0;
if(ans[q.a][q.c] == 1) ans[q.a][q.b] = ans[q.b][q.a] = ans[q.b][q.c] = ans[q.c][q.b] = 0;
if(ans[q.b][q.c] == 1) ans[q.a][q.b] = ans[q.b][q.a] = ans[q.a][q.c] = ans[q.c][q.a] = 0;
}
if(res == 2)
{
if(ans[q.a][q.b] == 1 && ans[q.a][q.c] == 1) ans[q.b][q.c] = ans[q.c][q.b] = 0;
if(ans[q.a][q.b] == 1 && ans[q.b][q.c] == 1) ans[q.a][q.c] = ans[q.c][q.a] = 0;
if(ans[q.a][q.c] == 1 && ans[q.b][q.c] == 1) ans[q.a][q.b] = ans[q.b][q.a] = 0;
if(ans[q.a][q.b] == 0) ans[q.a][q.c] = ans[q.c][q.a] = ans[q.b][q.c] = ans[q.c][q.b] = 1;
if(ans[q.a][q.c] == 0) ans[q.a][q.b] = ans[q.b][q.a] = ans[q.b][q.c] = ans[q.c][q.b] = 1;
if(ans[q.b][q.c] == 0) ans[q.a][q.b] = ans[q.b][q.a] = ans[q.a][q.c] = ans[q.c][q.a] = 1;
}
}
int main()
{
for(int i = 0; i < NODECNT; i++)
{
for(int j = 0; j < NODECNT; j++)
{
if(i != j) ans[i][j] = -1;
}
}
srand(time(0));
while(true)
{
bool flag = true;
Query q;
while(flag)
{
q = Query(rand() % NODECNT, rand() % NODECNT, rand() % NODECNT);
if(q.a == q.b || q.a == q.c || q.b == q.c) continue;
if(ans[q.a][q.b] != -1 && ans[q.a][q.c] != -1 && ans[q.b][q.c] != -1) continue;
flag = false;
for(pair<Query, int> pqi : query)
{
if(q == pqi.first)
{
flag = true;
break;
}
}
}
int res = q.ask();
check(q, res);
query.push_back({q, res});
for(pair<Query, int> pqi : query)
{
check(pqi.first, pqi.second);
}
for(pair<Query, int> pqi : query)
{
check(pqi.first, pqi.second);
}
flag = true;
for(int i = 0; flag && i < NODECNT; i++)
{
for(int j = 0; flag && j < NODECNT; j++)
{
if(ans[i][j] == -1) flag = false;
}
}
if(flag) break;
}
cout << "!" << endl;
for(int i = 0; i < NODECNT; i++)
{
for(int j = 0; j < NODECNT; j++)
{
cout << ans[i][j];
}
cout << endl;
}
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 90.0194
Acceptable Answer
Test #1:
score: 100
Accepted
time: 51ms
memory: 3692kb
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:
? 21 35 97 ? 22 27 31 ? 43 69 71 ? 8 54 60 ? 25 74 80 ? 54 59 90 ? 45 77 87 ? 41 45 83 ? 9 10 67 ? 59 71 77 ? 25 30 79 ? 46 57 64 ? 47 51 67 ? 4 17 74 ? 5 76 77 ? 35 52 58 ? 31 86 94 ? 32 65 78 ? 74 76 88 ? 44 46 95 ? 25 71 76 ? 41 48 84 ? 35 39 93 ? 11 38 55 ? 36 67 82 ? 41 53 86 ? 36 50 79 ? 10 36...
result:
points 1.0 points 1.0 correct 3027 queries
Test #2:
score: 100
Accepted
time: 39ms
memory: 3592kb
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:
? 38 49 75 ? 3 33 42 ? 17 54 96 ? 58 90 97 ? 33 55 93 ? 51 57 90 ? 9 23 45 ? 62 72 91 ? 54 56 98 ? 4 81 87 ? 6 55 71 ? 24 49 75 ? 16 33 96 ? 9 44 88 ? 33 76 77 ? 41 66 92 ? 41 49 94 ? 31 72 90 ? 3 27 84 ? 17 52 83 ? 23 38 40 ? 14 60 71 ? 18 35 82 ? 42 62 68 ? 7 18 37 ? 81 84 91 ? 32 74 76 ? 6 16 80 ...
result:
points 1.0 points 1.0 correct 3016 queries
Test #3:
score: 100
Accepted
time: 46ms
memory: 3688kb
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:
? 38 49 75 ? 3 33 42 ? 17 54 96 ? 58 90 97 ? 33 55 93 ? 51 57 90 ? 9 23 45 ? 62 72 91 ? 54 56 98 ? 4 81 87 ? 6 55 71 ? 24 49 75 ? 16 33 96 ? 9 44 88 ? 33 76 77 ? 41 66 92 ? 41 49 94 ? 31 72 90 ? 3 27 84 ? 17 52 83 ? 23 38 40 ? 14 60 71 ? 18 35 82 ? 42 62 68 ? 7 18 37 ? 81 84 91 ? 32 74 76 ? 6 16 80 ...
result:
points 1.0 points 1.0 correct 3017 queries
Test #4:
score: 100
Accepted
time: 62ms
memory: 3744kb
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:
? 13 34 54 ? 12 43 90 ? 1 51 90 ? 13 38 61 ? 29 38 59 ? 47 76 78 ? 14 25 87 ? 13 44 81 ? 46 51 69 ? 37 69 85 ? 2 90 99 ? 33 43 64 ? 22 43 75 ? 8 12 25 ? 22 36 37 ? 26 35 98 ? 3 36 59 ? 17 79 91 ? 42 81 99 ? 20 29 62 ? 51 63 92 ? 5 18 35 ? 9 64 94 ? 30 52 72 ? 7 86 93 ? 9 90 96 ? 7 9 79 ? 6 9 86 ? 24...
result:
points 1.0 points 1.0 correct 3004 queries
Test #5:
score: 100
Accepted
time: 68ms
memory: 3700kb
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:
? 13 34 54 ? 12 43 90 ? 1 51 90 ? 13 38 61 ? 29 38 59 ? 47 76 78 ? 14 25 87 ? 13 44 81 ? 46 51 69 ? 37 69 85 ? 2 90 99 ? 33 43 64 ? 22 43 75 ? 8 12 25 ? 22 36 37 ? 26 35 98 ? 3 36 59 ? 17 79 91 ? 42 81 99 ? 20 29 62 ? 51 63 92 ? 5 18 35 ? 9 64 94 ? 30 52 72 ? 7 86 93 ? 9 90 96 ? 7 9 79 ? 6 9 86 ? 24...
result:
points 1.0 points 1.0 correct 3008 queries
Test #6:
score: 100
Accepted
time: 73ms
memory: 3516kb
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:
? 13 31 44 ? 4 20 83 ? 64 68 83 ? 31 44 80 ? 16 21 63 ? 8 24 92 ? 10 34 68 ? 69 76 79 ? 58 59 74 ? 2 44 86 ? 21 27 90 ? 43 51 79 ? 10 33 62 ? 25 47 58 ? 1 39 78 ? 34 85 100 ? 4 61 68 ? 34 35 79 ? 20 74 92 ? 61 93 100 ? 60 65 69 ? 1 2 72 ? 31 56 64 ? 3 21 40 ? 17 93 98 ? 17 34 92 ? 2 11 89 ? 22 63 89...
result:
points 1.0 points 1.0 correct 3021 queries
Test #7:
score: 97.7871
Acceptable Answer
time: 152ms
memory: 3712kb
input:
1 1 0 0 1 1 1 0 2 1 0 0 0 0 1 0 0 2 0 0 0 0 0 0 0 0 1 0 2 1 1 1 0 1 1 1 0 1 1 1 2 1 1 2 1 0 0 0 0 1 0 1 2 0 0 0 0 1 0 1 0 1 0 1 1 1 0 0 0 0 2 1 1 1 2 0 1 0 0 1 1 3 0 1 0 3 0 1 1 2 0 1 0 1 0 0 0 0 1 0 0 0 1 0 0 1 1 2 3 1 1 0 0 0 1 2 0 2 0 1 0 1 1 0 1 1 0 0 0 1 0 0 1 1 0 1 0 0 1 0 0 2 0 0 0 2 0 2 0 1 ...
output:
? 13 31 44 ? 4 20 83 ? 64 68 83 ? 31 44 80 ? 16 21 63 ? 8 24 92 ? 10 34 68 ? 69 76 79 ? 58 59 74 ? 2 44 86 ? 21 27 90 ? 43 51 79 ? 10 33 62 ? 25 47 58 ? 1 39 78 ? 34 85 100 ? 4 61 68 ? 34 35 79 ? 20 74 92 ? 61 93 100 ? 60 65 69 ? 1 2 72 ? 31 56 64 ? 3 21 40 ? 17 93 98 ? 17 34 92 ? 2 11 89 ? 22 63 89...
result:
points 0.97787096770 points 0.97787096770 correct 3449 queries
Test #8:
score: 93.271
Acceptable Answer
time: 163ms
memory: 3760kb
input:
1 2 0 1 1 1 1 0 2 1 0 1 1 2 2 1 3 1 1 1 2 0 0 0 2 2 1 1 1 2 1 1 2 0 0 0 1 1 0 1 0 1 2 1 1 0 2 0 1 0 0 2 1 2 0 0 0 1 1 2 1 0 0 1 0 0 0 2 1 1 2 1 0 0 0 2 0 2 1 2 2 2 0 1 2 0 2 1 1 0 1 2 1 2 1 0 0 2 0 0 3 1 0 2 0 2 0 2 0 1 2 0 0 2 3 1 1 1 0 0 1 1 2 0 0 2 1 1 2 1 1 1 1 1 0 2 1 0 1 2 1 1 1 0 1 2 2 1 1 1 ...
output:
? 59 79 100 ? 1 52 80 ? 1 54 91 ? 50 61 95 ? 45 48 57 ? 50 52 95 ? 72 87 96 ? 11 18 42 ? 21 94 100 ? 24 51 69 ? 3 75 80 ? 3 59 80 ? 15 27 50 ? 72 74 99 ? 58 75 95 ? 9 30 76 ? 23 76 96 ? 40 58 99 ? 3 13 93 ? 26 33 92 ? 12 52 95 ? 71 84 97 ? 10 52 72 ? 35 66 70 ? 16 61 89 ? 36 45 47 ? 7 58 72 ? 50 54 ...
result:
points 0.93270967740 points 0.93270967740 correct 3549 queries
Test #9:
score: 100
Accepted
time: 120ms
memory: 3680kb
input:
1 3 1 0 3 3 2 0 0 3 2 1 0 2 0 3 2 2 2 2 2 2 1 0 3 2 3 0 3 0 3 0 0 0 2 2 2 2 0 0 0 2 1 2 0 3 2 2 1 1 2 0 2 1 3 2 1 3 2 1 2 2 3 1 0 3 0 1 1 2 3 1 2 2 3 2 2 3 0 0 0 0 2 1 2 1 3 0 2 0 3 2 0 3 1 1 1 1 3 1 2 0 2 1 2 2 1 2 0 1 3 2 3 1 1 2 1 3 1 1 2 2 2 0 1 3 2 3 2 0 3 3 3 2 2 2 0 1 2 1 1 2 3 0 1 2 0 1 2 1 ...
output:
? 4 25 74 ? 5 7 23 ? 31 55 99 ? 26 72 93 ? 68 83 95 ? 5 17 84 ? 1 73 99 ? 6 46 98 ? 10 51 84 ? 3 7 19 ? 3 6 84 ? 11 29 90 ? 9 51 72 ? 5 16 32 ? 51 78 82 ? 1 55 95 ? 27 45 85 ? 3 37 72 ? 12 74 86 ? 21 70 92 ? 23 47 53 ? 29 75 95 ? 39 66 77 ? 33 34 99 ? 66 82 84 ? 18 38 59 ? 5 17 54 ? 40 50 90 ? 14 28...
result:
points 1.0 points 1.0 correct 3371 queries
Test #10:
score: 91.2387
Acceptable Answer
time: 156ms
memory: 3620kb
input:
2 0 2 2 0 2 2 2 2 0 2 2 2 0 0 2 2 2 2 2 2 2 2 2 0 2 2 2 2 2 2 2 0 2 0 2 0 2 2 2 2 2 2 2 0 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 0 2 0 2 2 2 2 2 2 2 2 2 2 0 2 0 2 2 2 2 0 2 0 2 2 2 2 2 2 2 2 2 0 2 2 2 2 2 0 2 2 2 2 2 2 2 2 0 0 2 2 0 0 2 0 0 2 0 2 2 2 0 2 0 2 2 0 2 2 2 2 2 2 2 2 2 0 0 0 ...
output:
? 4 25 74 ? 5 7 23 ? 31 55 99 ? 26 72 93 ? 68 83 95 ? 5 17 84 ? 1 73 99 ? 6 46 98 ? 10 51 84 ? 3 7 19 ? 3 6 84 ? 11 29 90 ? 9 51 72 ? 5 16 32 ? 51 78 82 ? 1 55 95 ? 27 45 85 ? 3 37 72 ? 12 74 86 ? 21 70 92 ? 23 47 53 ? 29 75 95 ? 39 66 77 ? 33 34 99 ? 66 82 84 ? 18 38 59 ? 5 17 54 ? 40 50 90 ? 14 28...
result:
points 0.91238709680 points 0.91238709680 correct 3594 queries
Test #11:
score: 91.3742
Acceptable Answer
time: 199ms
memory: 3588kb
input:
1 0 1 1 0 2 0 2 2 0 0 2 1 0 2 2 3 1 0 2 2 1 2 0 1 1 1 2 2 1 3 0 1 2 0 1 3 2 1 0 1 1 0 0 1 1 1 2 1 2 3 1 0 1 1 1 2 1 3 0 1 1 2 2 1 2 3 2 2 2 0 2 0 0 1 2 1 0 2 2 0 0 0 2 0 1 0 2 1 2 1 2 2 1 2 2 3 3 1 3 1 3 1 1 0 1 2 1 2 1 2 2 1 2 0 1 3 1 0 1 1 2 1 1 0 1 1 2 2 3 1 1 2 2 2 3 1 1 1 3 1 1 1 3 2 3 2 2 1 2 ...
output:
? 8 44 70 ? 12 72 84 ? 5 44 55 ? 43 54 64 ? 5 65 67 ? 55 92 94 ? 12 39 100 ? 39 41 71 ? 44 54 64 ? 8 62 74 ? 51 75 84 ? 34 47 87 ? 5 41 90 ? 62 84 94 ? 25 49 50 ? 42 92 94 ? 32 93 98 ? 2 10 85 ? 17 90 100 ? 42 44 52 ? 16 51 87 ? 33 49 53 ? 6 39 75 ? 10 67 79 ? 24 43 58 ? 51 74 86 ? 35 67 84 ? 11 36 ...
result:
points 0.91374193550 points 0.91374193550 correct 3591 queries
Test #12:
score: 92.1871
Acceptable Answer
time: 171ms
memory: 3760kb
input:
3 1 2 0 1 0 3 2 0 0 1 1 2 2 2 1 2 1 0 2 3 2 1 3 1 1 0 2 0 2 2 1 2 2 3 1 3 1 2 2 1 2 2 1 0 0 0 1 3 0 2 2 2 2 2 2 1 0 1 3 2 1 1 1 1 0 2 1 1 3 1 2 3 1 1 1 0 2 2 3 1 3 0 1 1 1 3 1 1 2 1 1 2 0 3 2 1 3 1 1 2 2 3 2 2 2 1 0 0 0 3 1 2 2 1 2 2 3 1 1 3 2 1 1 0 0 0 1 2 0 2 0 1 2 2 2 2 1 1 2 2 1 2 2 1 1 1 2 1 2 ...
output:
? 17 27 80 ? 10 71 95 ? 55 88 98 ? 82 89 91 ? 2 25 75 ? 18 77 96 ? 16 17 52 ? 7 16 60 ? 40 59 85 ? 43 79 96 ? 29 74 96 ? 42 45 55 ? 16 39 99 ? 32 55 79 ? 5 57 98 ? 4 34 99 ? 7 50 68 ? 8 66 83 ? 6 18 98 ? 34 36 65 ? 28 83 93 ? 2 24 99 ? 62 67 98 ? 21 48 92 ? 70 79 97 ? 30 68 87 ? 31 36 91 ? 18 38 49 ...
result:
points 0.92187096770 points 0.92187096770 correct 3573 queries
Test #13:
score: 90.7871
Acceptable Answer
time: 210ms
memory: 3692kb
input:
1 2 2 1 1 1 1 3 1 1 1 1 0 1 0 3 0 1 1 1 2 2 0 1 1 1 1 2 2 3 2 1 2 2 1 2 1 2 1 0 2 3 1 3 0 1 0 0 0 1 2 0 2 1 1 0 2 1 0 2 0 2 2 2 1 0 1 2 1 1 0 2 1 2 2 2 0 2 2 3 2 0 3 3 1 3 1 3 2 1 1 2 2 2 3 3 1 1 0 3 1 3 3 1 1 1 1 1 2 1 2 1 1 1 2 2 1 1 2 1 1 2 0 2 0 1 1 3 2 1 1 2 1 2 3 1 0 1 2 0 3 1 0 2 2 2 1 0 0 2 ...
output:
? 17 27 80 ? 10 71 95 ? 55 88 98 ? 82 89 91 ? 2 25 75 ? 18 77 96 ? 16 17 52 ? 7 16 60 ? 40 59 85 ? 43 79 96 ? 29 74 96 ? 42 45 55 ? 16 39 99 ? 32 55 79 ? 5 57 98 ? 4 34 99 ? 7 50 68 ? 8 66 83 ? 6 18 98 ? 34 36 65 ? 28 83 93 ? 2 24 99 ? 62 67 98 ? 21 48 92 ? 70 79 97 ? 30 68 87 ? 31 36 91 ? 18 38 49 ...
result:
points 0.90787096770 points 0.90787096770 correct 3604 queries
Test #14:
score: 90.5613
Acceptable Answer
time: 185ms
memory: 3724kb
input:
3 2 2 1 1 2 2 1 0 1 1 2 3 1 2 0 1 1 3 3 1 3 2 2 2 1 2 2 3 1 2 1 2 1 0 1 1 2 2 2 1 0 1 1 0 2 2 1 0 2 1 1 3 1 1 1 1 1 1 1 2 0 2 1 3 2 1 2 1 0 2 3 2 2 3 2 2 2 0 1 2 1 1 1 2 0 1 1 2 2 1 3 2 2 2 0 1 2 1 1 2 1 2 1 1 3 1 3 1 1 1 1 1 1 2 1 2 2 0 1 2 2 1 3 2 2 1 2 1 0 1 0 0 2 2 1 0 3 1 2 1 1 2 2 1 2 0 2 1 1 ...
output:
? 7 25 96 ? 63 82 99 ? 37 81 82 ? 35 82 93 ? 27 79 100 ? 14 71 72 ? 1 7 33 ? 45 50 86 ? 27 60 90 ? 3 35 56 ? 30 80 83 ? 13 41 45 ? 49 78 92 ? 64 72 82 ? 8 16 42 ? 15 31 56 ? 38 40 90 ? 27 84 90 ? 40 62 86 ? 17 29 41 ? 23 64 96 ? 8 16 45 ? 7 8 89 ? 66 78 89 ? 30 45 48 ? 23 31 59 ? 20 30 48 ? 38 46 70...
result:
points 0.90561290320 points 0.90561290320 correct 3609 queries
Test #15:
score: 90.8323
Acceptable Answer
time: 163ms
memory: 3676kb
input:
3 3 1 1 3 3 2 3 1 2 1 3 1 2 2 2 2 2 1 1 2 0 2 3 1 0 2 2 1 0 1 1 2 0 1 0 3 2 0 2 2 1 1 2 1 0 1 2 0 2 2 1 1 2 1 2 2 3 0 2 1 2 1 3 2 1 1 3 2 1 0 2 3 2 1 2 2 1 2 2 0 1 3 2 3 3 2 2 2 0 1 1 2 2 2 1 0 0 1 1 1 2 0 3 1 1 2 1 2 2 3 3 0 2 3 2 1 2 1 0 2 3 1 1 1 1 1 2 3 1 1 2 1 2 1 3 1 1 0 2 2 2 0 1 1 1 3 1 2 0 ...
output:
? 18 27 71 ? 10 13 68 ? 4 15 50 ? 10 64 98 ? 26 54 59 ? 20 29 60 ? 6 43 56 ? 36 42 52 ? 19 30 89 ? 39 54 60 ? 24 77 88 ? 38 66 92 ? 58 78 87 ? 34 50 68 ? 21 76 83 ? 41 56 92 ? 13 34 100 ? 8 64 76 ? 4 43 46 ? 25 57 84 ? 24 36 81 ? 12 24 89 ? 19 49 81 ? 4 35 100 ? 37 72 86 ? 29 49 71 ? 36 76 83 ? 22 3...
result:
points 0.90832258060 points 0.90832258060 correct 3603 queries
Test #16:
score: 90.8774
Acceptable Answer
time: 191ms
memory: 3728kb
input:
1 2 1 2 1 1 2 2 2 3 3 2 0 1 1 2 3 3 1 2 2 3 0 2 2 3 3 3 0 2 2 2 1 2 3 3 2 3 2 1 3 1 2 0 2 3 1 1 2 2 1 1 2 1 2 0 3 2 2 3 2 1 1 1 0 3 1 0 1 3 1 1 1 2 1 1 2 2 2 0 2 2 1 0 1 1 2 0 1 2 0 2 2 1 1 1 2 2 1 2 3 2 2 2 3 2 3 1 1 2 1 2 3 2 0 0 2 1 0 2 3 2 2 2 1 3 1 1 0 1 1 1 1 1 1 1 3 1 1 3 2 2 2 3 2 1 0 0 2 1 ...
output:
? 18 27 71 ? 10 13 68 ? 4 15 50 ? 10 64 98 ? 26 54 59 ? 20 29 60 ? 6 43 56 ? 36 42 52 ? 19 30 89 ? 39 54 60 ? 24 77 88 ? 38 66 92 ? 58 78 87 ? 34 50 68 ? 21 76 83 ? 41 56 92 ? 13 34 100 ? 8 64 76 ? 4 43 46 ? 25 57 84 ? 24 36 81 ? 12 24 89 ? 19 49 81 ? 4 35 100 ? 37 72 86 ? 29 49 71 ? 36 76 83 ? 22 3...
result:
points 0.90877419350 points 0.90877419350 correct 3602 queries
Test #17:
score: 91.871
Acceptable Answer
time: 175ms
memory: 3752kb
input:
0 2 1 0 2 2 2 0 0 0 2 2 1 0 3 1 3 2 3 2 3 1 1 1 2 2 2 1 1 1 1 2 1 3 0 0 0 2 1 2 1 2 2 2 2 0 2 0 2 2 3 1 2 1 3 1 1 1 1 1 1 3 1 2 1 0 3 1 2 0 2 3 2 1 2 2 2 3 2 0 1 2 1 1 1 1 2 1 0 2 2 1 0 2 1 2 2 2 2 2 1 1 1 1 0 1 1 3 2 1 3 0 2 2 2 2 2 0 3 1 0 1 3 2 3 1 3 1 0 3 3 0 0 3 0 2 3 3 1 2 1 2 2 1 3 2 1 1 2 2 ...
output:
? 36 72 78 ? 44 79 91 ? 9 38 78 ? 33 51 97 ? 45 46 51 ? 33 50 83 ? 2 21 57 ? 32 65 97 ? 4 17 36 ? 55 79 82 ? 42 50 55 ? 21 46 84 ? 26 75 81 ? 7 32 63 ? 3 11 29 ? 30 61 85 ? 41 46 50 ? 47 81 89 ? 37 57 64 ? 18 51 64 ? 24 29 57 ? 8 30 77 ? 10 27 33 ? 1 48 93 ? 7 21 58 ? 9 19 50 ? 16 51 93 ? 62 84 86 ?...
result:
points 0.91870967740 points 0.91870967740 correct 3580 queries
Test #18:
score: 90.8323
Acceptable Answer
time: 196ms
memory: 3684kb
input:
2 1 2 1 1 2 2 1 1 1 2 2 1 2 1 2 3 1 2 0 2 3 2 1 2 1 1 2 1 2 0 1 2 3 1 2 2 2 1 2 2 1 2 1 2 1 0 0 1 2 1 2 0 0 2 2 2 2 1 2 2 3 2 0 1 1 2 1 1 2 1 2 2 1 2 2 2 1 2 1 3 2 2 3 1 2 2 0 1 1 2 0 2 2 1 0 2 1 1 0 0 0 2 2 2 2 3 3 2 2 3 1 3 1 0 1 1 2 1 1 1 0 2 1 2 3 3 2 2 3 3 2 1 1 1 1 0 2 2 0 1 3 2 0 2 2 2 1 0 1 ...
output:
? 7 20 37 ? 17 37 98 ? 34 56 86 ? 59 71 74 ? 70 72 92 ? 23 40 57 ? 43 83 99 ? 20 47 56 ? 47 49 72 ? 6 12 51 ? 78 83 94 ? 36 44 52 ? 37 72 77 ? 28 47 50 ? 50 68 94 ? 21 33 90 ? 29 67 85 ? 14 56 80 ? 3 14 35 ? 8 16 58 ? 1 22 94 ? 4 29 44 ? 53 55 72 ? 22 43 80 ? 15 41 81 ? 8 53 99 ? 65 81 98 ? 12 30 82...
result:
points 0.90832258060 points 0.90832258060 correct 3603 queries
Test #19:
score: 90.0194
Acceptable Answer
time: 190ms
memory: 3676kb
input:
2 2 2 0 2 3 2 2 2 2 2 2 3 1 3 1 3 2 1 2 3 2 2 0 3 1 3 3 1 2 0 2 1 0 2 2 1 1 1 1 3 1 2 0 0 0 2 0 1 2 2 3 2 1 2 2 2 2 1 2 0 2 2 2 2 2 3 2 2 1 2 2 1 1 2 1 1 1 2 2 1 2 1 0 2 1 2 3 1 1 1 0 2 1 2 3 1 0 3 2 1 2 0 1 1 1 1 2 2 1 1 0 1 1 1 0 3 1 1 0 2 1 1 1 3 2 1 3 3 3 2 1 2 1 1 1 2 0 3 0 1 0 1 1 2 1 1 2 1 2 ...
output:
? 7 20 37 ? 17 37 98 ? 34 56 86 ? 59 71 74 ? 70 72 92 ? 23 40 57 ? 43 83 99 ? 20 47 56 ? 47 49 72 ? 6 12 51 ? 78 83 94 ? 36 44 52 ? 37 72 77 ? 28 47 50 ? 50 68 94 ? 21 33 90 ? 29 67 85 ? 14 56 80 ? 3 14 35 ? 8 16 58 ? 1 22 94 ? 4 29 44 ? 53 55 72 ? 22 43 80 ? 15 41 81 ? 8 53 99 ? 65 81 98 ? 12 30 82...
result:
points 0.90019354840 points 0.90019354840 correct 3621 queries
Test #20:
score: 91.6903
Acceptable Answer
time: 147ms
memory: 3520kb
input:
0 0 2 1 3 1 2 1 2 3 1 2 1 0 0 1 1 2 2 1 1 0 2 2 1 2 1 2 1 2 1 2 1 2 1 1 1 3 1 3 1 1 1 2 1 2 1 2 1 2 1 2 1 1 2 2 1 2 0 2 1 2 2 2 2 1 3 1 2 1 1 1 0 2 2 1 2 2 1 1 1 2 2 2 2 2 1 1 0 2 1 1 1 2 2 3 2 2 1 2 2 1 2 2 1 2 2 0 2 1 0 1 0 2 2 1 2 1 3 2 1 0 1 2 1 1 1 3 2 1 1 0 3 0 0 1 0 1 2 2 2 2 2 1 3 2 1 3 2 1 ...
output:
? 13 80 99 ? 23 57 94 ? 49 75 79 ? 2 4 32 ? 41 71 94 ? 14 41 72 ? 1 9 11 ? 32 36 87 ? 17 21 72 ? 59 80 87 ? 44 86 91 ? 60 70 100 ? 34 63 78 ? 32 37 63 ? 60 77 95 ? 52 87 91 ? 10 43 63 ? 18 79 94 ? 4 10 50 ? 8 41 77 ? 50 63 84 ? 19 35 100 ? 12 33 59 ? 48 93 95 ? 42 72 81 ? 40 62 80 ? 4 89 92 ? 34 54 ...
result:
points 0.91690322580 points 0.91690322580 correct 3584 queries