UVA11525 Permutation

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=27&page=show_problem&problem=2520 [PDF](https://uva.onlinejudge.org/external/115/p11525.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11525/d1134d73640ac85ba5b2ec8b952e8e73bfd8dfb1.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11525/4daed861dcc3c870059d31f9fb328b169f8dbf18.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11525/f83598209372577c1f4a143e93d18642cb349aa5.png)