UVA10773 Back to Intermediate Math

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=19&page=show_problem&problem=1714 [PDF](https://uva.onlinejudge.org/external/107/p10773.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10773/578c10c7e82cbc3207af0d5dc8660c0bcea4af4b.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10773/486d4237bd4bf53958c652176d2e67ac5d90d609.png)

Output Format

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