UVA10854 Number of Paths

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1795 [PDF](https://uva.onlinejudge.org/external/108/p10854.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10854/757043a34158fb7234dd6408637421f90d3d5bff.png)

Input Format

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

Output Format

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