(My previous post did not appear for unknown reasons, so I have to re-post it here) Hi, I'm trying to solve this year's Code Jam problems, and problem D in Qualification Round has confused me a little.
The original problem description says 1. Whenever any two models share a row or column, at least one of the two must be a +. 2. Whenever any two models share a diagonal of the grid, at least one of the two must be an x. The content analysis equals it to the following rules 1. The + models are bishops. Two bishops may not occupy the same diagonal. 2. The x models are rooks. Two rooks may not occupy the same row or column. 3. The o pieces are queens. Two queens may not occupy the same row, column, or diagonal. Moreover, a queen and a bishop may not occupy the same diagonal; a queen and a rook may not occupy the same row or column. However, I don't quite understand the rule 3 in content analysis, it says "a queen and a rook may not occupy the same row or column.", but the original rule 1 in problem description does not have such constraint. Consider the layout below ... x+o ... It would illegal if rule 3 is applied, but legal in the original rule 1.. I guess I missed something? Any clue would be appreciated. -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/6508e0c3-e016-43f7-b3c7-ed1cf932dd51%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
