Problems > Two Circles > Editorial

Two Circles — Solution & Editorial

Back to the Problem

Compare the SQUARED center distance against (r1+r2)² and (r1−r2)² — everything stays in exact integers, and touching counts as overlap.

Complexity: O(1)