UVA11912 Chutes and Ladders

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3063 [PDF](https://uva.onlinejudge.org/external/119/p11912.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11912/ac2a21f8e82f5092bd0be2713e622274cbd6c073.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11912/25ed07bee514c263dbdd4ed3f93fe1df65332d08.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11912/4801c54446a30bd0dc5294b2a6cb73434191b1f4.png)