UVA150 Double Time

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=86 [PDF](https://uva.onlinejudge.org/external/1/p150.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA150/c8c1a686ae579af3881ff613fefe32d225b706d7.png)

Input Format

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

Output Format

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