BOB AND SQUARES
CodeChefOpen on judge ↗
Bob has built a new house and in that house he needs windows to be in square shape but the constructor has built glass windows of size $a$ $(width)$ and $h$ $(height)$ for building. Now the constructor is charging extra money for cutting the glass into square shape and fitting to size of width $a$ and height $h$ and he is charging on the bases of cut he will make to glass to fit size and so you sh
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