UVA650 Bowl

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=591 [PDF](https://uva.onlinejudge.org/external/6/p650.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA650/28dcebf2f93a7bc14631eb2cc35cf9830ff85156.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA650/21e3538bcedcb2e2d8bc0efa0954ab32c2ad0f9b.png)

Output Format

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