UVA1004 The Geoduck GUI

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=245&page=show_problem&problem=3445 [PDF](https://uva.onlinejudge.org/external/10/p1004.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA1004/0f402f591cf186ff0d0a7bd4466e3e2217441e79.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA1004/13b5cf5edc6b2a47b4758a4e8022db1298fe6d6f.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA1004/80bad9b823b3e80eeafe9a6e6e7964441ccb083b.png)