QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#510683#5199. Amazing TrickMaMengQiWA 0ms3820kbC++203.2kb2024-08-09 10:58:122024-08-09 10:58:13

詳細信息

Test #1:

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

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)