UVA10838 The Pawn Chess

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1779 [PDF](https://uva.onlinejudge.org/external/108/p10838.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10838/738744bcfe1ba248d5ba8d58ba208803553f4693.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10838/7bb70a7303c95164798cd04eba85c0ce05e2db5e.png)

Output Format

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