UVA369 Combinations

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=305 [PDF](https://uva.onlinejudge.org/external/3/p369.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA369/8fbc154048f2693975211c40454bfef162ebf567.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA369/6721ff1631962b0fa63a772144fa856334c8bcf0.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA369/8f3131a8b5a946804c13b4f080d8fc209cdd7575.png)