UVA11125 Arrange Some Marbles

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2066 [PDF](https://uva.onlinejudge.org/external/111/p11125.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11125/a8240dd9687e67fab8c877e53f80e7a2daefc1c1.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11125/1a3ad3e2c1ad293177f0062aa095dfd5f817001a.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11125/0ca3711c92a5cc9fb2805a010d1b36c4a80867d3.png)