QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#260350 | #7804. Intersegment Activation | DoorKickers# | AC ✓ | 13ms | 3864kb | C++20 | 3.7kb | 2023-11-22 03:12:17 | 2023-11-22 03:12:18 |
Judging History
answer
#include <bits/stdc++.h>
#include <algorithm>
#include <cctype>
#include <climits>
#include <functional>
#include <iomanip>
#include <queue>
#include <set>
#include <valarray>
#define ll long long
#define ull unsigned long long
#define mp make_pair
#define fi first
#define se second
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pb push_back
#define rep(a, b, c) for (int a = b; a <= c; a++)
#define per(a, b, c) for (int a = c; a >= b; a--)
#define all(a) a.begin() + 1, a.end()
#define all_(a) a.begin(), a.end()
#define vi vector<int>
#define vl vector<ll>
#define vpii vector<pii>
#define vpll vector<pll>
int mod = 998244353;
ll gcd(ll a, ll b) {return b == 0 ? a : gcd(b, a % b);}
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;}
ll fp_m (ll a, ll n) {
a %= mod;
ll res = 1; while (n) { if (n & 1) res = res * a % mod; a = a * a % mod; n >>= 1; } return res;
}
ll fp (ll a, ll n) {
ll res = 1; while (n) { if (n & 1) res *= a; a *= a; n >>= 1; } return res;
}
ll inv(ll x) {return fp_m(x, mod - 2);}
template<typename T>
std::ostream& operator<<(std::ostream& os, const std::vector<T>& vec) {
os << "[";
for (size_t i = 0; i < vec.size(); ++i) {
os << vec[i];
if (i < vec.size() - 1)
os << ", ";
}
os << "]";
return os;
}
template<typename T, typename... Args>
void debug(std::string name, T value, Args &&...arg) {
std::cout << name;
(..., (std::cout << '[' << arg << ']'));
std::cout << " = " << value << '\n';
}
//中文测试 中文测试
signed main() {
std::ios::sync_with_stdio(0);
std::cin.tie(0); std::cout.tie(0);
int n; std::cin >> n;
std::map<std::pair<int, int>, int> mx;
std::map<std::pair<int, int>, int> now;
int max = 0;
std::cin >> max;
int cnt = 0;
for (int i = 1; i <= n; i++) {
std::function<void(int)> dfs = [&] (int layer) {
if (layer == n + 1) {
return;
}
dfs(layer + 1);
std::cout << i << ' ' << layer << '\n';
std::cout.flush();
cnt++;
assert(cnt <= 2500);
now[{i, layer}] = 1 - now[{i, layer}];
int K;
std::cin >> K;
if (K == n) exit(0);
if (K > max) {
max = K;
mx = now;
}
dfs(layer + 1);
};
dfs(i);
// for (int j = 0; j <= (1 << (n - i + 1)) - 1; j++) {
// for (int k = i; k <= n; k++) {
// int x = (j >> (k - i)) & 1;
// if (now[{i, k}] != x) {
// cnt++;
// // std::cout << i << ' ' << k << '\n';
// std::cout.flush();
// now[{i, k}] = 1 - now[{i, k}];
// // int K; std::cin >> K;
// // if (K == n) {
// // return 0;
// // } else {
// // if (K > max) {
// // K = max;
// // mx = now;
// // }
// // }
// }
// }
// }
for (int k = i; k <= n; k++) {
if (now[{i, k}] != mx[{i, k}]) {
std::cout << i << ' ' << k << '\n';
cnt++;
assert(cnt <= 2500);
std::cout.flush();
now[{i, k}] = 1 - now[{i, k}];
int K;
std::cin >> K;
if (K == n) return 0;
}
}
}
return 0;
}
//出题是2^n = 11111 + 1
/*
1 2 3 4 5 6
[1, 1]
[2, 2]
[3, 3]
[4, 2]
[5, 1]
[6, 1]
*/
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3528kb
input:
3 0 0 0 1 0 0 0 0 0 1 3
output:
1 3 1 2 1 3 1 1 1 3 1 2 1 3 1 1 1 2 2 3
result:
ok OK, 10 queries
Test #2:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
1 0 1
output:
1 1
result:
ok OK, 1 queries
Test #3:
score: 0
Accepted
time: 1ms
memory: 3852kb
input:
2 1 0 0 2
output:
1 2 1 1 1 2
result:
ok OK, 3 queries
Test #4:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
2 0 0 1 0 1 2
output:
1 2 1 1 1 2 1 2 2 2
result:
ok OK, 5 queries
Test #5:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
2 0 0 0 1 2
output:
1 2 1 1 1 2 2 2
result:
ok OK, 4 queries
Test #6:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
2 0 2
output:
1 2
result:
ok OK, 1 queries
Test #7:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
3 0 1 2 0 0 3
output:
1 3 1 2 1 3 1 1 1 3
result:
ok OK, 5 queries
Test #8:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
3 0 0 0 0 0 1 0 0 0 1 1 2 1 2 3
output:
1 3 1 2 1 3 1 1 1 3 1 2 1 3 1 2 1 3 2 3 2 2 2 3 2 3 3 3
result:
ok OK, 14 queries
Test #9:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
3 0 0 0 0 0 0 0 1 1 1 2 3
output:
1 3 1 2 1 3 1 1 1 3 1 2 1 3 2 3 2 2 2 3 3 3
result:
ok OK, 11 queries
Test #10:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
3 0 3
output:
1 3
result:
ok OK, 1 queries
Test #11:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
4 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 1 2 1 1 1 1 1 2 2 3 2 3 4
output:
1 4 1 3 1 4 1 2 1 4 1 3 1 4 1 1 1 4 1 3 1 4 1 2 1 4 1 3 1 4 1 3 1 4 2 4 2 3 2 4 2 2 2 4 2 3 2 4 2 2 2 3 3 4 3 3 3 4 3 4 4 4
result:
ok OK, 31 queries
Test #12:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
4 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 1 1 1 2 1 1 1 2 2 3 2 3 4
output:
1 4 1 3 1 4 1 2 1 4 1 3 1 4 1 1 1 4 1 3 1 4 1 2 1 4 1 3 1 4 1 2 1 3 1 4 2 4 2 3 2 4 2 2 2 4 2 3 2 4 2 3 2 4 3 4 3 3 3 4 3 4 4 4
result:
ok OK, 32 queries
Test #13:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 2 2 2 3 4
output:
1 4 1 3 1 4 1 2 1 4 1 3 1 4 1 1 1 4 1 3 1 4 1 2 1 4 1 3 1 4 2 4 2 3 2 4 2 2 2 4 2 3 2 4 3 4 3 3 3 4 4 4
result:
ok OK, 26 queries
Test #14:
score: 0
Accepted
time: 1ms
memory: 3852kb
input:
4 0 4
output:
1 4
result:
ok OK, 1 queries
Test #15:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
5 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 2 2 2 2 2 2 2 3 3 4 3 4 5
output:
1 5 1 4 1 5 1 3 1 5 1 4 1 5 1 2 1 5 1 4 1 5 1 3 1 5 1 4 1 5 1 1 1 5 1 4 1 5 1 3 1 5 1 4 1 5 1 2 1 5 1 4 1 5 1 3 1 5 1 4 1 5 1 1 1 2 1 4 1 5 2 5 2 4 2 5 2 3 2 5 2 4 2 5 2 2 2 5 2 4 2 5 2 3 2 5 2 4 2 5 2 3 3 5 3 4 3 5 3 3 3 5 3 4 3 5 4 5 4 4 4 5 4 5 5 5
result:
ok OK, 63 queries
Test #16:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 2 2 2 2 2 3 2 2 2 3 3 4 3 4 5
output:
1 5 1 4 1 5 1 3 1 5 1 4 1 5 1 2 1 5 1 4 1 5 1 3 1 5 1 4 1 5 1 1 1 5 1 4 1 5 1 3 1 5 1 4 1 5 1 2 1 5 1 4 1 5 1 3 1 5 1 4 1 5 1 2 1 3 1 4 1 5 2 5 2 4 2 5 2 3 2 5 2 4 2 5 2 2 2 5 2 4 2 5 2 3 2 5 2 4 2 5 2 3 2 4 2 5 3 5 3 4 3 5 3 3 3 5 3 4 3 5 3 4 3 5 4 5 4 4 4 5 4 5 5 5
result:
ok OK, 67 queries
Test #17:
score: 0
Accepted
time: 1ms
memory: 3864kb
input:
5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 3 3 3 4 5
output:
1 5 1 4 1 5 1 3 1 5 1 4 1 5 1 2 1 5 1 4 1 5 1 3 1 5 1 4 1 5 1 1 1 5 1 4 1 5 1 3 1 5 1 4 1 5 1 2 1 5 1 4 1 5 1 3 1 5 1 4 1 5 2 5 2 4 2 5 2 3 2 5 2 4 2 5 2 2 2 5 2 4 2 5 2 3 2 5 2 4 2 5 3 5 3 4 3 5 3 3 3 5 3 4 3 5 4 5 4 4 4 5 5 5
result:
ok OK, 57 queries
Test #18:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
5 0 5
output:
1 5
result:
ok OK, 1 queries
Test #19:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 3 2 2 2 3 3 4 3 3 3 3 3 3 3 4 5 6
output:
1 6 1 5 1 6 1 4 1 6 1 5 1 6 1 3 1 6 1 5 1 6 1 4 1 6 1 5 1 6 1 2 1 6 1 5 1 6 1 4 1 6 1 5 1 6 1 3 1 6 1 5 1 6 1 4 1 6 1 5 1 6 1 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0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
1 9 1 8 1 9 1 7 1 9 1 8 1 9 1 6 1 9 1 8 1 9 1 7 1 9 1 8 1 9 1 5 1 9 1 8 1 9 1 7 1 9 1 8 1 9 1 6 1 9 1 8 1 9 1 7 1 9 1 8 1 9 1 4 1 9 1 8 1 9 1 7 1 9 1 8 1 9 1 6 1 9 1 8 1 9 1 7 1 9 1 8 1 9 1 5 1 9 1 8 1 9 1 7 1 9 1 8 1 9 1 6 1 9 1 8 1 9 1 7 1 9 1 8 1 9 1 3 1 9 1 8 1 9 1 7 1 9 1 8 1 9 1 6 1 9 1 8 1 9 ...
result:
ok OK, 1013 queries
Test #34:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
9 0 9
output:
1 9
result:
ok OK, 1 queries
Test #35:
score: 0
Accepted
time: 9ms
memory: 3636kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2060 queries
Test #36:
score: 0
Accepted
time: 4ms
memory: 3860kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2081 queries
Test #37:
score: 0
Accepted
time: 13ms
memory: 3508kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2036 queries
Test #38:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
10 0 10
output:
1 10
result:
ok OK, 1 queries
Test #39:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
10 0 1 2 0 0 3 1 0 0 1 4 0 0 2 1 0 0 1 2 0 0 5 1 0 0 1 3 0 0 2 1 0 0 1 2 0 0 3 1 0 0 1 6 0 0 2 1 0 0 1 2 0 0 4 1 0 0 1 3 0 0 2 1 0 0 1 2 0 0 3 1 0 0 1 4 0 0 2 1 0 0 1 2 0 0 7 1 0 0 1 3 0 0 2 1 0 0 1 2 0 0 3 1 0 0 1 5 0 0 2 1 0 0 1 2 0 0 4 1 0 0 1 3 0 0 2 1 0 0 1 2 0 0 3 1 0 0 1 4 0 0 2 1 0 0 1 2 0 0...
output:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 682 queries
Test #40:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
10 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2054 queries
Test #41:
score: 0
Accepted
time: 2ms
memory: 3808kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2037 queries
Test #42:
score: 0
Accepted
time: 3ms
memory: 3604kb
input:
10 6 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 2 2 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 3 3 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1...
output:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2043 queries
Test #43:
score: 0
Accepted
time: 2ms
memory: 3628kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2043 queries
Test #44:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2043 queries
Test #45:
score: 0
Accepted
time: 5ms
memory: 3664kb
input:
10 0 0 0 0 0 0 0 0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10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2049 queries
Test #47:
score: 0
Accepted
time: 8ms
memory: 3856kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2054 queries
Test #48:
score: 0
Accepted
time: 6ms
memory: 3632kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2056 queries
Test #49:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2059 queries
Test #50:
score: 0
Accepted
time: 2ms
memory: 3564kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2059 queries
Test #51:
score: 0
Accepted
time: 6ms
memory: 3624kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2046 queries
Test #52:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2053 queries
Test #53:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2064 queries
Test #54:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2063 queries
Test #55:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2056 queries
Test #56:
score: 0
Accepted
time: 3ms
memory: 3820kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2075 queries
Test #57:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2066 queries
Test #58:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2066 queries
Test #59:
score: 0
Accepted
time: 2ms
memory: 3628kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2073 queries
Test #60:
score: 0
Accepted
time: 5ms
memory: 3572kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2069 queries
Test #61:
score: 0
Accepted
time: 5ms
memory: 3856kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2071 queries
Test #62:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2078 queries
Test #63:
score: 0
Accepted
time: 3ms
memory: 3604kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2073 queries
Test #64:
score: 0
Accepted
time: 6ms
memory: 3512kb
input:
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2076 queries
Test #65:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
10 9 0 0 1 1 0 0 2 2 0 0 1 1 0 0 3 3 0 0 1 1 0 0 2 2 0 0 1 1 0 0 4 4 0 0 1 1 0 0 2 2 0 0 1 1 0 0 3 3 0 0 1 1 0 0 2 2 0 0 1 1 0 0 5 5 0 0 1 1 0 0 2 2 0 0 1 1 0 0 3 3 0 0 1 1 0 0 2 2 0 0 1 1 0 0 4 4 0 0 1 1 0 0 2 2 0 0 1 1 0 0 3 3 0 0 1 1 0 0 2 2 0 0 1 1 0 0 6 6 0 0 1 1 0 0 2 2 0 0 1 1 0 0 3 3 0 0 1 1...
output:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 1023 queries
Test #66:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
10 9 0 0 0 0 0 0 1 1 0 0 0 0 0 0 2 2 0 0 0 0 0 0 1 1 0 0 0 0 0 0 3 3 0 0 0 0 0 0 1 1 0 0 0 0 0 0 2 2 0 0 0 0 0 0 1 1 0 0 0 0 0 0 4 4 0 0 0 0 0 0 1 1 0 0 0 0 0 0 2 2 0 0 0 0 0 0 1 1 0 0 0 0 0 0 3 3 0 0 0 0 0 0 1 1 0 0 0 0 0 0 2 2 0 0 0 0 0 0 1 1 0 0 0 0 0 0 5 5 0 0 0 0 0 0 1 1 0 0 0 0 0 0 2 2 0 0 0 0...
output:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 2045 queries
Test #67:
score: 0
Accepted
time: 1ms
memory: 3784kb
input:
10 1 0 0 10
output:
1 10 1 9 1 10
result:
ok OK, 3 queries
Test #68:
score: 0
Accepted
time: 4ms
memory: 3564kb
input:
10 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 1025 queries
Test #69:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
10 2 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1...
output:
1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 5 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 6 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 7 1 10 1 9 1 10 1 8 1 10 1 9 1 10 1 4 1 10 1 9 1 1...
result:
ok OK, 1027 queries
Extra Test:
score: 0
Extra Test Passed