Lifeguard
InterviewTime limit1sMemory limit512 MB
The task is to count children farther than k meters from the lifeguard position.
Problem
Children are spending their holidays at the seaside, and right now they are all bathing in the water. A lifeguard keeps them safe, and his range of sight is meters. Anyone located more than meters away from the lifeguard is invisible to him. Given the positions of the lifeguard and the children, determine how many children would not receive help if something dangerous happened.
Input
The first line contains integers , , , (, ), denoting the number of children, the lifeguard's range of sight, and the lifeguard's position , respectively. Each of the next lines contains two integers and (), the coordinates of the -th child. (The bathing area is described on a coordinate plane.)
Output
Print, on a single line, the number of children who cannot feel safe, that is, the number of children who lie outside the lifeguard's range of sight.