Today, WZB accompanied his n queens to the cinema……As the saying goes: Three queens for a play, one harem admits of no two queens…Cinema uses n rows of seats, each row has n columns.Queens are grumpy, they're not willing to sit in the same row or same column with other queen, if there are two queens in the same row or same column they conflict occurs, so they make WZB arrange seats for them. It stumped WZB to avoid the queen make antinomy. WZB wants to know how many different arrangements there are for the queen, he'd like to choose one for them. Since WZB and his queens arrived late, some seats had already been reserved by others. Although WZB is a king, he can't infringe on the rights of citizens, so the reserved seats could not be reserved for queens. Now WZB has ordered you to work out how many ways to arrange the queen. If WZB finds out your calculations are wrong....
Do you remember N-queens? Today, WZB accompanied his n queens to the cinema…… As the saying goes: Three queens for a play, one harem admits of no two queens… Cinema uses n rows of seats, each row has n columns.Queens are grumpy, they're not willing to sit in the same row or same column with other queen, if there are two queens in the same row or same column they conflict occurs, so they make WZB arrange seats for them. It stumped WZB to avoid the queen make antinomy. WZB wants to know how many different arrangements there are for the queen, he'd like to choose one for them. Since WZB and his queens arrived late, some seats had already been reserved by others. Although WZB is a king, he can't infringe on the rights of citizens, so the reserved seats could not be reserved for queens. Now WZB has ordered you to work out how many ways to arrange the queen. If WZB finds out your calculations are wrong....