UVA10463 Aztec Knights

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=16&page=show_problem&problem=1404 [PDF](https://uva.onlinejudge.org/external/104/p10463.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10463/dc5c16df0ef9ec08e8cfd9c9bc63c09cabaa5415.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10463/54ceca5ed5b1b936b8ce88546eaa60ed5d7b107f.png)

Output Format

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