UVA528 The Problem of Train Setout

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=7&page=show_problem&problem=469 [PDF](https://uva.onlinejudge.org/external/5/p528.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA528/6ef6079857add3f69dc3b6ee662726c6f82d2a3d.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA528/96c589aff7f2a637da3f661e147551b733fff723.png)