UVA11599 Triangle and Polynomial

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=27&page=show_problem&problem=2646 [PDF](https://uva.onlinejudge.org/external/115/p11599.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11599/1fa2727041be9366360d66fff6e67a087f07fa7b.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11599/33d4d6bef3cc763dc047cb638ea353d1a1815167.png)