UVA12866 Combination

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=861&page=show_problem&problem=4731 [PDF](https://uva.onlinejudge.org/external/128/p12866.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12866/dd2fd6e0bd754cf14145ffd9d8ab14f191ee2dc1.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12866/65af19acdf6310e5a28f1dc90e2564ef68cd5289.png)