UVA392 Polynomial Showdown

Description

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

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA392/4c2d0a60a4c7af4671fa35787c079100040f861f.png)