UVA13142 Destroy the Moon to Save the Earth

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=871&page=show_problem&problem=5053 [PDF](https://uva.onlinejudge.org/external/131/p13142.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13142/a69710fc9f21fa25a591beb3a7e59b8879001fa4.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13142/67e2f32057de523d7c9607a984813e5235924790.png)