← All problemsSign in

Find Lighted Area

You are given a square with side length $2L$. The coordinates of its vertices are at $(-L, -L)$, $(L, -L)$, $(L, L)$, and $(-L, L)$. You are also given $N$ disks (each disk is opaque, and light rays cannot pass through them) each of radius $R$. The centers of each of the disks are at a fixed distance $D$ from the origin $(0, 0)$. This distance $D$ is strictly greater than $R$. It is guaranteed tha

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