import java.util.*; public class Main { public static void main(String[] args) { int n,c,d; long x,y; Scanner sc = new Scanner(System.in); n = sc.nextInt(); d = sc.nextInt(); c=0; for(int i=0; i<n; i++) { x = sc.nextInt(); y = sc.nextInt(); double dist = Math.sqrt( x*x + y*y ); if(dist <= d) c++; } System.out.println(c); } } import java.util.*; util.* java public class Main { public static void main(String[] args) { int n,c,d; long x,y; Scanner sc = new Scanner(System.in); n = sc.nextInt(); d = sc.nextInt(); c=0; for(int i=0; i<n; i++) { x = sc.nextInt(); y = sc.nextInt(); double dist = Math.sqrt( x*x + y*y ); if(dist <= d) c++; } System.out.println(c); } } Main public static void main(String[] args) { int n,c,d; long x,y; Scanner sc = new Scanner(System.in); n = sc.nextInt(); d = sc.nextInt(); c=0; for(int i=0; i<n; i++) { x = sc.nextInt(); y = sc.nextInt(); double dist = Math.sqrt( x*x + y*y ); if(dist <= d) c++; } System.out.println(c); } main { int n,c,d; long x,y; Scanner sc = new Scanner(System.in); n = sc.nextInt(); d = sc.nextInt(); c=0; for(int i=0; i<n; i++) { x = sc.nextInt(); y = sc.nextInt(); double dist = Math.sqrt( x*x + y*y ); if(dist <= d) c++; } System.out.println(c); } int n n c c d; d long x x y; y Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc d = sc.nextInt() d sc.nextInt() sc.nextInt sc c=0 c 0 for(int i=0; i<n; i++) { x = sc.nextInt(); y = sc.nextInt(); double dist = Math.sqrt( x*x + y*y ); if(dist <= d) c++; } int i=0; int i=0; i 0 i<n i n i++ i++ i { x = sc.nextInt(); y = sc.nextInt(); double dist = Math.sqrt( x*x + y*y ); if(dist <= d) c++; } { x = sc.nextInt(); y = sc.nextInt(); double dist = Math.sqrt( x*x + y*y ); if(dist <= d) c++; } x = sc.nextInt() x sc.nextInt() sc.nextInt sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc double dist = Math.sqrt( x*x + y*y ); dist Math.sqrt( x*x + y*y ) Math.sqrt Math x*x + y*y x*x x x y*y y y if(dist <= d) c++; dist <= d dist d c++ c System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main { public static void main(String[] args) { int n,c,d; long x,y; Scanner sc = new Scanner(System.in); n = sc.nextInt(); d = sc.nextInt(); c=0; for(int i=0; i<n; i++) { x = sc.nextInt(); y = sc.nextInt(); double dist = Math.sqrt( x*x + y*y ); if(dist <= d) c++; } System.out.println(c); } } public class Main { public static void main(String[] args) { int n,c,d; long x,y; Scanner sc = new Scanner(System.in); n = sc.nextInt(); d = sc.nextInt(); c=0; for(int i=0; i<n; i++) { x = sc.nextInt(); y = sc.nextInt(); double dist = Math.sqrt( x*x + y*y ); if(dist <= d) c++; } System.out.println(c); } } Main
import java.util.*; public class Main { public static void main(String[] args) { int n,c,d; long x,y; Scanner sc = new Scanner(System.in); n = sc.nextInt(); d = sc.nextInt(); c=0; for(int i=0; i<n; i++) { x = sc.nextInt(); y = sc.nextInt(); double dist = Math.sqrt( x*x + y*y ); if(dist <= d) c++; } System.out.println(c); } }