UVA12114 Bachelor Arithmetic

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=243&page=show_problem&problem=3266 [PDF](https://uva.onlinejudge.org/external/121/p12114.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12114/3632c73d0e780c01d2050da448470922c7a7fab3.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12114/985c1f6e2bddf82de63f763dc3d469d91b092b61.png)