백준 문제풀이/수학
[백준] 22938 백발백준하는 명사수 -phyton
peach_h
2022. 11. 8. 20:32
https://www.acmicpc.net/problem/22938


두 원이 겹치려면
(X1 - X2)^2 + (Y1 - Y2)^2 < (R1 + R2)^2 여야함
수학 못하면 코테도 못푼다 . .
a = list(map(int,input().split()))
b = list(map(int,input().split()))
x = (a[0]-b[0])**2
y = (a[1]-b[1])**2
r = (a[2]+b[2])**2
if x+y < r:
print("YES")
else :
print("NO")