UVA12569 树上的机器人规划(简单版) Planning mobile robot on Tree (EASY Version)

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=441&page=show_problem&problem=4014 [PDF](https://uva.onlinejudge.org/external/125/p12569.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12569/b909e7d373972be10c0fb90abe4cf1a83e7220fa.png)

Input Format

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

Output Format

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