Area of Squares
CodeChefOpen on judge ↗
Chef and Chef's friend are playing a game. Chef's friend gave him a grid of infinite dots and each dot is equidistant from the dot above it, below it, left to it and right to it (uniformly spaced, the distance being one unit). Chef is given a number $N$. He was told to draw a square whose area was $N$. The sides of the squares can only be drawn by joining any 4 dots as long as the conn
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