QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#131114#5199. Amazing TricknanikaWA 1ms3528kbC++171015b2023-07-26 13:44:072023-07-26 13:44:09

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3528kb

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
4 3 1 5 2 
4 3 1 5 2 

result:

wrong answer Incorrect permuations p & q: a[p[q[1]]] = 3 (test case 4)