Swimming Pool
CodeChefOpen on judge ↗
Ruskin needs a railing around his swimming pool, but he is too lazy to build it himself. So he purchased a railing-building machine. He wants the railing to be a regular polygon. The machine builds the railing along a single path, but it can only make railing corners at a single angle a. Will the machine be able to build the railing Ruskin wants? In other words, is there a regular polygon which
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