A rectangle with odd integer side lengths is divided into rectangles that all have integer side lengths. Prove that for at least one of these rectangles, the distances to each of the four sides of are all even or all odd.
Problem 1673
Official solution
Solution:
We subdivide into unit squares and color some of these unit squares red or blue, according to the following illustration.

Since has odd side lengths by assumption, all four corner squares of are colored blue, and there are in total more colored than uncolored squares. Thus at least one of the rectangles into which was divided also contains more colored than uncolored squares; let be such a rectangle. Then has odd side lengths and all four corner squares of are colored. It follows that all four corner squares of must carry the same color. If they are blue, then has even distances to all four sides of ; if they are red, then has odd distances to all four sides of . In either case, satisfies the required condition.