UVA10987 Antifloyd

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=21&page=show_problem&problem=1928 [PDF](https://uva.onlinejudge.org/external/109/p10987.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10987/2b5bb8fbee01071e0ed5e6203b10f543ce43bde4.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10987/92fff04ef02c8bcb165517a8dd8b1d7dc5437a75.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10987/6e3a330e0d8178a97514dc887ceb301d49d4aebb.png)