Responsible Albus Dumbledore - Part 2
CodeChefOpen on judge ↗
The Dumbledore family kept N goats when Albus Dumbledore and his siblings were kids. One fine day, Dumbledore Sr left the goats in the responsibility of Albus Dumbledore. Further, his father had instructed him to calculate the area of field grazed if he took the goats for grazing. Since the goats were hungry and wanted to feed on grass, Albus decided to take them to a field whose shape is of a reg
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