UVA362 18,000 Seconds Remaining

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=298 [PDF](https://uva.onlinejudge.org/external/3/p362.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA362/df2856a7054eb33cf93325fc2f2eb323bbcf2d06.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA362/696ee51b5bbbc02611fd957d86cd450b30ad1794.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA362/16d6b6ffaff6682e10f744e50af72465e158ef03.png)