← All problemsSign in

The New Restaurant

CodeChefRating 2913Open on judge ↗

Chef decided to open a new restaurant in the town. The town already has N restaurants, each of which operates in an area of circular shape with its center at xi, yi and radius ri. For any point, there is at most one restaurant operating there. Chef wants to build his restaurant in a strategic place. That's why he asks you some questions - find the total area covered by restaurants in the rectangl

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start