UVA859 Chinese Checkers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=10&page=show_problem&problem=800 [PDF](https://uva.onlinejudge.org/external/8/p859.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA859/fa1f3d715830d4c6805397406133f0bd53515922.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA859/34507fb214df5c70a02e15970807727365b04d73.png)