Room for Squares
CodeChefOpen on judge ↗
As a child, Lemuel has always been fascinated by squares. The bigger they are, the better! Circles were no good, and polygons were only important if they were quadrilaterals with vertices of equal length. I mean, obviously! Now that he's a prominent astronomer, he always catches himself staring at star maps, subconsciously looking for squares formed by stars. He's even started naming the "star-sq
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