http://algospot.com/judge/problem/read/NQUEEN