UVA11922 Permutation Transformer

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3073 [PDF](https://uva.onlinejudge.org/external/119/p11922.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11922/be8bf387e0eae3199e5a5be4c11f940281968dba.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11922/436d5861a50a95f068196a40083cc9153741b3ab.png)

Output Format

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