UVA11486 Finding Paths in Grid

Description

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

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11486/1c35bd3ae2237f758c381dd84887246d1157d82a.png)