[2016 indeed笔试题] Tables and Pieces - 快乐的小鸟_ZJU - 博客频道 - CSDN.NET
QuestionThere is a 6×6 table. Place a number of pieces on the table to meet the following conditions:
There is to be either zero or one piece in each square of the table.
Each column in the table is to have exactly three pieces.
Each row in the table is to have exactly three pieces.
There may already be pieces in some of the squares of the table. When si,j is 'o', there is already a piece in the square at the jth column of the ith row. When that is not the case, si,j is '.' and there is no piece in that square. Find out the number of ways to place pieces in the empty squares, which satisfies the conditions. Two ways are considered different if they have at least one square which contains a piece in one way and doesn't contain a piece in the other way.
Read full article from [2016 indeed笔试题] Tables and Pieces - 快乐的小鸟_ZJU - 博客频道 - CSDN.NET
No comments:
Post a Comment