QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#510643#5199. Amazing TrickHuangHanShengWA 0ms3844kbC++202.2kb2024-08-09 10:12:322024-08-09 10:12:33

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3844kb

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

result:

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