carpenter
CodeChefOpen on judge ↗
Alex is a carpenter and is very careful of efficently using the most of the wood given to him without wasting it. This time Alex gets a large rectangular board and has to make square shaped board out of it. So, now Alex is determined to get the maximum size out of the board. He has a rectangular piece of board of length $'L'$ and breadth $'B'$. His task is to divide it into square-shaped boa
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