UVA10688 The Poor Giant

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=18&page=show_problem&problem=1629 [PDF](https://uva.onlinejudge.org/external/106/p10688.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10688/401f1e58d9fd55c2109a43a958bb3e4aea26cbfc.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10688/19b64ccaad10f4a627156fa00cccb37cb1e44be9.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10688/9a43bf3d8aabca043a4fd7fabf56dff31a3659a3.png)