← Back to List

22938번: 백발백준하는 명사수 ↗

Solutions

Python 3
135 B | 135 chars
x,y,r=map(int,input().split())
x2,y2,r2=map(int,input().split())
print("YES" if ((x-x2)*(x-x2)+(y-y2)*(y-y2))**(1/2) < r+r2 else "NO")