UVA11984 A Change in Thermal Unit

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3135 [PDF](https://uva.onlinejudge.org/external/119/p11984.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11984/5f1f9e7c975eed53c6ac8ca35f135e7cf51edffd.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11984/1e22e12a103bb9c6f719c2d45e4c45d8ddb271e1.png)