UVA10084 Hotter Colder

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=1025 [PDF](https://uva.onlinejudge.org/external/100/p10084.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10084/cbc5fed24ae00988b8617f8fc5df18c4655c711c.png)

Input Format

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

Output Format

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