UVA750 8 Queens Chess Problem

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=691 [PDF](https://uva.onlinejudge.org/external/7/p750.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA750/4b8eb6b8773dbef2c35b823a36be699cb49306de.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA750/5de96a366f59fa42ccee46ee0becb448f3099b1a.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA750/461c1497f2c2cfe9b5a74db2c07077c79d436965.png)