This Ain't Your Grandpa's Checkerboard

From programming_contest
Revision as of 02:37, 2 November 2021 by Kmk21 (talk | contribs) (Created page with "This problem gives you a specification for a board of white and black squares and asks if it is "valid," where valid means each row and column independently has the same numbe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This problem gives you a specification for a board of white and black squares and asks if it is "valid," where valid means each row and column independently has the same number of white and black squares, and there are no more than 3 white or black squares in a row in any row or column. This is simply walking through the input and checking the specified conditions, as the maximum grid is only 24x24