UVA12925 Race against the clock

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=862&page=show_problem&problem=4804 [PDF](https://uva.onlinejudge.org/external/129/p12925.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12925/d2ce423d88eea05b19af02de7484a79a74a376cf.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12925/37374a5ce2cf07fcbc44f9a7df9e28f4be4a0eef.png)

Output Format

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