UVA11807 Dumb Eucelics' Pyramid Walk

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=226&page=show_problem&problem=2907 [PDF](https://uva.onlinejudge.org/external/118/p11807.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11807/3a20c98c6421cbefff1fb502458428a952c7204a.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11807/683ba6b00854d8f4aa93ae6d480b5d2d6255a7ad.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11807/882e2a8c6aed060377b9a6cb49b7839d023cd81d.png)