-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)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 26676번 Wybór zadań (0) | 2024.06.11 |
---|---|
[백준/파이썬] 31663번 Mean Words (0) | 2024.06.10 |
[백준/파이썬] 14911번 궁합 쌍 찾기 (0) | 2024.06.08 |
[백준/파이썬] 9358번 순열 접기 게임 (0) | 2024.06.07 |
[백준/파이썬] 30315번 King's Keep (1) | 2024.06.06 |