UVA10063 Knuth's Permutation

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=1004 [PDF](https://uva.onlinejudge.org/external/100/p10063.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10063/afe793a0a1fd42878b6e8e6807399472b991685d.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10063/46fa82719b5abf99ef622da264329d42590156df.png)