UVA11459 Snakes and Ladders

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2454 [PDF](https://uva.onlinejudge.org/external/114/p11459.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11459/2a303d6111e249f7b707dfc10e4ad40a0507eb15.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11459/209bc8397c12445755ee9a2fb95f7025bd29d072.png)