Black Discs
CodeChefOpen on judge ↗
Consider the 2-d plane which is white. You are given **n** semi-discs on it which are colored black. They are placed on the x-axis at various positions, in such a way that its center is on the x-axis and the entire semi-disc is **on or above** the x-axis. By center of a semi-disc, we mean the center of the disc of which it is a part. For each semi-disc you know its radius and the coordinate of its
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