| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Does Anyone Knows The Solution to This Problem?A square chess-borad is givern. It is diagonal symetric with striples of '#' and '.'. An 'X' can be placed on to the '#', but without having the same row or column with other 'X' placed before (like famous eight queen problem :-)). An example is below: #...#..## ...#..##. ..#..##.. .#..##..# #..##..#. ..##..#.. .##..#..# ##..#..## #..#..##. To this instance, the answer is 4 as follows: X...#..## ...X..##. ..X..##.. .X..##..# #..##..#. ..##..#.. .##..#..# ##..#..## #..#..##. Given a such chessborad of size n, how to solve it efficiently? Any comment or hint is welcome! Bow! Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator