UVA498 Polly the Polynomial

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=6&page=show_problem&problem=439 [PDF](https://uva.onlinejudge.org/external/4/p498.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA498/87c8b579690d1ef60a952e0ffa9ee3cc9904817d.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA498/2bca847913fecf5b6d012c9bcdf74797e85cb23e.png)