UVA10776 Determine The Combination

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=19&page=show_problem&problem=1717 [PDF](https://uva.onlinejudge.org/external/107/p10776.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10776/067eea4cca675dc2690dea8e7f4d5795f47d5b5b.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10776/3de9deb70b2e8e2eb01605f4228ba653a4a1d122.png)

Output Format

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