QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#510751#5199. Amazing TrickZhangYiDeWA 1ms5824kbC++202.3kb2024-08-09 12:13:522024-08-09 12:13:53

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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

result:

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