QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#132648 | #5199. Amazing Trick | Swarthmore# | AC ✓ | 22ms | 6124kb | C++17 | 4.1kb | 2023-07-30 22:59:58 | 2023-07-30 23:00:00 |
Judging History
answer
#include "bits/stdc++.h"
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
using namespace std;
typedef long long ll;
typedef long double ld;
typedef complex<ld> cd;
typedef pair<int, int> pi;
typedef pair<ll,ll> pl;
typedef pair<ld,ld> pd;
typedef vector<int> vi;
typedef vector<ld> vd;
typedef vector<ll> vl;
typedef vector<pi> vpi;
typedef vector<pl> vpl;
typedef vector<cd> vcd;
template<class T> using pq = priority_queue<T>;
template<class T> using pqg = priority_queue<T, vector<T>, greater<T>>;
#define FOR(i, a, b) for (int i=a; i<(b); i++)
#define F0R(i, a) for (int i=0; i<(a); i++)
#define FORd(i,a,b) for (int i = (b)-1; i >= a; i--)
#define F0Rd(i,a) for (int i = (a)-1; i >= 0; i--)
#define trav(a,x) for (auto& a : x)
#define uid(a, b) uniform_int_distribution<int>(a, b)(rng)
#define sz(x) (int)(x).size()
#define mp make_pair
#define pb push_back
#define f first
#define s second
#define lb lower_bound
#define ub upper_bound
#define all(x) x.begin(), x.end()
#define ins insert
template<class T> bool ckmin(T& a, const T& b) { return b < a ? a = b, 1 : 0; }
template<class T> bool ckmax(T& a, const T& b) { return a < b ? a = b, 1 : 0; }
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
void __print(int x) {cerr << x;}
void __print(long x) {cerr << x;}
void __print(long long x) {cerr << x;}
void __print(unsigned x) {cerr << x;}
void __print(unsigned long x) {cerr << x;}
void __print(unsigned long long x) {cerr << x;}
void __print(float x) {cerr << x;}
void __print(double x) {cerr << x;}
void __print(long double x) {cerr << x;}
void __print(char x) {cerr << '\'' << x << '\'';}
void __print(const char *x) {cerr << '\"' << x << '\"';}
void __print(const string &x) {cerr << '\"' << x << '\"';}
void __print(bool x) {cerr << (x ? "true" : "false");}
template<typename T, typename V>
void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ", "; __print(x.second); cerr << '}';}
template<typename T>
void __print(const T &x) {int f = 0; cerr << '{'; for (auto &i: x) cerr << (f++ ? ", " : ""), __print(i); cerr << "}";}
void _print() {cerr << "]\n";}
template <typename T, typename... V>
void _print(T t, V... v) {__print(t); if (sizeof...(v)) cerr << ", "; _print(v...);}
#ifdef DEBUG
#define dbg(x...) cerr << "\e[91m"<<__func__<<":"<<__LINE__<<" [" << #x << "] = ["; _print(x); cerr << "\e[39m" << endl;
#else
#define dbg(x...)
#endif
const int MOD = 1000000007;
const char nl = '\n';
const int MX = 100001;
void solve() {
int N; cin >> N;
int A[N];
F0R(i, N) {
int X; cin >> X; X--;
A[X] = i;
}
vector<vi> cycs;
bool used[N]; F0R(i, N) used[i] = false;
F0R(i, N) {
if (used[i]) continue;
int v = i;
vi cur;
while (!used[v]) {
used[v] = true;
cur.pb(v);
v = A[v];
}
cycs.pb(cur);
}
vi ord;
if (sz(cycs) != N-1) {
trav(a, cycs) {
F0Rd(i, sz(a) - 1) {
ord.pb(a[i]);
}
}
trav(a, cycs) {
ord.pb(a.back());
}
} else {
vi two; trav(a, cycs) if (sz(a) == 2) two = a;
vi ones; trav(a, cycs) if (sz(a) == 1) ones.pb(a[0]);
ord.pb(two[0]);
if (sz(ones)) ord.pb(ones[0]);
ord.pb(two[1]);
FOR(i, 1, sz(ones)) ord.pb(ones[i]);
}
int Q[N];
F0R(i, N) {
Q[ord[i]] = ord[(i+1)%N];
}
F0R(i, N) {
if (Q[i] == A[i] || Q[i] == i) {
cout << "Impossible" << nl; return;
}
}
int Qi[N]; F0R(i, N) Qi[Q[i]] = i;
int P[N];
F0R(i, N) {
P[i] = A[Qi[i]];
}
cout << "Possible" << nl;
F0R(i, N) {
cout << P[i] + 1 << " ";
}
cout << nl;
F0R(i, N) {
cout << Q[i] + 1 << " ";
}
cout << nl;
}
int main() {
ios_base::sync_with_stdio(0); cin.tie(0);
int T = 1;
cin >> T;
while(T--) {
solve();
}
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3576kb
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 2 1 3 4 2 1 Possible 4 3 1 5 2 5 1 4 2 3
result:
ok 3/4 are 'Possible' (4 test cases)
Test #2:
score: 0
Accepted
time: 1ms
memory: 3540kb
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: 1ms
memory: 3492kb
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 ...
result:
ok 11/25 are 'Possible' (25 test cases)
Test #4:
score: 0
Accepted
time: 1ms
memory: 3492kb
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: 3488kb
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 4 3 2 1 2 4 1 3 Possible 4 3 2 1 2 4 1 3 Possible 3 4 1 2 3 1 4 2 Possible 4 3 2 1 2 4 1 3 Possible 3 4 1 2 4 1 2 3 Possible 2 4 1 3 2 3 4 1 Possible 4 3 1 2 3 1 4 2 Possible 2 1 4 3 3 4 2 1 Possible 2 4 1 3 2 3 4 1 Possible 3 4 1 2 3 1 4 2 Possible 2 3 4 1 2 3 4 1 Pos...
result:
ok 12/12 are 'Possible' (12 test cases)
Test #6:
score: 0
Accepted
time: 0ms
memory: 3536kb
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 3 5 2 1 4 2 5 1 3 4 Possible 4 5 2 3 1 5 1 4 2 3 Possible 4 5 2 3 1 3 1 5 2 4 Possible 4 3 5 2 1 5 3 1 2 4 Possible 5 4 1 3 2 3 4 5 1 2 Possible 5 4 2 3 1 5 3 4 1 2 Possible 4 3 2 5 1 3 1 5 2 4 Possible 5 3 4 1 2 2 3 4 5 1 Possible 5 4 1 3 2 5 1 4 2 3 Possible 5 4 1 2 3 2...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #7:
score: 0
Accepted
time: 0ms
memory: 3592kb
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 4 3 1 5 6 2 5 4 2 6 3 1 Possible 6 3 2 1 4 5 3 4 2 5 6 1 Possible 5 4 2 6 3 1 6 1 4 5 2 3 Possible 6 1 2 3 4 5 2 3 4 5 6 1 Possible 5 6 4 3 2 1 4 3 6 2 1 5 Possible 2 5 1 6 3 4 4 3 5 2 6 1 Possible 5 1 4 2 6 3 2 4 1 6 3 5 Possible 5 3 1 6 4 2 4 5 6 2 3 1
result:
ok 8/8 are 'Possible' (8 test cases)
Test #8:
score: 0
Accepted
time: 0ms
memory: 3608kb
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 3 4 5 6 7 2 1 4 3 7 5 2 1 6 Possible 4 6 1 5 2 7 3 5 1 7 2 6 3 4 Possible 7 3 5 1 4 2 6 2 4 1 6 7 5 3 Possible 7 3 1 5 4 2 6 5 4 6 3 2 7 1 Possible 5 3 6 7 4 2 1 6 1 7 3 2 4 5 Possible 5 7 1 2 4 3 6 2 3 4 6 7 5 1 Possible 4 5 7 3 1 2 6 7 4 2 6 3 1 5
result:
ok 7/7 are 'Possible' (7 test cases)
Test #9:
score: 0
Accepted
time: 1ms
memory: 3540kb
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 8 6 7 5 1 4 2 3 7 1 6 3 8 5 4 2 Possible 6 8 4 7 1 2 3 5 3 4 8 5 6 1 2 7 Possible 3 5 8 6 1 7 4 2 4 7 6 2 8 5 3 1 Possible 8 1 2 6 4 7 3 5 4 3 5 2 7 1 8 6 Possible 6 5 1 2 8 7 3 4 5 7 2 6 3 8 4 1 Possible 6 8 1 2 4 7 3 5 4 1 5 3 7 2 8 6
result:
ok 6/6 are 'Possible' (6 test cases)
Test #10:
score: 0
Accepted
time: 0ms
memory: 3536kb
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 7 4 5 9 1 3 2 6 8 4 5 2 3 6 8 9 7 1 Possible 6 9 8 2 3 5 4 1 7 9 5 2 6 8 7 1 4 3 Possible 8 5 6 9 1 7 2 4 3 9 4 1 5 7 8 6 3 2 Possible 3 4 7 9 1 5 2 6 8 4 8 9 6 7 2 1 3 5 Possible 6 9 1 5 2 4 8 3 7 2 8 5 7 6 9 3 4 1
result:
ok 5/5 are 'Possible' (5 test cases)
Test #11:
score: 0
Accepted
time: 1ms
memory: 3540kb
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 8 6 1 5 10 3 4 9 2 7 10 5 6 8 9 2 1 7 4 3 Possible 5 7 4 1 2 9 3 6 10 8 8 9 10 7 6 1 2 3 5 4 Possible 9 8 2 10 3 7 4 6 5 1 2 4 7 10 6 9 5 1 8 3 Possible 9 10 5 3 1 2 6 7 4 8 6 1 8 10 7 5 3 4 2 9 Possible 6 10 5 8 4 7 3 9 2 1 5 3 8 1 2 4 6 10 7 9
result:
ok 5/5 are 'Possible' (5 test cases)
Test #12:
score: 0
Accepted
time: 13ms
memory: 3492kb
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: 22ms
memory: 3584kb
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 ...
result:
ok 25064/50000 are 'Possible' (50000 test cases)
Test #14:
score: 0
Accepted
time: 20ms
memory: 3584kb
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 Impo...
result:
ok 16621/33333 are 'Possible' (33333 test cases)
Test #15:
score: 0
Accepted
time: 18ms
memory: 3588kb
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 3 4 2 1 4 1 2 3 Possible 4 3 2 1 4 3 1 2 Possible 2 1 4 3 4 3 1 2 Possible 3 4 1 2 2 3 4 1 Possible 2 3 4 1 2 4 1 3 Possible 3 4 1 2 4 1 2 3 Possible 2 4 1 3 2 4 1 3 Possible 3 4 1 2 4 1 2 3 Possible 3 4 1 2 2 4 1 3 Possible 2 3 4 1 2 3 4 1 Possible 4 3 2 1 2 3 4 1 Pos...
result:
ok 25000/25000 are 'Possible' (25000 test cases)
Test #16:
score: 0
Accepted
time: 19ms
memory: 3568kb
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 3 5 4 1 2 2 4 5 3 1 Possible 5 4 1 3 2 2 3 5 1 4 Possible 4 3 2 5 1 2 4 1 5 3 Possible 5 4 1 2 3 2 5 4 1 3 Possible 2 3 1 5 4 5 4 2 1 3 Possible 2 4 5 1 3 3 4 2 5 1 Possible 5 4 1 2 3 2 3 5 1 4 Possible 5 3 1 2 4 3 1 4 5 2 Possible 4 3 5 2 1 5 3 1 2 4 Possible 5 4 1 2 3 4...
result:
ok 20000/20000 are 'Possible' (20000 test cases)
Test #17:
score: 0
Accepted
time: 21ms
memory: 3560kb
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 3 4 5 6 1 3 4 5 1 6 2 Possible 5 4 1 6 3 2 2 5 6 1 3 4 Possible 5 6 2 3 1 4 5 1 4 6 3 2 Possible 5 6 2 3 4 1 4 5 1 6 3 2 Possible 5 3 6 1 2 4 2 4 1 6 3 5 Possible 4 6 1 2 3 5 4 1 5 3 6 2 Possible 4 6 2 3 1 5 3 1 5 2 6 4 Possible 2 3 5 6 4 1 3 5 6 2 1 4 Possible 2 4 6 3 1 5...
result:
ok 16666/16666 are 'Possible' (16666 test cases)
Test #18:
score: 0
Accepted
time: 20ms
memory: 3544kb
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 5 6 1 7 2 4 6 1 4 7 3 5 2 Possible 4 1 5 6 7 3 2 6 7 1 3 2 5 4 Possible 5 7 2 3 6 1 4 3 6 5 7 2 4 1 Possible 7 5 4 1 6 3 2 5 3 7 2 4 1 6 Possible 7 6 1 3 2 5 4 2 3 4 5 7 1 6 Possible 5 6 2 1 3 7 4 2 4 7 3 6 1 5 Possible 5 4 7 3 2 1 6 2 6 5 1 4 7 3 Possible 4 1 5 3 7 2 6 3 6...
result:
ok 14285/14285 are 'Possible' (14285 test cases)
Test #19:
score: 0
Accepted
time: 15ms
memory: 3544kb
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 6 8 2 7 3 4 5 1 7 4 6 3 1 5 8 2 Possible 5 6 4 2 3 8 1 7 4 1 6 8 2 5 3 7 Possible 6 8 4 1 3 2 5 7 8 5 2 3 6 7 1 4 Possible 7 1 5 8 3 4 6 2 5 8 2 3 4 7 1 6 Possible 8 1 4 2 7 3 5 6 5 4 7 6 3 8 2 1 Possible 3 7 6 8 1 5 4 2 2 6 5 3 8 4 1 7 Possible 7 5 6 1 3 2 8 4 2 4 7 6 1 8 5 3 ...
result:
ok 12500/12500 are 'Possible' (12500 test cases)
Test #20:
score: 0
Accepted
time: 19ms
memory: 3548kb
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 5 4 2 6 9 3 1 7 8 4 9 5 8 6 1 2 7 3 Possible 6 5 9 2 8 3 1 7 4 4 7 2 8 3 1 6 9 5 Possible 9 4 2 6 1 3 8 5 7 4 7 9 8 3 1 5 2 6 Possible 9 8 4 5 3 1 6 7 2 4 3 9 6 1 7 8 2 5 Possible 6 9 4 2 3 5 1 7 8 4 1 8 7 9 2 3 5 6 Possible 7 8 4 6 3 2 5 9 1 9 7 8 1 2 3 4 5 6 Possible 4 7 8 9 6...
result:
ok 11111/11111 are 'Possible' (11111 test cases)
Test #21:
score: 0
Accepted
time: 12ms
memory: 3480kb
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 5 3 9 2 8 7 1 6 10 4 4 1 5 7 2 9 10 3 8 6 Possible 5 3 10 2 4 7 1 9 6 8 10 8 9 5 1 3 4 7 2 6 Possible 8 7 2 1 3 4 5 10 6 9 2 4 10 6 8 9 1 7 3 5 Possible 4 1 9 6 3 10 5 2 8 7 10 8 4 7 1 3 2 5 6 9 Possible 10 4 9 6 8 3 5 2 1 7 9 1 5 10 6 7 4 3 8 2 Possible 6 7 1 10 8 5 3 9 4 2 9 5 ...
result:
ok 10000/10000 are 'Possible' (10000 test cases)
Test #22:
score: 0
Accepted
time: 14ms
memory: 3548kb
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 11 4 10 20 12 8 15 17 2 9 13 1 7 3 18 6 19 14 5 16 2 5 17 12 10 7 20 15 14 19 4 9 1 16 6 13 18 8 3 11 Possible 7 12 17 5 1 16 8 3 10 18 20 15 4 11 19 9 14 2 6 13 19 5 9 15 13 1 6 16 8 3 2 11 14 18 20 7 10 17 4 12 Possible 2 9 20 16 13 12 5 14 4 19 6 10 1 15 7 18 3 8 17 11 6 12 13 19 11...
result:
ok 5000/5000 are 'Possible' (5000 test cases)
Test #23:
score: 0
Accepted
time: 16ms
memory: 3548kb
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 49 41 38 32 33 40 26 9 39 25 24 48 18 47 50 4 35 20 2 7 46 17 44 34 19 11 8 29 45 23 14 1 27 43 37 6 10 31 36 16 15 22 42 3 5 13 28 30 21 12 50 6 18 15 43 25 38 17 35 39 14 1 23 32 16 41 27 44 45 3 48 33 46 47 36 31 22 24 34 21 7 19 42 28 8 10 9 20 37 2 40 5 29 13 26 30 11 49 12 4 Possibl...
result:
ok 2000/2000 are 'Possible' (2000 test cases)
Test #24:
score: 0
Accepted
time: 15ms
memory: 3496kb
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 7 50 40 20 76 42 45 95 39 57 29 84 58 4 81 28 5 83 98 46 87 41 25 100 12 11 18 64 33 61 34 66 15 54 22 10 6 62 93 31 70 1 77 26 17 53 89 82 51 78 9 85 56 23 79 74 14 68 73 24 80 97 8 60 49 72 59 37 30 63 69 55 21 92 16 86 88 47 13 96 65 35 71 52 99 94 43 90 27 48 75 38 67 44 32 36 91 3 2 19...
result:
ok 1000/1000 are 'Possible' (1000 test cases)
Test #25:
score: 0
Accepted
time: 12ms
memory: 3592kb
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 494 248 222 103 47 318 463 186 168 281 404 52 38 429 33 266 244 97 246 360 220 150 458 376 348 422 470 258 83 202 312 140 60 396 397 254 141 323 474 316 31 264 185 131 297 102 335 271 13 358 485 40 415 197 441 482 123 124 351 32 212 314 236 182 64 439 30 295 116 476 436 223 219 80 111 211 3...
result:
ok 200/200 are 'Possible' (200 test cases)
Test #26:
score: 0
Accepted
time: 15ms
memory: 3608kb
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 915 114 110 91 336 992 959 183 697 638 319 443 225 794 955 247 937 293 598 273 792 533 839 932 165 321 466 759 868 613 389 456 570 116 753 744 540 599 577 616 51 719 175 188 382 492 832 281 896 177 816 78 323 952 411 890 726 708 586 64 666 299 96 70 185 547 906 66 161 564 229 93 125 169 429...
result:
ok 100/100 are 'Possible' (100 test cases)
Test #27:
score: 0
Accepted
time: 16ms
memory: 3940kb
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 8610 4111 5675 6044 1727 9138 5964 594 4042 5700 3634 6801 3453 443 4631 730 9451 3545 3068 1730 8206 6974 4675 3515 3140 6652 6123 4323 2354 9814 4840 6589 6911 3507 7595 5406 8932 3854 2857 1678 5938 4294 8375 6846 6175 5770 8057 5149 6537 7843 7420 4610 8954 8208 601 5635 1853 1417 4174 ...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #28:
score: 0
Accepted
time: 15ms
memory: 4124kb
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 5155 15368 16522 7682 17780 24304 23410 11632 7215 13656 24067 10379 4874 22463 10297 2537 23947 2481 24201 24841 22238 21503 13964 409 3924 5751 13100 11967 14418 22504 15235 2841 19124 10337 21910 18187 22802 24853 8343 21000 21384 1721 1184 24737 9065 18117 13397 17460 5126 8821 2641 171...
result:
ok 4/4 are 'Possible' (4 test cases)
Test #29:
score: 0
Accepted
time: 9ms
memory: 4744kb
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 3636 33188 48363 20105 47830 39097 46486 23470 21046 7633 17238 6158 23330 11306 12221 43961 49146 1723 38700 15181 42246 14997 37756 39277 6774 16466 13843 14777 46773 41880 43886 45365 19211 407 13517 38130 48791 48768 13270 31715 47715 17968 16886 2779 46796 48785 17110 12208 1808 20297 ...
result:
ok 2/2 are 'Possible' (2 test cases)
Test #30:
score: 0
Accepted
time: 19ms
memory: 6108kb
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 42759 66218 91309 62041 18290 43643 80742 27144 47043 58845 90272 61346 52659 9170 1927 82093 40674 50200 18231 91464 68079 69609 62985 13514 7538 92103 84001 33002 52625 26755 28862 632 32092 38699 38908 36566 75225 96120 26063 5061 90840 74163 88720 23984 87194 37536 70839 50192 9314 8895...
result:
ok 1/1 are 'Possible' (1 test case)
Test #31:
score: 0
Accepted
time: 15ms
memory: 3816kb
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 6356 7078 1667 9967 4300 900 3239 5710 6333 7475 313 9927 3503 2054 4943 9737 2620 2275 6036 8535 3529 6897 789 4226 9027 621 8860 1737 2118 3475 69 3404 7872 7387 232 994 1733 9943 5858 9062 3833 4688 8862 3049 4035 1974 9308 6846 5120 1692 5445 6108 4662 7716 56 8374 3327 4910 1202 6541 8...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #32:
score: 0
Accepted
time: 6ms
memory: 3812kb
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 1028 5327 8674 1229 6393 5053 4796 1544 4651 8446 3630 8569 7929 9092 8540 1257 7275 7575 582 425 8040 4813 1681 8833 621 7960 8648 9193 141 3322 8298 3925 7020 9899 5269 7423 2981 6874 9188 3448 1277 8818 5137 6730 5217 310 3125 6059 3063 2148 9850 5587 754 4611 7326 3702 307 3229 5805 700...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #33:
score: 0
Accepted
time: 17ms
memory: 3872kb
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 2761 4830 3575 8356 5841 1446 7184 7914 1796 9323 6554 3736 8730 1757 1580 1025 8110 4044 6210 7978 8095 3846 621 806 1303 3444 2848 7008 1162 6285 9448 7519 844 3352 3082 3975 2120 2094 7576 5716 6874 9251 3836 3305 8096 7494 4847 6076 1415 8358 2155 3593 2087 2367 7515 1170 3114 3042 385 ...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #34:
score: 0
Accepted
time: 8ms
memory: 3872kb
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 5206 9921 2978 8070 4117 2533 8026 9823 1580 4865 9468 3381 3467 7379 234 2982 4288 7675 5908 4294 9950 8152 3088 1696 352 5737 3537 850 1446 7613 2860 8306 9276 5360 1043 9883 3593 9655 6278 4023 751 2870 7967 9720 4926 7031 2597 9597 3876 5654 1244 694 6291 4141 6201 5693 4440 4968 8575 2...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #35:
score: 0
Accepted
time: 15ms
memory: 3808kb
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 654 3125 7023 9604 4514 5660 9399 1599 2252 863 2621 6501 7474 2383 3702 2325 9431 740 822 8126 8492 887 2211 3236 5872 5317 8028 6296 2321 1232 3779 5203 185 2351 8829 8205 3040 8682 7742 5993 685 741 8884 1112 6057 458 2469 8488 8850 9084 5229 1339 1725 4796 2326 7180 5910 5849 5940 5614 ...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #36:
score: 0
Accepted
time: 13ms
memory: 3836kb
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 4171 6435 4434 1385 8379 2277 6846 6952 8835 6380 5857 8122 2030 5713 7305 810 4352 5201 5296 9470 9721 167 1066 2337 2526 4144 9281 63 4997 603 3281 5651 9516 8029 2326 6353 4116 7976 4220 8289 7161 9448 6152 9365 1715 36 8258 1866 5912 4169 4898 8589 1161 5403 7245 6576 4138 8998 9640 630...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #37:
score: 0
Accepted
time: 11ms
memory: 3880kb
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 2220 4646 8859 6716 9439 9391 1068 1148 3646 9275 2607 1717 5743 6186 7433 3838 8784 3383 1036 4985 5967 2780 633 3769 9622 2185 2001 7928 6887 8549 1391 1356 7437 5209 8429 1853 3748 2452 5556 7589 4127 597 822 2934 1135 794 5727 8571 2219 4787 7273 1480 7240 7455 363 5593 4396 206 60 2408...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #38:
score: 0
Accepted
time: 13ms
memory: 3924kb
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 549 4957 4368 6193 9365 9167 8813 7225 7990 8501 7544 3182 5188 3647 126 7199 4967 656 2551 1957 92 9347 5146 9238 4816 3949 395 3977 3142 2168 410 7618 3328 1209 85 9252 5019 6688 8861 6187 1609 6314 699 396 7575 4206 6995 7073 596 8981 6179 712 8726 4226 2980 537 8057 6664 6994 211 6687 3...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #39:
score: 0
Accepted
time: 16ms
memory: 3816kb
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 2397 7830 8845 8783 456 1723 6350 2524 6848 491 4013 4162 5842 2437 2229 5472 4305 8629 4311 5624 2246 1134 5226 6666 8985 8243 5626 2762 6867 1322 1303 4241 3357 3182 2698 6339 3090 1547 5731 9687 313 748 6206 843 6177 5276 7966 3812 4147 4814 8661 5719 460 6218 9362 5725 2458 9170 9755 90...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #40:
score: 0
Accepted
time: 14ms
memory: 6124kb
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 81805 39875 88034 53281 66331 114 152 53103 38563 56125 7082 27091 70825 60101 36366 93293 19800 14325 58322 72379 99393 81384 20252 23639 87977 96270 25600 82552 22291 80676 73121 63214 88001 19083 12178 51810 83647 12666 41859 85488 62800 36625 98391 63350 22183 82628 31892 74811 55382 82...
result:
ok 1/1 are 'Possible' (1 test case)
Test #41:
score: 0
Accepted
time: 19ms
memory: 6024kb
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 35500 37916 53448 21076 52781 71913 80160 99853 40923 34049 96000 60774 16147 12748 23028 22765 21500 88768 59632 97914 89102 99631 8362 38536 85547 47294 87772 63093 25594 78233 48750 71599 11706 92971 98898 99838 99700 13324 45355 16455 7100 15727 43320 59205 75003 10771 87518 67840 71550...
result:
ok 1/1 are 'Possible' (1 test case)
Test #42:
score: 0
Accepted
time: 6ms
memory: 5700kb
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 6727 98292 52944 26946 56500 42028 91710 64967 98044 82264 95091 19796 24269 90537 76337 61698 62743 61026 19427 60283 37452 74613 52150 71744 11631 24009 96147 25398 91363 71559 94692 11692 8167 37676 31977 76511 98037 83769 40788 60214 8413 55838 31804 25148 95867 49986 4467 58140 40354 2...
result:
ok 1/1 are 'Possible' (1 test case)
Test #43:
score: 0
Accepted
time: 19ms
memory: 6092kb
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 35078 98474 97504 53516 23857 84759 42185 38968 72352 61872 51256 15485 94374 8816 2846 9151 87963 29483 93209 77702 17195 20553 23233 97931 26974 68701 21774 90319 61845 91096 13797 28311 1982 34559 92893 93864 21989 21415 53907 84622 33320 97468 83693 91970 76860 62298 55313 79069 79139 6...
result:
ok 1/1 are 'Possible' (1 test case)
Test #44:
score: 0
Accepted
time: 10ms
memory: 5736kb
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 71395 37970 66219 19014 46038 49975 85492 23933 10411 75320 14208 38096 2918 44317 27941 63854 4471 1263 72462 10097 77616 6096 1637 75842 80168 2504 13477 18851 25519 46965 97934 82153 80507 66510 86513 54816 95456 25069 55761 71113 52122 68089 23469 1905 92763 77089 13589 23054 80333 3194...
result:
ok 1/1 are 'Possible' (1 test case)
Test #45:
score: 0
Accepted
time: 14ms
memory: 5608kb
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 10702 13220 27011 17722 60933 46834 37030 89682 84399 88842 26674 78804 91975 39465 90391 43022 21209 88509 45063 48375 43166 56694 47820 39652 40610 15810 21801 38679 11790 40053 60552 53815 84949 74002 86538 99951 25459 35912 11157 81273 81350 90926 88015 14880 18208 82606 7070 39574 9708...
result:
ok 1/1 are 'Possible' (1 test case)
Test #46:
score: 0
Accepted
time: 14ms
memory: 5584kb
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 18694 63678 66816 49339 39178 13569 44844 5981 4041 76024 945 96177 34332 83750 63009 51460 17167 58790 21734 17977 68132 11879 93682 86792 41001 23990 15215 37943 39585 82342 87965 36100 65608 52180 56455 55065 71971 49142 92446 97146 18090 82892 18824 75328 28500 18519 30595 68322 81886 7...
result:
ok 1/1 are 'Possible' (1 test case)
Test #47:
score: 0
Accepted
time: 12ms
memory: 5616kb
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 86956 84580 64528 10213 10339 76385 70107 32771 41151 69254 5069 22951 19006 51716 90427 47175 28897 32793 55145 42604 47739 98441 11243 4315 21992 5162 19393 43444 81704 9299 20476 89263 50249 28982 32623 23934 73921 81307 56857 24475 22227 57514 7618 59045 30550 6364 2158 77478 87508 2073...
result:
ok 1/1 are 'Possible' (1 test case)
Test #48:
score: 0
Accepted
time: 10ms
memory: 5704kb
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 7285 44423 21101 71594 69917 47977 27782 57230 36965 47143 60928 80030 58877 92124 61856 90355 11043 42791 27303 92891 43331 50738 67467 51246 45125 33787 24416 36065 61306 97885 13533 90440 74069 58217 88577 57491 36445 28969 99124 52086 5527 75752 56655 4244 18742 92031 73598 49044 471 75...
result:
ok 1/1 are 'Possible' (1 test case)