#arc082b. [arc082_b]Derangement

[arc082_b]Derangement

给你一段长为NN的序列pp,你每次可以进行操作交换两个相邻的元素
问最少要几次才能满足任意i[1,N],piii\in[1,N],p_i \neq i