UVA10544 Numbering the Paths

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=17&page=show_problem&problem=1485 [PDF](https://uva.onlinejudge.org/external/105/p10544.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10544/9d690c62f30b59bba7d3ded47aa6d700e74d900f.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10544/418df6170a1541ff035afbc51a7ae16a2a40d846.png)