QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#373511 | #5199. Amazing Trick | InfinityNS# | AC ✓ | 54ms | 4928kb | C++14 | 1.3kb | 2024-04-01 19:33:47 | 2024-04-01 19:33:49 |
Judging History
answer
#include<bits/stdc++.h>
#define f first
#define s second
#define pb push_back
#define sz(x) (int)(x).size()
#define all(x) x.begin(),x.end()
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
void test(){
int n;
scanf("%i",&n);
vector<int> a(n);
vector<int> pos(n);
for(int i=0;i<n;i++){
scanf("%i",&a[i]);
a[i]--;
pos[a[i]]=i;
}
vector<int> perm(n);
iota(all(perm),0);
int bound=0;
if(n<=3)bound=100;
else bound=1e9;
for(int i=0;i<bound;i++){
shuffle(all(perm),rng);
bool ok=1;
for(int i=0;i<n;i++){
if(perm[i]!=a[i]&&perm[i]!=i){
}
else{
ok=0;
break;
}
}
if(!ok)continue;
printf("Possible\n");
vector<int> pos2(n);
for(int i=0;i<n;i++){
pos2[perm[i]]=i;
}
for(int i=0;i<n;i++){
printf("%i ",pos[perm[i]]+1);
}
printf("\n");
for(int i=0;i<n;i++){
printf("%i ",pos2[i]+1);
}
printf("\n");
return;
}
printf("Impossible\n");
}
int main(){
int t;
scanf("%i",&t);
while(t--){
test();
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3800kb
input:
4 2 2 1 3 1 2 3 4 2 1 4 3 5 5 1 4 2 3
output:
Impossible Possible 2 3 1 3 1 2 Possible 3 4 1 2 4 3 2 1 Possible 5 1 4 2 3 4 3 1 5 2
result:
ok 3/4 are 'Possible' (4 test cases)
Test #2:
score: 0
Accepted
time: 0ms
memory: 3728kb
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: 3848kb
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: 0ms
memory: 3768kb
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: 3904kb
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 2 1 4 3 2 4 1 3 Possible 2 4 1 3 4 3 2 1 Possible 3 4 1 2 4 1 2 3 Possible 3 4 2 1 2 4 1 3 Possible 3 1 4 2 2 3 4 1 Possible 2 1 4 3 3 4 2 1 Possible 2 3 4 1 3 4 2 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: 1ms
memory: 3908kb
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 1 4 5 2 4 3 1 5 2 Possible 2 3 5 1 4 4 5 2 3 1 Possible 5 3 4 1 2 5 3 4 1 2 Possible 4 3 2 5 1 5 4 1 2 3 Possible 2 5 4 1 3 4 5 1 2 3 Possible 5 4 1 2 3 3 4 5 1 2 Possible 5 3 2 1 4 3 5 4 2 1 Possible 4 3 5 1 2 2 1 4 5 3 Possible 3 1 5 2 4 4 3 1 5 2 Possible 2 4 5 1 3 2...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #7:
score: 0
Accepted
time: 0ms
memory: 3792kb
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 4 5 3 6 1 5 3 4 1 6 2 Possible 3 6 4 1 2 5 5 4 1 3 6 2 Possible 2 4 1 6 3 5 3 6 4 5 2 1 Possible 6 4 1 5 2 3 3 5 6 2 4 1 Possible 2 5 4 3 6 1 4 3 6 5 2 1 Possible 2 4 5 6 3 1 4 6 5 3 2 1 Possible 4 6 2 5 1 3 5 3 4 6 1 2 Possible 2 5 4 6 3 1 4 3 1 5 6 2
result:
ok 8/8 are 'Possible' (8 test cases)
Test #8:
score: 0
Accepted
time: 1ms
memory: 4072kb
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 4 3 2 5 1 7 6 7 4 5 6 1 2 3 Possible 3 7 2 5 1 4 6 3 6 1 7 2 5 4 Possible 6 5 4 1 7 3 2 6 4 5 7 1 3 2 Possible 3 4 5 2 7 1 6 2 3 4 6 1 7 5 Possible 5 4 6 7 2 3 1 5 1 7 3 6 4 2 Possible 5 6 4 2 7 3 1 5 7 4 6 2 3 1 Possible 4 1 6 7 2 3 5 3 6 7 5 4 1 2
result:
ok 7/7 are 'Possible' (7 test cases)
Test #9:
score: 0
Accepted
time: 0ms
memory: 3792kb
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 5 1 8 6 2 3 4 7 5 3 7 8 6 2 1 4 Possible 7 8 1 5 6 2 3 4 8 1 4 3 6 5 2 7 Possible 2 8 4 3 1 7 6 5 7 3 6 8 1 5 2 4 Possible 2 3 8 5 6 7 4 1 5 1 7 8 2 3 4 6 Possible 7 4 1 2 8 3 6 5 5 6 8 1 3 2 4 7 Possible 7 4 6 5 8 1 3 2 8 3 2 6 7 5 4 1
result:
ok 6/6 are 'Possible' (6 test cases)
Test #10:
score: 0
Accepted
time: 0ms
memory: 3852kb
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 2 5 7 1 8 9 4 3 6 6 4 7 2 8 9 5 1 3 Possible 4 6 2 7 9 8 1 5 3 4 9 5 8 7 1 2 3 6 Possible 6 1 5 9 8 7 4 3 2 8 4 5 2 9 7 6 1 3 Possible 8 4 2 7 6 1 9 3 5 7 5 1 9 3 2 8 4 6 Possible 5 1 9 7 6 3 2 4 8 3 6 7 9 8 4 2 1 5
result:
ok 5/5 are 'Possible' (5 test cases)
Test #11:
score: 0
Accepted
time: 0ms
memory: 4064kb
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 2 4 8 10 3 9 6 7 1 5 8 4 5 6 1 7 3 2 10 9 Possible 9 6 1 8 2 7 4 10 5 3 2 8 4 10 1 9 6 7 5 3 Possible 10 4 9 7 3 2 8 5 1 6 7 1 2 9 4 8 5 3 10 6 Possible 3 8 9 7 10 5 6 4 1 2 10 3 4 2 7 9 6 1 5 8 Possible 8 9 7 1 6 4 3 10 2 5 6 10 2 5 8 1 3 4 7 9
result:
ok 5/5 are 'Possible' (5 test cases)
Test #12:
score: 0
Accepted
time: 48ms
memory: 3964kb
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: 54ms
memory: 3768kb
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: 54ms
memory: 3852kb
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: 24ms
memory: 3740kb
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 2 1 4 3 2 1 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 4 1 2 3 3 4 1 2 Possible 3 4 1 2 2 4 1 3 Possible 4 1 2 3 4 1 2 3 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: 3792kb
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 4 5 1 2 3 4 5 2 1 Possible 5 3 4 2 1 3 5 4 1 2 Possible 4 1 5 2 3 5 3 1 2 4 Possible 2 1 5 3 4 5 4 1 3 2 Possible 2 4 1 5 3 2 4 5 1 3 Possible 3 4 2 5 1 4 5 2 1 3 Possible 5 4 1 2 3 2 3 5 1 4 Possible 2 3 4 5 1 5 4 1 3 2 Possible 3 1 5 2 4 2 3 5 1 4 Possible 5 4 1 2 3 4...
result:
ok 20000/20000 are 'Possible' (20000 test cases)
Test #17:
score: 0
Accepted
time: 22ms
memory: 4068kb
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 6 3 2 5 4 1 5 4 1 3 6 2 Possible 6 4 5 2 3 1 2 5 4 3 6 1 Possible 5 4 6 1 3 2 4 1 5 2 6 3 Possible 2 3 1 6 4 5 2 5 6 3 1 4 Possible 2 5 6 1 3 4 5 4 2 6 3 1 Possible 3 5 1 6 4 2 6 5 1 3 2 4 Possible 5 6 4 1 3 2 6 3 4 2 1 5 Possible 4 3 5 6 1 2 3 1 5 2 6 4 Possible 5 3 4 6 1 2...
result:
ok 16666/16666 are 'Possible' (16666 test cases)
Test #18:
score: 0
Accepted
time: 24ms
memory: 4060kb
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 7 4 2 3 1 5 6 3 4 5 2 7 1 6 Possible 2 6 1 7 3 4 5 5 1 6 7 3 4 2 Possible 3 6 7 5 1 2 4 6 5 2 7 3 1 4 Possible 3 5 7 2 6 4 1 5 6 4 2 7 3 1 Possible 4 5 1 7 6 2 3 5 3 7 6 1 4 2 Possible 5 6 2 7 1 3 4 2 5 7 3 4 1 6 Possible 5 4 6 7 2 1 3 2 6 5 1 7 3 4 Possible 4 7 1 3 6 5 2 6 7...
result:
ok 14285/14285 are 'Possible' (14285 test cases)
Test #19:
score: 0
Accepted
time: 20ms
memory: 4080kb
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 7 3 1 8 2 5 4 6 6 1 7 5 8 2 3 4 Possible 4 6 7 1 3 2 8 5 6 8 7 3 2 5 1 4 Possible 6 1 7 2 8 3 4 5 3 6 5 7 4 8 1 2 Possible 4 6 7 2 3 5 8 1 5 4 8 6 7 2 3 1 Possible 6 7 4 5 3 8 2 1 2 7 4 5 3 1 8 6 Possible 2 8 7 1 3 4 6 5 3 8 4 7 1 2 5 6 Possible 8 4 1 7 2 5 6 3 6 3 1 5 4 2 8 7 ...
result:
ok 12500/12500 are 'Possible' (12500 test cases)
Test #20:
score: 0
Accepted
time: 15ms
memory: 3808kb
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 8 6 2 1 7 3 5 9 4 2 1 8 5 6 7 9 4 3 Possible 7 8 4 3 1 2 5 9 6 6 5 7 1 8 9 4 3 2 Possible 4 5 8 2 9 1 3 6 7 8 3 9 2 4 5 6 1 7 Possible 3 9 7 5 1 8 6 4 2 4 8 9 5 2 7 3 6 1 Possible 9 4 5 3 1 2 6 7 8 6 7 8 5 9 1 2 4 3 Possible 9 1 6 2 3 7 8 4 5 2 9 1 6 7 8 3 5 4 Possible 8 9 2 6 4...
result:
ok 11111/11111 are 'Possible' (11111 test cases)
Test #21:
score: 0
Accepted
time: 20ms
memory: 3784kb
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 7 10 2 9 4 5 8 3 1 6 3 6 7 9 8 2 5 4 10 1 Possible 7 4 2 3 8 1 10 6 5 9 5 10 8 2 9 7 3 6 4 1 Possible 10 7 2 9 8 5 6 4 3 1 2 10 4 8 1 7 5 6 3 9 Possible 3 5 9 2 6 10 8 7 1 4 8 4 5 2 10 3 9 1 6 7 Possible 7 5 2 6 1 4 8 3 10 9 5 9 7 1 8 2 4 10 3 6 Possible 9 6 7 1 8 3 5 10 2 4 10 5...
result:
ok 10000/10000 are 'Possible' (10000 test cases)
Test #22:
score: 0
Accepted
time: 14ms
memory: 3908kb
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 20 1 10 14 16 5 18 17 7 11 6 8 12 9 4 3 2 19 13 15 15 13 18 2 14 20 5 7 16 6 1 17 10 11 12 9 4 8 3 19 Possible 17 9 6 2 18 4 14 13 8 12 19 15 16 5 1 10 3 20 7 11 3 15 16 11 6 19 13 2 17 1 10 18 20 4 8 9 5 7 14 12 Possible 8 9 17 2 4 20 14 18 6 12 13 16 19 5 3 7 11 1 15 10 10 20 18 3 9 ...
result:
ok 5000/5000 are 'Possible' (5000 test cases)
Test #23:
score: 0
Accepted
time: 17ms
memory: 3860kb
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 18 26 39 36 19 28 27 3 41 21 13 22 31 43 47 46 6 32 35 15 50 38 48 42 2 37 16 25 20 40 1 17 34 45 5 9 30 49 29 12 14 24 10 7 33 44 11 23 8 4 40 30 29 21 24 5 13 19 26 4 15 38 46 31 50 20 49 8 35 22 37 7 11 6 17 41 32 33 14 16 2 25 12 39 36 28 3 44 43 9 27 45 34 1 47 48 42 10 23 18 Possibl...
result:
ok 2000/2000 are 'Possible' (2000 test cases)
Test #24:
score: 0
Accepted
time: 16ms
memory: 3908kb
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 9 49 19 25 20 77 22 56 52 38 28 34 35 72 37 5 14 1 21 89 65 54 39 99 7 58 81 90 51 82 11 16 12 74 78 57 73 40 88 85 64 48 6 59 69 53 46 2 66 60 50 68 83 97 86 55 67 45 17 71 30 61 92 29 70 62 63 10 95 79 87 41 32 23 91 42 44 36 15 100 98 31 3 33 8 26 4 93 94 18 47 13 96 75 84 43 24 76 27 80...
result:
ok 1000/1000 are 'Possible' (1000 test cases)
Test #25:
score: 0
Accepted
time: 16ms
memory: 3808kb
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 208 71 185 474 144 227 282 435 355 317 462 414 28 151 438 406 493 174 37 250 314 491 352 309 291 158 251 182 326 468 283 357 112 166 90 360 142 401 436 339 106 180 223 3 197 230 301 399 194 172 327 80 4 296 430 161 141 188 461 9 380 171 60 289 62 338 210 127 159 275 160 322 260 313 274 324 ...
result:
ok 200/200 are 'Possible' (200 test cases)
Test #26:
score: 0
Accepted
time: 16ms
memory: 3800kb
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 833 88 521 512 86 809 948 899 167 591 774 268 511 956 870 990 209 454 534 835 134 408 700 718 354 249 730 225 684 269 649 919 655 767 611 387 137 723 396 317 855 813 181 970 806 946 636 657 503 926 959 627 846 270 676 697 62 731 644 673 405 397 439 694 293 592 936 236 176 188 583 101 163 95...
result:
ok 100/100 are 'Possible' (100 test cases)
Test #27:
score: 0
Accepted
time: 13ms
memory: 4180kb
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 6512 1800 8760 5882 8954 965 7535 658 8329 4549 9766 3297 5790 1504 3742 6705 7152 890 6706 8813 1948 476 138 3635 9706 1738 4709 5943 5035 6701 4968 1523 6370 5886 1436 1234 8437 4114 355 921 991 4720 7203 1311 3784 4428 1965 8897 5069 7183 6129 7883 3492 4543 6387 9078 9237 531 1724 5194 ...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #28:
score: 0
Accepted
time: 19ms
memory: 4448kb
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 19701 322 19851 18714 5223 13260 11880 14461 16595 1196 15385 23387 22231 21853 18272 15878 5643 19829 6953 19915 21776 17553 12571 2462 5857 7960 11158 21699 2546 24053 22975 19746 15730 5990 3566 18508 7100 7307 6227 17494 21677 17901 3494 7483 9296 876 2538 1905 20809 24447 3059 15923 49...
result:
ok 4/4 are 'Possible' (4 test cases)
Test #29:
score: 0
Accepted
time: 20ms
memory: 4040kb
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 30639 18944 45356 46895 11567 41900 33531 3531 21068 20241 25425 27780 22910 43434 34942 8702 36846 49936 5065 25673 28281 22569 12024 12945 35339 1170 42451 8829 40092 10232 48274 47937 19662 27046 31090 43315 17628 2077 29278 49487 9054 38018 24038 13031 42728 48180 4598 42101 45760 12509...
result:
ok 2/2 are 'Possible' (2 test cases)
Test #30:
score: 0
Accepted
time: 19ms
memory: 4764kb
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 43597 91260 4088 91777 17209 66540 82368 31806 24013 79536 12149 11339 94876 68350 58593 81984 11750 19585 20673 35661 39059 91844 34304 29008 50104 52243 21592 82338 15026 78688 63568 29550 63101 27054 58498 3054 46556 91225 74618 87641 19424 36599 38114 12346 89400 95017 6698 71041 60072 ...
result:
ok 1/1 are 'Possible' (1 test case)
Test #31:
score: 0
Accepted
time: 19ms
memory: 3924kb
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 4779 927 4738 8228 817 523 6910 5301 380 533 171 8142 1233 6388 9861 424 1440 8891 7747 9114 8761 6679 5351 4089 2480 648 468 5982 9251 5132 6637 4428 4992 7716 8885 6574 1882 6904 1510 8179 4316 3992 9935 2042 7167 2355 6374 7812 8982 9180 1569 6861 838 4430 4244 4616 1708 3206 6717 8300 4...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #32:
score: 0
Accepted
time: 12ms
memory: 4064kb
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 7077 4539 6162 9320 3504 774 2286 143 6634 9839 7450 5713 2499 4301 7962 6321 2415 3001 8440 6772 1061 2520 9275 8818 3503 9757 4138 3156 6465 5128 5115 4485 9700 8530 891 6450 3432 6008 831 6679 4785 9228 3459 9421 7597 5992 2222 1566 8930 1872 9879 6850 1062 1540 331 8601 8635 4673 2770 9...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #33:
score: 0
Accepted
time: 17ms
memory: 3928kb
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 740 1215 7525 4802 2639 1862 5755 777 9738 1023 5065 9299 3545 3472 1325 5381 1193 2237 5078 549 2742 606 8822 4603 8814 8730 8625 6223 6356 3618 6880 8348 5499 6455 3723 2496 7208 6750 1356 1798 363 3586 1652 1926 3822 7156 2845 4338 2731 8537 5975 1564 1609 2836 421 1428 4073 2679 9754 72...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #34:
score: 0
Accepted
time: 17ms
memory: 3924kb
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 9966 9985 6246 7097 3982 3353 4223 4907 2782 4114 8024 621 9598 9184 9363 1302 2048 9582 6920 3552 3173 496 8526 1105 1619 1788 3107 4533 812 2177 5976 1588 4577 9959 2745 6310 406 3622 2086 9454 10000 7456 8992 7438 6829 9921 5878 1934 7122 9906 9929 1127 3383 8147 6114 8373 8795 627 8464 ...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #35:
score: 0
Accepted
time: 13ms
memory: 3996kb
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 200 8209 8288 7830 2156 3023 3220 2619 8074 9563 2532 3300 3606 7326 168 8378 4462 7534 2128 4890 6643 7003 9208 5489 2380 1445 2740 253 3414 9241 1115 2838 822 6513 6442 8317 5024 2194 6334 1561 7146 226 7079 9645 9333 1526 2760 1211 9060 2858 9283 4487 6298 4693 9484 7287 9620 5964 9902 4...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #36:
score: 0
Accepted
time: 18ms
memory: 3920kb
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 6253 9097 6953 3679 1599 8987 2061 1989 1311 5759 6407 7118 1585 7216 5568 3130 588 9061 1591 7080 6731 1826 6414 6990 7398 6654 8146 2842 6984 2488 2042 7385 8015 4757 5747 9881 7922 818 3966 4042 8900 6806 1068 6699 4014 5855 2235 6103 3485 792 5671 6070 6353 445 2651 3393 985 2573 9754 6...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #37:
score: 0
Accepted
time: 14ms
memory: 4224kb
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 4990 6966 5827 867 9658 1177 6741 4625 863 3348 7607 277 6038 4682 2225 145 8974 7022 932 1684 4621 7401 3587 9253 4226 7821 9204 6076 9145 6208 5787 6533 5674 4542 9776 8142 2119 3455 3728 6969 2903 3555 5516 1319 3200 5825 7729 8456 5702 2806 440 1049 9766 5997 490 832 1648 9005 2481 3496...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #38:
score: 0
Accepted
time: 18ms
memory: 3960kb
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 818 1325 4546 6598 2108 3108 1263 4893 2296 9879 7773 7105 903 101 9616 5918 4480 4882 7872 3171 7864 9649 5829 9839 7374 3801 1024 8852 5098 1878 7652 2842 3918 6040 9718 1599 269 9911 8250 7863 7612 361 5672 5847 3055 5082 2715 6509 479 8475 8842 241 9495 9840 3483 8359 1875 8138 246 5752...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #39:
score: 0
Accepted
time: 9ms
memory: 4064kb
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 6281 4262 4271 4601 1864 7929 7904 6510 9383 2558 6532 8548 9822 6503 326 8964 2330 7454 4821 5334 8387 7294 7993 3099 7198 5473 4113 8062 9648 7005 5663 9015 1657 1309 2734 2102 820 5234 9616 5107 9918 363 2983 2159 7125 1748 4770 112 3671 3431 4038 6500 4501 586 8472 5933 457 8067 5520 48...
result:
ok 10/10 are 'Possible' (10 test cases)
Test #40:
score: 0
Accepted
time: 16ms
memory: 4924kb
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 24727 18193 75643 55120 95140 97423 40182 84614 74990 13101 87351 59345 47431 55137 41264 15777 41383 27266 30674 89819 28090 16719 45588 83234 13502 68374 94877 10163 39304 41435 83606 71378 50513 91321 69096 26825 39586 84740 35967 43181 51903 32050 86437 82258 65007 9919 76118 79622 9276...
result:
ok 1/1 are 'Possible' (1 test case)
Test #41:
score: 0
Accepted
time: 16ms
memory: 4860kb
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 17025 87909 53265 91132 70579 68289 18997 26723 74883 98006 97909 15609 92391 87790 11787 4923 42077 24474 29436 12664 38670 48551 27003 85503 86217 3419 15947 56590 42663 4144 45643 84854 77933 17950 68489 67403 95709 65291 96291 30929 52517 85218 95574 73866 57773 89617 95911 50974 95739 ...
result:
ok 1/1 are 'Possible' (1 test case)
Test #42:
score: 0
Accepted
time: 16ms
memory: 4784kb
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 85080 82731 94726 23237 55987 99277 84855 48550 55710 46225 25049 44381 8272 89216 90148 94641 76744 50500 38442 61161 79823 49662 79005 3324 47769 30786 3603 94055 73171 89155 63273 82028 25643 40978 53439 73260 88476 3965 96864 67253 925 6578 43224 85707 25818 53532 83916 8767 90217 86318...
result:
ok 1/1 are 'Possible' (1 test case)
Test #43:
score: 0
Accepted
time: 14ms
memory: 4928kb
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 53764 90646 71260 88979 60307 24477 48467 79928 2322 58726 49659 54129 41469 15322 45262 210 43346 42469 11108 13568 93784 26399 18071 27123 21460 43760 78231 60805 15153 57556 28606 93604 73715 78418 68430 88299 19108 50692 53301 85699 88499 74451 39629 59549 24020 44965 90805 31976 47372 ...
result:
ok 1/1 are 'Possible' (1 test case)
Test #44:
score: 0
Accepted
time: 19ms
memory: 4912kb
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 4093 34333 36356 48098 55283 76806 68468 46160 63447 94734 37660 31220 7646 83993 76119 73633 48948 252 321 3895 49407 53947 82649 87948 99836 42523 5704 34959 54020 39378 66424 24529 43887 77256 18906 63255 98542 47062 1108 80845 42417 15587 40617 88181 2638 71464 97377 69936 39352 25774 4...
result:
ok 1/1 are 'Possible' (1 test case)
Test #45:
score: 0
Accepted
time: 17ms
memory: 4808kb
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 74199 63177 9717 95134 44032 83302 31070 8219 28501 65772 88965 81721 10545 80200 34340 3865 77589 66934 61948 19242 87335 26984 69288 75182 8415 71361 17526 9508 41713 45726 50915 37332 31572 23834 35575 70132 66364 38752 62304 61210 42214 97712 38678 29515 63731 40343 43704 8927 65324 450...
result:
ok 1/1 are 'Possible' (1 test case)
Test #46:
score: 0
Accepted
time: 18ms
memory: 4884kb
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 23797 52590 74616 8427 54718 41680 20179 64377 46115 77321 32914 84217 30324 40785 90464 5765 64353 61631 103 57722 77894 33918 1309 1848 58483 32398 75335 60666 58712 158 95408 67900 51117 60493 8543 62841 52956 65327 34316 41915 48177 60712 22273 45637 10400 29701 98204 22883 57590 22055 ...
result:
ok 1/1 are 'Possible' (1 test case)
Test #47:
score: 0
Accepted
time: 18ms
memory: 4912kb
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 51188 63770 86972 62885 52082 54062 68377 37020 32404 79943 73520 19711 26414 24008 30604 10064 82851 51646 26236 58237 2188 77500 96600 98206 30360 75631 79806 58343 57488 23589 85199 17689 32468 79100 63245 58316 2924 12036 73975 2886 42043 34119 90767 47773 68057 99758 41739 28286 76972 ...
result:
ok 1/1 are 'Possible' (1 test case)
Test #48:
score: 0
Accepted
time: 19ms
memory: 4804kb
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 18772 18378 59399 77434 24068 22983 62102 55729 15337 93979 23857 25742 23484 84096 64566 48547 37334 53158 78770 84626 39592 7865 21624 85036 67535 29299 73618 84585 40638 68735 24459 52110 69581 6887 29420 35928 4802 9726 74422 1048 97431 22306 47754 73893 40834 58934 45431 51521 22852 45...
result:
ok 1/1 are 'Possible' (1 test case)