UVA10873 Splat, Inc.

Description

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

Input Format

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

Output Format

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