UVA397 Equation Elation

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA397/7b881db07a18458d65ca2c5a5f15a1f08d7412d9.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA397/785b1e54e8754309cfc6b890897104ae7d895cea.png)