UVA10184 Equidistance

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1125 [PDF](https://uva.onlinejudge.org/external/101/p10184.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10184/bd47bc3ccbf16e05dd1781126ed9c272baf61c50.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10184/1904874711b066d0bb9c8165b821a9a2c8f93504.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10184/626ee9da7c32ada433916865989be9a488b703db.png)