UVA11735 Corner the Queens

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=117&page=show_problem&problem=2835 [PDF](https://uva.onlinejudge.org/external/117/p11735.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11735/34e1c3eb4b26f21f16850cd8bc4fb8784079793e.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11735/78101477ab8604ced47e04f702e921f33d19384e.png)

Output Format

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