본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 8574번 Ratownik

by 현장 2024. 6. 9.

-Code

from math import sqrt
from sys import stdin
input = stdin.readline
res = 0
n, k, x, y = map(int, input().split())

for _ in range(n):
    xi, yi = map(int, input().split())
    if sqrt((xi - x) ** 2 + (yi - y) ** 2) > k:
        res += 1

print(res)