QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#510704#5199. Amazing TrickZhangYiDeWA 1ms5856kbC++203.3kb2024-08-09 11:16:552024-08-09 11:16:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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

result:

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