UVA12478 Hardest Problem Ever (Easy)

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3922 [PDF](https://uva.onlinejudge.org/external/124/p12478.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12478/8394972a6b1fde25d0f33af2d7970a8e3dda68c4.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12478/50cf248a41335e1fc39971ece530ff09ea5e2a50.png)

Output Format

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