UVA10379 Pit Stop Strategy

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1320 [PDF](https://uva.onlinejudge.org/external/103/p10379.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10379/e430856e240d2b34de467a60bc89d49b1fd9aa21.png)

Input Format

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

Output Format

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