Problem 1253 · Medium
Forced columns fill both rows first; each remaining single column goes to whichever row still needs ones.
Open the interactive visualisation