UVA12777 Palindromic Sums

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=823&page=show_problem&problem=4630 [PDF](https://uva.onlinejudge.org/external/127/p12777.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12777/9d001d8dd5a98aea8005ffd89745efdfc82d87fd.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12777/715505437a6ef2723c64249dc6b3033613095824.png)

Output Format

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