UVA11964 Equation

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3115 [PDF](https://uva.onlinejudge.org/external/119/p11964.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11964/68d793e41ef6d3c76d26acba39ac75ca169e42fb.png)

Input Format

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

Output Format

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