UVA11077 Find the Permutations

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=2018 [PDF](https://uva.onlinejudge.org/external/110/p11077.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11077/95dc4bb8005caf799da354b05277d4fa10f31e47.png)

Input Format

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

Output Format

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