Home > Back-end >  Acm topic POJ, 1321 questions about test data
Acm topic POJ, 1321 questions about test data

Time:09-20

4 3
. #
. #.
. #..
#...
I write code result is 4 is wrong but submitted
See online dalao code compiled results is 3
People think it should be 4, a great god to explain, title link is: http://poj.org/problem? Id=1321

CodePudding user response:

4 * 4 board put 3 pieces, any two peers with columns, put how many? That is what you mean, more than four, do you have any answer,

CodePudding user response:

Regardless of the symmetry, rotary is really a variety of solutions, 12,

CodePudding user response:

reference 1st floor santiaodahan response:
4 * 4 board put 3 pieces, any two different rows and columns, put how many kind of package? That is what you mean, more than four, do you have any answer,

Is four kind of ah,,,, bosses try draw a diagram

CodePudding user response:

reference qq_36662611 reply: 3/f
Quote: refer to 1st floor santiaodahan response:

4 * 4 board put 3 pieces, any two peers with columns, put how many? That is what you mean, more than four, do you have any answer,

Is four kind of ah,,,, big draw a diagram to try

Because I tried to find more than four, you can think like this, 4 * 4 board, a total of 16 can put the position of the pieces, fixed the first two pieces, so there are two lines of the location of the two columns cannot put chess pieces, a total of 12, the remaining four position can put a third piece, this kind of circumstance have four kinds of solutions, the other two pieces will change more again, how is four,

CodePudding user response:

# position can't put, 26, considering a rotational symmetry 13 species,
  • Related