UVA10860 Many a Little makes a Mickle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1801 [PDF](https://uva.onlinejudge.org/external/108/p10860.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10860/5c542138b4b048f4829a6e39ad66d1bba5499d49.png)

Input Format

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

Output Format

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