UVA10472 Fastest Vs Cheapest

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=16&page=show_problem&problem=1413 [PDF](https://uva.onlinejudge.org/external/104/p10472.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10472/f519296452673fcfc3d4792671e5094193c11161.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10472/0e91a8eb66b6f9b770c2e78adad1bcd7a6062ba8.png)