| ||||||||||
| 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 | |||||||||
Sorry for misrepresent the problem!In Reply To:Does Anyone Knows The Solution to This Problem? Posted by:chipmunk at 2008-02-06 00:11:50 In fact, it means that two 'X' -- named A and B -- can be put in different '#'s if and only if both the positions (row_A,column_B) and (row_B,column_A) is not '#' -- instead of 'X'. Sorry for described it incorrectly. I made a false analogue of 8 queens problem. It is quite different from 8 queens problem. Does anyone knows the solutions? Many Thanks! > 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