UVA10018 Reverse and Add

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=959 [PDF](https://uva.onlinejudge.org/external/100/p10018.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10018/4bb180ce79269f51a712256ca9c91386dd08cc9d.png)

Input Format

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

Output Format

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