Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Black Holes by ciel
import math,itertools
def intersect(a,b):
d=math.hypot(a[0]-b[0],a[1]-b[1])
r1=a[2]
r2=b[2]
if min(r1,r2)+d<=max(r1,r2): return True # inside
if r1+r2=0.55
def dominate(a,b):
s1=math.pi*a[2]*a[2]
s2=math.pi*b[2]*b[2]
val=(s1-s2)/s1 if s1>s2 else (s2-s1)/s2
return val>=0.2
def merge(a,b):
if a[2]
Nov. 13, 2015