Chef and his swimming
CodeChefOpen on judge ↗
Chef's girlfriend wants a swimming pool, so Chef decides to build a swimming pool on his farm which is $L \times B$ mtr sqr . Each $1 \times 1$ mtr sq. of the farm is either free or occupied by some banana trees which he loves a lot and doesn't want to cut. The swimming pool should be rectangular and its sides should be parallel to the walls of the farm. Chef wants the pool to be built in su
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