UVA647 Chutes and Ladders

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=588 [PDF](https://uva.onlinejudge.org/external/6/p647.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA647/c453cc2f55204e923ab30e9a5b211f1a43359911.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA647/82759aa1e5553824a03cdb8af7112b077efe197e.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA647/0ace8ffc5ad4c5aafe195eb37dfa875f08a0912f.png)