QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#303258 | #5199. Amazing Trick | LaStataleBlue# | AC ✓ | 86ms | 4740kb | C++20 | 1.7kb | 2024-01-11 23:54:16 | 2024-01-11 23:54:16 |
Judging History
answer
#pragma ide diagnostic ignored "misc-no-recursion"
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef long double db;
#define TESTCASE 1
static constexpr int MOD = 998'244'353;
static constexpr int MAX_N = 1 << 19;
static constexpr int INF = 1e9;
static void solve([[maybe_unused]] int tc) {
int N;
cin >> N;
vector<int> A(N);
for (int i = 0; i < N; i++) {
cin >> A[i];
A[i]--;
}
vector<int> B = A;
auto solve = [&](int l, int r) {
sort(B.begin() + l, B.begin() + r);
do {
bool ok = true;
for (int i = l; i < r; i++) {
ok = ok && B[i] != A[i] && B[i] != i;
}
if (ok) return true;
} while (next_permutation(B.begin() + l, B.begin() + r));
return false;
};
int i;
for (i = 0; i + 8 <= N; i++) {
assert (solve(i, i + 4));
}
if (solve(i, N)) {
cout << "Possible\n";
vector<int> P(N), Q(N);
for (int i = 0; i < N; i++) {
P[B[i]] = i;
Q[A[i]] = B[i];
}
for (int i = 0; i < N; i++) {
cout << P[i] + 1 << " \n"[i + 1 == N];
}
for (int i = 0; i < N; i++) {
cout << Q[i] + 1 << " \n"[i + 1 == N];
}
} else {
cout << "Impossible\n";
}
}
int main() {
ios::sync_with_stdio(false);
if (const char *f = getenv("REDIRECT_STDOUT"); f) {
freopen(f, "w", stdout);
}
int T = 1;
#if TESTCASE
cin >> T;
#endif
for (int t = 1; t <= T; t++) {
solve(t);
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3516kb
input:
4 2 2 1 3 1 2 3 4 2 1 4 3 5 5 1 4 2 3
output:
Impossible Possible 3 1 2 2 3 1 Possible 3 4 1 2 4 3 2 1 Possible 3 1 2 5 4 3 5 4 1 2
result:
ok 3/4 are 'Possible' (4 test cases)
Test #2:
score: 0
Accepted
time: 1ms
memory: 3476kb
input:
50 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Imp...
result:
ok 0/50 are 'Possible' (50 test cases)
Test #3:
score: 0
Accepted
time: 0ms
memory: 3432kb
input:
25 2 2 1 2 2 1 2 2 1 2 1 2 2 2 1 2 1 2 2 1 2 2 1 2 2 1 2 2 1 2 2 2 1 2 2 1 2 1 2 2 1 2 2 2 1 2 2 1 2 2 1 2 1 2 2 1 2 2 1 2 2 2 1 2 2 1 2 2 1 2 2 1 2 2 1
output:
Impossible Impossible Impossible Possible 2 1 2 1 Impossible Possible 2 1 2 1 Possible 2 1 2 1 Possible 2 1 2 1 Possible 2 1 2 1 Possible 2 1 2 1 Impossible Impossible Possible 2 1 2 1 Possible 2 1 2 1 Impossible Impossible Impossible Possible 2 1 2 1 Possible 2 1 2 1 Possible 2 1 2 1 Impossible Imp...
result:
ok 11/25 are 'Possible' (25 test cases)
Test #4:
score: 0
Accepted
time: 1ms
memory: 3432kb
input:
16 3 3 2 1 3 3 1 2 3 3 1 2 3 2 3 1 3 3 1 2 3 2 1 3 3 2 3 1 3 3 2 1 3 3 1 2 3 2 1 3 3 1 2 3 3 1 3 2 3 3 1 2 3 3 1 2 3 3 2 1 3 2 1 3
output:
Impossible Possible 3 1 2 3 1 2 Possible 3 1 2 3 1 2 Possible 2 3 1 2 3 1 Possible 3 1 2 3 1 2 Impossible Possible 2 3 1 2 3 1 Impossible Possible 3 1 2 3 1 2 Impossible Possible 3 1 2 2 3 1 Impossible Possible 3 1 2 3 1 2 Possible 3 1 2 3 1 2 Impossible Impossible
result:
ok 9/16 are 'Possible' (16 test cases)
Test #5:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
12 4 2 4 1 3 4 2 4 1 3 4 1 3 2 4 4 2 4 1 3 4 4 1 2 3 4 2 4 3 1 4 1 3 4 2 4 3 4 2 1 4 2 4 3 1 4 1 3 2 4 4 3 4 1 2 4 1 3 4 2
output:
Possible 2 4 1 3 4 3 2 1 Possible 2 4 1 3 4 3 2 1 Possible 2 1 4 3 2 4 1 3 Possible 2 4 1 3 4 3 2 1 Possible 4 1 2 3 3 4 1 2 Possible 2 4 1 3 2 3 4 1 Possible 3 1 4 2 2 3 4 1 Possible 2 1 4 3 3 4 2 1 Possible 2 4 1 3 2 3 4 1 Possible 2 1 4 3 2 4 1 3 Possible 2 1 4 3 4 3 2 1 Possible 3 1 4 2 2 3 4 1
result:
ok 12/12 are 'Possible' (12 test cases)
Test #6:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
10 5 5 4 3 2 1 5 1 5 3 2 4 5 3 1 5 2 4 5 1 5 4 3 2 5 1 3 2 5 4 5 1 2 3 5 4 5 3 1 4 2 5 5 3 4 1 2 5 5 5 1 3 4 2 5 5 3 2 1 4
output:
Possible 2 1 5 3 4 3 5 4 1 2 Possible 2 1 5 3 4 2 5 4 3 1 Possible 5 1 2 3 4 3 5 2 1 4 Possible 3 1 2 5 4 2 4 5 1 3 Possible 4 1 5 2 3 2 5 4 3 1 Possible 4 1 5 2 3 2 4 5 3 1 Possible 3 1 2 5 4 3 5 2 1 4 Possible 2 1 5 3 4 4 5 2 1 3 Possible 3 1 2 5 4 3 4 1 5 2 Possible 2 1 5 3 4 5 4 1 3 2
result:
ok 10/10 are 'Possible' (10 test cases)
Test #7:
score: 0
Accepted
time: 0ms
memory: 3436kb
input:
8 6 5 4 3 6 2 1 6 2 1 3 4 5 6 6 1 6 4 5 2 3 6 1 2 3 4 5 6 6 3 6 1 2 5 4 6 2 6 3 5 4 1 6 1 2 4 5 3 6 6 5 3 4 2 6 1
output:
Possible 2 1 4 3 6 5 5 6 4 1 2 3 Possible 3 4 1 2 6 5 4 3 1 2 6 5 Possible 2 1 4 6 3 5 2 6 4 5 3 1 Possible 2 1 4 3 6 5 2 1 4 3 6 5 Possible 2 1 4 3 6 5 4 3 2 5 6 1 Possible 2 4 1 3 6 5 5 3 4 6 2 1 Possible 2 1 4 6 3 5 2 1 6 5 3 4 Possible 2 1 5 6 3 4 4 6 1 5 2 3
result:
ok 8/8 are 'Possible' (8 test cases)
Test #8:
score: 0
Accepted
time: 1ms
memory: 3444kb
input:
7 7 3 7 6 5 2 1 4 7 6 1 3 2 7 4 5 7 2 4 1 6 7 5 3 7 4 3 5 1 2 6 7 7 3 1 5 7 2 4 6 7 2 3 4 6 7 5 1 7 7 4 2 6 3 1 5
output:
Possible 2 1 4 3 7 5 6 7 6 2 5 3 4 1 Possible 3 1 2 5 4 7 6 3 5 1 7 6 2 4 Possible 2 3 1 5 4 7 6 2 3 6 1 7 5 4 Possible 2 1 4 3 7 5 6 3 6 1 2 4 7 5 Possible 3 1 2 7 4 5 6 3 6 2 7 1 4 5 Possible 2 3 1 5 4 7 6 6 3 1 2 7 5 4 Possible 2 1 4 3 6 7 5 5 4 7 1 6 3 2
result:
ok 7/7 are 'Possible' (7 test cases)
Test #9:
score: 0
Accepted
time: 1ms
memory: 3444kb
input:
6 8 6 1 5 3 7 8 4 2 8 4 5 8 1 3 6 2 7 8 6 5 8 2 4 1 3 7 8 4 2 5 3 7 1 8 6 8 5 7 2 6 3 8 4 1 8 4 1 5 3 7 2 8 6
output:
Possible 3 4 1 2 6 5 8 7 4 7 2 8 1 3 6 5 Possible 2 3 4 5 1 8 6 7 3 8 4 5 1 7 6 2 Possible 2 1 4 3 8 5 6 7 7 3 8 6 1 2 5 4 Possible 2 1 5 3 4 7 8 6 8 1 5 2 4 7 3 6 Possible 2 1 4 3 6 5 8 7 7 4 6 8 2 3 1 5 Possible 3 4 1 2 7 5 8 6 4 8 2 3 1 7 6 5
result:
ok 6/6 are 'Possible' (6 test cases)
Test #10:
score: 0
Accepted
time: 0ms
memory: 3476kb
input:
5 9 2 8 5 3 4 6 9 7 1 9 5 8 2 6 4 7 1 9 3 9 4 5 1 6 9 8 7 3 2 9 9 5 7 6 4 2 8 3 1 9 7 3 2 5 8 9 6 4 1
output:
Possible 3 4 1 2 6 5 9 7 8 7 3 2 6 1 5 9 4 8 Possible 3 1 4 2 6 5 8 9 7 9 1 8 6 2 3 5 4 7 Possible 2 3 4 5 1 7 6 9 8 2 8 9 5 1 3 6 7 4 Possible 3 4 5 2 1 7 6 9 8 8 7 9 3 4 2 1 6 5 Possible 3 1 4 5 2 9 6 7 8 6 1 5 9 3 8 2 4 7
result:
ok 5/5 are 'Possible' (5 test cases)
Test #11:
score: 0
Accepted
time: 0ms
memory: 3432kb
input:
5 10 10 5 3 8 9 6 1 7 4 2 10 10 9 4 8 6 1 7 3 5 2 10 4 10 7 3 6 9 5 1 8 2 10 6 1 8 10 7 5 3 4 2 9 10 8 10 9 1 2 4 7 6 3 5
output:
Possible 4 5 1 6 3 7 10 2 8 9 6 7 5 10 8 4 9 1 2 3 Possible 3 4 5 1 6 2 8 7 10 9 5 9 7 1 10 3 8 2 6 4 Possible 4 5 1 2 6 3 8 7 10 9 7 9 1 3 8 2 6 10 5 4 Possible 3 4 5 6 7 2 10 1 8 9 6 10 5 9 4 8 3 1 7 2 Possible 2 3 4 5 6 7 8 10 1 9 3 4 10 5 8 7 6 9 2 1
result:
ok 5/5 are 'Possible' (5 test cases)
Test #12:
score: 0
Accepted
time: 31ms
memory: 3552kb
input:
100000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Impossible Imp...
result:
ok 0/100000 are 'Possible' (100000 test cases)
Test #13:
score: 0
Accepted
time: 39ms
memory: 3456kb
input:
50000 2 1 2 2 1 2 2 1 2 2 1 2 2 2 1 2 1 2 2 2 1 2 2 1 2 1 2 2 1 2 2 1 2 2 2 1 2 2 1 2 1 2 2 2 1 2 2 1 2 1 2 2 2 1 2 2 1 2 1 2 2 2 1 2 2 1 2 1 2 2 2 1 2 1 2 2 2 1 2 2 1 2 1 2 2 2 1 2 1 2 2 2 1 2 2 1 2 2 1 2 2 1 2 2 1 2 2 1 2 2 1 2 2 1 2 2 1 2 1 2 2 1 2 2 2 1 2 2 1 2 1 2 2 2 1 2 1 2 2 2 1 2 2 1 2 2 1 ...
output:
Possible 2 1 2 1 Possible 2 1 2 1 Possible 2 1 2 1 Possible 2 1 2 1 Impossible Possible 2 1 2 1 Impossible Impossible Possible 2 1 2 1 Possible 2 1 2 1 Possible 2 1 2 1 Impossible Impossible Possible 2 1 2 1 Impossible Impossible Possible 2 1 2 1 Impossible Impossible Possible 2 1 2 1 Impossible Imp...
result:
ok 25064/50000 are 'Possible' (50000 test cases)
Test #14:
score: 0
Accepted
time: 15ms
memory: 3436kb
input:
33333 3 3 2 1 3 2 3 1 3 2 3 1 3 3 1 2 3 2 1 3 3 2 3 1 3 2 3 1 3 2 3 1 3 2 1 3 3 1 2 3 3 2 1 3 3 2 3 1 3 3 1 2 3 1 3 2 3 2 1 3 3 1 2 3 3 1 3 2 3 2 1 3 3 1 2 3 3 2 3 1 3 1 3 2 3 2 3 1 3 3 2 1 3 1 3 2 3 3 1 2 3 3 1 2 3 2 1 3 3 3 1 2 3 3 1 2 3 3 1 2 3 1 3 2 3 3 2 1 3 3 2 1 3 3 2 1 3 3 1 2 3 2 3 1 3 1 3 ...
output:
Impossible Possible 2 3 1 2 3 1 Possible 2 3 1 2 3 1 Possible 3 1 2 3 1 2 Impossible Possible 2 3 1 2 3 1 Possible 2 3 1 2 3 1 Possible 2 3 1 2 3 1 Impossible Possible 3 1 2 2 3 1 Impossible Possible 2 3 1 2 3 1 Possible 3 1 2 3 1 2 Impossible Impossible Possible 3 1 2 2 3 1 Impossible Impossible Po...
result:
ok 16621/33333 are 'Possible' (33333 test cases)
Test #15:
score: 0
Accepted
time: 22ms
memory: 3444kb
input:
25000 4 1 4 2 3 4 1 2 4 3 4 4 3 1 2 4 2 3 4 1 4 2 3 1 4 4 4 1 2 3 4 4 3 2 1 4 4 1 2 3 4 4 2 3 1 4 3 4 1 2 4 3 2 1 4 4 1 2 3 4 4 1 2 4 3 4 4 1 3 2 4 3 2 1 4 4 4 2 1 3 4 2 4 3 1 4 3 1 4 2 4 4 2 1 3 4 1 2 4 3 4 4 1 2 3 4 3 4 1 2 4 1 3 2 4 4 2 1 3 4 4 1 3 4 2 4 1 2 4 3 4 4 1 3 2 4 2 4 3 1 4 1 3 2 4 4 4 ...
output:
Possible 4 1 2 3 2 4 1 3 Possible 3 4 1 2 3 4 2 1 Possible 2 1 4 3 4 3 1 2 Possible 3 4 1 2 2 3 4 1 Possible 2 4 1 3 4 3 1 2 Possible 4 1 2 3 3 4 1 2 Possible 2 1 4 3 3 4 1 2 Possible 4 1 2 3 3 4 1 2 Possible 2 1 4 3 3 1 4 2 Possible 2 1 4 3 4 3 2 1 Possible 2 1 4 3 4 1 2 3 Possible 2 1 4 3 2 1 4 3 ...
result:
ok 25000/25000 are 'Possible' (25000 test cases)
Test #16:
score: 0
Accepted
time: 19ms
memory: 3440kb
input:
20000 5 2 3 5 4 1 5 2 3 5 1 4 5 4 5 1 3 2 5 5 3 2 1 4 5 5 4 3 1 2 5 2 5 4 3 1 5 2 5 3 1 4 5 1 3 5 4 2 5 1 5 4 3 2 5 4 1 3 5 2 5 3 4 5 1 2 5 2 5 1 4 3 5 5 4 3 1 2 5 3 2 5 4 1 5 5 3 2 4 1 5 3 2 1 4 5 5 3 5 1 2 4 5 2 3 5 1 4 5 5 4 2 3 1 5 4 5 2 1 3 5 4 5 2 1 3 5 3 1 5 4 2 5 4 3 5 2 1 5 2 4 5 3 1 5 2 3 ...
output:
Possible 2 3 1 5 4 4 3 1 5 2 Possible 2 5 1 3 4 5 3 1 2 4 Possible 2 1 5 3 4 4 3 5 2 1 Possible 2 1 5 3 4 5 4 1 3 2 Possible 2 1 5 3 4 5 3 4 1 2 Possible 2 3 1 5 4 4 3 5 2 1 Possible 2 5 1 3 4 5 3 4 2 1 Possible 2 1 5 3 4 2 3 1 5 4 Possible 3 1 2 5 4 2 4 5 1 3 Possible 4 1 2 5 3 3 4 5 2 1 Possible 2...
result:
ok 20000/20000 are 'Possible' (20000 test cases)
Test #17:
score: 0
Accepted
time: 27ms
memory: 3556kb
input:
16666 6 5 4 6 1 2 3 6 5 3 2 1 4 6 6 1 5 3 4 2 6 6 4 5 1 2 3 6 6 2 6 1 4 3 5 6 4 1 3 2 5 6 6 3 1 6 2 5 4 6 3 5 4 2 1 6 6 4 3 1 6 5 2 6 5 3 2 4 6 1 6 1 6 2 3 5 4 6 3 1 5 6 4 2 6 5 4 2 1 3 6 6 2 6 5 1 4 3 6 5 6 3 4 2 1 6 2 3 1 4 5 6 6 1 3 4 2 6 5 6 4 6 3 5 2 1 6 1 6 2 4 5 3 6 4 5 2 3 1 6 6 5 3 6 4 1 2 ...
output:
Possible 2 1 4 3 6 5 3 6 5 1 2 4 Possible 2 1 4 3 6 5 3 4 1 6 2 5 Possible 2 1 4 3 6 5 2 6 4 3 1 5 Possible 2 1 4 3 6 5 4 3 6 2 1 5 Possible 2 3 1 6 4 5 2 3 6 5 4 1 Possible 3 1 2 6 4 5 3 5 1 2 6 4 Possible 3 1 2 5 6 4 3 6 2 5 4 1 Possible 2 1 4 6 3 5 6 3 2 5 1 4 Possible 2 1 4 3 6 5 4 5 1 2 6 3 Pos...
result:
ok 16666/16666 are 'Possible' (16666 test cases)
Test #18:
score: 0
Accepted
time: 86ms
memory: 3496kb
input:
14285 7 3 1 2 4 7 5 6 7 5 2 1 3 4 7 6 7 2 1 6 4 7 3 5 7 5 3 7 2 4 1 6 7 2 4 3 5 7 1 6 7 2 4 7 3 6 1 5 7 2 3 5 1 4 6 7 7 7 2 6 5 1 3 4 7 5 7 6 2 1 4 3 7 1 3 4 6 2 7 5 7 7 6 3 5 4 2 1 7 7 4 2 6 3 5 1 7 7 5 4 2 3 6 1 7 6 1 7 5 3 2 4 7 1 6 3 5 4 7 2 7 6 7 1 3 5 2 4 7 5 7 4 6 2 1 3 7 4 7 3 6 2 5 1 7 5 6 ...
output:
Possible 3 1 2 7 4 5 6 3 1 2 5 7 4 6 Possible 2 1 6 3 7 4 5 4 1 6 7 2 5 3 Possible 3 5 1 2 4 7 6 4 3 7 5 6 1 2 Possible 2 1 4 3 7 5 6 7 3 1 6 2 5 4 Possible 2 3 1 5 7 4 6 7 3 2 1 6 5 4 Possible 2 3 1 5 4 7 6 7 3 5 1 6 4 2 Possible 2 3 1 7 4 5 6 5 3 1 6 2 7 4 Possible 2 1 4 3 7 5 6 6 1 7 5 3 4 2 Poss...
result:
ok 14285/14285 are 'Possible' (14285 test cases)
Test #19:
score: 0
Accepted
time: 27ms
memory: 3448kb
input:
12500 8 7 4 6 3 1 5 2 8 8 8 1 6 7 2 5 4 3 8 8 5 2 4 6 7 1 3 8 3 2 1 8 4 6 7 5 8 7 2 4 5 3 6 1 8 8 3 5 7 8 2 4 1 6 8 2 4 7 6 1 8 5 3 8 8 4 1 3 5 6 7 2 8 6 2 7 8 1 4 5 3 8 5 8 1 2 4 3 6 7 8 8 5 6 7 1 2 4 3 8 7 1 5 8 4 6 3 2 8 8 1 2 4 6 7 5 3 8 5 3 2 1 6 4 7 8 8 1 8 5 3 4 7 2 6 8 7 1 8 4 6 3 2 5 8 8 7 ...
output:
Possible 2 3 1 5 4 8 6 7 4 8 5 1 7 2 3 6 Possible 3 4 2 5 8 1 6 7 3 4 5 8 7 1 2 6 Possible 2 1 4 3 6 8 5 7 8 4 6 3 1 7 5 2 Possible 2 1 4 3 6 5 8 7 4 1 2 6 7 5 8 3 Possible 2 1 4 5 3 8 6 7 8 1 4 5 3 7 2 6 Possible 2 3 4 5 1 7 8 6 6 4 5 8 1 7 2 3 Possible 2 3 4 1 6 5 8 7 6 4 7 1 8 3 2 5 Possible 2 3 ...
result:
ok 12500/12500 are 'Possible' (12500 test cases)
Test #20:
score: 0
Accepted
time: 17ms
memory: 3516kb
input:
11111 9 8 9 5 7 6 1 4 2 3 9 2 1 7 8 3 6 4 9 5 9 7 5 9 8 4 1 3 2 6 9 4 3 9 2 1 6 7 8 5 9 4 1 8 7 9 2 3 5 6 9 1 9 8 6 2 7 4 5 3 9 3 6 1 9 2 7 5 4 8 9 9 1 3 4 7 2 6 5 8 9 2 7 1 5 3 4 6 9 8 9 6 2 1 7 9 5 4 3 8 9 6 1 3 4 7 9 8 5 2 9 3 7 5 8 6 4 1 2 9 9 2 5 3 9 4 1 8 7 6 9 6 5 1 8 3 2 9 7 4 9 1 7 5 9 2 6 ...
output:
Possible 3 4 5 6 1 2 9 7 8 4 9 7 8 1 3 2 5 6 Possible 3 4 2 5 6 8 1 9 7 3 7 4 9 8 5 1 2 6 Possible 3 4 5 2 1 7 6 9 8 7 9 6 3 4 8 5 2 1 Possible 2 1 4 3 6 5 9 7 8 6 3 1 2 7 5 8 9 4 Possible 3 4 5 2 6 7 1 9 8 4 5 6 7 9 8 2 1 3 Possible 2 3 4 5 6 1 9 7 8 6 4 7 8 9 3 5 2 1 Possible 2 3 4 5 6 1 9 7 8 2 4...
result:
ok 11111/11111 are 'Possible' (11111 test cases)
Test #21:
score: 0
Accepted
time: 27ms
memory: 3428kb
input:
10000 10 4 1 5 7 2 9 10 3 8 6 10 8 7 9 4 5 3 10 1 2 6 10 2 9 10 4 8 6 1 7 3 5 10 7 2 8 5 4 3 1 10 6 9 10 1 9 5 10 6 7 4 3 8 2 10 5 3 9 1 10 4 8 2 7 6 10 2 1 9 8 7 6 4 3 5 10 10 3 1 5 8 7 9 10 4 6 2 10 2 3 1 5 10 9 4 8 6 7 10 3 8 5 10 7 4 6 9 1 2 10 2 9 10 3 6 1 7 8 4 5 10 3 10 6 5 4 2 8 1 9 7 10 6 7...
output:
Possible 3 4 5 2 1 7 6 10 8 9 4 3 9 5 1 8 2 10 7 6 Possible 4 5 7 1 2 8 3 6 10 9 6 10 8 1 2 9 5 4 7 3 Possible 4 3 5 1 6 7 10 2 8 9 6 4 10 1 7 5 9 3 8 2 Possible 4 1 5 2 3 7 6 10 8 9 6 4 7 3 1 10 2 5 8 9 Possible 2 4 5 6 1 3 8 7 10 9 5 9 7 8 6 3 4 10 1 2 Possible 2 4 1 3 6 5 8 10 7 9 2 7 1 5 3 8 10 ...
result:
ok 10000/10000 are 'Possible' (10000 test cases)
Test #22:
score: 0
Accepted
time: 19ms
memory: 3444kb
input:
5000 20 4 12 9 1 10 14 16 15 5 19 13 2 20 17 6 7 18 8 3 11 20 2 14 9 5 19 1 6 16 8 3 13 11 15 18 20 7 10 17 4 12 20 3 12 16 19 13 5 7 15 10 2 14 1 6 20 11 17 4 18 9 8 20 8 14 12 3 15 1 6 2 19 9 10 16 11 17 18 20 7 5 4 13 20 20 14 17 13 2 6 8 1 9 16 5 18 7 11 10 15 3 19 12 4 20 14 4 12 13 17 18 5 1 3...
output:
Possible 2 9 14 3 6 12 13 15 1 4 16 5 8 7 10 11 18 20 17 19 10 6 20 9 2 8 11 17 4 12 18 1 16 5 13 14 3 19 15 7 Possible 3 4 7 14 1 5 13 6 2 15 9 16 8 10 11 12 20 17 18 19 8 5 14 20 2 3 12 11 1 18 16 17 15 9 7 13 19 4 6 10 Possible 9 7 2 14 3 10 4 15 16 6 12 1 8 13 5 11 18 17 20 19 11 6 12 18 10 14 2...
result:
ok 5000/5000 are 'Possible' (5000 test cases)
Test #23:
score: 0
Accepted
time: 9ms
memory: 3520kb
input:
2000 50 14 32 18 15 19 25 38 17 35 39 45 1 23 26 16 41 27 44 6 3 48 33 46 47 36 31 22 24 34 21 7 50 42 28 8 10 9 20 37 2 40 5 29 13 43 30 11 49 12 4 50 7 34 49 27 22 8 17 35 50 4 45 48 10 13 16 18 31 44 3 11 25 28 20 19 30 33 12 42 38 40 23 14 2 24 47 37 9 21 43 29 36 15 39 6 5 46 41 26 32 1 50 26 3...
output:
Possible 9 37 17 44 39 16 28 32 34 33 45 46 41 2 1 12 5 4 3 35 27 24 10 25 7 11 14 31 40 43 23 6 19 26 8 22 36 13 15 38 18 30 42 20 21 29 48 47 50 49 16 29 44 49 43 33 28 20 2 37 48 50 4 15 18 39 35 19 17 40 42 21 38 7 32 27 3 9 30 12 34 14 36 46 1 24 5 25 23 13 6 10 11 41 26 31 22 45 47 8 Possible ...
result:
ok 2000/2000 are 'Possible' (2000 test cases)
Test #24:
score: 0
Accepted
time: 14ms
memory: 3560kb
input:
1000 100 22 42 35 33 69 89 18 99 74 26 10 32 2 29 4 21 71 1 48 15 75 3 8 88 95 36 6 87 57 5 63 25 14 41 98 44 47 39 92 40 31 27 28 96 83 81 68 100 53 13 56 72 65 70 52 49 11 50 97 77 76 93 54 43 46 12 62 78 17 34 45 84 91 51 73 30 64 58 85 86 20 19 7 66 55 61 16 60 37 24 59 9 38 80 23 94 67 82 79 90...
output:
Possible 15 10 19 12 27 24 80 20 89 8 54 63 47 30 17 84 66 4 79 78 13 2 92 87 29 7 39 40 11 73 38 9 1 67 5 23 86 90 35 37 31 3 61 33 68 62 34 16 53 55 71 56 46 60 82 48 26 75 88 85 83 64 28 74 50 81 94 44 6 51 14 49 72 18 22 58 57 65 95 91 43 96 42 69 76 77 25 21 32 97 70 36 59 93 41 45 98 52 100 99...
result:
ok 1000/1000 are 'Possible' (1000 test cases)
Test #25:
score: 0
Accepted
time: 10ms
memory: 3500kb
input:
200 500 77 436 150 381 283 26 376 479 28 247 432 220 18 468 31 161 278 49 344 121 396 405 360 193 101 211 367 242 397 419 190 326 312 126 288 164 276 97 98 341 133 488 137 16 358 261 93 287 484 196 209 96 212 103 207 450 223 200 117 129 316 85 239 427 213 51 89 62 299 83 27 8 357 218 307 342 36 370 ...
output:
Possible 199 231 385 494 90 419 207 69 255 115 371 93 94 335 309 41 495 10 155 279 312 227 293 196 336 3 68 6 389 280 12 176 126 458 212 74 97 400 307 353 187 442 225 263 125 156 257 188 15 483 63 338 101 328 238 325 462 496 431 323 152 65 381 222 424 482 416 311 291 316 467 183 103 379 116 104 2 42...
result:
ok 200/200 are 'Possible' (200 test cases)
Test #26:
score: 0
Accepted
time: 14ms
memory: 3460kb
input:
100 999 492 317 271 238 165 666 407 461 861 645 957 35 4 505 40 522 223 816 402 786 766 1 597 978 698 574 246 8 825 159 630 582 904 93 104 837 959 14 393 247 541 961 281 168 826 118 111 67 211 433 284 136 415 31 838 734 520 449 995 203 437 468 976 482 302 578 320 365 877 152 902 47 762 779 32 926 98...
output:
Possible 19 259 617 10 604 410 630 25 803 962 917 750 88 35 613 762 587 891 497 938 500 912 982 494 708 748 322 180 160 593 51 72 288 679 9 964 542 791 294 12 281 265 293 284 106 450 69 903 908 351 631 815 516 386 809 696 203 157 431 479 662 921 177 149 429 547 45 575 767 628 478 829 137 963 453 944...
result:
ok 100/100 are 'Possible' (100 test cases)
Test #27:
score: 0
Accepted
time: 15ms
memory: 3628kb
input:
10 10000 3111 9882 6693 1688 8131 1069 7097 714 8452 9810 3869 1071 729 8854 4427 5384 85 6139 4846 6702 9502 7068 4059 2105 9491 1770 5224 6581 4166 3999 2335 3218 2668 5457 4910 3214 5844 7261 6649 6271 3041 8709 7866 6145 3463 3566 2989 462 7977 9614 981 8807 7698 4206 7411 4177 4847 9099 6432 92...
output:
Possible 7641 2573 3169 7613 9444 979 3928 3897 3382 2205 7678 5105 1172 4527 2296 1632 1234 6522 5320 8494 4069 6551 7393 4191 3716 3993 319 2219 9034 8479 1261 6643 4099 6740 8698 7671 6603 752 2662 7519 4095 1023 2858 1432 215 5907 7190 2414 9501 6915 3000 8807 9629 8723 8390 9282 5793 3307 3059 ...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #28:
score: 0
Accepted
time: 10ms
memory: 3648kb
input:
4 25000 6613 4159 5077 6416 10853 11758 19627 3323 13008 9184 24741 15029 23038 5888 13877 5159 19819 548 11043 7270 23193 10331 4614 20092 14776 4140 1242 12624 5245 9350 18136 16339 10085 144 10843 22439 1999 17054 8601 5862 4359 23951 17309 19743 17748 11856 16787 12426 15536 15452 8084 3441 1124...
output:
Possible 18566 14008 15927 361 19181 13645 17134 24225 7546 10892 15625 10950 12379 2168 1146 2490 20254 4216 11424 7825 7152 15530 15337 5151 15111 19084 15827 24144 396 20276 18583 24399 22477 19373 19032 14227 1448 21489 8306 18589 15766 22180 13992 18013 11778 22895 24595 15446 11390 24705 18048...
result:
ok 4/4 are 'Possible' (4 test cases)
Test #29:
score: 0
Accepted
time: 12ms
memory: 3848kb
input:
2 50000 5329 24260 36130 8263 35267 32974 10730 5906 40902 11705 34044 1969 19662 22885 12991 17360 37276 2776 42315 20422 42407 15540 15343 37918 33817 17008 3819 43482 47574 2295 38031 48887 34560 4433 63 40770 38505 38533 20662 4570 48598 40935 17641 38040 21430 44656 20895 12229 37373 16553 1899...
output:
Possible 28070 44358 31063 45055 14839 30223 45488 31464 11750 46134 3866 20597 9681 22930 7977 32075 13758 46583 36537 14107 11658 8263 3074 10899 3581 49611 31117 41334 2772 15453 25920 30342 37369 12427 48109 41389 49916 23901 45078 46621 8232 48867 2573 6095 44900 26371 2917 7445 1618 1589 11563...
result:
ok 2/2 are 'Possible' (2 test cases)
Test #30:
score: 0
Accepted
time: 16ms
memory: 4668kb
input:
1 100000 1456 10467 94596 93046 95142 5409 19197 52637 61524 20378 74780 30541 95011 8643 1935 79348 81628 5730 51030 2312 97930 12785 95868 27975 73166 19014 87353 19042 92944 15402 71296 8034 87026 16769 84343 52312 83816 56882 26772 1677 96185 84098 77869 84708 44840 97529 63101 33635 32991 72941...
output:
Possible 92591 11792 87052 8658 39977 39028 97788 23757 99514 48479 6968 3638 88176 62101 73724 29976 18002 4305 37210 27646 26972 78892 62386 75826 12109 38805 51175 38559 32412 57946 77875 61607 76467 48229 37247 31207 60902 5863 45350 94035 59568 72495 57026 21048 57646 92622 25894 26944 64340 49...
result:
ok 1/1 are 'Possible' (1 test case)
Test #31:
score: 0
Accepted
time: 15ms
memory: 3572kb
input:
10 10000 9496 8510 5460 3882 9615 1884 9371 1347 2879 2204 1543 900 5335 7779 7158 9126 3389 2229 5657 9220 8544 292 7228 7694 6697 8481 4895 5629 2223 1042 747 4220 2587 2589 1797 4720 5129 8687 9083 2076 645 261 6409 4763 3550 8977 9687 6622 1772 6109 8593 9900 1160 5451 580 9252 4132 8214 8831 26...
output:
Possible 2825 7793 9523 266 869 2945 271 6582 6920 7648 104 4916 1847 6041 6528 6435 4105 6517 9896 5137 6478 3032 591 4957 983 9490 4530 4517 719 2089 8161 309 5267 4264 3376 3602 1183 7690 3452 9850 6739 1613 2813 5813 5034 9738 5220 1641 7895 8324 1235 6362 9889 5092 9249 2535 3528 7732 4548 6283...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #32:
score: 0
Accepted
time: 15ms
memory: 3572kb
input:
10 10000 2178 9218 7790 6366 8922 8404 4623 6637 3277 1874 915 9957 4033 7453 1816 5053 9847 5965 5715 4415 2216 9210 1761 8601 2444 3984 3709 853 2766 7651 7721 3449 3630 1316 8822 3779 7268 1794 2824 5596 1612 8132 2267 4317 5800 1975 1555 7042 3374 2174 2792 4275 1465 1152 1664 1299 8439 4566 393...
output:
Possible 7206 1714 1797 5760 6955 7514 2489 5089 2035 4025 3564 6240 5485 6137 8837 1983 6611 8731 3573 5380 8703 320 9097 165 2916 2660 7358 4713 635 8580 6595 9577 8638 4472 8178 218 5116 9990 5373 8026 3801 8143 186 8925 9426 1755 7961 893 3884 3321 3536 3357 7972 1867 102 5204 9387 1937 764 8276...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #33:
score: 0
Accepted
time: 11ms
memory: 3628kb
input:
10 10000 1567 6252 6443 7699 5492 1842 5405 7366 5587 3056 823 2622 1657 8753 3495 8410 3647 4249 4082 3119 707 3854 7694 784 7418 4856 839 7692 396 1383 1981 5426 8682 2034 206 7122 1159 6858 7121 9028 2891 685 8678 9171 2704 6389 1691 9932 1059 3896 5603 6714 6524 368 7905 78 1591 8160 9729 754 74...
output:
Possible 1259 1305 2279 1410 8448 3200 2310 8186 1447 5626 2808 2738 8519 7888 9748 9824 6287 9030 8531 8053 454 2642 807 5099 8929 5140 1686 7412 491 3584 7571 9013 2316 9562 8532 9310 7134 9423 8790 1348 930 8341 2695 582 2698 8461 3735 3174 5198 7521 5020 106 258 8630 5134 1308 5403 7698 2852 660...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #34:
score: 0
Accepted
time: 11ms
memory: 3624kb
input:
10 10000 4162 9101 9530 2624 3295 4976 2222 5812 6275 4390 1091 9646 7781 9877 9289 9643 1501 1663 4556 1782 7746 8721 993 9177 3081 3633 7243 8477 9458 2546 996 5746 558 7802 8078 2409 6141 2706 1948 2944 6185 3436 5910 4260 185 5584 6409 8392 5007 3815 1452 7181 8849 7937 9709 4059 9237 6013 5154 ...
output:
Possible 1717 4422 9751 7992 8210 9304 3995 3576 8109 6636 364 6113 3883 3974 5449 6345 8472 4864 2211 8582 977 8565 3707 4465 7867 602 3770 2460 4894 5782 9627 5959 5254 3256 3134 6184 8237 7313 5209 9179 1839 7815 3833 8521 1224 1862 7426 2704 6864 9609 778 2653 8533 5346 7930 1244 6327 3711 6696 ...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #35:
score: 0
Accepted
time: 11ms
memory: 3624kb
input:
10 10000 7169 9888 3050 8344 6010 7824 9030 8457 8512 9823 9850 5216 6614 6527 1137 7044 2122 5052 5373 2616 8293 307 3075 7926 774 2501 9717 3719 69 8190 2413 97 5898 7720 1699 9045 1080 6644 5138 752 3353 9457 4587 2101 5997 970 3009 365 6674 8299 1291 241 6725 7421 235 2938 207 6417 8647 4982 515...
output:
Possible 1839 7451 4878 527 9425 483 2504 5675 3231 3988 5067 2050 2684 5622 1846 6545 3408 5195 2798 3291 829 1919 2507 998 6181 3252 5416 9508 6245 9891 1440 8920 7617 6606 2413 2530 1277 8076 8482 7422 1449 9393 8442 4754 2683 2354 2592 4334 3851 7842 6855 2501 8085 124 5614 5413 7216 1903 7056 5...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #36:
score: 0
Accepted
time: 14ms
memory: 3680kb
input:
10 10000 4218 344 9453 2250 6540 174 5484 7282 5757 10000 7819 6405 1570 6813 5519 6500 2164 9737 7708 9517 6059 5969 3481 1963 8644 2957 717 5872 1966 3391 8293 3199 7147 6667 6146 5545 7635 6348 818 4785 6291 3478 2677 431 3934 1878 7228 2711 6850 9995 5922 3144 7235 8773 4271 2232 5820 2375 725 7...
output:
Possible 8404 5364 4987 4817 4974 9923 7205 3354 7882 4350 4512 6233 5225 6917 4090 1494 9714 3407 569 9080 6309 6086 840 6158 3909 1996 3984 3675 7514 8464 3607 652 7368 1758 3210 5236 1504 6882 7694 7164 6119 2380 6474 9378 1275 5542 6861 4907 651 1266 9707 6713 1346 5850 8669 6684 1566 6807 5900 ...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #37:
score: 0
Accepted
time: 14ms
memory: 3684kb
input:
10 10000 4510 8103 8711 5998 7077 4929 4717 8436 4500 2241 6776 4322 528 7714 7357 1411 8862 3226 7694 9239 4118 9336 5424 3055 4796 1260 2569 4967 6361 6452 7687 8565 3083 6256 9369 963 5140 344 8358 6603 8293 1222 2486 5667 8568 3027 7683 7855 6489 2424 3312 5086 9224 3769 3952 5566 9849 2778 1088...
output:
Possible 9136 4231 2705 4498 5709 4576 6366 9045 992 1796 9617 7643 8086 2822 6824 8050 6808 2668 6362 2715 6280 2473 7086 5968 1466 6129 9678 2395 2913 8995 7145 6466 2423 7723 4341 5068 3617 5846 9739 4337 5433 8571 8944 7465 5677 9896 2461 8210 6900 8811 4406 7274 9540 5979 1001 6651 5370 3430 63...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #38:
score: 0
Accepted
time: 14ms
memory: 3568kb
input:
10 10000 7627 4696 3738 4879 7371 1232 6843 5355 8688 5927 8229 1973 509 5349 4523 1269 9603 1902 8294 9679 3066 5702 6749 168 855 9149 2615 5826 5373 585 4768 8194 5977 4418 6556 2850 9475 5651 5756 293 1993 8637 367 6975 3377 889 4867 3130 8847 2668 2854 5466 9765 1895 230 439 4416 7213 4888 8060 ...
output:
Possible 7622 6789 2690 7340 3250 1453 8537 2709 4957 4419 2568 9396 207 3061 6578 6891 7588 7058 5307 7836 4082 8371 4859 9398 7695 8095 6032 9120 4598 6200 817 5822 5220 7634 3573 2147 7332 5375 8398 3447 2631 6605 3315 4399 2870 5393 9930 3637 6335 8806 8123 7561 4580 6681 198 9002 4496 1450 9618...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #39:
score: 0
Accepted
time: 14ms
memory: 3572kb
input:
10 10000 3717 2786 9484 9828 3759 346 5412 5491 2997 6494 7048 7489 6711 278 9539 619 3780 1167 2457 9173 180 6257 3085 9695 7034 8748 4260 9925 2654 6969 2663 2176 1114 9476 1405 306 6548 9601 4534 5879 7800 4523 3132 8461 796 6364 9689 2345 2496 5862 9478 6605 6306 1964 1846 6623 2502 742 5326 417...
output:
Possible 3245 7941 3078 5424 3177 2863 6901 8422 2227 6722 4372 7176 1019 8262 3285 7936 8171 583 9305 3505 2026 264 5422 4107 8126 6477 6563 3562 9179 9875 1539 1974 4428 9648 4022 5011 6967 5565 3434 9567 5236 2940 6578 99 1879 2231 8130 7325 1374 786 6657 1916 3630 6724 4721 1441 8906 4934 1009 4...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #40:
score: 0
Accepted
time: 16ms
memory: 4652kb
input:
1 100000 7210 30744 81874 6285 69296 6115 79138 52424 44282 14840 1587 38580 10637 93401 83715 42733 75136 14685 64770 3552 44547 86767 94004 99217 2250 68390 11413 7847 90110 73187 70660 79544 7994 78601 79203 34166 47060 92554 22975 17834 25249 63503 18594 15442 31402 21637 9208 82986 75248 10369 ...
output:
Possible 26557 31666 11380 62414 79294 75285 36176 32575 29686 72452 59855 4392 42548 35307 30599 22068 48480 19622 53876 40937 85535 92957 10240 46794 95365 46747 23611 5700 17719 47189 47745 71206 61075 36698 14287 84634 9402 4118 33700 49373 66339 85258 5347 88556 26405 75836 64213 30078 21674 24...
result:
ok 1/1 are 'Possible' (1 test case)
Test #41:
score: 0
Accepted
time: 8ms
memory: 4740kb
input:
1 100000 70563 7751 11771 31815 69604 71562 95485 40936 31055 25792 34133 2630 27332 48674 7074 88282 46065 36326 48345 45816 81539 98511 5048 72788 49835 88788 59711 45304 22969 61410 68373 78297 93370 19304 22236 23681 48019 17714 30702 18951 22114 57144 73821 92614 16405 23902 53004 36729 29213 9...
output:
Possible 97790 2709 5501 79292 10227 97916 96173 42885 25786 5134 39818 10840 92516 18466 1474 66594 91820 38393 9961 99606 31938 80611 75484 99918 18649 56977 76881 18886 4185 23629 33774 27666 25721 32271 50199 502 85123 18621 11820 68777 88782 69608 55379 55955 96635 37289 22660 34749 5746 72614 ...
result:
ok 1/1 are 'Possible' (1 test case)
Test #42:
score: 0
Accepted
time: 15ms
memory: 4656kb
input:
1 100000 33413 95902 66707 37171 63717 97678 10879 3614 34432 20249 89228 27610 94980 80741 33412 55214 41220 52034 92244 16703 23322 64378 89911 94268 48792 70327 31398 74518 38251 72313 17385 90894 32244 4118 33031 22074 73597 51522 18274 49387 15317 43002 18849 63998 36602 55730 85751 93866 86271...
output:
Possible 22059 5642 58122 83899 20803 1384 87882 60178 68472 61531 61031 26704 33619 95729 68783 39169 90404 49153 39850 48954 35211 20069 2830 13906 7790 26277 59319 17026 62927 43078 43383 9526 88736 37869 21346 97378 73010 86402 33020 93075 57514 35710 43075 62821 44869 12436 54185 48104 45714 16...
result:
ok 1/1 are 'Possible' (1 test case)
Test #43:
score: 0
Accepted
time: 16ms
memory: 4648kb
input:
1 100000 38939 36462 49236 11864 41866 9135 83157 68975 57929 22445 15930 71622 6685 74844 63484 21437 36291 19858 96434 77081 5526 27871 28539 29249 81884 33811 86021 19329 4667 40618 83290 68312 3253 19686 13848 64686 67676 20614 87922 14493 2686 23288 80722 55653 55053 42533 20505 82814 3906 7159...
output:
Possible 70301 41591 22443 11131 59945 53956 80615 61588 82813 11674 98167 38968 78811 77824 90240 44203 66541 19592 64789 72117 80214 62564 58201 68740 9101 12683 94863 19465 36274 25777 34178 68711 69729 41756 32104 1934 78840 17178 5820 21592 25894 74031 52088 73264 41915 51756 7004 7781 64560 48...
result:
ok 1/1 are 'Possible' (1 test case)
Test #44:
score: 0
Accepted
time: 15ms
memory: 4732kb
input:
1 100000 56410 55223 89128 10706 65945 98487 8157 37051 23481 13806 5708 53223 41255 72197 4250 33306 82551 92413 78735 24394 33722 62458 49977 19569 15457 97352 68219 60151 33432 36755 29808 18535 91202 559 26286 32530 45839 58284 3132 92142 31443 64432 45232 60417 75658 93565 66480 95677 93242 353...
output:
Possible 88329 86522 75136 60812 11659 22846 97261 61204 28192 58334 51138 96070 15420 76165 54401 97958 91129 6892 62702 14339 39527 84822 91553 74587 41707 91198 21258 80765 44486 25810 24993 66214 96525 42348 30852 11007 44652 50279 64817 49923 60596 39975 22162 74146 16299 68775 52730 10183 6629...
result:
ok 1/1 are 'Possible' (1 test case)
Test #45:
score: 0
Accepted
time: 10ms
memory: 4700kb
input:
1 100000 92846 36298 94102 74728 62298 17712 70468 29085 26866 74943 50194 68114 23001 42022 1534 67883 22067 31802 76367 40 10506 5204 6633 47834 14730 42455 57533 57800 69803 85998 87243 39377 14734 4609 14172 68549 15757 44430 47282 66093 37600 6662 80279 54115 61844 39518 2508 88635 30432 16795 ...
output:
Possible 63590 56277 24417 19919 59279 32929 7270 59801 58557 56632 93918 3821 95352 89465 48114 5557 24430 95649 89138 81270 59055 51155 25374 71542 47354 28585 62519 31965 91910 74095 89589 44730 5893 19017 97572 21848 87616 12577 63459 17 78236 74423 55978 98537 36237 23568 28487 41184 33381 9220...
result:
ok 1/1 are 'Possible' (1 test case)
Test #46:
score: 0
Accepted
time: 15ms
memory: 4672kb
input:
1 100000 80249 61559 4136 5015 44391 76486 13189 7497 82608 50643 67643 98730 1372 52259 53113 69217 81937 63901 49868 23522 20692 79953 83998 38103 11847 94930 84641 55771 27259 62537 48000 86586 60900 86524 54701 15031 89203 24691 97682 73417 59806 35351 26783 95563 34915 61247 88409 42983 21153 8...
output:
Possible 84061 68373 94625 45841 49591 48367 19791 88119 19225 97141 90165 32717 16028 68857 91943 94365 621 32610 5167 85451 51294 68879 99299 94494 5226 97242 29147 94203 31300 43661 88158 79992 47581 97460 71822 71869 43403 20343 62750 67229 45857 69163 28338 91204 20318 79708 42967 60713 18695 9...
result:
ok 1/1 are 'Possible' (1 test case)
Test #47:
score: 0
Accepted
time: 12ms
memory: 4732kb
input:
1 100000 47933 91823 8680 38452 98002 50208 28599 87139 73543 26971 73442 64562 24616 52949 43109 48263 71188 90073 98556 71141 35002 1318 47482 55519 52705 70983 13651 91244 53258 35004 5173 13432 8649 2930 60237 98310 56868 28611 2019 3477 57819 51659 892 49301 47016 7551 23697 89821 47998 32736 2...
output:
Possible 34684 83139 83211 9564 98843 80885 19437 85055 16682 27947 45148 7685 75017 91028 19564 84083 33907 14432 28117 38795 8183 17439 90656 89632 86681 46883 42568 23002 44896 69053 32798 67043 12471 96749 14397 79099 35373 64565 27662 35991 11366 41789 20887 60396 25132 87631 81793 23450 48762 ...
result:
ok 1/1 are 'Possible' (1 test case)
Test #48:
score: 0
Accepted
time: 16ms
memory: 4676kb
input:
1 100000 32591 31819 18269 4992 95481 15309 82223 37862 64829 8548 75956 40622 68213 26870 47574 85646 30288 67079 66288 87221 77650 65875 41974 90346 11987 3782 5691 18237 99521 48974 70063 21886 33587 72262 97090 66592 82785 88943 8082 47016 25506 64005 84545 32684 32875 5661 93415 12006 81882 453...
output:
Possible 48819 72391 34736 85194 38244 83360 76417 7005 51950 8251 25698 82355 40567 29041 32691 38588 70885 96213 23090 7545 11626 94114 52982 56643 31995 96151 18974 16718 10932 88830 85574 4776 44433 7327 47005 50815 93263 88683 89256 17861 54830 78065 697 84033 20107 71862 17491 40365 94442 3272...
result:
ok 1/1 are 'Possible' (1 test case)