ChefWM
Chef recently created a new Tiling Window Manager called ChefWM. He wants to find out the maximum number of columns of windows he can fit on the screen and he needs your help. Consider the screen to be an axis-aligned rectangle in the $xy$-plane, with its bottom-left corner at $(0, 0)$ and top-right corner at $(N, M)$ (that is, the screen has width $N$ units and height $M$ units). ChefWM works as
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start