UVA11085 Back to the 8-Queens

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=2026 [PDF](https://uva.onlinejudge.org/external/110/p11085.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11085/d22a7291f8cf5826e82285c4770550f769313542.png)

Input Format

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

Output Format

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