UVA10118 免费糖果 Free Candies

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1059 [PDF](https://uva.onlinejudge.org/external/101/p10118.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10118/2734d6a5e26b8a7d28d94a889765599248981461.png)

Input Format

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

Output Format

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