UVA13035 Another Combination Problem

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=866&page=show_problem&problem=4933 [PDF](https://uva.onlinejudge.org/external/130/p13035.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13035/b83df6057718e45c7465165e8cfdf0d116da18d3.png)

Input Format

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

Output Format

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