Find the Permutations
题目描述
[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)
输入输出格式
输入格式
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11077/f550a6721aa7a88382749fbee8603b41a0f29a70.png)
输出格式
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11077/cc44bdca011ff3aa7ffab156524d8e0acdc0a8e7.png)
输入输出样例
输入样例 #1
3 1
3 0
3 2
0 0
输出样例 #1
3
1
2