UVA11911 Farther or Closer

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3062 [PDF](https://uva.onlinejudge.org/external/119/p11911.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11911/7cdec21324d3562e74e3fe4a48749156cff55272.png)

Input Format

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

Output Format

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