node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
47,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
]
| [
"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); } } |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
96,
5
],
[
96,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
45,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
45,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
6,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int D = scanner.nextInt();\n long[] X = new long[N];\n long[] Y = new long[N];\n int count = 0;\n\n for (int i = 0 ; i < N ; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n\n double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);\n if (distance <= D) {\n count++;\n }\n }\n\n System.out.println(count);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int D = scanner.nextInt();\n long[] X = new long[N];\n long[] Y = new long[N];\n int count = 0;\n\n for (int i = 0 ; i < N ; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n\n double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);\n if (distance <= D) {\n count++;\n }\n }\n\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int D = scanner.nextInt();\n long[] X = new long[N];\n long[] Y = new long[N];\n int count = 0;\n\n for (int i = 0 ; i < N ; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n\n double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);\n if (distance <= D) {\n count++;\n }\n }\n\n System.out.println(count);\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int D = scanner.nextInt();\n long[] X = new long[N];\n long[] Y = new long[N];\n int count = 0;\n\n for (int i = 0 ; i < N ; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n\n double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);\n if (distance <= D) {\n count++;\n }\n }\n\n System.out.println(count);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int D = scanner.nextInt();",
"D",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long[] X = new long[N];",
"X",
"new long[N]",
"N",
"long[] Y = new long[N];",
"Y",
"new long[N]",
"N",
"int count = 0;",
"count",
"0",
"for (int i = 0 ; i < N ; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n\n double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);\n if (distance <= D) {\n count++;\n }\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n\n double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);\n if (distance <= D) {\n count++;\n }\n }",
"{\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n\n double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);\n if (distance <= D) {\n count++;\n }\n }",
"X[i] = scanner.nextLong()",
"X[i]",
"X",
"i",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"Y[i] = scanner.nextLong()",
"Y[i]",
"Y",
"i",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);",
"distance",
"Math.sqrt(X[i] * X[i] + Y[i] * Y[i])",
"Math.sqrt",
"Math",
"X[i] * X[i] + Y[i] * Y[i]",
"X[i] * X[i]",
"X[i]",
"X",
"i",
"X[i]",
"X",
"i",
"Y[i] * Y[i]",
"Y[i]",
"Y",
"i",
"Y[i]",
"Y",
"i",
"if (distance <= D) {\n count++;\n }",
"distance <= D",
"distance",
"D",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int D = scanner.nextInt();\n long[] X = new long[N];\n long[] Y = new long[N];\n int count = 0;\n\n for (int i = 0 ; i < N ; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n\n double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);\n if (distance <= D) {\n count++;\n }\n }\n\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int D = scanner.nextInt();\n long[] X = new long[N];\n long[] Y = new long[N];\n int count = 0;\n\n for (int i = 0 ; i < N ; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n\n double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);\n if (distance <= D) {\n count++;\n }\n }\n\n System.out.println(count);\n }\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int D = scanner.nextInt();
long[] X = new long[N];
long[] Y = new long[N];
int count = 0;
for (int i = 0 ; i < N ; i++) {
X[i] = scanner.nextLong();
Y[i] = scanner.nextLong();
double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);
if (distance <= D) {
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
41,
13,
4,
13,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
123,
8
],
[
123,
9
],
[
9,
10
],
[
123,
11
],
[
11,
12
],
[
123,
13
],
[
13,
14
],
[
123,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
17,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
17,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
44,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
17,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
15,
74
],
[
74,
75
],
[
123,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
123,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
123,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
123,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
106,
115
],
[
115,
116
],
[
115,
117
],
[
105,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
]
| [
"import java.util.*; \nimport java.io.*;\n\npublic class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = nextInt();\n long D = nextInt();\n\n int ans = 0;\n\n for (int i=0; i<N; i++) {\n long x = nextInt();\n long y = nextInt();\n if(D*D>=x*x+y*y){\n ans ++;\n }\n }\n\n System.out.println(ans);\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = nextInt();\n long D = nextInt();\n\n int ans = 0;\n\n for (int i=0; i<N; i++) {\n long x = nextInt();\n long y = nextInt();\n if(D*D>=x*x+y*y){\n ans ++;\n }\n }\n\n System.out.println(ans);\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main",
"static StringTokenizer st;",
"st",
"static BufferedReader br;",
"br",
"static PrintWriter out;",
"out",
"public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = nextInt();\n long D = nextInt();\n\n int ans = 0;\n\n for (int i=0; i<N; i++) {\n long x = nextInt();\n long y = nextInt();\n if(D*D>=x*x+y*y){\n ans ++;\n }\n }\n\n System.out.println(ans);\n \n }",
"main",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = nextInt();\n long D = nextInt();\n\n int ans = 0;\n\n for (int i=0; i<N; i++) {\n long x = nextInt();\n long y = nextInt();\n if(D*D>=x*x+y*y){\n ans ++;\n }\n }\n\n System.out.println(ans);\n \n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int N = nextInt();",
"N",
"nextInt()",
"nextInt",
"long D = nextInt();",
"D",
"nextInt()",
"nextInt",
"int ans = 0;",
"ans",
"0",
"for (int i=0; i<N; i++) {\n long x = nextInt();\n long y = nextInt();\n if(D*D>=x*x+y*y){\n ans ++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n long x = nextInt();\n long y = nextInt();\n if(D*D>=x*x+y*y){\n ans ++;\n }\n }",
"{\n long x = nextInt();\n long y = nextInt();\n if(D*D>=x*x+y*y){\n ans ++;\n }\n }",
"long x = nextInt();",
"x",
"nextInt()",
"nextInt",
"long y = nextInt();",
"y",
"nextInt()",
"nextInt",
"if(D*D>=x*x+y*y){\n ans ++;\n }",
"D*D>=x*x+y*y",
"D*D",
"D",
"D",
"x*x+y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"{\n ans ++;\n }",
"ans ++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine().trim())",
"st",
"new StringTokenizer(br.readLine().trim())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = nextInt();\n long D = nextInt();\n\n int ans = 0;\n\n for (int i=0; i<N; i++) {\n long x = nextInt();\n long y = nextInt();\n if(D*D>=x*x+y*y){\n ans ++;\n }\n }\n\n System.out.println(ans);\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = nextInt();\n long D = nextInt();\n\n int ans = 0;\n\n for (int i=0; i<N; i++) {\n long x = nextInt();\n long y = nextInt();\n if(D*D>=x*x+y*y){\n ans ++;\n }\n }\n\n System.out.println(ans);\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
static StringTokenizer st;
static BufferedReader br;
static PrintWriter out;
public static void main(String[] args) throws IOException {
br = new BufferedReader(new InputStreamReader(System.in));
int N = nextInt();
long D = nextInt();
int ans = 0;
for (int i=0; i<N; i++) {
long x = nextInt();
long y = nextInt();
if(D*D>=x*x+y*y){
ans ++;
}
}
System.out.println(ans);
}
public static int nextInt() throws IOException {
return Integer.parseInt(next());
}
public static long nextLong() throws IOException {
return Long.parseLong(next());
}
public static double nextDouble() throws IOException {
return Double.parseDouble(next());
}
static String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine().trim());
return st.nextToken();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
224,
23
],
[
224,
24
],
[
24,
25
],
[
24,
26
],
[
224,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
29,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
29,
43
],
[
43,
44
],
[
43,
45
],
[
29,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
58,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
29,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
27,
93
],
[
93,
94
],
[
224,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
97,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
115,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
115,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
131,
133
],
[
115,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
97,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
95,
143
],
[
143,
144
],
[
224,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
145,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
156,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
161,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
155,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
145,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
183,
184
],
[
145,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
197,
198
],
[
197,
199
],
[
192,
200
],
[
200,
201
],
[
201,
202
],
[
192,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
208,
209
],
[
187,
210
],
[
210,
211
],
[
185,
212
],
[
212,
213
],
[
145,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
218,
221
],
[
221,
222
],
[
0,
223
],
[
223,
224
],
[
223,
225
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.Random;\nimport java.util.StringTokenizer;\n\n/*\n1\n4\n0011\n */\npublic class Main{\n\n public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n long D=fs.nextLong();\n int ans=0;\n// PrintWriter out=new PrintWriter(System.out);\n for (int tt=0; tt<T; tt++) {\n //solve\n long x=fs.nextLong();\n long y=fs.nextLong();\n long distance=x*x+y*y;\n if(distance<=D*D){\n ans++;\n }\n }\n System.out.println(ans);\n\n\n }\n\n static final Random random=new Random();\n\n static void ruffleSort(int[] a) {\n int n=a.length;//shuffle, then sort\n for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }\n Arrays.sort(a);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] nextArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Random;",
"Random",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main{\n\n public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n long D=fs.nextLong();\n int ans=0;\n// PrintWriter out=new PrintWriter(System.out);\n for (int tt=0; tt<T; tt++) {\n //solve\n long x=fs.nextLong();\n long y=fs.nextLong();\n long distance=x*x+y*y;\n if(distance<=D*D){\n ans++;\n }\n }\n System.out.println(ans);\n\n\n }\n\n static final Random random=new Random();\n\n static void ruffleSort(int[] a) {\n int n=a.length;//shuffle, then sort\n for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }\n Arrays.sort(a);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] nextArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n\n}",
"Main",
"static final Random random=new Random();",
"random",
"new Random()",
"public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n long D=fs.nextLong();\n int ans=0;\n// PrintWriter out=new PrintWriter(System.out);\n for (int tt=0; tt<T; tt++) {\n //solve\n long x=fs.nextLong();\n long y=fs.nextLong();\n long distance=x*x+y*y;\n if(distance<=D*D){\n ans++;\n }\n }\n System.out.println(ans);\n\n\n }",
"main",
"{\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n long D=fs.nextLong();\n int ans=0;\n// PrintWriter out=new PrintWriter(System.out);\n for (int tt=0; tt<T; tt++) {\n //solve\n long x=fs.nextLong();\n long y=fs.nextLong();\n long distance=x*x+y*y;\n if(distance<=D*D){\n ans++;\n }\n }\n System.out.println(ans);\n\n\n }",
"FastScanner fs=new FastScanner();",
"fs",
"new FastScanner()",
"int T=fs.nextInt();",
"T",
"fs.nextInt()",
"fs.nextInt",
"fs",
"long D=fs.nextLong();",
"D",
"fs.nextLong()",
"fs.nextLong",
"fs",
"int ans=0;",
"ans",
"0",
"for (int tt=0; tt<T; tt++) {\n //solve\n long x=fs.nextLong();\n long y=fs.nextLong();\n long distance=x*x+y*y;\n if(distance<=D*D){\n ans++;\n }\n }",
"int tt=0;",
"int tt=0;",
"tt",
"0",
"tt<T",
"tt",
"T",
"tt++",
"tt++",
"tt",
"{\n //solve\n long x=fs.nextLong();\n long y=fs.nextLong();\n long distance=x*x+y*y;\n if(distance<=D*D){\n ans++;\n }\n }",
"{\n //solve\n long x=fs.nextLong();\n long y=fs.nextLong();\n long distance=x*x+y*y;\n if(distance<=D*D){\n ans++;\n }\n }",
"long x=fs.nextLong();",
"x",
"fs.nextLong()",
"fs.nextLong",
"fs",
"long y=fs.nextLong();",
"y",
"fs.nextLong()",
"fs.nextLong",
"fs",
"long distance=x*x+y*y;",
"distance",
"x*x+y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"if(distance<=D*D){\n ans++;\n }",
"distance<=D*D",
"distance",
"D*D",
"D",
"D",
"{\n ans++;\n }",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"static void ruffleSort(int[] a) {\n int n=a.length;//shuffle, then sort\n for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }\n Arrays.sort(a);\n }",
"ruffleSort",
"{\n int n=a.length;//shuffle, then sort\n for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }\n Arrays.sort(a);\n }",
"int n=a.length;",
"n",
"a.length",
"a",
"a.length",
"for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }",
"{\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }",
"int oi=random.nextInt(n)",
"oi",
"random.nextInt(n)",
"random.nextInt",
"random",
"n",
"temp=a[oi];",
"temp",
"a[oi]",
"a",
"oi",
"a[oi]=a[i]",
"a[oi]",
"a",
"oi",
"a[i]",
"a",
"i",
"a[i]=temp",
"a[i]",
"a",
"i",
"temp",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"int[] a",
"a",
"static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] nextArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }",
"FastScanner",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st=new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"next",
"{\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st=new StringTokenizer(br.readLine());\n }",
"st=new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] nextArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }",
"nextArray",
"{\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }",
"int[] a=new int[n];",
"a",
"new int[n]",
"n",
"for (int i=0; i<n; i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main{\n\n public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n long D=fs.nextLong();\n int ans=0;\n// PrintWriter out=new PrintWriter(System.out);\n for (int tt=0; tt<T; tt++) {\n //solve\n long x=fs.nextLong();\n long y=fs.nextLong();\n long distance=x*x+y*y;\n if(distance<=D*D){\n ans++;\n }\n }\n System.out.println(ans);\n\n\n }\n\n static final Random random=new Random();\n\n static void ruffleSort(int[] a) {\n int n=a.length;//shuffle, then sort\n for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }\n Arrays.sort(a);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] nextArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n\n}",
"public class Main{\n\n public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n long D=fs.nextLong();\n int ans=0;\n// PrintWriter out=new PrintWriter(System.out);\n for (int tt=0; tt<T; tt++) {\n //solve\n long x=fs.nextLong();\n long y=fs.nextLong();\n long distance=x*x+y*y;\n if(distance<=D*D){\n ans++;\n }\n }\n System.out.println(ans);\n\n\n }\n\n static final Random random=new Random();\n\n static void ruffleSort(int[] a) {\n int n=a.length;//shuffle, then sort\n for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }\n Arrays.sort(a);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] nextArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Random;
import java.util.StringTokenizer;
/*
1
4
0011
*/
public class Main{
public static void main(String[] args) {
FastScanner fs=new FastScanner();
int T=fs.nextInt();
long D=fs.nextLong();
int ans=0;
// PrintWriter out=new PrintWriter(System.out);
for (int tt=0; tt<T; tt++) {
//solve
long x=fs.nextLong();
long y=fs.nextLong();
long distance=x*x+y*y;
if(distance<=D*D){
ans++;
}
}
System.out.println(ans);
}
static final Random random=new Random();
static void ruffleSort(int[] a) {
int n=a.length;//shuffle, then sort
for (int i=0; i<n; i++) {
int oi=random.nextInt(n), temp=a[oi];
a[oi]=a[i]; a[i]=temp;
}
Arrays.sort(a);
}
static class FastScanner {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=new StringTokenizer("");
String next() {
while (!st.hasMoreTokens())
try {
st=new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
int[] nextArray(int n) {
int[] a=new int[n];
for (int i=0; i<n; i++) a[i]=nextInt();
return a;
}
long nextLong() {
return Long.parseLong(next());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
41,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
41,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
118,
11
],
[
118,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
25,
30
],
[
22,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
22,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
14,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
50,
52
],
[
14,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
73,
78
],
[
70,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
84,
86
],
[
70,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
65,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
101,
103
],
[
65,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
14,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
12,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport static java.lang.System.out;\n\npublic class Main{\n public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int N;\n long D;\n {String[] a = in.readLine().split(\" \"); N = Integer.parseInt(a[0]); D = Long.parseLong(a[1]);}\n D *= D;\n int ans = 0;\n for (int i = 0; i < N; i++) {\n long x, y; {String[] a = in.readLine().split(\" \"); x = Long.parseLong(a[0]); y = Long.parseLong(a[1]);}\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }\n out.println(ans);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import static java.lang.System.out;",
"import static java.lang.System.out;",
"import static java.lang.System.out;",
"public class Main{\n public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int N;\n long D;\n {String[] a = in.readLine().split(\" \"); N = Integer.parseInt(a[0]); D = Long.parseLong(a[1]);}\n D *= D;\n int ans = 0;\n for (int i = 0; i < N; i++) {\n long x, y; {String[] a = in.readLine().split(\" \"); x = Long.parseLong(a[0]); y = Long.parseLong(a[1]);}\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }\n out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int N;\n long D;\n {String[] a = in.readLine().split(\" \"); N = Integer.parseInt(a[0]); D = Long.parseLong(a[1]);}\n D *= D;\n int ans = 0;\n for (int i = 0; i < N; i++) {\n long x, y; {String[] a = in.readLine().split(\" \"); x = Long.parseLong(a[0]); y = Long.parseLong(a[1]);}\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }\n out.println(ans);\n }",
"main",
"{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int N;\n long D;\n {String[] a = in.readLine().split(\" \"); N = Integer.parseInt(a[0]); D = Long.parseLong(a[1]);}\n D *= D;\n int ans = 0;\n for (int i = 0; i < N; i++) {\n long x, y; {String[] a = in.readLine().split(\" \"); x = Long.parseLong(a[0]); y = Long.parseLong(a[1]);}\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }\n out.println(ans);\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int N;",
"N",
"long D;",
"D",
"{String[] a = in.readLine().split(\" \"); N = Integer.parseInt(a[0]); D = Long.parseLong(a[1]);}",
"String[] a = in.readLine().split(\" \");",
"a",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"N = Integer.parseInt(a[0])",
"N",
"Integer.parseInt(a[0])",
"Integer.parseInt",
"Integer",
"a[0]",
"a",
"0",
"D = Long.parseLong(a[1])",
"D",
"Long.parseLong(a[1])",
"Long.parseLong",
"Long",
"a[1]",
"a",
"1",
"D *= D",
"D",
"D",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < N; i++) {\n long x, y; {String[] a = in.readLine().split(\" \"); x = Long.parseLong(a[0]); y = Long.parseLong(a[1]);}\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n long x, y; {String[] a = in.readLine().split(\" \"); x = Long.parseLong(a[0]); y = Long.parseLong(a[1]);}\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }",
"{\n long x, y; {String[] a = in.readLine().split(\" \"); x = Long.parseLong(a[0]); y = Long.parseLong(a[1]);}\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }",
"long x",
"x",
"y;",
"y",
"{String[] a = in.readLine().split(\" \"); x = Long.parseLong(a[0]); y = Long.parseLong(a[1]);}",
"String[] a = in.readLine().split(\" \");",
"a",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"x = Long.parseLong(a[0])",
"x",
"Long.parseLong(a[0])",
"Long.parseLong",
"Long",
"a[0]",
"a",
"0",
"y = Long.parseLong(a[1])",
"y",
"Long.parseLong(a[1])",
"Long.parseLong",
"Long",
"a[1]",
"a",
"1",
"long d = x * x + y * y;",
"d",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"if (d <= D) {\n ans++;\n }",
"d <= D",
"d",
"D",
"{\n ans++;\n }",
"ans++",
"ans",
"out.println(ans)",
"out.println",
"out",
"ans",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int N;\n long D;\n {String[] a = in.readLine().split(\" \"); N = Integer.parseInt(a[0]); D = Long.parseLong(a[1]);}\n D *= D;\n int ans = 0;\n for (int i = 0; i < N; i++) {\n long x, y; {String[] a = in.readLine().split(\" \"); x = Long.parseLong(a[0]); y = Long.parseLong(a[1]);}\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }\n out.println(ans);\n }\n}",
"public class Main{\n public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int N;\n long D;\n {String[] a = in.readLine().split(\" \"); N = Integer.parseInt(a[0]); D = Long.parseLong(a[1]);}\n D *= D;\n int ans = 0;\n for (int i = 0; i < N; i++) {\n long x, y; {String[] a = in.readLine().split(\" \"); x = Long.parseLong(a[0]); y = Long.parseLong(a[1]);}\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }\n out.println(ans);\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
import static java.lang.System.out;
public class Main{
public static void main(String[] args) throws Exception {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int N;
long D;
{String[] a = in.readLine().split(" "); N = Integer.parseInt(a[0]); D = Long.parseLong(a[1]);}
D *= D;
int ans = 0;
for (int i = 0; i < N; i++) {
long x, y; {String[] a = in.readLine().split(" "); x = Long.parseLong(a[0]); y = Long.parseLong(a[1]);}
long d = x * x + y * y;
if (d <= D) {
ans++;
}
}
out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
29,
17,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
29,
17,
41,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
14,
2,
2,
2,
13,
2,
13,
17,
17,
2,
2,
13,
2,
13,
17,
17,
30,
29,
17,
29,
17,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
4,
13,
13,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
13,
0,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
13,
18,
13,
13,
23,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
420,
8
],
[
420,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
11,
37
],
[
37,
38
],
[
37,
39
],
[
11,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
52,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
11,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
11,
85
],
[
85,
86
],
[
86,
87
],
[
9,
88
],
[
88,
89
],
[
420,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
92,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
92,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
109,
119
],
[
119,
120
],
[
120,
121
],
[
109,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
90,
132
],
[
132,
133
],
[
420,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
137,
148
],
[
149,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
155,
156
],
[
134,
157
],
[
157,
158
],
[
134,
159
],
[
159,
160
],
[
134,
161
],
[
161,
162
],
[
420,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
171,
172
],
[
171,
173
],
[
166,
174
],
[
174,
175
],
[
175,
176
],
[
166,
177
],
[
178,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
163,
186
],
[
186,
187
],
[
163,
188
],
[
188,
189
],
[
163,
190
],
[
190,
191
],
[
420,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
199,
200
],
[
200,
201
],
[
195,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
207,
208
],
[
207,
209
],
[
202,
210
],
[
210,
211
],
[
211,
212
],
[
202,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
214,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
213,
225
],
[
225,
226
],
[
226,
227
],
[
194,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
231,
234
],
[
230,
235
],
[
194,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
236,
241
],
[
241,
242
],
[
241,
243
],
[
236,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
236,
248
],
[
249,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
255,
257
],
[
252,
258
],
[
251,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
262,
264
],
[
259,
265
],
[
250,
266
],
[
266,
267
],
[
267,
268
],
[
194,
269
],
[
269,
270
],
[
192,
271
],
[
271,
272
],
[
420,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
277,
281
],
[
277,
282
],
[
282,
283
],
[
282,
284
],
[
282,
285
],
[
285,
286
],
[
285,
287
],
[
273,
288
],
[
288,
289
],
[
273,
290
],
[
290,
291
],
[
420,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
299,
301
],
[
299,
302
],
[
296,
303
],
[
292,
304
],
[
304,
305
],
[
292,
306
],
[
306,
307
],
[
420,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
310,
312
],
[
308,
313
],
[
313,
314
],
[
313,
315
],
[
308,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
322,
323
],
[
319,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
325,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
318,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
308,
340
],
[
340,
341
],
[
340,
342
],
[
342,
343
],
[
343,
344
],
[
344,
345
],
[
345,
346
],
[
344,
347
],
[
347,
348
],
[
308,
349
],
[
349,
350
],
[
349,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
351,
356
],
[
356,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
356,
361
],
[
361,
362
],
[
361,
363
],
[
356,
364
],
[
364,
365
],
[
365,
366
],
[
356,
367
],
[
368,
368
],
[
368,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
369,
373
],
[
373,
374
],
[
351,
375
],
[
375,
376
],
[
349,
377
],
[
377,
378
],
[
308,
379
],
[
379,
380
],
[
379,
381
],
[
381,
382
],
[
382,
383
],
[
383,
384
],
[
384,
385
],
[
383,
386
],
[
386,
387
],
[
420,
388
],
[
388,
389
],
[
388,
390
],
[
390,
391
],
[
388,
392
],
[
392,
393
],
[
388,
394
],
[
394,
395
],
[
394,
396
],
[
396,
397
],
[
397,
398
],
[
397,
399
],
[
396,
400
],
[
400,
401
],
[
400,
402
],
[
394,
403
],
[
403,
404
],
[
394,
405
],
[
405,
406
],
[
388,
407
],
[
407,
408
],
[
407,
409
],
[
409,
410
],
[
410,
411
],
[
411,
412
],
[
411,
413
],
[
413,
414
],
[
413,
415
],
[
407,
416
],
[
416,
417
],
[
388,
418
],
[
0,
419
],
[
419,
420
],
[
419,
421
]
]
| [
"\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n\n //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n FastScanner fs = new FastScanner();\n long d, x, y, total = 0;\n int n = fs.nextInt();\n d = fs.nextLong();\n d *= d;\n for (int i = 0; i < n; i++) {\n x = fs.nextInt();\n y = fs.nextInt();\n long cal = (x * x) + (y * y);\n if (cal <= d) {\n total++;\n }\n }\n System.out.println(total);\n bw.flush();\n }\n//==============================================//\n//==============================================//\n\n static void sort(int[] a) {\n ArrayList<Integer> l = new ArrayList<>();\n for (int i : a) {\n l.add(i);\n }\n Collections.sort(l);\n for (int i = 0; i < a.length; i++) {\n a[i] = l.get(i);\n }\n }\n\n static class FastScanner {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n static class Pair implements Comparable<Pair> {\n\n int a, b;\n\n public Pair(int x, int y) {\n a = x;\n b = y;\n }\n\n @Override\n public int compareTo(Pair p) {\n return a - p.a;\n }\n }\n\n static void forl_0(int n, int[] array, Scanner sc) {\n for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }\n }\n\n static void forl_1(int n, int[] array, Scanner sc) {\n for (int i = 1; i <= n; i++) {\n array[i] = sc.nextInt();\n }\n }\n\n static boolean isPrime(long n) {\n if (n < 2) {\n return false;\n } else if (n == 2 || n == 3) {\n return true;\n } else if (n % 2 == 0 || n % 3 == 0) {\n return false;\n }\n long sqrtN = (long) Math.sqrt(n) + 1;\n for (long i = 6L; i <= sqrtN; i += 6) {\n if (n % (i - 1) == 0 || n % (i + 1) == 0) {\n return false;\n }\n }\n return true;\n }\n\n public static long gcd(long a, long b) {\n return (b == 0) ? a : gcd(b, a % b);\n }\n\n public static long lcm(long a, long b) {\n return a / gcd(a, b) * b;\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n FastScanner fs = new FastScanner();\n long d, x, y, total = 0;\n int n = fs.nextInt();\n d = fs.nextLong();\n d *= d;\n for (int i = 0; i < n; i++) {\n x = fs.nextInt();\n y = fs.nextInt();\n long cal = (x * x) + (y * y);\n if (cal <= d) {\n total++;\n }\n }\n System.out.println(total);\n bw.flush();\n }\n//==============================================//\n//==============================================//\n\n static void sort(int[] a) {\n ArrayList<Integer> l = new ArrayList<>();\n for (int i : a) {\n l.add(i);\n }\n Collections.sort(l);\n for (int i = 0; i < a.length; i++) {\n a[i] = l.get(i);\n }\n }\n\n static class FastScanner {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n static class Pair implements Comparable<Pair> {\n\n int a, b;\n\n public Pair(int x, int y) {\n a = x;\n b = y;\n }\n\n @Override\n public int compareTo(Pair p) {\n return a - p.a;\n }\n }\n\n static void forl_0(int n, int[] array, Scanner sc) {\n for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }\n }\n\n static void forl_1(int n, int[] array, Scanner sc) {\n for (int i = 1; i <= n; i++) {\n array[i] = sc.nextInt();\n }\n }\n\n static boolean isPrime(long n) {\n if (n < 2) {\n return false;\n } else if (n == 2 || n == 3) {\n return true;\n } else if (n % 2 == 0 || n % 3 == 0) {\n return false;\n }\n long sqrtN = (long) Math.sqrt(n) + 1;\n for (long i = 6L; i <= sqrtN; i += 6) {\n if (n % (i - 1) == 0 || n % (i + 1) == 0) {\n return false;\n }\n }\n return true;\n }\n\n public static long gcd(long a, long b) {\n return (b == 0) ? a : gcd(b, a % b);\n }\n\n public static long lcm(long a, long b) {\n return a / gcd(a, b) * b;\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n FastScanner fs = new FastScanner();\n long d, x, y, total = 0;\n int n = fs.nextInt();\n d = fs.nextLong();\n d *= d;\n for (int i = 0; i < n; i++) {\n x = fs.nextInt();\n y = fs.nextInt();\n long cal = (x * x) + (y * y);\n if (cal <= d) {\n total++;\n }\n }\n System.out.println(total);\n bw.flush();\n }",
"main",
"{\n\n //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n FastScanner fs = new FastScanner();\n long d, x, y, total = 0;\n int n = fs.nextInt();\n d = fs.nextLong();\n d *= d;\n for (int i = 0; i < n; i++) {\n x = fs.nextInt();\n y = fs.nextInt();\n long cal = (x * x) + (y * y);\n if (cal <= d) {\n total++;\n }\n }\n System.out.println(total);\n bw.flush();\n }",
"BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));",
"bw",
"new BufferedWriter(new OutputStreamWriter(System.out))",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"long d",
"d",
"x",
"x",
"y",
"y",
"total = 0;",
"total",
"0",
"int n = fs.nextInt();",
"n",
"fs.nextInt()",
"fs.nextInt",
"fs",
"d = fs.nextLong()",
"d",
"fs.nextLong()",
"fs.nextLong",
"fs",
"d *= d",
"d",
"d",
"for (int i = 0; i < n; i++) {\n x = fs.nextInt();\n y = fs.nextInt();\n long cal = (x * x) + (y * y);\n if (cal <= d) {\n total++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n x = fs.nextInt();\n y = fs.nextInt();\n long cal = (x * x) + (y * y);\n if (cal <= d) {\n total++;\n }\n }",
"{\n x = fs.nextInt();\n y = fs.nextInt();\n long cal = (x * x) + (y * y);\n if (cal <= d) {\n total++;\n }\n }",
"x = fs.nextInt()",
"x",
"fs.nextInt()",
"fs.nextInt",
"fs",
"y = fs.nextInt()",
"y",
"fs.nextInt()",
"fs.nextInt",
"fs",
"long cal = (x * x) + (y * y);",
"cal",
"(x * x) + (y * y)",
"(x * x)",
"x",
"x",
"(y * y)",
"y",
"y",
"if (cal <= d) {\n total++;\n }",
"cal <= d",
"cal",
"d",
"{\n total++;\n }",
"total++",
"total",
"System.out.println(total)",
"System.out.println",
"System.out",
"System",
"System.out",
"total",
"bw.flush()",
"bw.flush",
"bw",
"String[] args",
"args",
"static void sort(int[] a) {\n ArrayList<Integer> l = new ArrayList<>();\n for (int i : a) {\n l.add(i);\n }\n Collections.sort(l);\n for (int i = 0; i < a.length; i++) {\n a[i] = l.get(i);\n }\n }",
"sort",
"{\n ArrayList<Integer> l = new ArrayList<>();\n for (int i : a) {\n l.add(i);\n }\n Collections.sort(l);\n for (int i = 0; i < a.length; i++) {\n a[i] = l.get(i);\n }\n }",
"ArrayList<Integer> l = new ArrayList<>();",
"l",
"new ArrayList<>()",
"for (int i : a) {\n l.add(i);\n }",
"int i",
"a",
"{\n l.add(i);\n }",
"{\n l.add(i);\n }",
"l.add(i)",
"l.add",
"l",
"i",
"Collections.sort(l)",
"Collections.sort",
"Collections",
"l",
"for (int i = 0; i < a.length; i++) {\n a[i] = l.get(i);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n a[i] = l.get(i);\n }",
"{\n a[i] = l.get(i);\n }",
"a[i] = l.get(i)",
"a[i]",
"a",
"i",
"l.get(i)",
"l.get",
"l",
"i",
"int[] a",
"a",
"static void forl_0(int n, int[] array, Scanner sc) {\n for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }\n }",
"forl_0",
"{\n for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }\n }",
"for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n array[i] = sc.nextInt();\n }",
"{\n array[i] = sc.nextInt();\n }",
"array[i] = sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int n",
"n",
"int[] array",
"array",
"Scanner sc",
"sc",
"static void forl_1(int n, int[] array, Scanner sc) {\n for (int i = 1; i <= n; i++) {\n array[i] = sc.nextInt();\n }\n }",
"forl_1",
"{\n for (int i = 1; i <= n; i++) {\n array[i] = sc.nextInt();\n }\n }",
"for (int i = 1; i <= n; i++) {\n array[i] = sc.nextInt();\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n array[i] = sc.nextInt();\n }",
"{\n array[i] = sc.nextInt();\n }",
"array[i] = sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int n",
"n",
"int[] array",
"array",
"Scanner sc",
"sc",
"static boolean isPrime(long n) {\n if (n < 2) {\n return false;\n } else if (n == 2 || n == 3) {\n return true;\n } else if (n % 2 == 0 || n % 3 == 0) {\n return false;\n }\n long sqrtN = (long) Math.sqrt(n) + 1;\n for (long i = 6L; i <= sqrtN; i += 6) {\n if (n % (i - 1) == 0 || n % (i + 1) == 0) {\n return false;\n }\n }\n return true;\n }",
"isPrime",
"{\n if (n < 2) {\n return false;\n } else if (n == 2 || n == 3) {\n return true;\n } else if (n % 2 == 0 || n % 3 == 0) {\n return false;\n }\n long sqrtN = (long) Math.sqrt(n) + 1;\n for (long i = 6L; i <= sqrtN; i += 6) {\n if (n % (i - 1) == 0 || n % (i + 1) == 0) {\n return false;\n }\n }\n return true;\n }",
"if (n < 2) {\n return false;\n } else if (n == 2 || n == 3) {\n return true;\n } else if (n % 2 == 0 || n % 3 == 0) {\n return false;\n }",
"n < 2",
"n",
"2",
"{\n return false;\n }",
"return false;",
"false",
"if (n == 2 || n == 3) {\n return true;\n } else if (n % 2 == 0 || n % 3 == 0) {\n return false;\n }",
"n == 2 || n == 3",
"n == 2",
"n",
"2",
"n == 3",
"n",
"3",
"{\n return true;\n }",
"return true;",
"true",
"if (n % 2 == 0 || n % 3 == 0) {\n return false;\n }",
"n % 2 == 0 || n % 3 == 0",
"n % 2 == 0",
"n % 2",
"n",
"2",
"0",
"n % 3 == 0",
"n % 3",
"n",
"3",
"0",
"{\n return false;\n }",
"return false;",
"false",
"long sqrtN = (long) Math.sqrt(n) + 1;",
"sqrtN",
"(long) Math.sqrt(n) + 1",
"(long) Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"1",
"for (long i = 6L; i <= sqrtN; i += 6) {\n if (n % (i - 1) == 0 || n % (i + 1) == 0) {\n return false;\n }\n }",
"long i = 6L;",
"long i = 6L;",
"i",
"6L",
"i <= sqrtN",
"i",
"sqrtN",
"i += 6",
"i += 6",
"i",
"6",
"{\n if (n % (i - 1) == 0 || n % (i + 1) == 0) {\n return false;\n }\n }",
"{\n if (n % (i - 1) == 0 || n % (i + 1) == 0) {\n return false;\n }\n }",
"if (n % (i - 1) == 0 || n % (i + 1) == 0) {\n return false;\n }",
"n % (i - 1) == 0 || n % (i + 1) == 0",
"n % (i - 1) == 0",
"n % (i - 1)",
"n",
"(i - 1)",
"i",
"1",
"0",
"n % (i + 1) == 0",
"n % (i + 1)",
"n",
"(i + 1)",
"i",
"1",
"0",
"{\n return false;\n }",
"return false;",
"false",
"return true;",
"true",
"long n",
"n",
"public static long gcd(long a, long b) {\n return (b == 0) ? a : gcd(b, a % b);\n }",
"gcd",
"{\n return (b == 0) ? a : gcd(b, a % b);\n }",
"return (b == 0) ? a : gcd(b, a % b);",
"(b == 0) ? a : gcd(b, a % b)",
"(b == 0)",
"b",
"0",
"a",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"public static long lcm(long a, long b) {\n return a / gcd(a, b) * b;\n }",
"lcm",
"{\n return a / gcd(a, b) * b;\n }",
"return a / gcd(a, b) * b;",
"a / gcd(a, b) * b",
"a / gcd(a, b)",
"a",
"gcd(a, b)",
"gcd",
"a",
"b",
"b",
"long a",
"a",
"long b",
"b",
"static class FastScanner {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }",
"FastScanner",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"readArray",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nextInt();\n }",
"{\n a[i] = nextInt();\n }",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"static class Pair implements Comparable<Pair> {\n\n int a, b;\n\n public Pair(int x, int y) {\n a = x;\n b = y;\n }\n\n @Override\n public int compareTo(Pair p) {\n return a - p.a;\n }\n }",
"Pair",
"int a",
"a",
"b;",
"b",
"public Pair(int x, int y) {\n a = x;\n b = y;\n }",
"Pair",
"{\n a = x;\n b = y;\n }",
"a = x",
"a",
"x",
"b = y",
"b",
"y",
"int x",
"x",
"int y",
"y",
"@Override\n public int compareTo(Pair p) {\n return a - p.a;\n }",
"compareTo",
"{\n return a - p.a;\n }",
"return a - p.a;",
"a - p.a",
"a",
"p.a",
"p",
"p.a",
"Pair p",
"p",
"Comparable",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n FastScanner fs = new FastScanner();\n long d, x, y, total = 0;\n int n = fs.nextInt();\n d = fs.nextLong();\n d *= d;\n for (int i = 0; i < n; i++) {\n x = fs.nextInt();\n y = fs.nextInt();\n long cal = (x * x) + (y * y);\n if (cal <= d) {\n total++;\n }\n }\n System.out.println(total);\n bw.flush();\n }\n//==============================================//\n//==============================================//\n\n static void sort(int[] a) {\n ArrayList<Integer> l = new ArrayList<>();\n for (int i : a) {\n l.add(i);\n }\n Collections.sort(l);\n for (int i = 0; i < a.length; i++) {\n a[i] = l.get(i);\n }\n }\n\n static class FastScanner {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n static class Pair implements Comparable<Pair> {\n\n int a, b;\n\n public Pair(int x, int y) {\n a = x;\n b = y;\n }\n\n @Override\n public int compareTo(Pair p) {\n return a - p.a;\n }\n }\n\n static void forl_0(int n, int[] array, Scanner sc) {\n for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }\n }\n\n static void forl_1(int n, int[] array, Scanner sc) {\n for (int i = 1; i <= n; i++) {\n array[i] = sc.nextInt();\n }\n }\n\n static boolean isPrime(long n) {\n if (n < 2) {\n return false;\n } else if (n == 2 || n == 3) {\n return true;\n } else if (n % 2 == 0 || n % 3 == 0) {\n return false;\n }\n long sqrtN = (long) Math.sqrt(n) + 1;\n for (long i = 6L; i <= sqrtN; i += 6) {\n if (n % (i - 1) == 0 || n % (i + 1) == 0) {\n return false;\n }\n }\n return true;\n }\n\n public static long gcd(long a, long b) {\n return (b == 0) ? a : gcd(b, a % b);\n }\n\n public static long lcm(long a, long b) {\n return a / gcd(a, b) * b;\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n FastScanner fs = new FastScanner();\n long d, x, y, total = 0;\n int n = fs.nextInt();\n d = fs.nextLong();\n d *= d;\n for (int i = 0; i < n; i++) {\n x = fs.nextInt();\n y = fs.nextInt();\n long cal = (x * x) + (y * y);\n if (cal <= d) {\n total++;\n }\n }\n System.out.println(total);\n bw.flush();\n }\n//==============================================//\n//==============================================//\n\n static void sort(int[] a) {\n ArrayList<Integer> l = new ArrayList<>();\n for (int i : a) {\n l.add(i);\n }\n Collections.sort(l);\n for (int i = 0; i < a.length; i++) {\n a[i] = l.get(i);\n }\n }\n\n static class FastScanner {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n static class Pair implements Comparable<Pair> {\n\n int a, b;\n\n public Pair(int x, int y) {\n a = x;\n b = y;\n }\n\n @Override\n public int compareTo(Pair p) {\n return a - p.a;\n }\n }\n\n static void forl_0(int n, int[] array, Scanner sc) {\n for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }\n }\n\n static void forl_1(int n, int[] array, Scanner sc) {\n for (int i = 1; i <= n; i++) {\n array[i] = sc.nextInt();\n }\n }\n\n static boolean isPrime(long n) {\n if (n < 2) {\n return false;\n } else if (n == 2 || n == 3) {\n return true;\n } else if (n % 2 == 0 || n % 3 == 0) {\n return false;\n }\n long sqrtN = (long) Math.sqrt(n) + 1;\n for (long i = 6L; i <= sqrtN; i += 6) {\n if (n % (i - 1) == 0 || n % (i + 1) == 0) {\n return false;\n }\n }\n return true;\n }\n\n public static long gcd(long a, long b) {\n return (b == 0) ? a : gcd(b, a % b);\n }\n\n public static long lcm(long a, long b) {\n return a / gcd(a, b) * b;\n }\n}",
"Main"
]
|
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
FastScanner fs = new FastScanner();
long d, x, y, total = 0;
int n = fs.nextInt();
d = fs.nextLong();
d *= d;
for (int i = 0; i < n; i++) {
x = fs.nextInt();
y = fs.nextInt();
long cal = (x * x) + (y * y);
if (cal <= d) {
total++;
}
}
System.out.println(total);
bw.flush();
}
//==============================================//
//==============================================//
static void sort(int[] a) {
ArrayList<Integer> l = new ArrayList<>();
for (int i : a) {
l.add(i);
}
Collections.sort(l);
for (int i = 0; i < a.length; i++) {
a[i] = l.get(i);
}
}
static class FastScanner {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer("");
String next() {
while (!st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
int[] readArray(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = nextInt();
}
return a;
}
long nextLong() {
return Long.parseLong(next());
}
}
static class Pair implements Comparable<Pair> {
int a, b;
public Pair(int x, int y) {
a = x;
b = y;
}
@Override
public int compareTo(Pair p) {
return a - p.a;
}
}
static void forl_0(int n, int[] array, Scanner sc) {
for (int i = 0; i < n; i++) {
array[i] = sc.nextInt();
}
}
static void forl_1(int n, int[] array, Scanner sc) {
for (int i = 1; i <= n; i++) {
array[i] = sc.nextInt();
}
}
static boolean isPrime(long n) {
if (n < 2) {
return false;
} else if (n == 2 || n == 3) {
return true;
} else if (n % 2 == 0 || n % 3 == 0) {
return false;
}
long sqrtN = (long) Math.sqrt(n) + 1;
for (long i = 6L; i <= sqrtN; i += 6) {
if (n % (i - 1) == 0 || n % (i + 1) == 0) {
return false;
}
}
return true;
}
public static long gcd(long a, long b) {
return (b == 0) ? a : gcd(b, a % b);
}
public static long lcm(long a, long b) {
return a / gcd(a, b) * b;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
13,
41,
13,
17,
41,
13,
41,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
14,
2,
13,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
4,
18,
18,
13,
13,
17,
30,
0,
13,
18,
13,
13,
0,
13,
20,
0,
13,
20,
4,
13,
12,
13,
30,
4,
18,
20,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
632,
32
],
[
632,
33
],
[
33,
34
],
[
632,
35
],
[
35,
36
],
[
35,
37
],
[
632,
38
],
[
38,
39
],
[
38,
40
],
[
632,
41
],
[
41,
42
],
[
41,
43
],
[
632,
44
],
[
44,
45
],
[
44,
46
],
[
632,
47
],
[
47,
48
],
[
632,
49
],
[
49,
50
],
[
632,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
53,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
64,
65
],
[
64,
66
],
[
53,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
79,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
99,
101
],
[
90,
102
],
[
102,
103
],
[
53,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
632,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
118,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
117,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
113,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
112,
141
],
[
141,
142
],
[
141,
143
],
[
112,
144
],
[
144,
145
],
[
144,
146
],
[
112,
147
],
[
147,
148
],
[
632,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
149,
155
],
[
155,
156
],
[
0,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
157,
161
],
[
161,
162
],
[
161,
163
],
[
157,
165
],
[
165,
166
],
[
157,
167
],
[
167,
168
],
[
157,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
169,
177
],
[
177,
178
],
[
157,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
182,
187
],
[
187,
188
],
[
181,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
197,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
206,
209
],
[
193,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
214,
215
],
[
215,
216
],
[
181,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
157,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
229,
227
],
[
239,
228
],
[
236,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
233,
234
],
[
233,
235
],
[
236,
236
],
[
236,
237
],
[
236,
238
],
[
239,
239
],
[
239,
240
],
[
239,
241
],
[
229,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
222,
246
],
[
246,
247
],
[
157,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
253,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
253,
257
],
[
257,
258
],
[
257,
259
],
[
253,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
248,
264
],
[
264,
265
],
[
157,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
270,
273
],
[
273,
274
],
[
157,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
277,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
282,
287
],
[
287,
288
],
[
287,
289
],
[
282,
290
],
[
290,
291
],
[
291,
292
],
[
282,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
294,
298
],
[
298,
299
],
[
277,
300
],
[
300,
301
],
[
275,
302
],
[
302,
303
],
[
157,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
306,
312
],
[
312,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
312,
317
],
[
317,
318
],
[
317,
319
],
[
312,
320
],
[
320,
321
],
[
321,
322
],
[
312,
323
],
[
324,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
329,
330
],
[
329,
331
],
[
306,
332
],
[
332,
333
],
[
304,
334
],
[
334,
335
],
[
304,
336
],
[
336,
337
],
[
157,
338
],
[
338,
339
],
[
338,
340
],
[
340,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
342,
345
],
[
345,
346
],
[
157,
347
],
[
347,
348
],
[
347,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
349,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
356,
358
],
[
354,
359
],
[
359,
360
],
[
359,
361
],
[
354,
362
],
[
362,
363
],
[
363,
364
],
[
354,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
367,
369
],
[
366,
370
],
[
370,
371
],
[
349,
372
],
[
372,
373
],
[
347,
374
],
[
374,
375
],
[
157,
376
],
[
376,
377
],
[
376,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
378,
384
],
[
384,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
384,
389
],
[
389,
390
],
[
389,
391
],
[
384,
392
],
[
392,
393
],
[
393,
394
],
[
384,
395
],
[
396,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
398,
400
],
[
397,
401
],
[
401,
402
],
[
401,
403
],
[
378,
404
],
[
404,
405
],
[
376,
406
],
[
406,
407
],
[
376,
408
],
[
408,
409
],
[
157,
410
],
[
410,
411
],
[
410,
412
],
[
412,
413
],
[
413,
414
],
[
414,
415
],
[
415,
416
],
[
414,
417
],
[
417,
418
],
[
157,
419
],
[
419,
420
],
[
419,
421
],
[
421,
422
],
[
422,
423
],
[
422,
424
],
[
421,
426
],
[
426,
427
],
[
427,
428
],
[
428,
429
],
[
428,
430
],
[
426,
431
],
[
431,
432
],
[
431,
433
],
[
426,
434
],
[
434,
435
],
[
435,
436
],
[
426,
437
],
[
437,
438
],
[
438,
439
],
[
439,
440
],
[
439,
441
],
[
438,
442
],
[
442,
443
],
[
421,
444
],
[
444,
445
],
[
419,
446
],
[
446,
447
],
[
157,
448
],
[
448,
449
],
[
448,
450
],
[
450,
451
],
[
451,
452
],
[
451,
453
],
[
450,
456
],
[
456,
457
],
[
457,
458
],
[
458,
459
],
[
458,
460
],
[
456,
461
],
[
461,
462
],
[
461,
463
],
[
456,
464
],
[
464,
465
],
[
465,
466
],
[
456,
467
],
[
468,
468
],
[
468,
469
],
[
469,
470
],
[
470,
471
],
[
470,
472
],
[
469,
473
],
[
473,
474
],
[
473,
475
],
[
450,
476
],
[
476,
477
],
[
448,
478
],
[
478,
479
],
[
448,
480
],
[
480,
481
],
[
157,
482
],
[
482,
483
],
[
482,
484
],
[
484,
485
],
[
485,
486
],
[
485,
487
],
[
487,
488
],
[
484,
489
],
[
489,
490
],
[
490,
491
],
[
490,
492
],
[
489,
493
],
[
493,
494
],
[
493,
495
],
[
495,
496
],
[
484,
497
],
[
497,
498
],
[
497,
499
],
[
484,
500
],
[
500,
501
],
[
501,
502
],
[
502,
503
],
[
502,
504
],
[
500,
505
],
[
505,
506
],
[
506,
507
],
[
507,
508
],
[
506,
509
],
[
505,
510
],
[
510,
511
],
[
510,
512
],
[
512,
513
],
[
484,
514
],
[
514,
515
],
[
515,
516
],
[
516,
517
],
[
157,
518
],
[
518,
519
],
[
518,
520
],
[
520,
521
],
[
521,
522
],
[
521,
523
],
[
520,
525
],
[
525,
526
],
[
526,
527
],
[
527,
528
],
[
527,
529
],
[
525,
530
],
[
530,
531
],
[
530,
532
],
[
525,
533
],
[
533,
534
],
[
534,
535
],
[
525,
536
],
[
536,
537
],
[
537,
538
],
[
538,
539
],
[
538,
540
],
[
537,
541
],
[
541,
542
],
[
520,
543
],
[
543,
544
],
[
518,
545
],
[
545,
546
],
[
157,
547
],
[
547,
548
],
[
547,
549
],
[
549,
550
],
[
550,
551
],
[
550,
552
],
[
552,
553
],
[
549,
554
],
[
554,
555
],
[
555,
556
],
[
555,
557
],
[
554,
558
],
[
558,
559
],
[
558,
560
],
[
560,
561
],
[
549,
562
],
[
562,
563
],
[
562,
564
],
[
549,
565
],
[
565,
566
],
[
566,
567
],
[
567,
568
],
[
567,
569
],
[
565,
570
],
[
570,
571
],
[
571,
572
],
[
572,
573
],
[
571,
574
],
[
570,
575
],
[
575,
576
],
[
575,
577
],
[
577,
578
],
[
549,
579
],
[
579,
580
],
[
580,
581
],
[
581,
582
],
[
157,
583
],
[
583,
584
],
[
583,
585
],
[
585,
586
],
[
586,
587
],
[
586,
588
],
[
585,
591
],
[
591,
592
],
[
592,
593
],
[
593,
594
],
[
593,
595
],
[
591,
596
],
[
596,
597
],
[
596,
598
],
[
591,
599
],
[
599,
600
],
[
600,
601
],
[
591,
602
],
[
603,
603
],
[
603,
604
],
[
604,
605
],
[
605,
606
],
[
606,
607
],
[
606,
608
],
[
604,
609
],
[
609,
610
],
[
609,
611
],
[
604,
612
],
[
612,
613
],
[
613,
614
],
[
604,
615
],
[
616,
616
],
[
616,
617
],
[
617,
618
],
[
618,
619
],
[
619,
620
],
[
619,
621
],
[
618,
622
],
[
617,
623
],
[
623,
624
],
[
585,
625
],
[
625,
626
],
[
583,
627
],
[
627,
628
],
[
583,
629
],
[
629,
630
],
[
0,
631
],
[
631,
632
],
[
631,
633
]
]
| [
"import java.io.IOException;\nimport java.util.ArrayList;\nimport java.io.FileNotFoundException;\nimport java.io.PrintWriter;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.io.FileInputStream;\nimport java.util.InputMismatchException;\nimport java.util.Set;\nimport java.io.InputStream;\n\npublic class Main {\n InputStream is;\n\n int __t__ = 1;\n int __f__ = 0;\n int __FILE_DEBUG_FLAG__ = __f__;\n String __DEBUG_FILE_NAME__ = \"src/main/java/F5\";\n\n FastScanner in;\n PrintWriter out;\n\n public void solve() {\n int n = in.nextInt();\n long d = in.nextInt();\n int res = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n if (x * x + y * y <= d * d) res++;\n }\n System.out.println(res);\n }\n\n public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }\n\n public static void main(final String[] args) {\n new Main().run();\n }\n}\n\n\nclass FastScanner {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public FastScanner(InputStream stream) {\n this.stream = stream;\n // stream = new FileInputStream(new File(\"dec.in\"));\n }\n\n int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public boolean isEndline(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] array = new int[n];\n for (int i = 0; i < n; i++)\n array[i] = nextInt();\n\n return array;\n }\n\n public int[][] nextIntMap(int n, int m) {\n int[][] map = new int[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }\n return map;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] nextLongArray(int n) {\n long[] array = new long[n];\n for (int i = 0; i < n; i++)\n array[i] = nextLong();\n\n return array;\n }\n\n public long[][] nextLongMap(int n, int m) {\n long[][] map = new long[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }\n return map;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public double[] nextDoubleArray(int n) {\n double[] array = new double[n];\n for (int i = 0; i < n; i++)\n array[i] = nextDouble();\n\n return array;\n }\n\n public double[][] nextDoubleMap(int n, int m) {\n double[][] map = new double[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }\n return map;\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String[] nextStringArray(int n) {\n String[] array = new String[n];\n for (int i = 0; i < n; i++)\n array[i] = next();\n\n return array;\n }\n\n public String nextLine() {\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));\n return res.toString();\n }\n\n public int[][] nextPackedIntArrays(int packN, int size) {\n int[][] res = new int[packN][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }\n return res;\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.io.FileNotFoundException;",
"FileNotFoundException",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.io.FileInputStream;",
"FileInputStream",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n InputStream is;\n\n int __t__ = 1;\n int __f__ = 0;\n int __FILE_DEBUG_FLAG__ = __f__;\n String __DEBUG_FILE_NAME__ = \"src/main/java/F5\";\n\n FastScanner in;\n PrintWriter out;\n\n public void solve() {\n int n = in.nextInt();\n long d = in.nextInt();\n int res = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n if (x * x + y * y <= d * d) res++;\n }\n System.out.println(res);\n }\n\n public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }\n\n public static void main(final String[] args) {\n new Main().run();\n }\n}",
"Main",
"InputStream is;",
"is",
"int __t__ = 1;",
"__t__",
"1",
"int __f__ = 0;",
"__f__",
"0",
"int __FILE_DEBUG_FLAG__ = __f__;",
"__FILE_DEBUG_FLAG__",
"__f__",
"String __DEBUG_FILE_NAME__ = \"src/main/java/F5\";",
"__DEBUG_FILE_NAME__",
"\"src/main/java/F5\"",
"FastScanner in;",
"in",
"PrintWriter out;",
"out",
"public void solve() {\n int n = in.nextInt();\n long d = in.nextInt();\n int res = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n if (x * x + y * y <= d * d) res++;\n }\n System.out.println(res);\n }",
"solve",
"{\n int n = in.nextInt();\n long d = in.nextInt();\n int res = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n if (x * x + y * y <= d * d) res++;\n }\n System.out.println(res);\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"long d = in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"int res = 0;",
"res",
"0",
"for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n if (x * x + y * y <= d * d) res++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long x = in.nextInt();\n long y = in.nextInt();\n if (x * x + y * y <= d * d) res++;\n }",
"{\n long x = in.nextInt();\n long y = in.nextInt();\n if (x * x + y * y <= d * d) res++;\n }",
"long x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"long y = in.nextInt();",
"y",
"in.nextInt()",
"in.nextInt",
"in",
"if (x * x + y * y <= d * d) res++;",
"x * x + y * y <= d * d",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"d * d",
"d",
"d",
"res++",
"res",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }",
"run",
"{\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }",
"if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }",
"__FILE_DEBUG_FLAG__ == __t__",
"__FILE_DEBUG_FLAG__",
"__t__",
"{\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n }",
"try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }",
"catch (FileNotFoundException e) {\n e.printStackTrace();\n }",
"FileNotFoundException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n }",
"is = new FileInputStream(__DEBUG_FILE_NAME__)",
"is",
"new FileInputStream(__DEBUG_FILE_NAME__)",
"System.out.println(\"FILE_INPUT!\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"FILE_INPUT!\"",
"{\n is = System.in;\n }",
"is = System.in",
"is",
"System.in",
"System",
"System.in",
"in = new FastScanner(is)",
"in",
"new FastScanner(is)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"public static void main(final String[] args) {\n new Main().run();\n }",
"main",
"{\n new Main().run();\n }",
"new Main().run()",
"new Main().run",
"new Main()",
"final String[] args",
"args",
"class FastScanner {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public FastScanner(InputStream stream) {\n this.stream = stream;\n // stream = new FileInputStream(new File(\"dec.in\"));\n }\n\n int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public boolean isEndline(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] array = new int[n];\n for (int i = 0; i < n; i++)\n array[i] = nextInt();\n\n return array;\n }\n\n public int[][] nextIntMap(int n, int m) {\n int[][] map = new int[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }\n return map;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] nextLongArray(int n) {\n long[] array = new long[n];\n for (int i = 0; i < n; i++)\n array[i] = nextLong();\n\n return array;\n }\n\n public long[][] nextLongMap(int n, int m) {\n long[][] map = new long[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }\n return map;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public double[] nextDoubleArray(int n) {\n double[] array = new double[n];\n for (int i = 0; i < n; i++)\n array[i] = nextDouble();\n\n return array;\n }\n\n public double[][] nextDoubleMap(int n, int m) {\n double[][] map = new double[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }\n return map;\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String[] nextStringArray(int n) {\n String[] array = new String[n];\n for (int i = 0; i < n; i++)\n array[i] = next();\n\n return array;\n }\n\n public String nextLine() {\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));\n return res.toString();\n }\n\n public int[][] nextPackedIntArrays(int packN, int size) {\n int[][] res = new int[packN][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }\n return res;\n }\n}",
"FastScanner",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"public FastScanner(InputStream stream) {\n this.stream = stream;\n // stream = new FileInputStream(new File(\"dec.in\"));\n }",
"FastScanner",
"{\n this.stream = stream;\n // stream = new FileInputStream(new File(\"dec.in\"));\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"if (numChars == -1)\n throw new InputMismatchException();",
"numChars == -1",
"numChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0)\n return -1;",
"numChars <= 0",
"numChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public boolean isEndline(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"isEndline",
"{\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"return c == '\\n' || c == '\\r' || c == -1;",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public int[] nextIntArray(int n) {\n int[] array = new int[n];\n for (int i = 0; i < n; i++)\n array[i] = nextInt();\n\n return array;\n }",
"nextIntArray",
"{\n int[] array = new int[n];\n for (int i = 0; i < n; i++)\n array[i] = nextInt();\n\n return array;\n }",
"int[] array = new int[n];",
"array",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n array[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"array[i] = nextInt();",
"array[i] = nextInt()",
"array[i]",
"array",
"i",
"nextInt()",
"nextInt",
"return array;",
"array",
"int n",
"n",
"public int[][] nextIntMap(int n, int m) {\n int[][] map = new int[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }\n return map;\n }",
"nextIntMap",
"{\n int[][] map = new int[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }\n return map;\n }",
"int[][] map = new int[n][m];",
"map",
"new int[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n map[i] = nextIntArray(m);\n }",
"{\n map[i] = nextIntArray(m);\n }",
"map[i] = nextIntArray(m)",
"map[i]",
"map",
"i",
"nextIntArray(m)",
"nextIntArray",
"m",
"return map;",
"map",
"int n",
"n",
"int m",
"m",
"public long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public long[] nextLongArray(int n) {\n long[] array = new long[n];\n for (int i = 0; i < n; i++)\n array[i] = nextLong();\n\n return array;\n }",
"nextLongArray",
"{\n long[] array = new long[n];\n for (int i = 0; i < n; i++)\n array[i] = nextLong();\n\n return array;\n }",
"long[] array = new long[n];",
"array",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n array[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"array[i] = nextLong();",
"array[i] = nextLong()",
"array[i]",
"array",
"i",
"nextLong()",
"nextLong",
"return array;",
"array",
"int n",
"n",
"public long[][] nextLongMap(int n, int m) {\n long[][] map = new long[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }\n return map;\n }",
"nextLongMap",
"{\n long[][] map = new long[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }\n return map;\n }",
"long[][] map = new long[n][m];",
"map",
"new long[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n map[i] = nextLongArray(m);\n }",
"{\n map[i] = nextLongArray(m);\n }",
"map[i] = nextLongArray(m)",
"map[i]",
"map",
"i",
"nextLongArray(m)",
"nextLongArray",
"m",
"return map;",
"map",
"int n",
"n",
"int m",
"m",
"public double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public double[] nextDoubleArray(int n) {\n double[] array = new double[n];\n for (int i = 0; i < n; i++)\n array[i] = nextDouble();\n\n return array;\n }",
"nextDoubleArray",
"{\n double[] array = new double[n];\n for (int i = 0; i < n; i++)\n array[i] = nextDouble();\n\n return array;\n }",
"double[] array = new double[n];",
"array",
"new double[n]",
"n",
"for (int i = 0; i < n; i++)\n array[i] = nextDouble();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"array[i] = nextDouble();",
"array[i] = nextDouble()",
"array[i]",
"array",
"i",
"nextDouble()",
"nextDouble",
"return array;",
"array",
"int n",
"n",
"public double[][] nextDoubleMap(int n, int m) {\n double[][] map = new double[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }\n return map;\n }",
"nextDoubleMap",
"{\n double[][] map = new double[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }\n return map;\n }",
"double[][] map = new double[n][m];",
"map",
"new double[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n map[i] = nextDoubleArray(m);\n }",
"{\n map[i] = nextDoubleArray(m);\n }",
"map[i] = nextDoubleArray(m)",
"map[i]",
"map",
"i",
"nextDoubleArray(m)",
"nextDoubleArray",
"m",
"return map;",
"map",
"int n",
"n",
"int m",
"m",
"public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"next",
"{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public String[] nextStringArray(int n) {\n String[] array = new String[n];\n for (int i = 0; i < n; i++)\n array[i] = next();\n\n return array;\n }",
"nextStringArray",
"{\n String[] array = new String[n];\n for (int i = 0; i < n; i++)\n array[i] = next();\n\n return array;\n }",
"String[] array = new String[n];",
"array",
"new String[n]",
"n",
"for (int i = 0; i < n; i++)\n array[i] = next();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"array[i] = next();",
"array[i] = next()",
"array[i]",
"array",
"i",
"next()",
"next",
"return array;",
"array",
"int n",
"n",
"public String nextLine() {\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));\n return res.toString();\n }",
"nextLine",
"{\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isEndline(c))\n c = read();",
"isEndline(c)",
"isEndline",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));",
"!isEndline(c)",
"isEndline(c)",
"isEndline",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public int[][] nextPackedIntArrays(int packN, int size) {\n int[][] res = new int[packN][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }\n return res;\n }",
"nextPackedIntArrays",
"{\n int[][] res = new int[packN][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }\n return res;\n }",
"int[][] res = new int[packN][size];",
"res",
"new int[packN][size]",
"packN",
"size",
"for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < size",
"i",
"size",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }",
"{\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }",
"for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < packN",
"j",
"packN",
"j++",
"j++",
"j",
"{\n res[j][i] = nextInt();\n }",
"{\n res[j][i] = nextInt();\n }",
"res[j][i] = nextInt()",
"res[j][i]",
"res[j]",
"res",
"j",
"i",
"nextInt()",
"nextInt",
"return res;",
"res",
"int packN",
"packN",
"int size",
"size",
"public class Main {\n InputStream is;\n\n int __t__ = 1;\n int __f__ = 0;\n int __FILE_DEBUG_FLAG__ = __f__;\n String __DEBUG_FILE_NAME__ = \"src/main/java/F5\";\n\n FastScanner in;\n PrintWriter out;\n\n public void solve() {\n int n = in.nextInt();\n long d = in.nextInt();\n int res = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n if (x * x + y * y <= d * d) res++;\n }\n System.out.println(res);\n }\n\n public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }\n\n public static void main(final String[] args) {\n new Main().run();\n }\n}",
"public class Main {\n InputStream is;\n\n int __t__ = 1;\n int __f__ = 0;\n int __FILE_DEBUG_FLAG__ = __f__;\n String __DEBUG_FILE_NAME__ = \"src/main/java/F5\";\n\n FastScanner in;\n PrintWriter out;\n\n public void solve() {\n int n = in.nextInt();\n long d = in.nextInt();\n int res = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n if (x * x + y * y <= d * d) res++;\n }\n System.out.println(res);\n }\n\n public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }\n\n public static void main(final String[] args) {\n new Main().run();\n }\n}",
"Main"
]
| import java.io.IOException;
import java.util.ArrayList;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.List;
import java.io.FileInputStream;
import java.util.InputMismatchException;
import java.util.Set;
import java.io.InputStream;
public class Main {
InputStream is;
int __t__ = 1;
int __f__ = 0;
int __FILE_DEBUG_FLAG__ = __f__;
String __DEBUG_FILE_NAME__ = "src/main/java/F5";
FastScanner in;
PrintWriter out;
public void solve() {
int n = in.nextInt();
long d = in.nextInt();
int res = 0;
for (int i = 0; i < n; i++) {
long x = in.nextInt();
long y = in.nextInt();
if (x * x + y * y <= d * d) res++;
}
System.out.println(res);
}
public void run() {
if (__FILE_DEBUG_FLAG__ == __t__) {
try {
is = new FileInputStream(__DEBUG_FILE_NAME__);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
System.out.println("FILE_INPUT!");
} else {
is = System.in;
}
in = new FastScanner(is);
out = new PrintWriter(System.out);
solve();
}
public static void main(final String[] args) {
new Main().run();
}
}
class FastScanner {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
public FastScanner(InputStream stream) {
this.stream = stream;
// stream = new FileInputStream(new File("dec.in"));
}
int read() {
if (numChars == -1)
throw new InputMismatchException();
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0)
return -1;
}
return buf[curChar++];
}
public boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public boolean isEndline(int c) {
return c == '\n' || c == '\r' || c == -1;
}
public int nextInt() {
return Integer.parseInt(next());
}
public int[] nextIntArray(int n) {
int[] array = new int[n];
for (int i = 0; i < n; i++)
array[i] = nextInt();
return array;
}
public int[][] nextIntMap(int n, int m) {
int[][] map = new int[n][m];
for (int i = 0; i < n; i++) {
map[i] = nextIntArray(m);
}
return map;
}
public long nextLong() {
return Long.parseLong(next());
}
public long[] nextLongArray(int n) {
long[] array = new long[n];
for (int i = 0; i < n; i++)
array[i] = nextLong();
return array;
}
public long[][] nextLongMap(int n, int m) {
long[][] map = new long[n][m];
for (int i = 0; i < n; i++) {
map[i] = nextLongArray(m);
}
return map;
}
public double nextDouble() {
return Double.parseDouble(next());
}
public double[] nextDoubleArray(int n) {
double[] array = new double[n];
for (int i = 0; i < n; i++)
array[i] = nextDouble();
return array;
}
public double[][] nextDoubleMap(int n, int m) {
double[][] map = new double[n][m];
for (int i = 0; i < n; i++) {
map[i] = nextDoubleArray(m);
}
return map;
}
public String next() {
int c = read();
while (isSpaceChar(c))
c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isSpaceChar(c));
return res.toString();
}
public String[] nextStringArray(int n) {
String[] array = new String[n];
for (int i = 0; i < n; i++)
array[i] = next();
return array;
}
public String nextLine() {
int c = read();
while (isEndline(c))
c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isEndline(c));
return res.toString();
}
public int[][] nextPackedIntArrays(int packN, int size) {
int[][] res = new int[packN][size];
for (int i = 0; i < size; i++) {
for (int j = 0; j < packN; j++) {
res[j][i] = nextInt();
}
}
return res;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
4,
18,
13,
2,
18,
13,
13,
18,
13,
13,
14,
2,
18,
13,
13,
13,
30,
0,
13,
2,
13,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
133,
5
],
[
133,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
57,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
57,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
91,
93
],
[
57,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
57,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
108,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
8,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
6,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int c = 0;\n int N = sc.nextInt();\n int D = sc.nextInt();\n double[] X = new double[N];\n double[] Y = new double[N];\n double[] X2 = new double[N];\n double[] Y2 = new double[N];\n double[] K = new double[N];\n for (int i = 0; i < N; i++) {\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n X2[i] = X[i]*X[i];\n Y2[i] = Y[i]*Y[i];\n K[i] = Math.sqrt(X2[i] + Y2[i]);\n if (K[i] <= D) {\n c = c + 1;\n } else {\n c = c;\n }\n }\n System.out.println(c);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int c = 0;\n int N = sc.nextInt();\n int D = sc.nextInt();\n double[] X = new double[N];\n double[] Y = new double[N];\n double[] X2 = new double[N];\n double[] Y2 = new double[N];\n double[] K = new double[N];\n for (int i = 0; i < N; i++) {\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n X2[i] = X[i]*X[i];\n Y2[i] = Y[i]*Y[i];\n K[i] = Math.sqrt(X2[i] + Y2[i]);\n if (K[i] <= D) {\n c = c + 1;\n } else {\n c = c;\n }\n }\n System.out.println(c);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int c = 0;\n int N = sc.nextInt();\n int D = sc.nextInt();\n double[] X = new double[N];\n double[] Y = new double[N];\n double[] X2 = new double[N];\n double[] Y2 = new double[N];\n double[] K = new double[N];\n for (int i = 0; i < N; i++) {\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n X2[i] = X[i]*X[i];\n Y2[i] = Y[i]*Y[i];\n K[i] = Math.sqrt(X2[i] + Y2[i]);\n if (K[i] <= D) {\n c = c + 1;\n } else {\n c = c;\n }\n }\n System.out.println(c);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int c = 0;\n int N = sc.nextInt();\n int D = sc.nextInt();\n double[] X = new double[N];\n double[] Y = new double[N];\n double[] X2 = new double[N];\n double[] Y2 = new double[N];\n double[] K = new double[N];\n for (int i = 0; i < N; i++) {\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n X2[i] = X[i]*X[i];\n Y2[i] = Y[i]*Y[i];\n K[i] = Math.sqrt(X2[i] + Y2[i]);\n if (K[i] <= D) {\n c = c + 1;\n } else {\n c = c;\n }\n }\n System.out.println(c);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int c = 0;",
"c",
"0",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int D = sc.nextInt();",
"D",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double[] X = new double[N];",
"X",
"new double[N]",
"N",
"double[] Y = new double[N];",
"Y",
"new double[N]",
"N",
"double[] X2 = new double[N];",
"X2",
"new double[N]",
"N",
"double[] Y2 = new double[N];",
"Y2",
"new double[N]",
"N",
"double[] K = new double[N];",
"K",
"new double[N]",
"N",
"for (int i = 0; i < N; i++) {\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n X2[i] = X[i]*X[i];\n Y2[i] = Y[i]*Y[i];\n K[i] = Math.sqrt(X2[i] + Y2[i]);\n if (K[i] <= D) {\n c = c + 1;\n } else {\n c = c;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n X2[i] = X[i]*X[i];\n Y2[i] = Y[i]*Y[i];\n K[i] = Math.sqrt(X2[i] + Y2[i]);\n if (K[i] <= D) {\n c = c + 1;\n } else {\n c = c;\n }\n }",
"{\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n X2[i] = X[i]*X[i];\n Y2[i] = Y[i]*Y[i];\n K[i] = Math.sqrt(X2[i] + Y2[i]);\n if (K[i] <= D) {\n c = c + 1;\n } else {\n c = c;\n }\n }",
"X[i] = sc.nextDouble()",
"X[i]",
"X",
"i",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"Y[i] = sc.nextDouble()",
"Y[i]",
"Y",
"i",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"X2[i] = X[i]*X[i]",
"X2[i]",
"X2",
"i",
"X[i]*X[i]",
"X[i]",
"X",
"i",
"X[i]",
"X",
"i",
"Y2[i] = Y[i]*Y[i]",
"Y2[i]",
"Y2",
"i",
"Y[i]*Y[i]",
"Y[i]",
"Y",
"i",
"Y[i]",
"Y",
"i",
"K[i] = Math.sqrt(X2[i] + Y2[i])",
"K[i]",
"K",
"i",
"Math.sqrt(X2[i] + Y2[i])",
"Math.sqrt",
"Math",
"X2[i] + Y2[i]",
"X2[i]",
"X2",
"i",
"Y2[i]",
"Y2",
"i",
"if (K[i] <= D) {\n c = c + 1;\n } else {\n c = c;\n }",
"K[i] <= D",
"K[i]",
"K",
"i",
"D",
"{\n c = c + 1;\n }",
"c = c + 1",
"c",
"c + 1",
"c",
"1",
"{\n c = c;\n }",
"c = c",
"c",
"c",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int c = 0;\n int N = sc.nextInt();\n int D = sc.nextInt();\n double[] X = new double[N];\n double[] Y = new double[N];\n double[] X2 = new double[N];\n double[] Y2 = new double[N];\n double[] K = new double[N];\n for (int i = 0; i < N; i++) {\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n X2[i] = X[i]*X[i];\n Y2[i] = Y[i]*Y[i];\n K[i] = Math.sqrt(X2[i] + Y2[i]);\n if (K[i] <= D) {\n c = c + 1;\n } else {\n c = c;\n }\n }\n System.out.println(c);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int c = 0;\n int N = sc.nextInt();\n int D = sc.nextInt();\n double[] X = new double[N];\n double[] Y = new double[N];\n double[] X2 = new double[N];\n double[] Y2 = new double[N];\n double[] K = new double[N];\n for (int i = 0; i < N; i++) {\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n X2[i] = X[i]*X[i];\n Y2[i] = Y[i]*Y[i];\n K[i] = Math.sqrt(X2[i] + Y2[i]);\n if (K[i] <= D) {\n c = c + 1;\n } else {\n c = c;\n }\n }\n System.out.println(c);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int c = 0;
int N = sc.nextInt();
int D = sc.nextInt();
double[] X = new double[N];
double[] Y = new double[N];
double[] X2 = new double[N];
double[] Y2 = new double[N];
double[] K = new double[N];
for (int i = 0; i < N; i++) {
X[i] = sc.nextDouble();
Y[i] = sc.nextDouble();
X2[i] = X[i]*X[i];
Y2[i] = Y[i]*Y[i];
K[i] = Math.sqrt(X2[i] + Y2[i]);
if (K[i] <= D) {
c = c + 1;
} else {
c = c;
}
}
System.out.println(c);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
0,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
0,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
52,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
52,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n double w_num = 0;\n long p = 0;\n long q = 0;\n double sqNum = 0;\n int ans = 0;\n for (int i = 0; i < n; i++) {\n p = sc.nextLong();\n q = sc.nextLong();\n w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);\n sqNum = (double)Math.sqrt(w_num);\n if (sqNum <= d){\n ans += 1;\n }\n }\n sc.close();\n System.out.println(ans);\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n double w_num = 0;\n long p = 0;\n long q = 0;\n double sqNum = 0;\n int ans = 0;\n for (int i = 0; i < n; i++) {\n p = sc.nextLong();\n q = sc.nextLong();\n w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);\n sqNum = (double)Math.sqrt(w_num);\n if (sqNum <= d){\n ans += 1;\n }\n }\n sc.close();\n System.out.println(ans);\n \n }\n}",
"Main",
"public static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n double w_num = 0;\n long p = 0;\n long q = 0;\n double sqNum = 0;\n int ans = 0;\n for (int i = 0; i < n; i++) {\n p = sc.nextLong();\n q = sc.nextLong();\n w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);\n sqNum = (double)Math.sqrt(w_num);\n if (sqNum <= d){\n ans += 1;\n }\n }\n sc.close();\n System.out.println(ans);\n \n }",
"main",
"{\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n double w_num = 0;\n long p = 0;\n long q = 0;\n double sqNum = 0;\n int ans = 0;\n for (int i = 0; i < n; i++) {\n p = sc.nextLong();\n q = sc.nextLong();\n w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);\n sqNum = (double)Math.sqrt(w_num);\n if (sqNum <= d){\n ans += 1;\n }\n }\n sc.close();\n System.out.println(ans);\n \n }",
"Scanner sc = null;",
"sc",
"null",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double w_num = 0;",
"w_num",
"0",
"long p = 0;",
"p",
"0",
"long q = 0;",
"q",
"0",
"double sqNum = 0;",
"sqNum",
"0",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < n; i++) {\n p = sc.nextLong();\n q = sc.nextLong();\n w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);\n sqNum = (double)Math.sqrt(w_num);\n if (sqNum <= d){\n ans += 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n p = sc.nextLong();\n q = sc.nextLong();\n w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);\n sqNum = (double)Math.sqrt(w_num);\n if (sqNum <= d){\n ans += 1;\n }\n }",
"{\n p = sc.nextLong();\n q = sc.nextLong();\n w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);\n sqNum = (double)Math.sqrt(w_num);\n if (sqNum <= d){\n ans += 1;\n }\n }",
"p = sc.nextLong()",
"p",
"sc.nextLong()",
"sc.nextLong",
"sc",
"q = sc.nextLong()",
"q",
"sc.nextLong()",
"sc.nextLong",
"sc",
"w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2)",
"w_num",
"(double)Math.pow(p, 2) + (double)Math.pow(q, 2)",
"(double)Math.pow(p, 2)",
"Math.pow",
"Math",
"p",
"2",
"(double)Math.pow(q, 2)",
"Math.pow",
"Math",
"q",
"2",
"sqNum = (double)Math.sqrt(w_num)",
"sqNum",
"(double)Math.sqrt(w_num)",
"Math.sqrt",
"Math",
"w_num",
"if (sqNum <= d){\n ans += 1;\n }",
"sqNum <= d",
"sqNum",
"d",
"{\n ans += 1;\n }",
"ans += 1",
"ans",
"1",
"sc.close()",
"sc.close",
"sc",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n double w_num = 0;\n long p = 0;\n long q = 0;\n double sqNum = 0;\n int ans = 0;\n for (int i = 0; i < n; i++) {\n p = sc.nextLong();\n q = sc.nextLong();\n w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);\n sqNum = (double)Math.sqrt(w_num);\n if (sqNum <= d){\n ans += 1;\n }\n }\n sc.close();\n System.out.println(ans);\n \n }\n}",
"public class Main {\n\tpublic static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n double w_num = 0;\n long p = 0;\n long q = 0;\n double sqNum = 0;\n int ans = 0;\n for (int i = 0; i < n; i++) {\n p = sc.nextLong();\n q = sc.nextLong();\n w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);\n sqNum = (double)Math.sqrt(w_num);\n if (sqNum <= d){\n ans += 1;\n }\n }\n sc.close();\n System.out.println(ans);\n \n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = null;
sc = new Scanner(System.in);
int n = sc.nextInt();
int d = sc.nextInt();
double w_num = 0;
long p = 0;
long q = 0;
double sqNum = 0;
int ans = 0;
for (int i = 0; i < n; i++) {
p = sc.nextLong();
q = sc.nextLong();
w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);
sqNum = (double)Math.sqrt(w_num);
if (sqNum <= d){
ans += 1;
}
}
sc.close();
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
14,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
84,
8
],
[
84,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
40,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
11,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
9,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(); \n double d = sc.nextDouble(); \n int count = 0;\n for(int i=0;i<n;i++){\n int x = sc.nextInt();\n int y = sc.nextInt();\n double rad = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(rad <= d)count++;\n }\n System.out.println(count);\n }\n}\n\nclass Monmo {\n \n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(); \n double d = sc.nextDouble(); \n int count = 0;\n for(int i=0;i<n;i++){\n int x = sc.nextInt();\n int y = sc.nextInt();\n double rad = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(rad <= d)count++;\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(); \n double d = sc.nextDouble(); \n int count = 0;\n for(int i=0;i<n;i++){\n int x = sc.nextInt();\n int y = sc.nextInt();\n double rad = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(rad <= d)count++;\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(); \n double d = sc.nextDouble(); \n int count = 0;\n for(int i=0;i<n;i++){\n int x = sc.nextInt();\n int y = sc.nextInt();\n double rad = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(rad <= d)count++;\n }\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double d = sc.nextDouble();",
"d",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"int count = 0;",
"count",
"0",
"for(int i=0;i<n;i++){\n int x = sc.nextInt();\n int y = sc.nextInt();\n double rad = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(rad <= d)count++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int x = sc.nextInt();\n int y = sc.nextInt();\n double rad = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(rad <= d)count++;\n }",
"{\n int x = sc.nextInt();\n int y = sc.nextInt();\n double rad = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(rad <= d)count++;\n }",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double rad = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));",
"rad",
"Math.sqrt(Math.pow(x,2)+Math.pow(y,2))",
"Math.sqrt",
"Math",
"Math.pow(x,2)+Math.pow(y,2)",
"Math.pow(x,2)",
"Math.pow",
"Math",
"x",
"2",
"Math.pow(y,2)",
"Math.pow",
"Math",
"y",
"2",
"if(rad <= d)count++;",
"rad <= d",
"rad",
"d",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"class Monmo {\n \n}",
"Monmo",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(); \n double d = sc.nextDouble(); \n int count = 0;\n for(int i=0;i<n;i++){\n int x = sc.nextInt();\n int y = sc.nextInt();\n double rad = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(rad <= d)count++;\n }\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(); \n double d = sc.nextDouble(); \n int count = 0;\n for(int i=0;i<n;i++){\n int x = sc.nextInt();\n int y = sc.nextInt();\n double rad = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(rad <= d)count++;\n }\n System.out.println(count);\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
double d = sc.nextDouble();
int count = 0;
for(int i=0;i<n;i++){
int x = sc.nextInt();
int y = sc.nextInt();
double rad = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
if(rad <= d)count++;
}
System.out.println(count);
}
}
class Monmo {
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
78,
5
],
[
78,
6
],
[
6,
7
],
[
6,
8
],
[
78,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
11,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
42,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
11,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
9,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static Scanner in = new Scanner(System.in);\n\n public static void main(String[] args) {\n int points = in.nextInt();\n long dist = in.nextLong();\n dist = dist * dist;\n\n int answer = 0;\n for (int i = 0; i < points; i++) {\n long p = in.nextLong();\n long q = in.nextLong();\n long d = (p * p) + (q * q);\n if (d <= dist) answer += 1;\n }\n\n System.out.println(answer);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static Scanner in = new Scanner(System.in);\n\n public static void main(String[] args) {\n int points = in.nextInt();\n long dist = in.nextLong();\n dist = dist * dist;\n\n int answer = 0;\n for (int i = 0; i < points; i++) {\n long p = in.nextLong();\n long q = in.nextLong();\n long d = (p * p) + (q * q);\n if (d <= dist) answer += 1;\n }\n\n System.out.println(answer);\n }\n}",
"Main",
"public static Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"public static void main(String[] args) {\n int points = in.nextInt();\n long dist = in.nextLong();\n dist = dist * dist;\n\n int answer = 0;\n for (int i = 0; i < points; i++) {\n long p = in.nextLong();\n long q = in.nextLong();\n long d = (p * p) + (q * q);\n if (d <= dist) answer += 1;\n }\n\n System.out.println(answer);\n }",
"main",
"{\n int points = in.nextInt();\n long dist = in.nextLong();\n dist = dist * dist;\n\n int answer = 0;\n for (int i = 0; i < points; i++) {\n long p = in.nextLong();\n long q = in.nextLong();\n long d = (p * p) + (q * q);\n if (d <= dist) answer += 1;\n }\n\n System.out.println(answer);\n }",
"int points = in.nextInt();",
"points",
"in.nextInt()",
"in.nextInt",
"in",
"long dist = in.nextLong();",
"dist",
"in.nextLong()",
"in.nextLong",
"in",
"dist = dist * dist",
"dist",
"dist * dist",
"dist",
"dist",
"int answer = 0;",
"answer",
"0",
"for (int i = 0; i < points; i++) {\n long p = in.nextLong();\n long q = in.nextLong();\n long d = (p * p) + (q * q);\n if (d <= dist) answer += 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < points",
"i",
"points",
"i++",
"i++",
"i",
"{\n long p = in.nextLong();\n long q = in.nextLong();\n long d = (p * p) + (q * q);\n if (d <= dist) answer += 1;\n }",
"{\n long p = in.nextLong();\n long q = in.nextLong();\n long d = (p * p) + (q * q);\n if (d <= dist) answer += 1;\n }",
"long p = in.nextLong();",
"p",
"in.nextLong()",
"in.nextLong",
"in",
"long q = in.nextLong();",
"q",
"in.nextLong()",
"in.nextLong",
"in",
"long d = (p * p) + (q * q);",
"d",
"(p * p) + (q * q)",
"(p * p)",
"p",
"p",
"(q * q)",
"q",
"q",
"if (d <= dist) answer += 1;",
"d <= dist",
"d",
"dist",
"answer += 1",
"answer",
"1",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args",
"public class Main {\n public static Scanner in = new Scanner(System.in);\n\n public static void main(String[] args) {\n int points = in.nextInt();\n long dist = in.nextLong();\n dist = dist * dist;\n\n int answer = 0;\n for (int i = 0; i < points; i++) {\n long p = in.nextLong();\n long q = in.nextLong();\n long d = (p * p) + (q * q);\n if (d <= dist) answer += 1;\n }\n\n System.out.println(answer);\n }\n}",
"public class Main {\n public static Scanner in = new Scanner(System.in);\n\n public static void main(String[] args) {\n int points = in.nextInt();\n long dist = in.nextLong();\n dist = dist * dist;\n\n int answer = 0;\n for (int i = 0; i < points; i++) {\n long p = in.nextLong();\n long q = in.nextLong();\n long d = (p * p) + (q * q);\n if (d <= dist) answer += 1;\n }\n\n System.out.println(answer);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static Scanner in = new Scanner(System.in);
public static void main(String[] args) {
int points = in.nextInt();
long dist = in.nextLong();
dist = dist * dist;
int answer = 0;
for (int i = 0; i < points; i++) {
long p = in.nextLong();
long q = in.nextLong();
long d = (p * p) + (q * q);
if (d <= dist) answer += 1;
}
System.out.println(answer);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
52,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
52,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
52,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
]
| [
" import java.util.*;\n\n public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int d = Integer.parseInt(sc.next());\n double i = 0,j = 0;\n int count = 0;\n double save = 0L;\n for(int cnt = 0;cnt < n;cnt++){\n i = Double.parseDouble(sc.next());\n j = Double.parseDouble(sc.next());\n save = Math.sqrt((double)(i * i + j * j));\n if(save <= d){\n count++;\n }\n }\n System.out.println(count);\n }\n }",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int d = Integer.parseInt(sc.next());\n double i = 0,j = 0;\n int count = 0;\n double save = 0L;\n for(int cnt = 0;cnt < n;cnt++){\n i = Double.parseDouble(sc.next());\n j = Double.parseDouble(sc.next());\n save = Math.sqrt((double)(i * i + j * j));\n if(save <= d){\n count++;\n }\n }\n System.out.println(count);\n }\n }",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int d = Integer.parseInt(sc.next());\n double i = 0,j = 0;\n int count = 0;\n double save = 0L;\n for(int cnt = 0;cnt < n;cnt++){\n i = Double.parseDouble(sc.next());\n j = Double.parseDouble(sc.next());\n save = Math.sqrt((double)(i * i + j * j));\n if(save <= d){\n count++;\n }\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int d = Integer.parseInt(sc.next());\n double i = 0,j = 0;\n int count = 0;\n double save = 0L;\n for(int cnt = 0;cnt < n;cnt++){\n i = Double.parseDouble(sc.next());\n j = Double.parseDouble(sc.next());\n save = Math.sqrt((double)(i * i + j * j));\n if(save <= d){\n count++;\n }\n }\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int d = Integer.parseInt(sc.next());",
"d",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"double i = 0",
"i",
"0",
"j = 0;",
"j",
"0",
"int count = 0;",
"count",
"0",
"double save = 0L;",
"save",
"0L",
"for(int cnt = 0;cnt < n;cnt++){\n i = Double.parseDouble(sc.next());\n j = Double.parseDouble(sc.next());\n save = Math.sqrt((double)(i * i + j * j));\n if(save <= d){\n count++;\n }\n }",
"int cnt = 0;",
"int cnt = 0;",
"cnt",
"0",
"cnt < n",
"cnt",
"n",
"cnt++",
"cnt++",
"cnt",
"{\n i = Double.parseDouble(sc.next());\n j = Double.parseDouble(sc.next());\n save = Math.sqrt((double)(i * i + j * j));\n if(save <= d){\n count++;\n }\n }",
"{\n i = Double.parseDouble(sc.next());\n j = Double.parseDouble(sc.next());\n save = Math.sqrt((double)(i * i + j * j));\n if(save <= d){\n count++;\n }\n }",
"i = Double.parseDouble(sc.next())",
"i",
"Double.parseDouble(sc.next())",
"Double.parseDouble",
"Double",
"sc.next()",
"sc.next",
"sc",
"j = Double.parseDouble(sc.next())",
"j",
"Double.parseDouble(sc.next())",
"Double.parseDouble",
"Double",
"sc.next()",
"sc.next",
"sc",
"save = Math.sqrt((double)(i * i + j * j))",
"save",
"Math.sqrt((double)(i * i + j * j))",
"Math.sqrt",
"Math",
"(double)(i * i + j * j)",
"i * i",
"i",
"i",
"j * j",
"j",
"j",
"if(save <= d){\n count++;\n }",
"save <= d",
"save",
"d",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int d = Integer.parseInt(sc.next());\n double i = 0,j = 0;\n int count = 0;\n double save = 0L;\n for(int cnt = 0;cnt < n;cnt++){\n i = Double.parseDouble(sc.next());\n j = Double.parseDouble(sc.next());\n save = Math.sqrt((double)(i * i + j * j));\n if(save <= d){\n count++;\n }\n }\n System.out.println(count);\n }\n }",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int d = Integer.parseInt(sc.next());\n double i = 0,j = 0;\n int count = 0;\n double save = 0L;\n for(int cnt = 0;cnt < n;cnt++){\n i = Double.parseDouble(sc.next());\n j = Double.parseDouble(sc.next());\n save = Math.sqrt((double)(i * i + j * j));\n if(save <= d){\n count++;\n }\n }\n System.out.println(count);\n }\n }",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
int d = Integer.parseInt(sc.next());
double i = 0,j = 0;
int count = 0;
double save = 0L;
for(int cnt = 0;cnt < n;cnt++){
i = Double.parseDouble(sc.next());
j = Double.parseDouble(sc.next());
save = Math.sqrt((double)(i * i + j * j));
if(save <= d){
count++;
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
14,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
38,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
55,
57
],
[
38,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
38,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
38,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n String[] strs = str.split(\" \");\n int D = Integer.parseInt(strs[1]);\n int count = 0;\n while (scan.hasNext()){\n str = scan.nextLine();\n strs = str.split(\" \");\n int x = Integer.parseInt(strs[0]);\n int y = Integer.parseInt(strs[1]);\n double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));\n if(distance<=D) count++;\n }\n\n System.out.println(count);\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n String[] strs = str.split(\" \");\n int D = Integer.parseInt(strs[1]);\n int count = 0;\n while (scan.hasNext()){\n str = scan.nextLine();\n strs = str.split(\" \");\n int x = Integer.parseInt(strs[0]);\n int y = Integer.parseInt(strs[1]);\n double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));\n if(distance<=D) count++;\n }\n\n System.out.println(count);\n}\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n String[] strs = str.split(\" \");\n int D = Integer.parseInt(strs[1]);\n int count = 0;\n while (scan.hasNext()){\n str = scan.nextLine();\n strs = str.split(\" \");\n int x = Integer.parseInt(strs[0]);\n int y = Integer.parseInt(strs[1]);\n double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));\n if(distance<=D) count++;\n }\n\n System.out.println(count);\n}",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n String[] strs = str.split(\" \");\n int D = Integer.parseInt(strs[1]);\n int count = 0;\n while (scan.hasNext()){\n str = scan.nextLine();\n strs = str.split(\" \");\n int x = Integer.parseInt(strs[0]);\n int y = Integer.parseInt(strs[1]);\n double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));\n if(distance<=D) count++;\n }\n\n System.out.println(count);\n}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str = scan.nextLine();",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String[] strs = str.split(\" \");",
"strs",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"int D = Integer.parseInt(strs[1]);",
"D",
"Integer.parseInt(strs[1])",
"Integer.parseInt",
"Integer",
"strs[1]",
"strs",
"1",
"int count = 0;",
"count",
"0",
"while (scan.hasNext()){\n str = scan.nextLine();\n strs = str.split(\" \");\n int x = Integer.parseInt(strs[0]);\n int y = Integer.parseInt(strs[1]);\n double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));\n if(distance<=D) count++;\n }",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n str = scan.nextLine();\n strs = str.split(\" \");\n int x = Integer.parseInt(strs[0]);\n int y = Integer.parseInt(strs[1]);\n double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));\n if(distance<=D) count++;\n }",
"str = scan.nextLine()",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"strs = str.split(\" \")",
"strs",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"int x = Integer.parseInt(strs[0]);",
"x",
"Integer.parseInt(strs[0])",
"Integer.parseInt",
"Integer",
"strs[0]",
"strs",
"0",
"int y = Integer.parseInt(strs[1]);",
"y",
"Integer.parseInt(strs[1])",
"Integer.parseInt",
"Integer",
"strs[1]",
"strs",
"1",
"double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));",
"distance",
"Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2))",
"Math.sqrt",
"Math",
"Math.pow(x, 2)+Math.pow(y, 2)",
"Math.pow(x, 2)",
"Math.pow",
"Math",
"x",
"2",
"Math.pow(y, 2)",
"Math.pow",
"Math",
"y",
"2",
"if(distance<=D) count++;",
"distance<=D",
"distance",
"D",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n String[] strs = str.split(\" \");\n int D = Integer.parseInt(strs[1]);\n int count = 0;\n while (scan.hasNext()){\n str = scan.nextLine();\n strs = str.split(\" \");\n int x = Integer.parseInt(strs[0]);\n int y = Integer.parseInt(strs[1]);\n double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));\n if(distance<=D) count++;\n }\n\n System.out.println(count);\n}\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n String[] strs = str.split(\" \");\n int D = Integer.parseInt(strs[1]);\n int count = 0;\n while (scan.hasNext()){\n str = scan.nextLine();\n strs = str.split(\" \");\n int x = Integer.parseInt(strs[0]);\n int y = Integer.parseInt(strs[1]);\n double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));\n if(distance<=D) count++;\n }\n\n System.out.println(count);\n}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String str = scan.nextLine();
String[] strs = str.split(" ");
int D = Integer.parseInt(strs[1]);
int count = 0;
while (scan.hasNext()){
str = scan.nextLine();
strs = str.split(" ");
int x = Integer.parseInt(strs[0]);
int y = Integer.parseInt(strs[1]);
double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
if(distance<=D) count++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
14,
2,
13,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
111,
5
],
[
111,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
8,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
60,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
75,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
93,
99
],
[
99,
100
],
[
100,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
6,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
]
| [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[]x = new long[n];\n long[]y = new long[n];\n\n for(int i=0; i<n; i++) {\n \tx[i] = sc.nextLong();\n \ty[i] = sc.nextLong();\n }\n long cou = 0;\n long a = 0;\n for(int i=0; i<n; i++) {\n \ta = x[i]*x[i]+y[i]*y[i] ;\n \tif(a <= d*d) {\n \t\tcou++;\n \t}\n }\n \tSystem.out.println(cou);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[]x = new long[n];\n long[]y = new long[n];\n\n for(int i=0; i<n; i++) {\n \tx[i] = sc.nextLong();\n \ty[i] = sc.nextLong();\n }\n long cou = 0;\n long a = 0;\n for(int i=0; i<n; i++) {\n \ta = x[i]*x[i]+y[i]*y[i] ;\n \tif(a <= d*d) {\n \t\tcou++;\n \t}\n }\n \tSystem.out.println(cou);\n }\n}",
"Main",
"public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[]x = new long[n];\n long[]y = new long[n];\n\n for(int i=0; i<n; i++) {\n \tx[i] = sc.nextLong();\n \ty[i] = sc.nextLong();\n }\n long cou = 0;\n long a = 0;\n for(int i=0; i<n; i++) {\n \ta = x[i]*x[i]+y[i]*y[i] ;\n \tif(a <= d*d) {\n \t\tcou++;\n \t}\n }\n \tSystem.out.println(cou);\n }",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[]x = new long[n];\n long[]y = new long[n];\n\n for(int i=0; i<n; i++) {\n \tx[i] = sc.nextLong();\n \ty[i] = sc.nextLong();\n }\n long cou = 0;\n long a = 0;\n for(int i=0; i<n; i++) {\n \ta = x[i]*x[i]+y[i]*y[i] ;\n \tif(a <= d*d) {\n \t\tcou++;\n \t}\n }\n \tSystem.out.println(cou);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long[]x = new long[n];",
"x",
"new long[n]",
"n",
"long[]y = new long[n];",
"y",
"new long[n]",
"n",
"for(int i=0; i<n; i++) {\n \tx[i] = sc.nextLong();\n \ty[i] = sc.nextLong();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tx[i] = sc.nextLong();\n \ty[i] = sc.nextLong();\n }",
"{\n \tx[i] = sc.nextLong();\n \ty[i] = sc.nextLong();\n }",
"x[i] = sc.nextLong()",
"x[i]",
"x",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"y[i] = sc.nextLong()",
"y[i]",
"y",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long cou = 0;",
"cou",
"0",
"long a = 0;",
"a",
"0",
"for(int i=0; i<n; i++) {\n \ta = x[i]*x[i]+y[i]*y[i] ;\n \tif(a <= d*d) {\n \t\tcou++;\n \t}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \ta = x[i]*x[i]+y[i]*y[i] ;\n \tif(a <= d*d) {\n \t\tcou++;\n \t}\n }",
"{\n \ta = x[i]*x[i]+y[i]*y[i] ;\n \tif(a <= d*d) {\n \t\tcou++;\n \t}\n }",
"a = x[i]*x[i]+y[i]*y[i]",
"a",
"x[i]*x[i]+y[i]*y[i]",
"x[i]*x[i]",
"x[i]",
"x",
"i",
"x[i]",
"x",
"i",
"y[i]*y[i]",
"y[i]",
"y",
"i",
"y[i]",
"y",
"i",
"if(a <= d*d) {\n \t\tcou++;\n \t}",
"a <= d*d",
"a",
"d*d",
"d",
"d",
"{\n \t\tcou++;\n \t}",
"cou++",
"cou",
"System.out.println(cou)",
"System.out.println",
"System.out",
"System",
"System.out",
"cou",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[]x = new long[n];\n long[]y = new long[n];\n\n for(int i=0; i<n; i++) {\n \tx[i] = sc.nextLong();\n \ty[i] = sc.nextLong();\n }\n long cou = 0;\n long a = 0;\n for(int i=0; i<n; i++) {\n \ta = x[i]*x[i]+y[i]*y[i] ;\n \tif(a <= d*d) {\n \t\tcou++;\n \t}\n }\n \tSystem.out.println(cou);\n }\n}",
"public class Main {\n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[]x = new long[n];\n long[]y = new long[n];\n\n for(int i=0; i<n; i++) {\n \tx[i] = sc.nextLong();\n \ty[i] = sc.nextLong();\n }\n long cou = 0;\n long a = 0;\n for(int i=0; i<n; i++) {\n \ta = x[i]*x[i]+y[i]*y[i] ;\n \tif(a <= d*d) {\n \t\tcou++;\n \t}\n }\n \tSystem.out.println(cou);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long d = sc.nextLong();
long[]x = new long[n];
long[]y = new long[n];
for(int i=0; i<n; i++) {
x[i] = sc.nextLong();
y[i] = sc.nextLong();
}
long cou = 0;
long a = 0;
for(int i=0; i<n; i++) {
a = x[i]*x[i]+y[i]*y[i] ;
if(a <= d*d) {
cou++;
}
}
System.out.println(cou);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
14,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
113,
5
],
[
113,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
10,
27
],
[
27,
28
],
[
27,
29
],
[
10,
31
],
[
31,
32
],
[
31,
33
],
[
10,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
10,
62
],
[
62,
63
],
[
62,
64
],
[
10,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
77,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
10,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
6,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tdouble D = (double)d;\n\t\t\t\n\t\t\tlong[]X = new long[N];\n\t\t\tlong[]Y = new long[N];\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tX[i] = scan.nextLong();\n\t\t\t\tY[i] = scan.nextLong();\n\t\t\t}\n\t\t\t\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tdouble dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\t\tif(D>=dist)count++;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}\n\t\t\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tdouble D = (double)d;\n\t\t\t\n\t\t\tlong[]X = new long[N];\n\t\t\tlong[]Y = new long[N];\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tX[i] = scan.nextLong();\n\t\t\t\tY[i] = scan.nextLong();\n\t\t\t}\n\t\t\t\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tdouble dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\t\tif(D>=dist)count++;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}\n\t\t\n\n}",
"Main",
"public static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tdouble D = (double)d;\n\t\t\t\n\t\t\tlong[]X = new long[N];\n\t\t\tlong[]Y = new long[N];\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tX[i] = scan.nextLong();\n\t\t\t\tY[i] = scan.nextLong();\n\t\t\t}\n\t\t\t\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tdouble dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\t\tif(D>=dist)count++;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tdouble D = (double)d;\n\t\t\t\n\t\t\tlong[]X = new long[N];\n\t\t\tlong[]Y = new long[N];\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tX[i] = scan.nextLong();\n\t\t\t\tY[i] = scan.nextLong();\n\t\t\t}\n\t\t\t\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tdouble dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\t\tif(D>=dist)count++;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}",
"try(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tdouble D = (double)d;\n\t\t\t\n\t\t\tlong[]X = new long[N];\n\t\t\tlong[]Y = new long[N];\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tX[i] = scan.nextLong();\n\t\t\t\tY[i] = scan.nextLong();\n\t\t\t}\n\t\t\t\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tdouble dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\t\tif(D>=dist)count++;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t\t\n\t\t\t\n\t\t}",
"{\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tdouble D = (double)d;\n\t\t\t\n\t\t\tlong[]X = new long[N];\n\t\t\tlong[]Y = new long[N];\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tX[i] = scan.nextLong();\n\t\t\t\tY[i] = scan.nextLong();\n\t\t\t}\n\t\t\t\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tdouble dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\t\tif(D>=dist)count++;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t\t\n\t\t\t\n\t\t}",
"Scanner scan = new Scanner(System.in)",
"Scanner scan = new Scanner(System.in)",
"new Scanner(System.in)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int d = scan.nextInt();",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"double D = (double)d;",
"D",
"(double)d",
"long[]X = new long[N];",
"X",
"new long[N]",
"N",
"long[]Y = new long[N];",
"Y",
"new long[N]",
"N",
"for(int i = 0;i<N;i++) {\n\t\t\t\tX[i] = scan.nextLong();\n\t\t\t\tY[i] = scan.nextLong();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\t\tX[i] = scan.nextLong();\n\t\t\t\tY[i] = scan.nextLong();\n\t\t\t}",
"{\n\t\t\t\tX[i] = scan.nextLong();\n\t\t\t\tY[i] = scan.nextLong();\n\t\t\t}",
"X[i] = scan.nextLong()",
"X[i]",
"X",
"i",
"scan.nextLong()",
"scan.nextLong",
"scan",
"Y[i] = scan.nextLong()",
"Y[i]",
"Y",
"i",
"scan.nextLong()",
"scan.nextLong",
"scan",
"int count = 0;",
"count",
"0",
"for(int i = 0;i<N;i++) {\n\t\t\t\tdouble dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\t\tif(D>=dist)count++;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\t\tdouble dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\t\tif(D>=dist)count++;\n\t\t\t}",
"{\n\t\t\t\tdouble dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\t\tif(D>=dist)count++;\n\t\t\t}",
"double dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);",
"dist",
"Math.sqrt(X[i]*X[i]+Y[i]*Y[i])",
"Math.sqrt",
"Math",
"X[i]*X[i]+Y[i]*Y[i]",
"X[i]*X[i]",
"X[i]",
"X",
"i",
"X[i]",
"X",
"i",
"Y[i]*Y[i]",
"Y[i]",
"Y",
"i",
"Y[i]",
"Y",
"i",
"if(D>=dist)count++;",
"D>=dist",
"D",
"dist",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[]args",
"args",
"public class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tdouble D = (double)d;\n\t\t\t\n\t\t\tlong[]X = new long[N];\n\t\t\tlong[]Y = new long[N];\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tX[i] = scan.nextLong();\n\t\t\t\tY[i] = scan.nextLong();\n\t\t\t}\n\t\t\t\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tdouble dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\t\tif(D>=dist)count++;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}\n\t\t\n\n}",
"public class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tdouble D = (double)d;\n\t\t\t\n\t\t\tlong[]X = new long[N];\n\t\t\tlong[]Y = new long[N];\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tX[i] = scan.nextLong();\n\t\t\t\tY[i] = scan.nextLong();\n\t\t\t}\n\t\t\t\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tdouble dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\t\tif(D>=dist)count++;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}\n\t\t\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[]args) {
try(Scanner scan = new Scanner(System.in)){
int N = scan.nextInt();
int d = scan.nextInt();
double D = (double)d;
long[]X = new long[N];
long[]Y = new long[N];
for(int i = 0;i<N;i++) {
X[i] = scan.nextLong();
Y[i] = scan.nextLong();
}
int count = 0;
for(int i = 0;i<N;i++) {
double dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);
if(D>=dist)count++;
}
System.out.println(count);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
2,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
17,
14,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
54,
55
],
[
55,
56
],
[
51,
57
],
[
37,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"import java.util.Scanner;\n\n/**\n * B - Distance\n */\npublic class Main {\n\n public static void main( String[] args ) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n int n = sc.nextInt(); // 2次元平面上にある点の数\n int d = sc.nextInt(); // 原点からD以下の点を求める\n\n int result = 0;\n for( int i = 0; i < n; i++ ) {\n double calc = Math.sqrt( Math.pow( sc.nextInt(), 2 ) + Math.pow( sc.nextInt(), 2 ) );\n if( calc <= d ) result++;\n }\n\n System.out.println( result );\n\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main( String[] args ) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n int n = sc.nextInt(); // 2次元平面上にある点の数\n int d = sc.nextInt(); // 原点からD以下の点を求める\n\n int result = 0;\n for( int i = 0; i < n; i++ ) {\n double calc = Math.sqrt( Math.pow( sc.nextInt(), 2 ) + Math.pow( sc.nextInt(), 2 ) );\n if( calc <= d ) result++;\n }\n\n System.out.println( result );\n\n sc.close();\n }\n}",
"Main",
"public static void main( String[] args ) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n int n = sc.nextInt(); // 2次元平面上にある点の数\n int d = sc.nextInt(); // 原点からD以下の点を求める\n\n int result = 0;\n for( int i = 0; i < n; i++ ) {\n double calc = Math.sqrt( Math.pow( sc.nextInt(), 2 ) + Math.pow( sc.nextInt(), 2 ) );\n if( calc <= d ) result++;\n }\n\n System.out.println( result );\n\n sc.close();\n }",
"main",
"{\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n int n = sc.nextInt(); // 2次元平面上にある点の数\n int d = sc.nextInt(); // 原点からD以下の点を求める\n\n int result = 0;\n for( int i = 0; i < n; i++ ) {\n double calc = Math.sqrt( Math.pow( sc.nextInt(), 2 ) + Math.pow( sc.nextInt(), 2 ) );\n if( calc <= d ) result++;\n }\n\n System.out.println( result );\n\n sc.close();\n }",
"Scanner sc = new Scanner( System.in );",
"sc",
"new Scanner( System.in )",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int result = 0;",
"result",
"0",
"for( int i = 0; i < n; i++ ) {\n double calc = Math.sqrt( Math.pow( sc.nextInt(), 2 ) + Math.pow( sc.nextInt(), 2 ) );\n if( calc <= d ) result++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n double calc = Math.sqrt( Math.pow( sc.nextInt(), 2 ) + Math.pow( sc.nextInt(), 2 ) );\n if( calc <= d ) result++;\n }",
"{\n double calc = Math.sqrt( Math.pow( sc.nextInt(), 2 ) + Math.pow( sc.nextInt(), 2 ) );\n if( calc <= d ) result++;\n }",
"double calc = Math.sqrt( Math.pow( sc.nextInt(), 2 ) + Math.pow( sc.nextInt(), 2 ) );",
"calc",
"Math.sqrt( Math.pow( sc.nextInt(), 2 ) + Math.pow( sc.nextInt(), 2 ) )",
"Math.sqrt",
"Math",
"Math.pow( sc.nextInt(), 2 ) + Math.pow( sc.nextInt(), 2 )",
"Math.pow( sc.nextInt(), 2 )",
"Math.pow",
"Math",
"sc.nextInt()",
"sc.nextInt",
"sc",
"2",
"Math.pow( sc.nextInt(), 2 )",
"Math.pow",
"Math",
"sc.nextInt()",
"sc.nextInt",
"sc",
"2",
"if( calc <= d ) result++;",
"calc <= d",
"calc",
"d",
"result++",
"result",
"System.out.println( result )",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n public static void main( String[] args ) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n int n = sc.nextInt(); // 2次元平面上にある点の数\n int d = sc.nextInt(); // 原点からD以下の点を求める\n\n int result = 0;\n for( int i = 0; i < n; i++ ) {\n double calc = Math.sqrt( Math.pow( sc.nextInt(), 2 ) + Math.pow( sc.nextInt(), 2 ) );\n if( calc <= d ) result++;\n }\n\n System.out.println( result );\n\n sc.close();\n }\n}",
"public class Main {\n\n public static void main( String[] args ) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n int n = sc.nextInt(); // 2次元平面上にある点の数\n int d = sc.nextInt(); // 原点からD以下の点を求める\n\n int result = 0;\n for( int i = 0; i < n; i++ ) {\n double calc = Math.sqrt( Math.pow( sc.nextInt(), 2 ) + Math.pow( sc.nextInt(), 2 ) );\n if( calc <= d ) result++;\n }\n\n System.out.println( result );\n\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
/**
* B - Distance
*/
public class Main {
public static void main( String[] args ) {
Scanner sc = new Scanner( System.in );
// 入力値
int n = sc.nextInt(); // 2次元平面上にある点の数
int d = sc.nextInt(); // 原点からD以下の点を求める
int result = 0;
for( int i = 0; i < n; i++ ) {
double calc = Math.sqrt( Math.pow( sc.nextInt(), 2 ) + Math.pow( sc.nextInt(), 2 ) );
if( calc <= d ) result++;
}
System.out.println( result );
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
20,
0,
18,
18,
13,
13,
17,
4,
18,
13,
4,
18,
13,
0,
18,
18,
13,
13,
17,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
17,
13,
40,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
11,
37
],
[
37,
38
],
[
37,
39
],
[
11,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
68,
69
],
[
54,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
80,
81
],
[
11,
82
],
[
82,
83
],
[
82,
84
],
[
11,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
104,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
103,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
115,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
100,
126
],
[
99,
127
],
[
98,
128
],
[
128,
129
],
[
11,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
11,
134
],
[
134,
135
],
[
135,
136
],
[
9,
137
],
[
137,
138
]
]
| [
"import java.util.*;\nimport java.io.*;\n\nclass Main\n{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n PrintWriter out = new PrintWriter(System.out);\n int n = Integer.parseInt(st.nextToken());\n double d = Double.parseDouble(st.nextToken());\n\n long[][] points = new long[n][2];\n\n for (int i=0; i<n; i++) {\n st = new StringTokenizer(br.readLine());\n points[i][0] = Long.parseLong(st.nextToken());\n points[i][1] = Long.parseLong(st.nextToken());\n }\n int ans = 0;\n for (int i=0; i<n; i++) {\n if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)\n ans++;\n }\n\n out.println(ans);\n\n out.close();\n }\n \n\n}\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n PrintWriter out = new PrintWriter(System.out);\n int n = Integer.parseInt(st.nextToken());\n double d = Double.parseDouble(st.nextToken());\n\n long[][] points = new long[n][2];\n\n for (int i=0; i<n; i++) {\n st = new StringTokenizer(br.readLine());\n points[i][0] = Long.parseLong(st.nextToken());\n points[i][1] = Long.parseLong(st.nextToken());\n }\n int ans = 0;\n for (int i=0; i<n; i++) {\n if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)\n ans++;\n }\n\n out.println(ans);\n\n out.close();\n }\n \n\n}",
"Main",
"public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n PrintWriter out = new PrintWriter(System.out);\n int n = Integer.parseInt(st.nextToken());\n double d = Double.parseDouble(st.nextToken());\n\n long[][] points = new long[n][2];\n\n for (int i=0; i<n; i++) {\n st = new StringTokenizer(br.readLine());\n points[i][0] = Long.parseLong(st.nextToken());\n points[i][1] = Long.parseLong(st.nextToken());\n }\n int ans = 0;\n for (int i=0; i<n; i++) {\n if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)\n ans++;\n }\n\n out.println(ans);\n\n out.close();\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n PrintWriter out = new PrintWriter(System.out);\n int n = Integer.parseInt(st.nextToken());\n double d = Double.parseDouble(st.nextToken());\n\n long[][] points = new long[n][2];\n\n for (int i=0; i<n; i++) {\n st = new StringTokenizer(br.readLine());\n points[i][0] = Long.parseLong(st.nextToken());\n points[i][1] = Long.parseLong(st.nextToken());\n }\n int ans = 0;\n for (int i=0; i<n; i++) {\n if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)\n ans++;\n }\n\n out.println(ans);\n\n out.close();\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(br.readLine());",
"st",
"new StringTokenizer(br.readLine())",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"int n = Integer.parseInt(st.nextToken());",
"n",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"double d = Double.parseDouble(st.nextToken());",
"d",
"Double.parseDouble(st.nextToken())",
"Double.parseDouble",
"Double",
"st.nextToken()",
"st.nextToken",
"st",
"long[][] points = new long[n][2];",
"points",
"new long[n][2]",
"n",
"2",
"for (int i=0; i<n; i++) {\n st = new StringTokenizer(br.readLine());\n points[i][0] = Long.parseLong(st.nextToken());\n points[i][1] = Long.parseLong(st.nextToken());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n st = new StringTokenizer(br.readLine());\n points[i][0] = Long.parseLong(st.nextToken());\n points[i][1] = Long.parseLong(st.nextToken());\n }",
"{\n st = new StringTokenizer(br.readLine());\n points[i][0] = Long.parseLong(st.nextToken());\n points[i][1] = Long.parseLong(st.nextToken());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"points[i][0] = Long.parseLong(st.nextToken())",
"points[i][0]",
"points[i]",
"points",
"i",
"0",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"points[i][1] = Long.parseLong(st.nextToken())",
"points[i][1]",
"points[i]",
"points",
"i",
"1",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"int ans = 0;",
"ans",
"0",
"for (int i=0; i<n; i++) {\n if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)\n ans++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)\n ans++;\n }",
"{\n if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)\n ans++;\n }",
"if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)\n ans++;",
"Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d",
"Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)",
"Math.pow",
"Math",
"points[i][0]*points[i][0]+points[i][1]*points[i][1]",
"points[i][0]*points[i][0]",
"points[i][0]",
"points[i]",
"points",
"i",
"0",
"points[i][0]",
"points[i]",
"points",
"i",
"0",
"points[i][1]*points[i][1]",
"points[i][1]",
"points[i]",
"points",
"i",
"1",
"points[i][1]",
"points[i]",
"points",
"i",
"1",
"0.5",
"d",
"ans++",
"ans",
"out.println(ans)",
"out.println",
"out",
"ans",
"out.close()",
"out.close",
"out",
"String[] args",
"args"
]
| import java.util.*;
import java.io.*;
class Main
{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
PrintWriter out = new PrintWriter(System.out);
int n = Integer.parseInt(st.nextToken());
double d = Double.parseDouble(st.nextToken());
long[][] points = new long[n][2];
for (int i=0; i<n; i++) {
st = new StringTokenizer(br.readLine());
points[i][0] = Long.parseLong(st.nextToken());
points[i][1] = Long.parseLong(st.nextToken());
}
int ans = 0;
for (int i=0; i<n; i++) {
if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)
ans++;
}
out.println(ans);
out.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
77,
5
],
[
77,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
27,
28
],
[
27,
29
],
[
16,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
62,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
16,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
6,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
]
| [
"import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint N = sc.nextInt();\n\t\t\tlong D = sc.nextLong();\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i< N; i++){\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\tif(x*x + y*y <= D*D){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint N = sc.nextInt();\n\t\t\tlong D = sc.nextLong();\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i< N; i++){\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\tif(x*x + y*y <= D*D){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint N = sc.nextInt();\n\t\t\tlong D = sc.nextLong();\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i< N; i++){\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\tif(x*x + y*y <= D*D){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint N = sc.nextInt();\n\t\t\tlong D = sc.nextLong();\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i< N; i++){\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\tif(x*x + y*y <= D*D){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(sc.hasNext()){\n\t\t\tint N = sc.nextInt();\n\t\t\tlong D = sc.nextLong();\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i< N; i++){\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\tif(x*x + y*y <= D*D){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tint N = sc.nextInt();\n\t\t\tlong D = sc.nextLong();\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i< N; i++){\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\tif(x*x + y*y <= D*D){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long D = sc.nextLong();",
"D",
"sc.nextLong()",
"sc.nextLong",
"sc",
"int count = 0;",
"count",
"0",
"for(int i = 0; i< N; i++){\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\tif(x*x + y*y <= D*D){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i< N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\tif(x*x + y*y <= D*D){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\tif(x*x + y*y <= D*D){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"long x = sc.nextLong();",
"x",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long y = sc.nextLong();",
"y",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if(x*x + y*y <= D*D){\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"x*x + y*y <= D*D",
"x*x + y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"D*D",
"D",
"D",
"{\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint N = sc.nextInt();\n\t\t\tlong D = sc.nextLong();\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i< N; i++){\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\tif(x*x + y*y <= D*D){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint N = sc.nextInt();\n\t\t\tlong D = sc.nextLong();\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i< N; i++){\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\tif(x*x + y*y <= D*D){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
int N = sc.nextInt();
long D = sc.nextLong();
int count = 0;
for(int i = 0; i< N; i++){
long x = sc.nextLong();
long y = sc.nextLong();
if(x*x + y*y <= D*D){
count++;
}
}
System.out.println(count);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
4,
18,
13,
13,
17,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
435,
8
],
[
435,
9
],
[
9,
10
],
[
9,
11
],
[
435,
12
],
[
12,
13
],
[
12,
14
],
[
435,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
17,
42
],
[
42,
43
],
[
15,
44
],
[
44,
45
],
[
435,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
48,
89
],
[
89,
90
],
[
46,
91
],
[
91,
92
],
[
46,
93
],
[
93,
94
],
[
435,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
120,
121
],
[
97,
122
],
[
122,
123
],
[
95,
124
],
[
124,
125
],
[
435,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
160,
166
],
[
166,
167
],
[
167,
168
],
[
128,
169
],
[
169,
170
],
[
126,
171
],
[
171,
172
],
[
126,
173
],
[
173,
174
],
[
435,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
435,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
435,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
435,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
203,
204
],
[
204,
205
],
[
198,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
207,
210
],
[
210,
211
],
[
210,
212
],
[
196,
213
],
[
213,
214
],
[
196,
215
],
[
215,
216
],
[
435,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
223,
224
],
[
223,
225
],
[
219,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
227,
230
],
[
226,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
231,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
231,
240
],
[
240,
241
],
[
240,
242
],
[
231,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
243,
248
],
[
248,
249
],
[
248,
250
],
[
243,
251
],
[
251,
252
],
[
252,
253
],
[
243,
254
],
[
255,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
255,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
255,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
267,
268
],
[
266,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
269,
273
],
[
273,
274
],
[
273,
275
],
[
255,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
281,
282
],
[
231,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
285,
288
],
[
283,
289
],
[
219,
290
],
[
290,
291
],
[
291,
292
],
[
290,
293
],
[
293,
294
],
[
294,
295
],
[
219,
296
],
[
296,
297
],
[
297,
298
],
[
217,
299
],
[
299,
300
],
[
435,
301
],
[
301,
302
],
[
301,
303
],
[
303,
304
],
[
301,
305
],
[
305,
306
],
[
301,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
310,
311
],
[
310,
312
],
[
301,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
317,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
316,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
326,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
315,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
301,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
345,
348
],
[
348,
349
],
[
301,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
354,
357
],
[
357,
358
],
[
301,
359
],
[
359,
360
],
[
359,
361
],
[
361,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
363,
366
],
[
366,
367
],
[
301,
368
],
[
368,
369
],
[
368,
370
],
[
370,
371
],
[
371,
372
],
[
371,
373
],
[
370,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
374,
381
],
[
381,
382
],
[
382,
383
],
[
382,
384
],
[
384,
385
],
[
385,
386
],
[
370,
387
],
[
387,
388
],
[
435,
389
],
[
389,
390
],
[
389,
391
],
[
391,
392
],
[
389,
393
],
[
393,
394
],
[
389,
395
],
[
395,
396
],
[
389,
397
],
[
397,
398
],
[
397,
399
],
[
389,
400
],
[
400,
401
],
[
400,
402
],
[
402,
403
],
[
403,
404
],
[
404,
405
],
[
404,
406
],
[
403,
407
],
[
400,
408
],
[
408,
409
],
[
389,
410
],
[
410,
411
],
[
410,
412
],
[
412,
413
],
[
413,
414
],
[
414,
415
],
[
414,
416
],
[
413,
417
],
[
412,
418
],
[
418,
419
],
[
419,
420
],
[
419,
421
],
[
418,
422
],
[
412,
423
],
[
423,
424
],
[
424,
425
],
[
424,
426
],
[
423,
427
],
[
410,
428
],
[
428,
429
],
[
410,
430
],
[
430,
431
],
[
410,
432
],
[
432,
433
],
[
0,
434
],
[
434,
435
],
[
434,
436
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n static FastReader s = new FastReader();\n static PrintWriter out = new PrintWriter(System.out);\n\n private static int[] rai(int n) {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextInt();\n }\n return arr;\n }\n\n private static int[][] rai(int n, int m) {\n int[][] arr = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }\n return arr;\n }\n\n private static long[] ral(int n) {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }\n return arr;\n }\n\n private static long[][] ral(int n, int m) {\n long[][] arr = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }\n return arr;\n }\n\n private static int ri() {\n return s.nextInt();\n }\n\n private static long rl() {\n return s.nextLong();\n }\n\n private static String rs() {\n return s.next();\n }\n static int gcd(int a,int b)\n {\n if(b==0)\n {\n return a;\n }\n return gcd(b,a%b);\n }\n\n static public class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n TreeNode() {}\n TreeNode(int val) { this.val = val; }\n TreeNode(int val, TreeNode left, TreeNode right)\n {\n this.val = val;\n this.left = left;\n this.right = right;\n }\n }\n\n\n public static void main(String[] args) {\n StringBuilder ans = new StringBuilder();\n// int t = ri();\n int t=1;\n while (t-- > 0) {\n int n=ri();\n long d=ri();\n int count=0;\n for(int i=0;i<n;i++)\n {\n long x=rl();\n long y=rl();\n double dist=Math.sqrt(x*x+y*y);\n if(dist<=d)\n {\n count++;\n }\n }\n ans.append(count).append(\"\\n\");\n }\n out.print(ans.toString());\n out.flush();\n\n }\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n static FastReader s = new FastReader();\n static PrintWriter out = new PrintWriter(System.out);\n\n private static int[] rai(int n) {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextInt();\n }\n return arr;\n }\n\n private static int[][] rai(int n, int m) {\n int[][] arr = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }\n return arr;\n }\n\n private static long[] ral(int n) {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }\n return arr;\n }\n\n private static long[][] ral(int n, int m) {\n long[][] arr = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }\n return arr;\n }\n\n private static int ri() {\n return s.nextInt();\n }\n\n private static long rl() {\n return s.nextLong();\n }\n\n private static String rs() {\n return s.next();\n }\n static int gcd(int a,int b)\n {\n if(b==0)\n {\n return a;\n }\n return gcd(b,a%b);\n }\n\n static public class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n TreeNode() {}\n TreeNode(int val) { this.val = val; }\n TreeNode(int val, TreeNode left, TreeNode right)\n {\n this.val = val;\n this.left = left;\n this.right = right;\n }\n }\n\n\n public static void main(String[] args) {\n StringBuilder ans = new StringBuilder();\n// int t = ri();\n int t=1;\n while (t-- > 0) {\n int n=ri();\n long d=ri();\n int count=0;\n for(int i=0;i<n;i++)\n {\n long x=rl();\n long y=rl();\n double dist=Math.sqrt(x*x+y*y);\n if(dist<=d)\n {\n count++;\n }\n }\n ans.append(count).append(\"\\n\");\n }\n out.print(ans.toString());\n out.flush();\n\n }\n\n}",
"Main",
"static FastReader s = new FastReader();",
"s",
"new FastReader()",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"private static int[] rai(int n) {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextInt();\n }\n return arr;\n }",
"rai",
"{\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextInt();\n }\n return arr;\n }",
"int[] arr = new int[n];",
"arr",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n arr[i] = s.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = s.nextInt();\n }",
"{\n arr[i] = s.nextInt();\n }",
"arr[i] = s.nextInt()",
"arr[i]",
"arr",
"i",
"s.nextInt()",
"s.nextInt",
"s",
"return arr;",
"arr",
"int n",
"n",
"private static int[][] rai(int n, int m) {\n int[][] arr = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }\n return arr;\n }",
"rai",
"{\n int[][] arr = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }\n return arr;\n }",
"int[][] arr = new int[n][m];",
"arr",
"new int[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }",
"{\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }",
"for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n arr[i][j] = s.nextInt();\n }",
"{\n arr[i][j] = s.nextInt();\n }",
"arr[i][j] = s.nextInt()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"s.nextInt()",
"s.nextInt",
"s",
"return arr;",
"arr",
"int n",
"n",
"int m",
"m",
"private static long[] ral(int n) {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }\n return arr;\n }",
"ral",
"{\n long[] arr = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }\n return arr;\n }",
"long[] arr = new long[n];",
"arr",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = s.nextLong();\n }",
"{\n arr[i] = s.nextLong();\n }",
"arr[i] = s.nextLong()",
"arr[i]",
"arr",
"i",
"s.nextLong()",
"s.nextLong",
"s",
"return arr;",
"arr",
"int n",
"n",
"private static long[][] ral(int n, int m) {\n long[][] arr = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }\n return arr;\n }",
"ral",
"{\n long[][] arr = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }\n return arr;\n }",
"long[][] arr = new long[n][m];",
"arr",
"new long[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }",
"{\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }",
"for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n arr[i][j] = s.nextLong();\n }",
"{\n arr[i][j] = s.nextLong();\n }",
"arr[i][j] = s.nextLong()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"s.nextLong()",
"s.nextLong",
"s",
"return arr;",
"arr",
"int n",
"n",
"int m",
"m",
"private static int ri() {\n return s.nextInt();\n }",
"ri",
"{\n return s.nextInt();\n }",
"return s.nextInt();",
"s.nextInt()",
"s.nextInt",
"s",
"private static long rl() {\n return s.nextLong();\n }",
"rl",
"{\n return s.nextLong();\n }",
"return s.nextLong();",
"s.nextLong()",
"s.nextLong",
"s",
"private static String rs() {\n return s.next();\n }",
"rs",
"{\n return s.next();\n }",
"return s.next();",
"s.next()",
"s.next",
"s",
"static int gcd(int a,int b)\n {\n if(b==0)\n {\n return a;\n }\n return gcd(b,a%b);\n }",
"gcd",
"{\n if(b==0)\n {\n return a;\n }\n return gcd(b,a%b);\n }",
"if(b==0)\n {\n return a;\n }",
"b==0",
"b",
"0",
"{\n return a;\n }",
"return a;",
"a",
"return gcd(b,a%b);",
"gcd(b,a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public static void main(String[] args) {\n StringBuilder ans = new StringBuilder();\n// int t = ri();\n int t=1;\n while (t-- > 0) {\n int n=ri();\n long d=ri();\n int count=0;\n for(int i=0;i<n;i++)\n {\n long x=rl();\n long y=rl();\n double dist=Math.sqrt(x*x+y*y);\n if(dist<=d)\n {\n count++;\n }\n }\n ans.append(count).append(\"\\n\");\n }\n out.print(ans.toString());\n out.flush();\n\n }",
"main",
"{\n StringBuilder ans = new StringBuilder();\n// int t = ri();\n int t=1;\n while (t-- > 0) {\n int n=ri();\n long d=ri();\n int count=0;\n for(int i=0;i<n;i++)\n {\n long x=rl();\n long y=rl();\n double dist=Math.sqrt(x*x+y*y);\n if(dist<=d)\n {\n count++;\n }\n }\n ans.append(count).append(\"\\n\");\n }\n out.print(ans.toString());\n out.flush();\n\n }",
"StringBuilder ans = new StringBuilder();",
"ans",
"new StringBuilder()",
"int t=1;",
"t",
"1",
"while (t-- > 0) {\n int n=ri();\n long d=ri();\n int count=0;\n for(int i=0;i<n;i++)\n {\n long x=rl();\n long y=rl();\n double dist=Math.sqrt(x*x+y*y);\n if(dist<=d)\n {\n count++;\n }\n }\n ans.append(count).append(\"\\n\");\n }",
"t-- > 0",
"t--",
"t",
"0",
"{\n int n=ri();\n long d=ri();\n int count=0;\n for(int i=0;i<n;i++)\n {\n long x=rl();\n long y=rl();\n double dist=Math.sqrt(x*x+y*y);\n if(dist<=d)\n {\n count++;\n }\n }\n ans.append(count).append(\"\\n\");\n }",
"int n=ri();",
"n",
"ri()",
"ri",
"long d=ri();",
"d",
"ri()",
"ri",
"int count=0;",
"count",
"0",
"for(int i=0;i<n;i++)\n {\n long x=rl();\n long y=rl();\n double dist=Math.sqrt(x*x+y*y);\n if(dist<=d)\n {\n count++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long x=rl();\n long y=rl();\n double dist=Math.sqrt(x*x+y*y);\n if(dist<=d)\n {\n count++;\n }\n }",
"{\n long x=rl();\n long y=rl();\n double dist=Math.sqrt(x*x+y*y);\n if(dist<=d)\n {\n count++;\n }\n }",
"long x=rl();",
"x",
"rl()",
"rl",
"long y=rl();",
"y",
"rl()",
"rl",
"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)\n {\n count++;\n }",
"dist<=d",
"dist",
"d",
"{\n count++;\n }",
"count++",
"count",
"ans.append(count).append(\"\\n\")",
"ans.append(count).append",
"ans.append(count)",
"ans.append",
"ans",
"count",
"\"\\n\"",
"out.print(ans.toString())",
"out.print",
"out",
"ans.toString()",
"ans.toString",
"ans",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"static public class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n TreeNode() {}\n TreeNode(int val) { this.val = val; }\n TreeNode(int val, TreeNode left, TreeNode right)\n {\n this.val = val;\n this.left = left;\n this.right = right;\n }\n }",
"TreeNode",
"int val;",
"val",
"TreeNode left;",
"left",
"TreeNode right;",
"right",
"TreeNode() {}",
"TreeNode",
"{}",
"TreeNode(int val) { this.val = val; }",
"TreeNode",
"{ this.val = val; }",
"this.val = val",
"this.val",
"this",
"this.val",
"val",
"int val",
"val",
"TreeNode(int val, TreeNode left, TreeNode right)\n {\n this.val = val;\n this.left = left;\n this.right = right;\n }",
"TreeNode",
"{\n this.val = val;\n this.left = left;\n this.right = right;\n }",
"this.val = val",
"this.val",
"this",
"this.val",
"val",
"this.left = left",
"this.left",
"this",
"this.left",
"left",
"this.right = right",
"this.right",
"this",
"this.right",
"right",
"int val",
"val",
"TreeNode left",
"left",
"TreeNode right",
"right",
"public class Main {\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n static FastReader s = new FastReader();\n static PrintWriter out = new PrintWriter(System.out);\n\n private static int[] rai(int n) {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextInt();\n }\n return arr;\n }\n\n private static int[][] rai(int n, int m) {\n int[][] arr = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }\n return arr;\n }\n\n private static long[] ral(int n) {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }\n return arr;\n }\n\n private static long[][] ral(int n, int m) {\n long[][] arr = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }\n return arr;\n }\n\n private static int ri() {\n return s.nextInt();\n }\n\n private static long rl() {\n return s.nextLong();\n }\n\n private static String rs() {\n return s.next();\n }\n static int gcd(int a,int b)\n {\n if(b==0)\n {\n return a;\n }\n return gcd(b,a%b);\n }\n\n static public class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n TreeNode() {}\n TreeNode(int val) { this.val = val; }\n TreeNode(int val, TreeNode left, TreeNode right)\n {\n this.val = val;\n this.left = left;\n this.right = right;\n }\n }\n\n\n public static void main(String[] args) {\n StringBuilder ans = new StringBuilder();\n// int t = ri();\n int t=1;\n while (t-- > 0) {\n int n=ri();\n long d=ri();\n int count=0;\n for(int i=0;i<n;i++)\n {\n long x=rl();\n long y=rl();\n double dist=Math.sqrt(x*x+y*y);\n if(dist<=d)\n {\n count++;\n }\n }\n ans.append(count).append(\"\\n\");\n }\n out.print(ans.toString());\n out.flush();\n\n }\n\n}",
"public class Main {\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n static FastReader s = new FastReader();\n static PrintWriter out = new PrintWriter(System.out);\n\n private static int[] rai(int n) {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextInt();\n }\n return arr;\n }\n\n private static int[][] rai(int n, int m) {\n int[][] arr = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }\n return arr;\n }\n\n private static long[] ral(int n) {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }\n return arr;\n }\n\n private static long[][] ral(int n, int m) {\n long[][] arr = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }\n return arr;\n }\n\n private static int ri() {\n return s.nextInt();\n }\n\n private static long rl() {\n return s.nextLong();\n }\n\n private static String rs() {\n return s.next();\n }\n static int gcd(int a,int b)\n {\n if(b==0)\n {\n return a;\n }\n return gcd(b,a%b);\n }\n\n static public class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n TreeNode() {}\n TreeNode(int val) { this.val = val; }\n TreeNode(int val, TreeNode left, TreeNode right)\n {\n this.val = val;\n this.left = left;\n this.right = right;\n }\n }\n\n\n public static void main(String[] args) {\n StringBuilder ans = new StringBuilder();\n// int t = ri();\n int t=1;\n while (t-- > 0) {\n int n=ri();\n long d=ri();\n int count=0;\n for(int i=0;i<n;i++)\n {\n long x=rl();\n long y=rl();\n double dist=Math.sqrt(x*x+y*y);\n if(dist<=d)\n {\n count++;\n }\n }\n ans.append(count).append(\"\\n\");\n }\n out.print(ans.toString());\n out.flush();\n\n }\n\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
static FastReader s = new FastReader();
static PrintWriter out = new PrintWriter(System.out);
private static int[] rai(int n) {
int[] arr = new int[n];
for (int i = 0; i < n; i++) {
arr[i] = s.nextInt();
}
return arr;
}
private static int[][] rai(int n, int m) {
int[][] arr = new int[n][m];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
arr[i][j] = s.nextInt();
}
}
return arr;
}
private static long[] ral(int n) {
long[] arr = new long[n];
for (int i = 0; i < n; i++) {
arr[i] = s.nextLong();
}
return arr;
}
private static long[][] ral(int n, int m) {
long[][] arr = new long[n][m];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
arr[i][j] = s.nextLong();
}
}
return arr;
}
private static int ri() {
return s.nextInt();
}
private static long rl() {
return s.nextLong();
}
private static String rs() {
return s.next();
}
static int gcd(int a,int b)
{
if(b==0)
{
return a;
}
return gcd(b,a%b);
}
static public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode() {}
TreeNode(int val) { this.val = val; }
TreeNode(int val, TreeNode left, TreeNode right)
{
this.val = val;
this.left = left;
this.right = right;
}
}
public static void main(String[] args) {
StringBuilder ans = new StringBuilder();
// int t = ri();
int t=1;
while (t-- > 0) {
int n=ri();
long d=ri();
int count=0;
for(int i=0;i<n;i++)
{
long x=rl();
long y=rl();
double dist=Math.sqrt(x*x+y*y);
if(dist<=d)
{
count++;
}
}
ans.append(count).append("\n");
}
out.print(ans.toString());
out.flush();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
29,
4,
18,
13,
29,
17,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
29,
17,
0,
13,
20,
29,
17,
12,
13,
30,
29,
20,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
221,
32
],
[
221,
33
],
[
33,
34
],
[
33,
35
],
[
221,
36
],
[
36,
37
],
[
36,
38
],
[
221,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
52,
53
],
[
52,
54
],
[
41,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
60,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
41,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
41,
94
],
[
94,
95
],
[
95,
96
],
[
39,
97
],
[
97,
98
],
[
221,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
99,
103
],
[
103,
104
],
[
99,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
111,
113
],
[
105,
114
],
[
114,
115
],
[
99,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
119,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
129,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
118,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
99,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
150,
151
],
[
99,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
159,
160
],
[
99,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
168,
169
],
[
99,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
173,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
172,
185
],
[
185,
186
],
[
99,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
189,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
207,
208
],
[
208,
209
],
[
189,
210
],
[
210,
211
],
[
210,
212
],
[
189,
213
],
[
213,
214
],
[
99,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
0,
220
],
[
220,
221
],
[
220,
222
]
]
| [
"import java.io.*;\nimport java.lang.*;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.IOException;\nimport java.util.StringTokenizer;\nimport java.math.BigInteger;\n\npublic class Main {\n static InputReader in = new InputReader(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) {\n int n = in.nextInt();\n double need = in.nextDouble();\n int count = 0;\n while(n-->0){\n long a = in.nextLong();\n long b = in.nextLong();\n double ans = Math.sqrt((a*a)+(b*b));\n if(ans<=need){\n ++count;\n }\n }\n out.println(count);\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }\n}\n",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n static InputReader in = new InputReader(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) {\n int n = in.nextInt();\n double need = in.nextDouble();\n int count = 0;\n while(n-->0){\n long a = in.nextLong();\n long b = in.nextLong();\n double ans = Math.sqrt((a*a)+(b*b));\n if(ans<=need){\n ++count;\n }\n }\n out.println(count);\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }\n}",
"Main",
"static InputReader in = new InputReader(System.in);",
"in",
"new InputReader(System.in)",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public static void main(String[] args) {\n int n = in.nextInt();\n double need = in.nextDouble();\n int count = 0;\n while(n-->0){\n long a = in.nextLong();\n long b = in.nextLong();\n double ans = Math.sqrt((a*a)+(b*b));\n if(ans<=need){\n ++count;\n }\n }\n out.println(count);\n out.close();\n }",
"main",
"{\n int n = in.nextInt();\n double need = in.nextDouble();\n int count = 0;\n while(n-->0){\n long a = in.nextLong();\n long b = in.nextLong();\n double ans = Math.sqrt((a*a)+(b*b));\n if(ans<=need){\n ++count;\n }\n }\n out.println(count);\n out.close();\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"double need = in.nextDouble();",
"need",
"in.nextDouble()",
"in.nextDouble",
"in",
"int count = 0;",
"count",
"0",
"while(n-->0){\n long a = in.nextLong();\n long b = in.nextLong();\n double ans = Math.sqrt((a*a)+(b*b));\n if(ans<=need){\n ++count;\n }\n }",
"n-->0",
"n--",
"n",
"0",
"{\n long a = in.nextLong();\n long b = in.nextLong();\n double ans = Math.sqrt((a*a)+(b*b));\n if(ans<=need){\n ++count;\n }\n }",
"long a = in.nextLong();",
"a",
"in.nextLong()",
"in.nextLong",
"in",
"long b = in.nextLong();",
"b",
"in.nextLong()",
"in.nextLong",
"in",
"double ans = Math.sqrt((a*a)+(b*b));",
"ans",
"Math.sqrt((a*a)+(b*b))",
"Math.sqrt",
"Math",
"(a*a)+(b*b)",
"(a*a)",
"a",
"a",
"(b*b)",
"b",
"b",
"if(ans<=need){\n ++count;\n }",
"ans<=need",
"ans",
"need",
"{\n ++count;\n }",
"++count",
"count",
"out.println(count)",
"out.println",
"out",
"count",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream), 32768)",
"reader",
"new BufferedReader(new InputStreamReader(stream), 32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"nextLine",
"{\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }",
"catch (Exception e) {\n e.printStackTrace();\n }",
"Exception e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n return reader.readLine();\n }",
"return reader.readLine();",
"reader.readLine()",
"reader.readLine",
"reader",
"return null;",
"null",
"public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }",
"hasNext",
"{\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }",
"String next = null;",
"next",
"null",
"try {\n next = reader.readLine();\n } catch (Exception e) {\n }",
"catch (Exception e) {\n }",
"Exception e",
"{\n }",
"{\n next = reader.readLine();\n }",
"next = reader.readLine()",
"next",
"reader.readLine()",
"reader.readLine",
"reader",
"if (next == null) {\n return false;\n }",
"next == null",
"next",
"null",
"{\n return false;\n }",
"return false;",
"false",
"tokenizer = new StringTokenizer(next)",
"tokenizer",
"new StringTokenizer(next)",
"return true;",
"true",
"public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }",
"nextBigInteger",
"{\n return new BigInteger(next());\n }",
"return new BigInteger(next());",
"new BigInteger(next())",
"public class Main {\n static InputReader in = new InputReader(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) {\n int n = in.nextInt();\n double need = in.nextDouble();\n int count = 0;\n while(n-->0){\n long a = in.nextLong();\n long b = in.nextLong();\n double ans = Math.sqrt((a*a)+(b*b));\n if(ans<=need){\n ++count;\n }\n }\n out.println(count);\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }\n}",
"public class Main {\n static InputReader in = new InputReader(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) {\n int n = in.nextInt();\n double need = in.nextDouble();\n int count = 0;\n while(n-->0){\n long a = in.nextLong();\n long b = in.nextLong();\n double ans = Math.sqrt((a*a)+(b*b));\n if(ans<=need){\n ++count;\n }\n }\n out.println(count);\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.lang.*;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.util.StringTokenizer;
import java.math.BigInteger;
public class Main {
static InputReader in = new InputReader(System.in);
static PrintWriter out = new PrintWriter(System.out);
public static void main(String[] args) {
int n = in.nextInt();
double need = in.nextDouble();
int count = 0;
while(n-->0){
long a = in.nextLong();
long b = in.nextLong();
double ans = Math.sqrt((a*a)+(b*b));
if(ans<=need){
++count;
}
}
out.println(count);
out.close();
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public long nextLong() {
return Long.parseLong(next());
}
public double nextDouble() {
return Double.parseDouble(next());
}
public String nextLine() {
try {
return reader.readLine();
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
public boolean hasNext() {
String next = null;
try {
next = reader.readLine();
} catch (Exception e) {
}
if (next == null) {
return false;
}
tokenizer = new StringTokenizer(next);
return true;
}
public BigInteger nextBigInteger() {
return new BigInteger(next());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
34,
35
],
[
34,
36
],
[
0,
37
],
[
37,
38
],
[
37,
39
],
[
0,
40
],
[
40,
41
],
[
40,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
],
[
0,
52
],
[
230,
53
],
[
230,
54
],
[
54,
55
],
[
54,
56
],
[
230,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
59,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
59,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
59,
76
],
[
76,
77
],
[
76,
78
],
[
59,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
91,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
91,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
91,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
91,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
59,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
57,
139
],
[
139,
140
],
[
230,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
141,
145
],
[
145,
146
],
[
141,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
141,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
156,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
166,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
155,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
141,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
185,
188
],
[
188,
189
],
[
141,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
194,
197
],
[
197,
198
],
[
141,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
203,
206
],
[
206,
207
],
[
141,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
214,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
210,
227
],
[
227,
228
],
[
0,
229
],
[
229,
230
],
[
229,
231
]
]
| [
"///*Radhe Krishna*/\nimport javax.management.DynamicMBean;\nimport javax.print.DocFlavor;\nimport javax.print.attribute.HashAttributeSet;\nimport java.awt.*;\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.math.BigInteger;\nimport java.net.CookieHandler;\nimport java.nio.file.attribute.FileAttribute;\nimport java.util.List;\nimport java.util.Scanner;\nimport java.util.StringTokenizer;\nimport java.util.*;\nimport java.util.Arrays;\nimport java.util.concurrent.Callable;\n\n\n\npublic class Main {\n static int mod = 1000000007;\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n PrintWriter out = new PrintWriter(System.out);\n// Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n double d=sc.nextDouble();\n\n int count=0;\n for(int j=0;j<n;j++){\n int x=sc.nextInt();\n int y=sc.nextInt();\n x=Math.abs(x);\n y=Math.abs(y);\n double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));\n if(dis<=(double)d){\n count++;\n }\n\n }\n System.out.println(count);\n\n }\n}\n\n\n",
"import javax.management.DynamicMBean;",
"DynamicMBean",
"javax.management",
"import javax.print.DocFlavor;",
"DocFlavor",
"javax.print",
"import javax.print.attribute.HashAttributeSet;",
"HashAttributeSet",
"javax.print.attribute",
"import java.awt.*;",
"awt.*",
"java",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.net.CookieHandler;",
"CookieHandler",
"java.net",
"import java.nio.file.attribute.FileAttribute;",
"FileAttribute",
"java.nio.file.attribute",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.*;",
"util.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.concurrent.Callable;",
"Callable",
"java.util.concurrent",
"public class Main {\n static int mod = 1000000007;\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n PrintWriter out = new PrintWriter(System.out);\n// Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n double d=sc.nextDouble();\n\n int count=0;\n for(int j=0;j<n;j++){\n int x=sc.nextInt();\n int y=sc.nextInt();\n x=Math.abs(x);\n y=Math.abs(y);\n double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));\n if(dis<=(double)d){\n count++;\n }\n\n }\n System.out.println(count);\n\n }\n}",
"Main",
"static int mod = 1000000007;",
"mod",
"1000000007",
"public static void main(String[] args) {\n FastReader sc = new FastReader();\n PrintWriter out = new PrintWriter(System.out);\n// Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n double d=sc.nextDouble();\n\n int count=0;\n for(int j=0;j<n;j++){\n int x=sc.nextInt();\n int y=sc.nextInt();\n x=Math.abs(x);\n y=Math.abs(y);\n double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));\n if(dis<=(double)d){\n count++;\n }\n\n }\n System.out.println(count);\n\n }",
"main",
"{\n FastReader sc = new FastReader();\n PrintWriter out = new PrintWriter(System.out);\n// Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n double d=sc.nextDouble();\n\n int count=0;\n for(int j=0;j<n;j++){\n int x=sc.nextInt();\n int y=sc.nextInt();\n x=Math.abs(x);\n y=Math.abs(y);\n double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));\n if(dis<=(double)d){\n count++;\n }\n\n }\n System.out.println(count);\n\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double d=sc.nextDouble();",
"d",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"int count=0;",
"count",
"0",
"for(int j=0;j<n;j++){\n int x=sc.nextInt();\n int y=sc.nextInt();\n x=Math.abs(x);\n y=Math.abs(y);\n double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));\n if(dis<=(double)d){\n count++;\n }\n\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"{\n int x=sc.nextInt();\n int y=sc.nextInt();\n x=Math.abs(x);\n y=Math.abs(y);\n double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));\n if(dis<=(double)d){\n count++;\n }\n\n }",
"{\n int x=sc.nextInt();\n int y=sc.nextInt();\n x=Math.abs(x);\n y=Math.abs(y);\n double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));\n if(dis<=(double)d){\n count++;\n }\n\n }",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y=sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x=Math.abs(x)",
"x",
"Math.abs(x)",
"Math.abs",
"Math",
"x",
"y=Math.abs(y)",
"y",
"Math.abs(y)",
"Math.abs",
"Math",
"y",
"double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));",
"dis",
"(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y))",
"Math.sqrt",
"Math",
"(double)((long)x*x)+(double)((long)y*y)",
"(double)((long)x*x)",
"(long)x",
"x",
"(double)((long)y*y)",
"(long)y",
"y",
"if(dis<=(double)d){\n count++;\n }",
"dis<=(double)d",
"dis",
"(double)d",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n static int mod = 1000000007;\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n PrintWriter out = new PrintWriter(System.out);\n// Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n double d=sc.nextDouble();\n\n int count=0;\n for(int j=0;j<n;j++){\n int x=sc.nextInt();\n int y=sc.nextInt();\n x=Math.abs(x);\n y=Math.abs(y);\n double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));\n if(dis<=(double)d){\n count++;\n }\n\n }\n System.out.println(count);\n\n }\n}",
"public class Main {\n static int mod = 1000000007;\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n PrintWriter out = new PrintWriter(System.out);\n// Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n double d=sc.nextDouble();\n\n int count=0;\n for(int j=0;j<n;j++){\n int x=sc.nextInt();\n int y=sc.nextInt();\n x=Math.abs(x);\n y=Math.abs(y);\n double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));\n if(dis<=(double)d){\n count++;\n }\n\n }\n System.out.println(count);\n\n }\n}",
"Main"
]
| ///*Radhe Krishna*/
import javax.management.DynamicMBean;
import javax.print.DocFlavor;
import javax.print.attribute.HashAttributeSet;
import java.awt.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.net.CookieHandler;
import java.nio.file.attribute.FileAttribute;
import java.util.List;
import java.util.Scanner;
import java.util.StringTokenizer;
import java.util.*;
import java.util.Arrays;
import java.util.concurrent.Callable;
public class Main {
static int mod = 1000000007;
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
public static void main(String[] args) {
FastReader sc = new FastReader();
PrintWriter out = new PrintWriter(System.out);
// Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
double d=sc.nextDouble();
int count=0;
for(int j=0;j<n;j++){
int x=sc.nextInt();
int y=sc.nextInt();
x=Math.abs(x);
y=Math.abs(y);
double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));
if(dis<=(double)d){
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
115,
11
],
[
115,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
14,
45
],
[
45,
46
],
[
45,
47
],
[
14,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
60,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
60,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
60,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
60,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
14,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
12,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n String line = stdin.readLine();\n String[] temp = line.split(\" \");\n int number = Integer.parseInt(temp[0]);\n int distance = Integer.parseInt(temp[1]);\n\n int count = 0;\n for(int i = 0 ; i < number; i++){\n line = stdin.readLine();\n temp = line.split(\" \");\n double x = Double.parseDouble(temp[0]);\n double y = Double.parseDouble(temp[1]);\n double d = Math.sqrt(x*x + y*y);\n if(d<=distance)\n count++;\n }\n\n System.out.println(count);\n }\n\n} ",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n String line = stdin.readLine();\n String[] temp = line.split(\" \");\n int number = Integer.parseInt(temp[0]);\n int distance = Integer.parseInt(temp[1]);\n\n int count = 0;\n for(int i = 0 ; i < number; i++){\n line = stdin.readLine();\n temp = line.split(\" \");\n double x = Double.parseDouble(temp[0]);\n double y = Double.parseDouble(temp[1]);\n double d = Math.sqrt(x*x + y*y);\n if(d<=distance)\n count++;\n }\n\n System.out.println(count);\n }\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n String line = stdin.readLine();\n String[] temp = line.split(\" \");\n int number = Integer.parseInt(temp[0]);\n int distance = Integer.parseInt(temp[1]);\n\n int count = 0;\n for(int i = 0 ; i < number; i++){\n line = stdin.readLine();\n temp = line.split(\" \");\n double x = Double.parseDouble(temp[0]);\n double y = Double.parseDouble(temp[1]);\n double d = Math.sqrt(x*x + y*y);\n if(d<=distance)\n count++;\n }\n\n System.out.println(count);\n }",
"main",
"{\n\n BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n String line = stdin.readLine();\n String[] temp = line.split(\" \");\n int number = Integer.parseInt(temp[0]);\n int distance = Integer.parseInt(temp[1]);\n\n int count = 0;\n for(int i = 0 ; i < number; i++){\n line = stdin.readLine();\n temp = line.split(\" \");\n double x = Double.parseDouble(temp[0]);\n double y = Double.parseDouble(temp[1]);\n double d = Math.sqrt(x*x + y*y);\n if(d<=distance)\n count++;\n }\n\n System.out.println(count);\n }",
"BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));",
"stdin",
"new BufferedReader(new InputStreamReader(System.in))",
"String line = stdin.readLine();",
"line",
"stdin.readLine()",
"stdin.readLine",
"stdin",
"String[] temp = line.split(\" \");",
"temp",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"int number = Integer.parseInt(temp[0]);",
"number",
"Integer.parseInt(temp[0])",
"Integer.parseInt",
"Integer",
"temp[0]",
"temp",
"0",
"int distance = Integer.parseInt(temp[1]);",
"distance",
"Integer.parseInt(temp[1])",
"Integer.parseInt",
"Integer",
"temp[1]",
"temp",
"1",
"int count = 0;",
"count",
"0",
"for(int i = 0 ; i < number; i++){\n line = stdin.readLine();\n temp = line.split(\" \");\n double x = Double.parseDouble(temp[0]);\n double y = Double.parseDouble(temp[1]);\n double d = Math.sqrt(x*x + y*y);\n if(d<=distance)\n count++;\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < number",
"i",
"number",
"i++",
"i++",
"i",
"{\n line = stdin.readLine();\n temp = line.split(\" \");\n double x = Double.parseDouble(temp[0]);\n double y = Double.parseDouble(temp[1]);\n double d = Math.sqrt(x*x + y*y);\n if(d<=distance)\n count++;\n }",
"{\n line = stdin.readLine();\n temp = line.split(\" \");\n double x = Double.parseDouble(temp[0]);\n double y = Double.parseDouble(temp[1]);\n double d = Math.sqrt(x*x + y*y);\n if(d<=distance)\n count++;\n }",
"line = stdin.readLine()",
"line",
"stdin.readLine()",
"stdin.readLine",
"stdin",
"temp = line.split(\" \")",
"temp",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"double x = Double.parseDouble(temp[0]);",
"x",
"Double.parseDouble(temp[0])",
"Double.parseDouble",
"Double",
"temp[0]",
"temp",
"0",
"double y = Double.parseDouble(temp[1]);",
"y",
"Double.parseDouble(temp[1])",
"Double.parseDouble",
"Double",
"temp[1]",
"temp",
"1",
"double d = Math.sqrt(x*x + y*y);",
"d",
"Math.sqrt(x*x + y*y)",
"Math.sqrt",
"Math",
"x*x + y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"if(d<=distance)\n count++;",
"d<=distance",
"d",
"distance",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n String line = stdin.readLine();\n String[] temp = line.split(\" \");\n int number = Integer.parseInt(temp[0]);\n int distance = Integer.parseInt(temp[1]);\n\n int count = 0;\n for(int i = 0 ; i < number; i++){\n line = stdin.readLine();\n temp = line.split(\" \");\n double x = Double.parseDouble(temp[0]);\n double y = Double.parseDouble(temp[1]);\n double d = Math.sqrt(x*x + y*y);\n if(d<=distance)\n count++;\n }\n\n System.out.println(count);\n }\n\n}",
"public class Main {\n\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n String line = stdin.readLine();\n String[] temp = line.split(\" \");\n int number = Integer.parseInt(temp[0]);\n int distance = Integer.parseInt(temp[1]);\n\n int count = 0;\n for(int i = 0 ; i < number; i++){\n line = stdin.readLine();\n temp = line.split(\" \");\n double x = Double.parseDouble(temp[0]);\n double y = Double.parseDouble(temp[1]);\n double d = Math.sqrt(x*x + y*y);\n if(d<=distance)\n count++;\n }\n\n System.out.println(count);\n }\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
String line = stdin.readLine();
String[] temp = line.split(" ");
int number = Integer.parseInt(temp[0]);
int distance = Integer.parseInt(temp[1]);
int count = 0;
for(int i = 0 ; i < number; i++){
line = stdin.readLine();
temp = line.split(" ");
double x = Double.parseDouble(temp[0]);
double y = Double.parseDouble(temp[1]);
double d = Math.sqrt(x*x + y*y);
if(d<=distance)
count++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
14,
2,
13,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
37,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int D = sc.nextInt();\n\n int result = 0;\n\n for (int i = 0; i < N; i++) {\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (calcResult <= D) {\n result += 1;\n }\n }\n \n System.out.println(result);\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int D = sc.nextInt();\n\n int result = 0;\n\n for (int i = 0; i < N; i++) {\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (calcResult <= D) {\n result += 1;\n }\n }\n \n System.out.println(result);\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int D = sc.nextInt();\n\n int result = 0;\n\n for (int i = 0; i < N; i++) {\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (calcResult <= D) {\n result += 1;\n }\n }\n \n System.out.println(result);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int D = sc.nextInt();\n\n int result = 0;\n\n for (int i = 0; i < N; i++) {\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (calcResult <= D) {\n result += 1;\n }\n }\n \n System.out.println(result);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int D = sc.nextInt();",
"D",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int result = 0;",
"result",
"0",
"for (int i = 0; i < N; i++) {\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (calcResult <= D) {\n result += 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (calcResult <= D) {\n result += 1;\n }\n }",
"{\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (calcResult <= D) {\n result += 1;\n }\n }",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));",
"calcResult",
"Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2))",
"Math.sqrt",
"Math",
"Math.pow(X, 2) + Math.pow(Y, 2)",
"Math.pow(X, 2)",
"Math.pow",
"Math",
"X",
"2",
"Math.pow(Y, 2)",
"Math.pow",
"Math",
"Y",
"2",
"if (calcResult <= D) {\n result += 1;\n }",
"calcResult <= D",
"calcResult",
"D",
"{\n result += 1;\n }",
"result += 1",
"result",
"1",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int D = sc.nextInt();\n\n int result = 0;\n\n for (int i = 0; i < N; i++) {\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (calcResult <= D) {\n result += 1;\n }\n }\n \n System.out.println(result);\n sc.close();\n }\n}",
"public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int D = sc.nextInt();\n\n int result = 0;\n\n for (int i = 0; i < N; i++) {\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (calcResult <= D) {\n result += 1;\n }\n }\n \n System.out.println(result);\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int D = sc.nextInt();
int result = 0;
for (int i = 0; i < N; i++) {
int X = sc.nextInt();
int Y = sc.nextInt();
double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
if (calcResult <= D) {
result += 1;
}
}
System.out.println(result);
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
40,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
0,
13,
17,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
11,
1,
0,
13,
4,
13,
2,
13,
17,
1,
0,
13,
4,
13,
30,
41,
13,
20,
11,
1,
2,
13,
17,
1,
0,
13,
4,
13,
30,
30,
4,
18,
13,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
41,
13,
17,
11,
1,
0,
13,
4,
13,
2,
13,
17,
1,
0,
13,
4,
13,
30,
41,
13,
2,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
13,
11,
1,
2,
2,
13,
17,
2,
13,
17,
1,
0,
13,
4,
13,
30,
30,
0,
13,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
29,
8,
13,
40,
13,
13,
12,
13,
30,
41,
13,
41,
13,
17,
11,
1,
0,
13,
4,
13,
2,
13,
17,
1,
0,
13,
4,
13,
30,
41,
13,
2,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
13,
11,
1,
2,
2,
13,
17,
2,
13,
17,
1,
0,
13,
4,
13,
30,
30,
0,
13,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
29,
8,
13,
40,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
339,
11
],
[
339,
12
],
[
12,
13
],
[
12,
14
],
[
339,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
40,
41
],
[
40,
42
],
[
29,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
75,
77
],
[
66,
78
],
[
78,
79
],
[
79,
80
],
[
29,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
17,
85
],
[
85,
86
],
[
86,
87
],
[
17,
88
],
[
88,
89
],
[
89,
90
],
[
15,
91
],
[
91,
92
],
[
339,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
93,
99
],
[
99,
100
],
[
93,
101
],
[
101,
102
],
[
93,
103
],
[
103,
104
],
[
93,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
105,
111
],
[
111,
112
],
[
93,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
120,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
115,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
93,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
148,
154
],
[
154,
155
],
[
154,
156
],
[
148,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
148,
162
],
[
145,
163
],
[
163,
164
],
[
163,
165
],
[
145,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
166,
176
],
[
177,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
145,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
93,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
188,
191
],
[
191,
192
],
[
191,
193
],
[
188,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
194,
200
],
[
200,
201
],
[
200,
202
],
[
194,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
194,
208
],
[
188,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
211,
213
],
[
188,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
219,
220
],
[
219,
221
],
[
214,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
188,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
233,
234
],
[
233,
235
],
[
227,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
227,
241
],
[
242,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
246,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
250
],
[
250,
251
],
[
250,
252
],
[
246,
253
],
[
253,
254
],
[
253,
255
],
[
188,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
257,
261
],
[
93,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
265,
266
],
[
264,
267
],
[
267,
268
],
[
267,
269
],
[
264,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
270,
276
],
[
276,
277
],
[
276,
278
],
[
270,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
270,
284
],
[
264,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
287,
289
],
[
264,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
291,
295
],
[
295,
296
],
[
295,
297
],
[
290,
298
],
[
298,
299
],
[
299,
300
],
[
299,
301
],
[
301,
302
],
[
264,
303
],
[
303,
304
],
[
303,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
305,
309
],
[
309,
310
],
[
309,
311
],
[
303,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
303,
317
],
[
318,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
322,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
322,
326
],
[
326,
327
],
[
326,
328
],
[
322,
329
],
[
329,
330
],
[
329,
331
],
[
264,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
335,
336
],
[
333,
337
],
[
0,
338
],
[
338,
339
],
[
338,
340
]
]
| [
"//package com.company;\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n//****Use Integer Wrapper Class for Arrays.sort()****\npublic class Main{\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] Args)throws Exception{\n FastReader scan=new FastReader(System.in);\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n int n=scan.nextInt();\n long d=scan.nextInt();\n int c=0;\n for(int i=0;i<n;i++){\n long x=scan.nextInt();\n long y=scan.nextInt();\n if(x*x+y*y<=d*d){\n c++;\n }\n }\n out.println(c);\n }\n out.flush();\n out.close();\n }\n static class FastReader {\n\n byte[] buf = new byte[2048];\n int index, total;\n InputStream in;\n\n FastReader(InputStream is) {\n in = is;\n }\n\n int scan() throws IOException {\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }\n\n String next() throws IOException {\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }\n\n int nextInt() throws IOException {\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n long nextLong() throws IOException {\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] Args)throws Exception{\n FastReader scan=new FastReader(System.in);\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n int n=scan.nextInt();\n long d=scan.nextInt();\n int c=0;\n for(int i=0;i<n;i++){\n long x=scan.nextInt();\n long y=scan.nextInt();\n if(x*x+y*y<=d*d){\n c++;\n }\n }\n out.println(c);\n }\n out.flush();\n out.close();\n }\n static class FastReader {\n\n byte[] buf = new byte[2048];\n int index, total;\n InputStream in;\n\n FastReader(InputStream is) {\n in = is;\n }\n\n int scan() throws IOException {\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }\n\n String next() throws IOException {\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }\n\n int nextInt() throws IOException {\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n long nextLong() throws IOException {\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n }\n}",
"Main",
"static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));",
"out",
"new PrintWriter(new OutputStreamWriter(System.out))",
"public static void main(String[] Args)throws Exception{\n FastReader scan=new FastReader(System.in);\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n int n=scan.nextInt();\n long d=scan.nextInt();\n int c=0;\n for(int i=0;i<n;i++){\n long x=scan.nextInt();\n long y=scan.nextInt();\n if(x*x+y*y<=d*d){\n c++;\n }\n }\n out.println(c);\n }\n out.flush();\n out.close();\n }",
"main",
"{\n FastReader scan=new FastReader(System.in);\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n int n=scan.nextInt();\n long d=scan.nextInt();\n int c=0;\n for(int i=0;i<n;i++){\n long x=scan.nextInt();\n long y=scan.nextInt();\n if(x*x+y*y<=d*d){\n c++;\n }\n }\n out.println(c);\n }\n out.flush();\n out.close();\n }",
"FastReader scan=new FastReader(System.in);",
"scan",
"new FastReader(System.in)",
"int t=1;",
"t",
"1",
"while(t-->0){\n int n=scan.nextInt();\n long d=scan.nextInt();\n int c=0;\n for(int i=0;i<n;i++){\n long x=scan.nextInt();\n long y=scan.nextInt();\n if(x*x+y*y<=d*d){\n c++;\n }\n }\n out.println(c);\n }",
"t-->0",
"t--",
"t",
"0",
"{\n int n=scan.nextInt();\n long d=scan.nextInt();\n int c=0;\n for(int i=0;i<n;i++){\n long x=scan.nextInt();\n long y=scan.nextInt();\n if(x*x+y*y<=d*d){\n c++;\n }\n }\n out.println(c);\n }",
"int n=scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long d=scan.nextInt();",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int c=0;",
"c",
"0",
"for(int i=0;i<n;i++){\n long x=scan.nextInt();\n long y=scan.nextInt();\n if(x*x+y*y<=d*d){\n c++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long x=scan.nextInt();\n long y=scan.nextInt();\n if(x*x+y*y<=d*d){\n c++;\n }\n }",
"{\n long x=scan.nextInt();\n long y=scan.nextInt();\n if(x*x+y*y<=d*d){\n c++;\n }\n }",
"long x=scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long y=scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(x*x+y*y<=d*d){\n c++;\n }",
"x*x+y*y<=d*d",
"x*x+y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"d*d",
"d",
"d",
"{\n c++;\n }",
"c++",
"c",
"out.println(c)",
"out.println",
"out",
"c",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"String[] Args",
"Args",
"static class FastReader {\n\n byte[] buf = new byte[2048];\n int index, total;\n InputStream in;\n\n FastReader(InputStream is) {\n in = is;\n }\n\n int scan() throws IOException {\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }\n\n String next() throws IOException {\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }\n\n int nextInt() throws IOException {\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n long nextLong() throws IOException {\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n }",
"FastReader",
"byte[] buf = new byte[2048];",
"buf",
"new byte[2048]",
"2048",
"int index",
"index",
"total;",
"total",
"InputStream in;",
"in",
"FastReader(InputStream is) {\n in = is;\n }",
"FastReader",
"{\n in = is;\n }",
"in = is",
"in",
"is",
"InputStream is",
"is",
"int scan() throws IOException {\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }",
"scan",
"{\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }",
"if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }",
"index >= total",
"index",
"total",
"{\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }",
"index = 0",
"index",
"0",
"total = in.read(buf)",
"total",
"in.read(buf)",
"in.read",
"in",
"buf",
"if (total <= 0) {\n return -1;\n }",
"total <= 0",
"total",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[index++];",
"buf[index++]",
"buf",
"index++",
"index",
"String next() throws IOException {\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }",
"next",
"{\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }",
"int c;",
"c",
"for (c = scan(); c <= 32; c = scan()) ;",
"c = scan();",
"c = scan()",
"c",
"scan()",
"scan",
"c <= 32",
"c",
"32",
"c = scan()",
"c = scan()",
"c",
"scan()",
"scan",
";",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for (; c > 32; c = scan()) {\n sb.append((char) c);\n }",
";",
"c > 32",
"c",
"32",
"c = scan()",
"c = scan()",
"c",
"scan()",
"scan",
"{\n sb.append((char) c);\n }",
"{\n sb.append((char) c);\n }",
"sb.append((char) c)",
"sb.append",
"sb",
"(char) c",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"int nextInt() throws IOException {\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }",
"nextInt",
"{\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }",
"int c",
"c",
"val = 0;",
"val",
"0",
"for (c = scan(); c <= 32; c = scan()) ;",
"c = scan();",
"c = scan()",
"c",
"scan()",
"scan",
"c <= 32",
"c",
"32",
"c = scan()",
"c = scan()",
"c",
"scan()",
"scan",
";",
"boolean neg = c == '-';",
"neg",
"c == '-'",
"c",
"'-'",
"if (c == '-' || c == '+') {\n c = scan();\n }",
"c == '-' || c == '+'",
"c == '-'",
"c",
"'-'",
"c == '+'",
"c",
"'+'",
"{\n c = scan();\n }",
"c = scan()",
"c",
"scan()",
"scan",
"for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }",
";",
"c >= '0' && c <= '9'",
"c >= '0'",
"c",
"'0'",
"c <= '9'",
"c",
"'9'",
"c = scan()",
"c = scan()",
"c",
"scan()",
"scan",
"{\n val = (val << 3) + (val << 1) + (c & 15);\n }",
"{\n val = (val << 3) + (val << 1) + (c & 15);\n }",
"val = (val << 3) + (val << 1) + (c & 15)",
"val",
"(val << 3) + (val << 1) + (c & 15)",
"(val << 3) + (val << 1) + (c & 15)",
"(val << 3)",
"val",
"3",
"(val << 1)",
"val",
"1",
"(c & 15)",
"c",
"15",
"return neg ? -val : val;",
"neg ? -val : val",
"neg",
"-val",
"val",
"val",
"long nextLong() throws IOException {\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }",
"nextLong",
"{\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }",
"int c;",
"c",
"long val = 0;",
"val",
"0",
"for (c = scan(); c <= 32; c = scan()) ;",
"c = scan();",
"c = scan()",
"c",
"scan()",
"scan",
"c <= 32",
"c",
"32",
"c = scan()",
"c = scan()",
"c",
"scan()",
"scan",
";",
"boolean neg = c == '-';",
"neg",
"c == '-'",
"c",
"'-'",
"if (c == '-' || c == '+') {\n c = scan();\n }",
"c == '-' || c == '+'",
"c == '-'",
"c",
"'-'",
"c == '+'",
"c",
"'+'",
"{\n c = scan();\n }",
"c = scan()",
"c",
"scan()",
"scan",
"for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }",
";",
"c >= '0' && c <= '9'",
"c >= '0'",
"c",
"'0'",
"c <= '9'",
"c",
"'9'",
"c = scan()",
"c = scan()",
"c",
"scan()",
"scan",
"{\n val = (val << 3) + (val << 1) + (c & 15);\n }",
"{\n val = (val << 3) + (val << 1) + (c & 15);\n }",
"val = (val << 3) + (val << 1) + (c & 15)",
"val",
"(val << 3) + (val << 1) + (c & 15)",
"(val << 3) + (val << 1) + (c & 15)",
"(val << 3)",
"val",
"3",
"(val << 1)",
"val",
"1",
"(c & 15)",
"c",
"15",
"return neg ? -val : val;",
"neg ? -val : val",
"neg",
"-val",
"val",
"val",
"public class Main{\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] Args)throws Exception{\n FastReader scan=new FastReader(System.in);\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n int n=scan.nextInt();\n long d=scan.nextInt();\n int c=0;\n for(int i=0;i<n;i++){\n long x=scan.nextInt();\n long y=scan.nextInt();\n if(x*x+y*y<=d*d){\n c++;\n }\n }\n out.println(c);\n }\n out.flush();\n out.close();\n }\n static class FastReader {\n\n byte[] buf = new byte[2048];\n int index, total;\n InputStream in;\n\n FastReader(InputStream is) {\n in = is;\n }\n\n int scan() throws IOException {\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }\n\n String next() throws IOException {\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }\n\n int nextInt() throws IOException {\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n long nextLong() throws IOException {\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n }\n}",
"public class Main{\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] Args)throws Exception{\n FastReader scan=new FastReader(System.in);\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n int n=scan.nextInt();\n long d=scan.nextInt();\n int c=0;\n for(int i=0;i<n;i++){\n long x=scan.nextInt();\n long y=scan.nextInt();\n if(x*x+y*y<=d*d){\n c++;\n }\n }\n out.println(c);\n }\n out.flush();\n out.close();\n }\n static class FastReader {\n\n byte[] buf = new byte[2048];\n int index, total;\n InputStream in;\n\n FastReader(InputStream is) {\n in = is;\n }\n\n int scan() throws IOException {\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }\n\n String next() throws IOException {\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }\n\n int nextInt() throws IOException {\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n long nextLong() throws IOException {\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n }\n}",
"Main"
]
| //package com.company;
import java.util.*;
import java.lang.*;
import java.io.*;
//****Use Integer Wrapper Class for Arrays.sort()****
public class Main{
static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));
public static void main(String[] Args)throws Exception{
FastReader scan=new FastReader(System.in);
int t=1;
// t=scan.nextInt();
while(t-->0){
int n=scan.nextInt();
long d=scan.nextInt();
int c=0;
for(int i=0;i<n;i++){
long x=scan.nextInt();
long y=scan.nextInt();
if(x*x+y*y<=d*d){
c++;
}
}
out.println(c);
}
out.flush();
out.close();
}
static class FastReader {
byte[] buf = new byte[2048];
int index, total;
InputStream in;
FastReader(InputStream is) {
in = is;
}
int scan() throws IOException {
if (index >= total) {
index = 0;
total = in.read(buf);
if (total <= 0) {
return -1;
}
}
return buf[index++];
}
String next() throws IOException {
int c;
for (c = scan(); c <= 32; c = scan()) ;
StringBuilder sb = new StringBuilder();
for (; c > 32; c = scan()) {
sb.append((char) c);
}
return sb.toString();
}
int nextInt() throws IOException {
int c, val = 0;
for (c = scan(); c <= 32; c = scan()) ;
boolean neg = c == '-';
if (c == '-' || c == '+') {
c = scan();
}
for (; c >= '0' && c <= '9'; c = scan()) {
val = (val << 3) + (val << 1) + (c & 15);
}
return neg ? -val : val;
}
long nextLong() throws IOException {
int c;
long val = 0;
for (c = scan(); c <= 32; c = scan()) ;
boolean neg = c == '-';
if (c == '-' || c == '+') {
c = scan();
}
for (; c >= '0' && c <= '9'; c = scan()) {
val = (val << 3) + (val << 1) + (c & 15);
}
return neg ? -val : val;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
84,
8
],
[
84,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
11,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
60,
72
],
[
72,
73
],
[
73,
74
],
[
11,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
9,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner (System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tint cnt=0;\n\t\tboolean flgSame = false;\n\t\t\n\t\tArrayList<Integer> arrX = new ArrayList<>();\n\t\tArrayList<Integer> arrY = new ArrayList<>();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\tif(d*d >=x*x + y*y) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner (System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tint cnt=0;\n\t\tboolean flgSame = false;\n\t\t\n\t\tArrayList<Integer> arrX = new ArrayList<>();\n\t\tArrayList<Integer> arrY = new ArrayList<>();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\tif(d*d >=x*x + y*y) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner (System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tint cnt=0;\n\t\tboolean flgSame = false;\n\t\t\n\t\tArrayList<Integer> arrX = new ArrayList<>();\n\t\tArrayList<Integer> arrY = new ArrayList<>();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\tif(d*d >=x*x + y*y) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner (System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tint cnt=0;\n\t\tboolean flgSame = false;\n\t\t\n\t\tArrayList<Integer> arrX = new ArrayList<>();\n\t\tArrayList<Integer> arrY = new ArrayList<>();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\tif(d*d >=x*x + y*y) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"Scanner sc = new Scanner (System.in);",
"sc",
"new Scanner (System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int cnt=0;",
"cnt",
"0",
"boolean flgSame = false;",
"flgSame",
"false",
"ArrayList<Integer> arrX = new ArrayList<>();",
"arrX",
"new ArrayList<>()",
"ArrayList<Integer> arrY = new ArrayList<>();",
"arrY",
"new ArrayList<>()",
"for(int i=0;i<n;i++) {\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\tif(d*d >=x*x + y*y) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\tif(d*d >=x*x + y*y) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\tif(d*d >=x*x + y*y) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"long x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(d*d >=x*x + y*y) {\n\t\t\t\tcnt++;\n\t\t\t}",
"d*d >=x*x + y*y",
"d*d",
"d",
"d",
"x*x + y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"{\n\t\t\t\tcnt++;\n\t\t\t}",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner (System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tint cnt=0;\n\t\tboolean flgSame = false;\n\t\t\n\t\tArrayList<Integer> arrX = new ArrayList<>();\n\t\tArrayList<Integer> arrY = new ArrayList<>();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\tif(d*d >=x*x + y*y) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner (System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tint cnt=0;\n\t\tboolean flgSame = false;\n\t\t\n\t\tArrayList<Integer> arrX = new ArrayList<>();\n\t\tArrayList<Integer> arrY = new ArrayList<>();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\tif(d*d >=x*x + y*y) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner (System.in);
int n = sc.nextInt();
long d = sc.nextInt();
int cnt=0;
boolean flgSame = false;
ArrayList<Integer> arrX = new ArrayList<>();
ArrayList<Integer> arrY = new ArrayList<>();
for(int i=0;i<n;i++) {
long x = sc.nextInt();
long y = sc.nextInt();
if(d*d >=x*x + y*y) {
cnt++;
}
}
System.out.println(cnt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
2,
4,
18,
13,
18,
18,
13,
13,
17,
17,
4,
18,
13,
18,
18,
13,
13,
17,
17,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
118,
5
],
[
118,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
84,
92
],
[
83,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
93,
101
],
[
77,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
8,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
6,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tint count = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint D = scan.nextInt();\n\t\tint[][] point = new int[N][2];\n\t\t\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tfor(int j=0;j<2;j++) {\n\t\t\t\tpoint[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdouble a = Math.sqrt(Math.pow(point[i][0],2)+Math.pow(point[i][1],2));\n\t\t\tif(a<=D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tint count = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint D = scan.nextInt();\n\t\tint[][] point = new int[N][2];\n\t\t\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tfor(int j=0;j<2;j++) {\n\t\t\t\tpoint[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdouble a = Math.sqrt(Math.pow(point[i][0],2)+Math.pow(point[i][1],2));\n\t\t\tif(a<=D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tint count = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint D = scan.nextInt();\n\t\tint[][] point = new int[N][2];\n\t\t\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tfor(int j=0;j<2;j++) {\n\t\t\t\tpoint[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdouble a = Math.sqrt(Math.pow(point[i][0],2)+Math.pow(point[i][1],2));\n\t\t\tif(a<=D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tint count = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint D = scan.nextInt();\n\t\tint[][] point = new int[N][2];\n\t\t\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tfor(int j=0;j<2;j++) {\n\t\t\t\tpoint[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdouble a = Math.sqrt(Math.pow(point[i][0],2)+Math.pow(point[i][1],2));\n\t\t\tif(a<=D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\n\t}",
"int count = 0;",
"count",
"0",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int D = scan.nextInt();",
"D",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] point = new int[N][2];",
"point",
"new int[N][2]",
"N",
"2",
"for(int i=0;i<N;i++) {\n\t\t\tfor(int j=0;j<2;j++) {\n\t\t\t\tpoint[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<2;j++) {\n\t\t\t\tpoint[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<2;j++) {\n\t\t\t\tpoint[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=0;j<2;j++) {\n\t\t\t\tpoint[i][j] = scan.nextInt();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<2",
"j",
"2",
"j++",
"j++",
"j",
"{\n\t\t\t\tpoint[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tpoint[i][j] = scan.nextInt();\n\t\t\t}",
"point[i][j] = scan.nextInt()",
"point[i][j]",
"point[i]",
"point",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0;i<N;i++) {\n\t\t\tdouble a = Math.sqrt(Math.pow(point[i][0],2)+Math.pow(point[i][1],2));\n\t\t\tif(a<=D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tdouble a = Math.sqrt(Math.pow(point[i][0],2)+Math.pow(point[i][1],2));\n\t\t\tif(a<=D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tdouble a = Math.sqrt(Math.pow(point[i][0],2)+Math.pow(point[i][1],2));\n\t\t\tif(a<=D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"double a = Math.sqrt(Math.pow(point[i][0],2)+Math.pow(point[i][1],2));",
"a",
"Math.sqrt(Math.pow(point[i][0],2)+Math.pow(point[i][1],2))",
"Math.sqrt",
"Math",
"Math.pow(point[i][0],2)+Math.pow(point[i][1],2)",
"Math.pow(point[i][0],2)",
"Math.pow",
"Math",
"point[i][0]",
"point[i]",
"point",
"i",
"0",
"2",
"Math.pow(point[i][1],2)",
"Math.pow",
"Math",
"point[i][1]",
"point[i]",
"point",
"i",
"1",
"2",
"if(a<=D) {\n\t\t\t\tcount++;\n\t\t\t}",
"a<=D",
"a",
"D",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tint count = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint D = scan.nextInt();\n\t\tint[][] point = new int[N][2];\n\t\t\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tfor(int j=0;j<2;j++) {\n\t\t\t\tpoint[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdouble a = Math.sqrt(Math.pow(point[i][0],2)+Math.pow(point[i][1],2));\n\t\t\tif(a<=D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tint count = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint D = scan.nextInt();\n\t\tint[][] point = new int[N][2];\n\t\t\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tfor(int j=0;j<2;j++) {\n\t\t\t\tpoint[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdouble a = Math.sqrt(Math.pow(point[i][0],2)+Math.pow(point[i][1],2));\n\t\t\tif(a<=D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
int count = 0;
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
int D = scan.nextInt();
int[][] point = new int[N][2];
for(int i=0;i<N;i++) {
for(int j=0;j<2;j++) {
point[i][j] = scan.nextInt();
}
}
for(int i=0;i<N;i++) {
double a = Math.sqrt(Math.pow(point[i][0],2)+Math.pow(point[i][1],2));
if(a<=D) {
count++;
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
13,
30,
40,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
80,
5
],
[
80,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
53,
64
],
[
52,
65
],
[
65,
66
],
[
66,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
6,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int distance = sc.nextInt();\n long x,y;\n int count = 0;\n\n for (int i = 0; i < num; i++) {\n x = sc.nextInt();\n y = sc.nextInt();\n if (Math.sqrt(x * x + y * y) <= distance) {\n count++;\n }\n }\n sc.close();\n System.out.println(count);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int distance = sc.nextInt();\n long x,y;\n int count = 0;\n\n for (int i = 0; i < num; i++) {\n x = sc.nextInt();\n y = sc.nextInt();\n if (Math.sqrt(x * x + y * y) <= distance) {\n count++;\n }\n }\n sc.close();\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int distance = sc.nextInt();\n long x,y;\n int count = 0;\n\n for (int i = 0; i < num; i++) {\n x = sc.nextInt();\n y = sc.nextInt();\n if (Math.sqrt(x * x + y * y) <= distance) {\n count++;\n }\n }\n sc.close();\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int distance = sc.nextInt();\n long x,y;\n int count = 0;\n\n for (int i = 0; i < num; i++) {\n x = sc.nextInt();\n y = sc.nextInt();\n if (Math.sqrt(x * x + y * y) <= distance) {\n count++;\n }\n }\n sc.close();\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int distance = sc.nextInt();",
"distance",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long x",
"x",
"y;",
"y",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < num; i++) {\n x = sc.nextInt();\n y = sc.nextInt();\n if (Math.sqrt(x * x + y * y) <= distance) {\n count++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n x = sc.nextInt();\n y = sc.nextInt();\n if (Math.sqrt(x * x + y * y) <= distance) {\n count++;\n }\n }",
"{\n x = sc.nextInt();\n y = sc.nextInt();\n if (Math.sqrt(x * x + y * y) <= distance) {\n count++;\n }\n }",
"x = sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"y = sc.nextInt()",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (Math.sqrt(x * x + y * y) <= distance) {\n count++;\n }",
"Math.sqrt(x * x + y * y) <= distance",
"Math.sqrt(x * x + y * y)",
"Math.sqrt",
"Math",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"distance",
"{\n count++;\n }",
"count++",
"count",
"sc.close()",
"sc.close",
"sc",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int distance = sc.nextInt();\n long x,y;\n int count = 0;\n\n for (int i = 0; i < num; i++) {\n x = sc.nextInt();\n y = sc.nextInt();\n if (Math.sqrt(x * x + y * y) <= distance) {\n count++;\n }\n }\n sc.close();\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int distance = sc.nextInt();\n long x,y;\n int count = 0;\n\n for (int i = 0; i < num; i++) {\n x = sc.nextInt();\n y = sc.nextInt();\n if (Math.sqrt(x * x + y * y) <= distance) {\n count++;\n }\n }\n sc.close();\n System.out.println(count);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
int distance = sc.nextInt();
long x,y;
int count = 0;
for (int i = 0; i < num; i++) {
x = sc.nextInt();
y = sc.nextInt();
if (Math.sqrt(x * x + y * y) <= distance) {
count++;
}
}
sc.close();
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
75,
8
],
[
75,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
51,
63
],
[
63,
64
],
[
64,
65
],
[
11,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
9,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
]
| [
"import java.util.*;\nimport java.lang.Math;\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long N = sc.nextLong();\n long D = sc.nextLong();\n int counter = 0;\n for(int i = 0;i < N;i++){\n long X = sc.nextLong();\n long Y = sc.nextLong();\n if(D*D >= (X*X + Y*Y)){\n counter++;\n }\n }\n System.out.println(counter);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long N = sc.nextLong();\n long D = sc.nextLong();\n int counter = 0;\n for(int i = 0;i < N;i++){\n long X = sc.nextLong();\n long Y = sc.nextLong();\n if(D*D >= (X*X + Y*Y)){\n counter++;\n }\n }\n System.out.println(counter);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long N = sc.nextLong();\n long D = sc.nextLong();\n int counter = 0;\n for(int i = 0;i < N;i++){\n long X = sc.nextLong();\n long Y = sc.nextLong();\n if(D*D >= (X*X + Y*Y)){\n counter++;\n }\n }\n System.out.println(counter);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long N = sc.nextLong();\n long D = sc.nextLong();\n int counter = 0;\n for(int i = 0;i < N;i++){\n long X = sc.nextLong();\n long Y = sc.nextLong();\n if(D*D >= (X*X + Y*Y)){\n counter++;\n }\n }\n System.out.println(counter);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long N = sc.nextLong();",
"N",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long D = sc.nextLong();",
"D",
"sc.nextLong()",
"sc.nextLong",
"sc",
"int counter = 0;",
"counter",
"0",
"for(int i = 0;i < N;i++){\n long X = sc.nextLong();\n long Y = sc.nextLong();\n if(D*D >= (X*X + Y*Y)){\n counter++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n long X = sc.nextLong();\n long Y = sc.nextLong();\n if(D*D >= (X*X + Y*Y)){\n counter++;\n }\n }",
"{\n long X = sc.nextLong();\n long Y = sc.nextLong();\n if(D*D >= (X*X + Y*Y)){\n counter++;\n }\n }",
"long X = sc.nextLong();",
"X",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long Y = sc.nextLong();",
"Y",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if(D*D >= (X*X + Y*Y)){\n counter++;\n }",
"D*D >= (X*X + Y*Y)",
"D*D",
"D",
"D",
"(X*X + Y*Y)",
"X*X",
"X",
"X",
"Y*Y",
"Y",
"Y",
"{\n counter++;\n }",
"counter++",
"counter",
"System.out.println(counter)",
"System.out.println",
"System.out",
"System",
"System.out",
"counter",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long N = sc.nextLong();\n long D = sc.nextLong();\n int counter = 0;\n for(int i = 0;i < N;i++){\n long X = sc.nextLong();\n long Y = sc.nextLong();\n if(D*D >= (X*X + Y*Y)){\n counter++;\n }\n }\n System.out.println(counter);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long N = sc.nextLong();\n long D = sc.nextLong();\n int counter = 0;\n for(int i = 0;i < N;i++){\n long X = sc.nextLong();\n long Y = sc.nextLong();\n if(D*D >= (X*X + Y*Y)){\n counter++;\n }\n }\n System.out.println(counter);\n }\n}",
"Main"
]
| import java.util.*;
import java.lang.Math;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
long N = sc.nextLong();
long D = sc.nextLong();
int counter = 0;
for(int i = 0;i < N;i++){
long X = sc.nextLong();
long Y = sc.nextLong();
if(D*D >= (X*X + Y*Y)){
counter++;
}
}
System.out.println(counter);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
117,
5
],
[
117,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
8,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
102,
104
],
[
85,
105
],
[
105,
106
],
[
106,
107
],
[
8,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
6,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(sc.next());\n\t\tlong d = Integer.parseInt(sc.next());\n\t\tlong[] x = new long[n];\n\t\tlong[] y = new long[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tx[i] = Integer.parseInt(sc.next());\n\t\t\ty[i] = Integer.parseInt(sc.next());\n\t\t}\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(d*d >= x[i]*x[i] + y[i]*y[i]) {\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n\t\n\t\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(sc.next());\n\t\tlong d = Integer.parseInt(sc.next());\n\t\tlong[] x = new long[n];\n\t\tlong[] y = new long[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tx[i] = Integer.parseInt(sc.next());\n\t\t\ty[i] = Integer.parseInt(sc.next());\n\t\t}\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(d*d >= x[i]*x[i] + y[i]*y[i]) {\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n\t\n\t\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(sc.next());\n\t\tlong d = Integer.parseInt(sc.next());\n\t\tlong[] x = new long[n];\n\t\tlong[] y = new long[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tx[i] = Integer.parseInt(sc.next());\n\t\t\ty[i] = Integer.parseInt(sc.next());\n\t\t}\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(d*d >= x[i]*x[i] + y[i]*y[i]) {\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(sc.next());\n\t\tlong d = Integer.parseInt(sc.next());\n\t\tlong[] x = new long[n];\n\t\tlong[] y = new long[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tx[i] = Integer.parseInt(sc.next());\n\t\t\ty[i] = Integer.parseInt(sc.next());\n\t\t}\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(d*d >= x[i]*x[i] + y[i]*y[i]) {\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"long d = Integer.parseInt(sc.next());",
"d",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"long[] x = new long[n];",
"x",
"new long[n]",
"n",
"long[] y = new long[n];",
"y",
"new long[n]",
"n",
"for(int i = 0; i < n; i++) {\n\t\t\tx[i] = Integer.parseInt(sc.next());\n\t\t\ty[i] = Integer.parseInt(sc.next());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tx[i] = Integer.parseInt(sc.next());\n\t\t\ty[i] = Integer.parseInt(sc.next());\n\t\t}",
"{\n\t\t\tx[i] = Integer.parseInt(sc.next());\n\t\t\ty[i] = Integer.parseInt(sc.next());\n\t\t}",
"x[i] = Integer.parseInt(sc.next())",
"x[i]",
"x",
"i",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"y[i] = Integer.parseInt(sc.next())",
"y[i]",
"y",
"i",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int sum = 0;",
"sum",
"0",
"for(int i = 0; i < n; i++) {\n\t\t\tif(d*d >= x[i]*x[i] + y[i]*y[i]) {\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(d*d >= x[i]*x[i] + y[i]*y[i]) {\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(d*d >= x[i]*x[i] + y[i]*y[i]) {\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}",
"if(d*d >= x[i]*x[i] + y[i]*y[i]) {\n\t\t\t\tsum++;\n\t\t\t}",
"d*d >= x[i]*x[i] + y[i]*y[i]",
"d*d",
"d",
"d",
"x[i]*x[i] + y[i]*y[i]",
"x[i]*x[i]",
"x[i]",
"x",
"i",
"x[i]",
"x",
"i",
"y[i]*y[i]",
"y[i]",
"y",
"i",
"y[i]",
"y",
"i",
"{\n\t\t\t\tsum++;\n\t\t\t}",
"sum++",
"sum",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(sc.next());\n\t\tlong d = Integer.parseInt(sc.next());\n\t\tlong[] x = new long[n];\n\t\tlong[] y = new long[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tx[i] = Integer.parseInt(sc.next());\n\t\t\ty[i] = Integer.parseInt(sc.next());\n\t\t}\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(d*d >= x[i]*x[i] + y[i]*y[i]) {\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n\t\n\t\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(sc.next());\n\t\tlong d = Integer.parseInt(sc.next());\n\t\tlong[] x = new long[n];\n\t\tlong[] y = new long[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tx[i] = Integer.parseInt(sc.next());\n\t\t\ty[i] = Integer.parseInt(sc.next());\n\t\t}\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(d*d >= x[i]*x[i] + y[i]*y[i]) {\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n\t\n\t\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
long d = Integer.parseInt(sc.next());
long[] x = new long[n];
long[] y = new long[n];
for(int i = 0; i < n; i++) {
x[i] = Integer.parseInt(sc.next());
y[i] = Integer.parseInt(sc.next());
}
int sum = 0;
for(int i = 0; i < n; i++) {
if(d*d >= x[i]*x[i] + y[i]*y[i]) {
sum++;
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
41,
13,
2,
18,
13,
13,
17,
41,
13,
2,
18,
13,
13,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
40,
13,
4,
18,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
18,
4,
18,
4,
13,
17,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
279,
8
],
[
279,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
279,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
279,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
279,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
41,
42
],
[
41,
43
],
[
30,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
76,
78
],
[
67,
79
],
[
79,
80
],
[
30,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
28,
85
],
[
85,
86
],
[
28,
87
],
[
87,
88
],
[
279,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
91,
98
],
[
98,
99
],
[
98,
100
],
[
98,
101
],
[
91,
102
],
[
102,
103
],
[
103,
104
],
[
89,
105
],
[
105,
106
],
[
279,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
107,
111
],
[
111,
112
],
[
107,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
119,
121
],
[
113,
122
],
[
122,
123
],
[
107,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
127,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
137,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
126,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
107,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
158,
159
],
[
107,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
167,
168
],
[
107,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
173,
176
],
[
176,
177
],
[
107,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
182,
187
],
[
107,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
195,
200
],
[
200,
201
],
[
200,
202
],
[
195,
203
],
[
203,
204
],
[
204,
205
],
[
195,
206
],
[
207,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
190,
214
],
[
214,
215
],
[
188,
216
],
[
216,
217
],
[
107,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
225,
230
],
[
230,
231
],
[
230,
232
],
[
225,
233
],
[
233,
234
],
[
234,
235
],
[
225,
236
],
[
237,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
238,
242
],
[
242,
243
],
[
220,
244
],
[
244,
245
],
[
218,
246
],
[
246,
247
],
[
107,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
255,
260
],
[
260,
261
],
[
260,
262
],
[
255,
263
],
[
263,
264
],
[
264,
265
],
[
255,
266
],
[
267,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
268,
272
],
[
272,
273
],
[
250,
274
],
[
274,
275
],
[
248,
276
],
[
276,
277
],
[
0,
278
],
[
278,
279
],
[
278,
280
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static final long mod = (long)1e9+7;\n public static final long INF = Long.MAX_VALUE/2;\n public static final int inf = Integer.MAX_VALUE/2;\n\n static void solve(InputReader in, PrintWriter out){\n int n = in.ni();\n long d = in.nl();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nl();\n long y = in.nl();\n if(x*x+y*y<=d*d) count++;\n }\n out.println(count);\n }\n\n public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }\n public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static final long mod = (long)1e9+7;\n public static final long INF = Long.MAX_VALUE/2;\n public static final int inf = Integer.MAX_VALUE/2;\n\n static void solve(InputReader in, PrintWriter out){\n int n = in.ni();\n long d = in.nl();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nl();\n long y = in.nl();\n if(x*x+y*y<=d*d) count++;\n }\n out.println(count);\n }\n\n public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }\n public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }\n}",
"Main",
"public static final long mod = (long)1e9+7;",
"mod",
"(long)1e9+7",
"(long)1e9",
"7",
"public static final long INF = Long.MAX_VALUE/2;",
"INF",
"Long.MAX_VALUE/2",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"2",
"public static final int inf = Integer.MAX_VALUE/2;",
"inf",
"Integer.MAX_VALUE/2",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"2",
"static void solve(InputReader in, PrintWriter out){\n int n = in.ni();\n long d = in.nl();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nl();\n long y = in.nl();\n if(x*x+y*y<=d*d) count++;\n }\n out.println(count);\n }",
"solve",
"{\n int n = in.ni();\n long d = in.nl();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nl();\n long y = in.nl();\n if(x*x+y*y<=d*d) count++;\n }\n out.println(count);\n }",
"int n = in.ni();",
"n",
"in.ni()",
"in.ni",
"in",
"long d = in.nl();",
"d",
"in.nl()",
"in.nl",
"in",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < n; i++) {\n long x = in.nl();\n long y = in.nl();\n if(x*x+y*y<=d*d) count++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long x = in.nl();\n long y = in.nl();\n if(x*x+y*y<=d*d) count++;\n }",
"{\n long x = in.nl();\n long y = in.nl();\n if(x*x+y*y<=d*d) count++;\n }",
"long x = in.nl();",
"x",
"in.nl()",
"in.nl",
"in",
"long y = in.nl();",
"y",
"in.nl()",
"in.nl",
"in",
"if(x*x+y*y<=d*d) count++;",
"x*x+y*y<=d*d",
"x*x+y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"d*d",
"d",
"d",
"count++",
"count",
"out.println(count)",
"out.println",
"out",
"count",
"InputReader in",
"in",
"PrintWriter out",
"out",
"public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }",
"main",
"{\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }",
"InputReader in = new InputReader(System.in);",
"in",
"new InputReader(System.in)",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"solve(in, out)",
"solve",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }",
"InputReader",
"private BufferedReader br;",
"br",
"private StringTokenizer st;",
"st",
"public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }",
"InputReader",
"{\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }",
"br = new BufferedReader(new InputStreamReader(is))",
"br",
"new BufferedReader(new InputStreamReader(is))",
"st = null",
"st",
"null",
"InputStream is",
"is",
"public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"ns",
"{\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }",
"try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }",
"catch (Exception e){\n throw new RuntimeException(e);\n }",
"Exception e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int ni(){\n return Integer.parseInt(ns());\n }",
"ni",
"{\n return Integer.parseInt(ns());\n }",
"return Integer.parseInt(ns());",
"Integer.parseInt(ns())",
"Integer.parseInt",
"Integer",
"ns()",
"ns",
"public long nl(){\n return Long.parseLong(ns());\n }",
"nl",
"{\n return Long.parseLong(ns());\n }",
"return Long.parseLong(ns());",
"Long.parseLong(ns())",
"Long.parseLong",
"Long",
"ns()",
"ns",
"public double nd(){\n return Double.parseDouble(ns());\n }",
"nd",
"{\n return Double.parseDouble(ns());\n }",
"return Double.parseDouble(ns());",
"Double.parseDouble(ns())",
"Double.parseDouble",
"Double",
"ns()",
"ns",
"public char nc(){\n return ns().toCharArray()[0];\n }",
"nc",
"{\n return ns().toCharArray()[0];\n }",
"return ns().toCharArray()[0];",
"ns().toCharArray()[0]",
"ns().toCharArray()",
"ns().toCharArray",
"ns()",
"ns",
"0",
"public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }",
"ni",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = ni();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = ni();\n }",
"{\n a[i] = ni();\n }",
"a[i] = ni()",
"a[i]",
"a",
"i",
"ni()",
"ni",
"return a;",
"a",
"int n",
"n",
"public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }",
"nl",
"{\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nl();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nl();\n }",
"{\n a[i] = nl();\n }",
"a[i] = nl()",
"a[i]",
"a",
"i",
"nl()",
"nl",
"return a;",
"a",
"int n",
"n",
"public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }",
"nd",
"{\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }",
"double[] a = new double[n];",
"a",
"new double[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nd();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nd();\n }",
"{\n a[i] = nd();\n }",
"a[i] = nd()",
"a[i]",
"a",
"i",
"nd()",
"nd",
"return a;",
"a",
"int n",
"n",
"public class Main {\n public static final long mod = (long)1e9+7;\n public static final long INF = Long.MAX_VALUE/2;\n public static final int inf = Integer.MAX_VALUE/2;\n\n static void solve(InputReader in, PrintWriter out){\n int n = in.ni();\n long d = in.nl();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nl();\n long y = in.nl();\n if(x*x+y*y<=d*d) count++;\n }\n out.println(count);\n }\n\n public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }\n public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }\n}",
"public class Main {\n public static final long mod = (long)1e9+7;\n public static final long INF = Long.MAX_VALUE/2;\n public static final int inf = Integer.MAX_VALUE/2;\n\n static void solve(InputReader in, PrintWriter out){\n int n = in.ni();\n long d = in.nl();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nl();\n long y = in.nl();\n if(x*x+y*y<=d*d) count++;\n }\n out.println(count);\n }\n\n public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }\n public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static final long mod = (long)1e9+7;
public static final long INF = Long.MAX_VALUE/2;
public static final int inf = Integer.MAX_VALUE/2;
static void solve(InputReader in, PrintWriter out){
int n = in.ni();
long d = in.nl();
int count = 0;
for (int i = 0; i < n; i++) {
long x = in.nl();
long y = in.nl();
if(x*x+y*y<=d*d) count++;
}
out.println(count);
}
public static void main(String[] args){
InputReader in = new InputReader(System.in);
PrintWriter out = new PrintWriter(System.out);
solve(in, out);
out.close();
}
public static class InputReader{
private BufferedReader br;
private StringTokenizer st;
public InputReader(InputStream is){
br = new BufferedReader(new InputStreamReader(is));
st = null;
}
public String ns(){
if(st == null || !st.hasMoreTokens()){
try{
st = new StringTokenizer(br.readLine());
}catch (Exception e){
throw new RuntimeException(e);
}
}
return st.nextToken();
}
public int ni(){
return Integer.parseInt(ns());
}
public long nl(){
return Long.parseLong(ns());
}
public double nd(){
return Double.parseDouble(ns());
}
public char nc(){
return ns().toCharArray()[0];
}
public int[] ni(int n){
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = ni();
}
return a;
}
public long[] nl(int n){
long[] a = new long[n];
for (int i = 0; i < n; i++) {
a[i] = nl();
}
return a;
}
public double[] nd(int n){
double[] a = new double[n];
for (int i = 0; i < n; i++) {
a[i] = nd();
}
return a;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
240,
14
],
[
240,
15
],
[
15,
16
],
[
15,
17
],
[
240,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
39,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
20,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
18,
75
],
[
75,
76
],
[
240,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
83,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
79,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
79,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
95,
105
],
[
105,
106
],
[
106,
107
],
[
95,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
77,
117
],
[
117,
118
],
[
240,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
125,
127
],
[
125,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
121,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
121,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
137,
147
],
[
147,
148
],
[
148,
149
],
[
137,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
119,
159
],
[
159,
160
],
[
240,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
161,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
172,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
177,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
171,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
161,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
196,
199
],
[
199,
200
],
[
161,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
208,
213
],
[
213,
214
],
[
213,
215
],
[
208,
216
],
[
216,
217
],
[
217,
218
],
[
208,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
224,
225
],
[
203,
226
],
[
226,
227
],
[
201,
228
],
[
228,
229
],
[
161,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
234,
237
],
[
237,
238
],
[
0,
239
],
[
239,
240
],
[
239,
241
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.*;\npublic class Main {\n static FastScanner sc = new FastScanner();\n public static void main(String[] args) {\n int n=sc.nextInt();\n int d=sc.nextInt();\n int count=0;\n while (n-->=1){\n long x=sc.nextLong();\n long y=sc.nextLong();\n// Math.abs(x);\n// Math.abs(y);\n double dist=Math.sqrt((x*x)+(y*y));\n// System.out.println(dist);\n\n if (dist<=d){\n count++;\n }\n }\n System.out.println(count);\n\n\n }\n\n static void sortint(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n static void sort(long[] a) {\n ArrayList<Integer> l = new ArrayList<>();\n for (long i : a) l.add((int) i);\n Collections.sort(l);\n for (int i = 0; i < a.length; i++) a[i] = l.get(i);\n }\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}\n\n\n",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n static FastScanner sc = new FastScanner();\n public static void main(String[] args) {\n int n=sc.nextInt();\n int d=sc.nextInt();\n int count=0;\n while (n-->=1){\n long x=sc.nextLong();\n long y=sc.nextLong();\n// Math.abs(x);\n// Math.abs(y);\n double dist=Math.sqrt((x*x)+(y*y));\n// System.out.println(dist);\n\n if (dist<=d){\n count++;\n }\n }\n System.out.println(count);\n\n\n }\n\n static void sortint(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n static void sort(long[] a) {\n ArrayList<Integer> l = new ArrayList<>();\n for (long i : a) l.add((int) i);\n Collections.sort(l);\n for (int i = 0; i < a.length; i++) a[i] = l.get(i);\n }\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"Main",
"static FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"public static void main(String[] args) {\n int n=sc.nextInt();\n int d=sc.nextInt();\n int count=0;\n while (n-->=1){\n long x=sc.nextLong();\n long y=sc.nextLong();\n// Math.abs(x);\n// Math.abs(y);\n double dist=Math.sqrt((x*x)+(y*y));\n// System.out.println(dist);\n\n if (dist<=d){\n count++;\n }\n }\n System.out.println(count);\n\n\n }",
"main",
"{\n int n=sc.nextInt();\n int d=sc.nextInt();\n int count=0;\n while (n-->=1){\n long x=sc.nextLong();\n long y=sc.nextLong();\n// Math.abs(x);\n// Math.abs(y);\n double dist=Math.sqrt((x*x)+(y*y));\n// System.out.println(dist);\n\n if (dist<=d){\n count++;\n }\n }\n System.out.println(count);\n\n\n }",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d=sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count=0;",
"count",
"0",
"while (n-->=1){\n long x=sc.nextLong();\n long y=sc.nextLong();\n// Math.abs(x);\n// Math.abs(y);\n double dist=Math.sqrt((x*x)+(y*y));\n// System.out.println(dist);\n\n if (dist<=d){\n count++;\n }\n }",
"n-->=1",
"n--",
"n",
"1",
"{\n long x=sc.nextLong();\n long y=sc.nextLong();\n// Math.abs(x);\n// Math.abs(y);\n double dist=Math.sqrt((x*x)+(y*y));\n// System.out.println(dist);\n\n if (dist<=d){\n count++;\n }\n }",
"long x=sc.nextLong();",
"x",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long y=sc.nextLong();",
"y",
"sc.nextLong()",
"sc.nextLong",
"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){\n count++;\n }",
"dist<=d",
"dist",
"d",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"static void sortint(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }",
"sortint",
"{\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }",
"ArrayList<Integer> l=new ArrayList<>();",
"l",
"new ArrayList<>()",
"for (int i:a) l.add(i);",
"int i",
"a",
"l.add(i);",
"l.add(i)",
"l.add",
"l",
"i",
"Collections.sort(l)",
"Collections.sort",
"Collections",
"l",
"for (int i=0; i<a.length; i++) a[i]=l.get(i);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i]=l.get(i);",
"a[i]=l.get(i)",
"a[i]",
"a",
"i",
"l.get(i)",
"l.get",
"l",
"i",
"int[] a",
"a",
"static void sort(long[] a) {\n ArrayList<Integer> l = new ArrayList<>();\n for (long i : a) l.add((int) i);\n Collections.sort(l);\n for (int i = 0; i < a.length; i++) a[i] = l.get(i);\n }",
"sort",
"{\n ArrayList<Integer> l = new ArrayList<>();\n for (long i : a) l.add((int) i);\n Collections.sort(l);\n for (int i = 0; i < a.length; i++) a[i] = l.get(i);\n }",
"ArrayList<Integer> l = new ArrayList<>();",
"l",
"new ArrayList<>()",
"for (long i : a) l.add((int) i);",
"long i",
"a",
"l.add((int) i);",
"l.add((int) i)",
"l.add",
"l",
"(int) i",
"Collections.sort(l)",
"Collections.sort",
"Collections",
"l",
"for (int i = 0; i < a.length; i++) a[i] = l.get(i);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i] = l.get(i);",
"a[i] = l.get(i)",
"a[i]",
"a",
"i",
"l.get(i)",
"l.get",
"l",
"i",
"long[] a",
"a",
"static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }",
"FastScanner",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"next",
"{\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }",
"readArray",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) a[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n static FastScanner sc = new FastScanner();\n public static void main(String[] args) {\n int n=sc.nextInt();\n int d=sc.nextInt();\n int count=0;\n while (n-->=1){\n long x=sc.nextLong();\n long y=sc.nextLong();\n// Math.abs(x);\n// Math.abs(y);\n double dist=Math.sqrt((x*x)+(y*y));\n// System.out.println(dist);\n\n if (dist<=d){\n count++;\n }\n }\n System.out.println(count);\n\n\n }\n\n static void sortint(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n static void sort(long[] a) {\n ArrayList<Integer> l = new ArrayList<>();\n for (long i : a) l.add((int) i);\n Collections.sort(l);\n for (int i = 0; i < a.length; i++) a[i] = l.get(i);\n }\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"public class Main {\n static FastScanner sc = new FastScanner();\n public static void main(String[] args) {\n int n=sc.nextInt();\n int d=sc.nextInt();\n int count=0;\n while (n-->=1){\n long x=sc.nextLong();\n long y=sc.nextLong();\n// Math.abs(x);\n// Math.abs(y);\n double dist=Math.sqrt((x*x)+(y*y));\n// System.out.println(dist);\n\n if (dist<=d){\n count++;\n }\n }\n System.out.println(count);\n\n\n }\n\n static void sortint(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n static void sort(long[] a) {\n ArrayList<Integer> l = new ArrayList<>();\n for (long i : a) l.add((int) i);\n Collections.sort(l);\n for (int i = 0; i < a.length; i++) a[i] = l.get(i);\n }\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
static FastScanner sc = new FastScanner();
public static void main(String[] args) {
int n=sc.nextInt();
int d=sc.nextInt();
int count=0;
while (n-->=1){
long x=sc.nextLong();
long y=sc.nextLong();
// Math.abs(x);
// Math.abs(y);
double dist=Math.sqrt((x*x)+(y*y));
// System.out.println(dist);
if (dist<=d){
count++;
}
}
System.out.println(count);
}
static void sortint(int[] a) {
ArrayList<Integer> l=new ArrayList<>();
for (int i:a) l.add(i);
Collections.sort(l);
for (int i=0; i<a.length; i++) a[i]=l.get(i);
}
static void sort(long[] a) {
ArrayList<Integer> l = new ArrayList<>();
for (long i : a) l.add((int) i);
Collections.sort(l);
for (int i = 0; i < a.length; i++) a[i] = l.get(i);
}
static class FastScanner {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer("");
String next() {
while (!st.hasMoreTokens())
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
int[] readArray(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++) a[i] = nextInt();
return a;
}
long nextLong() {
return Long.parseLong(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
18,
13,
13,
18,
13,
13,
41,
13,
2,
18,
13,
13,
18,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
14,
2,
2,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
132,
5
],
[
132,
6
],
[
6,
7
],
[
6,
8
],
[
132,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
11,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
75,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
91,
93
],
[
75,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
75,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
75,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
75,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
111,
117
],
[
117,
118
],
[
118,
119
],
[
11,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
11,
126
],
[
126,
127
],
[
127,
128
],
[
9,
129
],
[
129,
130
],
[
0,
131
],
[
131,
132
],
[
131,
133
]
]
| [
"import java.util.Scanner;\n\n\npublic class Main {\n//\tfinal static int MOD = 1000000007;\n\n\tpublic static long ans = 0;\n\n\tpublic static void main(String[] args) {\n\n//\t\tint ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tint n = sc.nextInt();\n\t\tdouble d = sc.nextDouble();\n\n\t\tlong[] a = new long[n];\n\t\tlong[] b = new long[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i]= sc.nextLong();\n\t\t\tb[i]= sc.nextLong();\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlong tmpa = (a[i] * a[i]);\n\t\t\tlong tmpb = (b[i] * b[i]);\n\t\t\tlong tmp = tmpa + tmpb;\n\t\t\tdouble calc = Math.sqrt(tmp);\n\t\t\tSystem.err.println(tmpb);\n\t\t\tif(d * d >= tmp) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n//\tfinal static int MOD = 1000000007;\n\n\tpublic static long ans = 0;\n\n\tpublic static void main(String[] args) {\n\n//\t\tint ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tint n = sc.nextInt();\n\t\tdouble d = sc.nextDouble();\n\n\t\tlong[] a = new long[n];\n\t\tlong[] b = new long[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i]= sc.nextLong();\n\t\t\tb[i]= sc.nextLong();\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlong tmpa = (a[i] * a[i]);\n\t\t\tlong tmpb = (b[i] * b[i]);\n\t\t\tlong tmp = tmpa + tmpb;\n\t\t\tdouble calc = Math.sqrt(tmp);\n\t\t\tSystem.err.println(tmpb);\n\t\t\tif(d * d >= tmp) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n\n\n}",
"Main",
"public static long ans = 0;",
"ans",
"0",
"public static void main(String[] args) {\n\n//\t\tint ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tint n = sc.nextInt();\n\t\tdouble d = sc.nextDouble();\n\n\t\tlong[] a = new long[n];\n\t\tlong[] b = new long[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i]= sc.nextLong();\n\t\t\tb[i]= sc.nextLong();\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlong tmpa = (a[i] * a[i]);\n\t\t\tlong tmpb = (b[i] * b[i]);\n\t\t\tlong tmp = tmpa + tmpb;\n\t\t\tdouble calc = Math.sqrt(tmp);\n\t\t\tSystem.err.println(tmpb);\n\t\t\tif(d * d >= tmp) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}",
"main",
"{\n\n//\t\tint ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tint n = sc.nextInt();\n\t\tdouble d = sc.nextDouble();\n\n\t\tlong[] a = new long[n];\n\t\tlong[] b = new long[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i]= sc.nextLong();\n\t\t\tb[i]= sc.nextLong();\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlong tmpa = (a[i] * a[i]);\n\t\t\tlong tmpb = (b[i] * b[i]);\n\t\t\tlong tmp = tmpa + tmpb;\n\t\t\tdouble calc = Math.sqrt(tmp);\n\t\t\tSystem.err.println(tmpb);\n\t\t\tif(d * d >= tmp) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"boolean f = false;",
"f",
"false",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double d = sc.nextDouble();",
"d",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"long[] b = new long[n];",
"b",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\ta[i]= sc.nextLong();\n\t\t\tb[i]= sc.nextLong();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[i]= sc.nextLong();\n\t\t\tb[i]= sc.nextLong();\n\t\t}",
"{\n\t\t\ta[i]= sc.nextLong();\n\t\t\tb[i]= sc.nextLong();\n\t\t}",
"a[i]= sc.nextLong()",
"a[i]",
"a",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"b[i]= sc.nextLong()",
"b[i]",
"b",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for(int i = 0; i < n; i++) {\n\t\t\tlong tmpa = (a[i] * a[i]);\n\t\t\tlong tmpb = (b[i] * b[i]);\n\t\t\tlong tmp = tmpa + tmpb;\n\t\t\tdouble calc = Math.sqrt(tmp);\n\t\t\tSystem.err.println(tmpb);\n\t\t\tif(d * d >= tmp) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tlong tmpa = (a[i] * a[i]);\n\t\t\tlong tmpb = (b[i] * b[i]);\n\t\t\tlong tmp = tmpa + tmpb;\n\t\t\tdouble calc = Math.sqrt(tmp);\n\t\t\tSystem.err.println(tmpb);\n\t\t\tif(d * d >= tmp) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tlong tmpa = (a[i] * a[i]);\n\t\t\tlong tmpb = (b[i] * b[i]);\n\t\t\tlong tmp = tmpa + tmpb;\n\t\t\tdouble calc = Math.sqrt(tmp);\n\t\t\tSystem.err.println(tmpb);\n\t\t\tif(d * d >= tmp) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"long tmpa = (a[i] * a[i]);",
"tmpa",
"(a[i] * a[i])",
"a[i]",
"a",
"i",
"a[i]",
"a",
"i",
"long tmpb = (b[i] * b[i]);",
"tmpb",
"(b[i] * b[i])",
"b[i]",
"b",
"i",
"b[i]",
"b",
"i",
"long tmp = tmpa + tmpb;",
"tmp",
"tmpa + tmpb",
"tmpa",
"tmpb",
"double calc = Math.sqrt(tmp);",
"calc",
"Math.sqrt(tmp)",
"Math.sqrt",
"Math",
"tmp",
"System.err.println(tmpb)",
"System.err.println",
"System.err",
"System",
"System.err",
"tmpb",
"if(d * d >= tmp) {\n\t\t\t\tans++;\n\t\t\t}",
"d * d >= tmp",
"d * d",
"d",
"d",
"tmp",
"{\n\t\t\t\tans++;\n\t\t\t}",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n//\tfinal static int MOD = 1000000007;\n\n\tpublic static long ans = 0;\n\n\tpublic static void main(String[] args) {\n\n//\t\tint ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tint n = sc.nextInt();\n\t\tdouble d = sc.nextDouble();\n\n\t\tlong[] a = new long[n];\n\t\tlong[] b = new long[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i]= sc.nextLong();\n\t\t\tb[i]= sc.nextLong();\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlong tmpa = (a[i] * a[i]);\n\t\t\tlong tmpb = (b[i] * b[i]);\n\t\t\tlong tmp = tmpa + tmpb;\n\t\t\tdouble calc = Math.sqrt(tmp);\n\t\t\tSystem.err.println(tmpb);\n\t\t\tif(d * d >= tmp) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n\n\n}",
"public class Main {\n//\tfinal static int MOD = 1000000007;\n\n\tpublic static long ans = 0;\n\n\tpublic static void main(String[] args) {\n\n//\t\tint ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tint n = sc.nextInt();\n\t\tdouble d = sc.nextDouble();\n\n\t\tlong[] a = new long[n];\n\t\tlong[] b = new long[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i]= sc.nextLong();\n\t\t\tb[i]= sc.nextLong();\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlong tmpa = (a[i] * a[i]);\n\t\t\tlong tmpb = (b[i] * b[i]);\n\t\t\tlong tmp = tmpa + tmpb;\n\t\t\tdouble calc = Math.sqrt(tmp);\n\t\t\tSystem.err.println(tmpb);\n\t\t\tif(d * d >= tmp) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
// final static int MOD = 1000000007;
public static long ans = 0;
public static void main(String[] args) {
// int ans = 0;
Scanner sc = new Scanner(System.in);
boolean f = false;
int n = sc.nextInt();
double d = sc.nextDouble();
long[] a = new long[n];
long[] b = new long[n];
for (int i = 0; i < n; i++) {
a[i]= sc.nextLong();
b[i]= sc.nextLong();
}
//-------------------------------------------------------------------------------------
for(int i = 0; i < n; i++) {
long tmpa = (a[i] * a[i]);
long tmpb = (b[i] * b[i]);
long tmp = tmpa + tmpb;
double calc = Math.sqrt(tmp);
System.err.println(tmpb);
if(d * d >= tmp) {
ans++;
}
}
//-------------------------------------------------------------------------------------
// if(f) {
// System.out.println("Yes");
// } else {
// System.out.println("No");
// }
System.out.println(ans);
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
13,
40,
13,
4,
18,
18,
13,
13,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
165,
8
],
[
165,
9
],
[
9,
10
],
[
9,
11
],
[
165,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
12,
17
],
[
17,
18
],
[
165,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
21,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
32,
33
],
[
32,
34
],
[
21,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
52,
67
],
[
51,
68
],
[
68,
69
],
[
21,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
165,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
76,
80
],
[
80,
81
],
[
76,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
76,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
91,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
101,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
90,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
76,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
76,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
132,
133
],
[
76,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
141,
142
],
[
76,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
149,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
145,
162
],
[
162,
163
],
[
0,
164
],
[
164,
165
],
[
164,
166
]
]
| [
"\nimport java.util.*;\nimport java.io.*;\n\npublic class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tstatic void solve() {\n\t\tint n = in.nextInt();\n\t\tint d = in.nextInt();\n\t\t\n\t\tint count = 0;\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\tint x =in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\tif(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)) <= d) count++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}\n\n\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tstatic void solve() {\n\t\tint n = in.nextInt();\n\t\tint d = in.nextInt();\n\t\t\n\t\tint count = 0;\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\tint x =in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\tif(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)) <= d) count++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}",
"Main",
"static FastReader in = new FastReader();",
"in",
"new FastReader()",
"public static void main(String[] args) {\n\t\tsolve();\n\t}",
"main",
"{\n\t\tsolve();\n\t}",
"solve()",
"solve",
"String[] args",
"args",
"static void solve() {\n\t\tint n = in.nextInt();\n\t\tint d = in.nextInt();\n\t\t\n\t\tint count = 0;\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\tint x =in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\tif(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)) <= d) count++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"solve",
"{\n\t\tint n = in.nextInt();\n\t\tint d = in.nextInt();\n\t\t\n\t\tint count = 0;\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\tint x =in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\tif(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)) <= d) count++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int d = in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"int count = 0;",
"count",
"0",
"while(n-- > 0)\n\t\t{\n\t\t\tint x =in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\tif(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)) <= d) count++;\n\t\t}",
"n-- > 0",
"n--",
"n",
"0",
"{\n\t\t\tint x =in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\tif(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)) <= d) count++;\n\t\t}",
"int x =in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"int y = in.nextInt();",
"y",
"in.nextInt()",
"in.nextInt",
"in",
"if(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)) <= d) count++;",
"Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)) <= d",
"Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))",
"Math.sqrt",
"Math",
"Math.pow(x, 2) + Math.pow(y, 2)",
"Math.pow(x, 2)",
"Math.pow",
"Math",
"x",
"2",
"Math.pow(y, 2)",
"Math.pow",
"Math",
"y",
"2",
"d",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"static class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"FastReader",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}",
"nextLine",
"{\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}",
"String str = \"\";",
"str",
"\"\"",
"try {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tstatic void solve() {\n\t\tint n = in.nextInt();\n\t\tint d = in.nextInt();\n\t\t\n\t\tint count = 0;\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\tint x =in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\tif(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)) <= d) count++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tstatic void solve() {\n\t\tint n = in.nextInt();\n\t\tint d = in.nextInt();\n\t\t\n\t\tint count = 0;\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\tint x =in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\tif(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)) <= d) count++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}",
"Main"
]
|
import java.util.*;
import java.io.*;
public class Main {
static FastReader in = new FastReader();
public static void main(String[] args) {
solve();
}
static void solve() {
int n = in.nextInt();
int d = in.nextInt();
int count = 0;
while(n-- > 0)
{
int x =in.nextInt();
int y = in.nextInt();
if(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)) <= d) count++;
}
System.out.println(count);
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
17,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
17,
14,
2,
13,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
86,
8
],
[
86,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
54,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
48,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
11,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
9,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"import java.util.*;\nimport java.lang.*;\n\npublic class Main{\n public static void main(String[]args){\n\tScanner sc = new Scanner(System.in);\n int N= sc.nextInt();\n long D=(long)Math.pow(sc.nextInt(),2);\n long d[]= new long[N];\n int ans =0;\n for(int i=0; i<N; i++){\n d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);\n if(D>=d[i]){\n ans++;\n }\n }\nSystem.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main{\n public static void main(String[]args){\n\tScanner sc = new Scanner(System.in);\n int N= sc.nextInt();\n long D=(long)Math.pow(sc.nextInt(),2);\n long d[]= new long[N];\n int ans =0;\n for(int i=0; i<N; i++){\n d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);\n if(D>=d[i]){\n ans++;\n }\n }\nSystem.out.println(ans);\n }\n}",
"Main",
"public static void main(String[]args){\n\tScanner sc = new Scanner(System.in);\n int N= sc.nextInt();\n long D=(long)Math.pow(sc.nextInt(),2);\n long d[]= new long[N];\n int ans =0;\n for(int i=0; i<N; i++){\n d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);\n if(D>=d[i]){\n ans++;\n }\n }\nSystem.out.println(ans);\n }",
"main",
"{\n\tScanner sc = new Scanner(System.in);\n int N= sc.nextInt();\n long D=(long)Math.pow(sc.nextInt(),2);\n long d[]= new long[N];\n int ans =0;\n for(int i=0; i<N; i++){\n d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);\n if(D>=d[i]){\n ans++;\n }\n }\nSystem.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N= sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long D=(long)Math.pow(sc.nextInt(),2);",
"D",
"(long)Math.pow(sc.nextInt(),2)",
"Math.pow",
"Math",
"sc.nextInt()",
"sc.nextInt",
"sc",
"2",
"long d[]= new long[N];",
"d",
"new long[N]",
"N",
"int ans =0;",
"ans",
"0",
"for(int i=0; i<N; i++){\n d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);\n if(D>=d[i]){\n ans++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);\n if(D>=d[i]){\n ans++;\n }\n }",
"{\n d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);\n if(D>=d[i]){\n ans++;\n }\n }",
"d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2)",
"d[i]",
"d",
"i",
"(long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2)",
"(long)Math.pow(sc.nextInt(),2)",
"Math.pow",
"Math",
"sc.nextInt()",
"sc.nextInt",
"sc",
"2",
"(long)Math.pow(sc.nextInt(),2)",
"Math.pow",
"Math",
"sc.nextInt()",
"sc.nextInt",
"sc",
"2",
"if(D>=d[i]){\n ans++;\n }",
"D>=d[i]",
"D",
"d[i]",
"d",
"i",
"{\n ans++;\n }",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[]args",
"args",
"public class Main{\n public static void main(String[]args){\n\tScanner sc = new Scanner(System.in);\n int N= sc.nextInt();\n long D=(long)Math.pow(sc.nextInt(),2);\n long d[]= new long[N];\n int ans =0;\n for(int i=0; i<N; i++){\n d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);\n if(D>=d[i]){\n ans++;\n }\n }\nSystem.out.println(ans);\n }\n}",
"public class Main{\n public static void main(String[]args){\n\tScanner sc = new Scanner(System.in);\n int N= sc.nextInt();\n long D=(long)Math.pow(sc.nextInt(),2);\n long d[]= new long[N];\n int ans =0;\n for(int i=0; i<N; i++){\n d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);\n if(D>=d[i]){\n ans++;\n }\n }\nSystem.out.println(ans);\n }\n}",
"Main"
]
| import java.util.*;
import java.lang.*;
public class Main{
public static void main(String[]args){
Scanner sc = new Scanner(System.in);
int N= sc.nextInt();
long D=(long)Math.pow(sc.nextInt(),2);
long d[]= new long[N];
int ans =0;
for(int i=0; i<N; i++){
d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);
if(D>=d[i]){
ans++;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
37,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint N = sc.nextInt();\n\t\t\tint D = sc.nextInt();\n\t\t\tint cnt = 0;\n\t\t\tfor(int i=0;i<N;++i) {\n\t\t\t\tlong x = sc.nextInt();\n\t\t\t\tlong y = sc.nextInt();\n\t\t\t\tdouble sum = Math.sqrt(x*x+y*y);\n\t\t\t\tif(sum<=D) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t}\t\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint N = sc.nextInt();\n\t\t\tint D = sc.nextInt();\n\t\t\tint cnt = 0;\n\t\t\tfor(int i=0;i<N;++i) {\n\t\t\t\tlong x = sc.nextInt();\n\t\t\t\tlong y = sc.nextInt();\n\t\t\t\tdouble sum = Math.sqrt(x*x+y*y);\n\t\t\t\tif(sum<=D) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t}\t\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint N = sc.nextInt();\n\t\t\tint D = sc.nextInt();\n\t\t\tint cnt = 0;\n\t\t\tfor(int i=0;i<N;++i) {\n\t\t\t\tlong x = sc.nextInt();\n\t\t\t\tlong y = sc.nextInt();\n\t\t\t\tdouble sum = Math.sqrt(x*x+y*y);\n\t\t\t\tif(sum<=D) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint N = sc.nextInt();\n\t\t\tint D = sc.nextInt();\n\t\t\tint cnt = 0;\n\t\t\tfor(int i=0;i<N;++i) {\n\t\t\t\tlong x = sc.nextInt();\n\t\t\t\tlong y = sc.nextInt();\n\t\t\t\tdouble sum = Math.sqrt(x*x+y*y);\n\t\t\t\tif(sum<=D) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int D = sc.nextInt();",
"D",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int cnt = 0;",
"cnt",
"0",
"for(int i=0;i<N;++i) {\n\t\t\t\tlong x = sc.nextInt();\n\t\t\t\tlong y = sc.nextInt();\n\t\t\t\tdouble sum = Math.sqrt(x*x+y*y);\n\t\t\t\tif(sum<=D) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"++i",
"++i",
"i",
"{\n\t\t\t\tlong x = sc.nextInt();\n\t\t\t\tlong y = sc.nextInt();\n\t\t\t\tdouble sum = Math.sqrt(x*x+y*y);\n\t\t\t\tif(sum<=D) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tlong x = sc.nextInt();\n\t\t\t\tlong y = sc.nextInt();\n\t\t\t\tdouble sum = Math.sqrt(x*x+y*y);\n\t\t\t\tif(sum<=D) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}",
"long x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double sum = Math.sqrt(x*x+y*y);",
"sum",
"Math.sqrt(x*x+y*y)",
"Math.sqrt",
"Math",
"x*x+y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"if(sum<=D) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}",
"sum<=D",
"sum",
"D",
"{\n\t\t\t\t\tcnt++;\n\t\t\t\t}",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint N = sc.nextInt();\n\t\t\tint D = sc.nextInt();\n\t\t\tint cnt = 0;\n\t\t\tfor(int i=0;i<N;++i) {\n\t\t\t\tlong x = sc.nextInt();\n\t\t\t\tlong y = sc.nextInt();\n\t\t\t\tdouble sum = Math.sqrt(x*x+y*y);\n\t\t\t\tif(sum<=D) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t}\t\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint N = sc.nextInt();\n\t\t\tint D = sc.nextInt();\n\t\t\tint cnt = 0;\n\t\t\tfor(int i=0;i<N;++i) {\n\t\t\t\tlong x = sc.nextInt();\n\t\t\t\tlong y = sc.nextInt();\n\t\t\t\tdouble sum = Math.sqrt(x*x+y*y);\n\t\t\t\tif(sum<=D) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t}\t\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int D = sc.nextInt();
int cnt = 0;
for(int i=0;i<N;++i) {
long x = sc.nextInt();
long y = sc.nextInt();
double sum = Math.sqrt(x*x+y*y);
if(sum<=D) {
cnt++;
}
}
System.out.println(cnt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
49,
60
],
[
48,
61
],
[
61,
62
],
[
62,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.*;\npublic class Main {\n \n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n\t\tint N = sc.nextInt(), D = sc.nextInt(), c = 0;\n \n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tlong X = sc.nextInt(), Y = sc.nextInt();\n\t\t\tif(Math.sqrt(X * X + Y * Y) <= D) {\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(c);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n \n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n\t\tint N = sc.nextInt(), D = sc.nextInt(), c = 0;\n \n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tlong X = sc.nextInt(), Y = sc.nextInt();\n\t\t\tif(Math.sqrt(X * X + Y * Y) <= D) {\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(c);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n\t\tint N = sc.nextInt(), D = sc.nextInt(), c = 0;\n \n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tlong X = sc.nextInt(), Y = sc.nextInt();\n\t\t\tif(Math.sqrt(X * X + Y * Y) <= D) {\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(c);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n \n\t\tint N = sc.nextInt(), D = sc.nextInt(), c = 0;\n \n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tlong X = sc.nextInt(), Y = sc.nextInt();\n\t\t\tif(Math.sqrt(X * X + Y * Y) <= D) {\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(c);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int 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++) {\n\t\t\tlong X = sc.nextInt(), Y = sc.nextInt();\n\t\t\tif(Math.sqrt(X * X + Y * Y) <= D) {\n\t\t\t\tc++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tlong X = sc.nextInt(), Y = sc.nextInt();\n\t\t\tif(Math.sqrt(X * X + Y * Y) <= D) {\n\t\t\t\tc++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tlong X = sc.nextInt(), Y = sc.nextInt();\n\t\t\tif(Math.sqrt(X * X + Y * Y) <= D) {\n\t\t\t\tc++;\n\t\t\t}\n\t\t}",
"long X = sc.nextInt()",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(Math.sqrt(X * X + Y * Y) <= D) {\n\t\t\t\tc++;\n\t\t\t}",
"Math.sqrt(X * X + Y * Y) <= D",
"Math.sqrt(X * X + Y * Y)",
"Math.sqrt",
"Math",
"X * X + Y * Y",
"X * X",
"X",
"X",
"Y * Y",
"Y",
"Y",
"D",
"{\n\t\t\t\tc++;\n\t\t\t}",
"c++",
"c",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"public class Main {\n \n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n\t\tint N = sc.nextInt(), D = sc.nextInt(), c = 0;\n \n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tlong X = sc.nextInt(), Y = sc.nextInt();\n\t\t\tif(Math.sqrt(X * X + Y * Y) <= D) {\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(c);\n\t}\n}",
"public class Main {\n \n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n\t\tint N = sc.nextInt(), D = sc.nextInt(), c = 0;\n \n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tlong X = sc.nextInt(), Y = sc.nextInt();\n\t\t\tif(Math.sqrt(X * X + Y * Y) <= D) {\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(c);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt(), D = sc.nextInt(), c = 0;
for(int i = 0; i < N; i++) {
long X = sc.nextInt(), Y = sc.nextInt();
if(Math.sqrt(X * X + Y * Y) <= D) {
c++;
}
}
System.out.println(c);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
17,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
13,
30,
9,
14,
2,
4,
18,
13,
13,
13,
30,
9,
14,
2,
2,
2,
13,
13,
2,
13,
13,
13,
30,
40,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
4,
13,
13,
40,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
29,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
4,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
4,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
4,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
4,
18,
13,
17,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
538,
11
],
[
538,
12
],
[
12,
13
],
[
538,
14
],
[
14,
15
],
[
538,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
22,
24
],
[
18,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
18,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
18,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
18,
40
],
[
40,
41
],
[
40,
42
],
[
18,
43
],
[
43,
44
],
[
18,
45
],
[
45,
46
],
[
18,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
59,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
70,
77
],
[
77,
78
],
[
59,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
80,
85
],
[
79,
86
],
[
86,
87
],
[
59,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
88,
98
],
[
98,
99
],
[
99,
100
],
[
18,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
18,
105
],
[
105,
106
],
[
106,
107
],
[
16,
108
],
[
108,
109
],
[
538,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
120,
128
],
[
128,
129
],
[
112,
130
],
[
130,
131
],
[
110,
132
],
[
132,
133
],
[
538,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
144,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
152,
154
],
[
136,
155
],
[
155,
156
],
[
134,
157
],
[
157,
158
],
[
538,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
169,
171
],
[
162,
172
],
[
172,
173
],
[
173,
174
],
[
162,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
179,
183
],
[
183,
184
],
[
183,
185
],
[
176,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
188,
190
],
[
176,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
195,
197
],
[
176,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
159,
203
],
[
203,
204
],
[
538,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
208,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
215,
217
],
[
208,
218
],
[
218,
219
],
[
219,
220
],
[
208,
221
],
[
222,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
225,
229
],
[
229,
230
],
[
229,
231
],
[
222,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
234,
236
],
[
222,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
237,
241
],
[
241,
242
],
[
241,
243
],
[
222,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
248
],
[
205,
249
],
[
249,
250
],
[
538,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
251,
255
],
[
255,
256
],
[
251,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
257,
263
],
[
263,
264
],
[
251,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
265,
271
],
[
271,
272
],
[
251,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
277,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
276,
285
],
[
285,
286
],
[
285,
287
],
[
275,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
251,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
294,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
299,
304
],
[
304,
305
],
[
304,
306
],
[
299,
307
],
[
307,
308
],
[
308,
309
],
[
299,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
311,
315
],
[
315,
316
],
[
294,
317
],
[
317,
318
],
[
292,
319
],
[
319,
320
],
[
251,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
323,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
328,
333
],
[
333,
334
],
[
333,
335
],
[
328,
336
],
[
336,
337
],
[
337,
338
],
[
328,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
340,
344
],
[
344,
345
],
[
323,
346
],
[
346,
347
],
[
321,
348
],
[
348,
349
],
[
251,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
353,
354
],
[
353,
355
],
[
352,
357
],
[
357,
358
],
[
358,
359
],
[
359,
360
],
[
359,
361
],
[
357,
362
],
[
362,
363
],
[
362,
364
],
[
357,
365
],
[
365,
366
],
[
366,
367
],
[
357,
368
],
[
368,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
369,
373
],
[
373,
374
],
[
352,
375
],
[
375,
376
],
[
375,
377
],
[
352,
378
],
[
378,
379
],
[
379,
380
],
[
378,
381
],
[
352,
382
],
[
382,
383
],
[
350,
384
],
[
384,
385
],
[
251,
386
],
[
386,
387
],
[
386,
388
],
[
388,
389
],
[
389,
390
],
[
389,
391
],
[
388,
393
],
[
393,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
393,
398
],
[
398,
399
],
[
398,
400
],
[
393,
401
],
[
401,
402
],
[
402,
403
],
[
393,
404
],
[
404,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
405,
409
],
[
409,
410
],
[
388,
411
],
[
411,
412
],
[
411,
413
],
[
388,
414
],
[
414,
415
],
[
415,
416
],
[
414,
417
],
[
388,
418
],
[
418,
419
],
[
386,
420
],
[
420,
421
],
[
251,
422
],
[
422,
423
],
[
422,
424
],
[
424,
425
],
[
425,
426
],
[
425,
427
],
[
424,
429
],
[
429,
430
],
[
430,
431
],
[
431,
432
],
[
431,
433
],
[
429,
434
],
[
434,
435
],
[
434,
436
],
[
429,
437
],
[
437,
438
],
[
438,
439
],
[
429,
440
],
[
440,
441
],
[
441,
442
],
[
442,
443
],
[
442,
444
],
[
441,
445
],
[
445,
446
],
[
424,
447
],
[
447,
448
],
[
422,
449
],
[
449,
450
],
[
251,
451
],
[
451,
452
],
[
451,
453
],
[
453,
454
],
[
454,
455
],
[
454,
456
],
[
453,
458
],
[
458,
459
],
[
459,
460
],
[
460,
461
],
[
460,
462
],
[
458,
463
],
[
463,
464
],
[
463,
465
],
[
458,
466
],
[
466,
467
],
[
467,
468
],
[
458,
469
],
[
469,
470
],
[
470,
471
],
[
471,
472
],
[
471,
473
],
[
470,
474
],
[
474,
475
],
[
453,
476
],
[
476,
477
],
[
451,
478
],
[
478,
479
],
[
251,
480
],
[
480,
481
],
[
480,
482
],
[
482,
483
],
[
483,
484
],
[
484,
485
],
[
485,
486
],
[
251,
487
],
[
487,
488
],
[
487,
489
],
[
489,
490
],
[
490,
491
],
[
491,
492
],
[
492,
493
],
[
491,
494
],
[
494,
495
],
[
251,
496
],
[
496,
497
],
[
496,
498
],
[
498,
499
],
[
499,
500
],
[
500,
501
],
[
501,
502
],
[
500,
503
],
[
503,
504
],
[
251,
505
],
[
505,
506
],
[
505,
507
],
[
507,
508
],
[
508,
509
],
[
509,
510
],
[
510,
511
],
[
511,
512
],
[
509,
513
],
[
251,
514
],
[
514,
515
],
[
514,
516
],
[
516,
517
],
[
517,
518
],
[
518,
519
],
[
519,
520
],
[
518,
521
],
[
521,
522
],
[
251,
523
],
[
523,
524
],
[
523,
525
],
[
525,
526
],
[
526,
527
],
[
527,
528
],
[
528,
529
],
[
251,
530
],
[
530,
531
],
[
530,
532
],
[
532,
533
],
[
533,
534
],
[
534,
535
],
[
533,
536
],
[
0,
537
],
[
537,
538
],
[
537,
539
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.util.stream.Collectors;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n int N = sc.nextInt();\n long D = sc.nextLong();\n long DD = D * D;\n int cnt = 0;\n long x, y;\n for (int i = 0; i < N; i++) {\n x = sc.nextLong();\n y = sc.nextLong();\n\n if (Math.abs(x) > D) {\n continue;\n }\n if (Math.abs(y) > D) {\n continue;\n }\n if ((x * x) + (y * y) <= (DD)) {\n cnt++;\n }\n //memo.add(Integer.hashCode(k));\n }\n\n pw.println(cnt);\n\n pw.flush();\n // System.out.println(cnt);\n }\n\n // sc.close();\n // pw.println(cnt);\n // pw.flush();\n public static int cal(int flipped) {\n int cnt = 0;\n while (flipped != 0) {\n flipped = flipped % numPop(flipped);\n cnt++;\n }\n return cnt;\n }\n\n public static int numPop(int num) {\n int cnt = 0;\n while (num != 0) {\n cnt += (num & 1);\n num = num >> 1;\n }\n return cnt;\n }\n\n static PrintWriter pw;\n static MScanner sc;\n\n static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }\n\n static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n\n static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.util.stream.Collectors;",
"Collectors",
"java.util.stream",
"public class Main {\n public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n int N = sc.nextInt();\n long D = sc.nextLong();\n long DD = D * D;\n int cnt = 0;\n long x, y;\n for (int i = 0; i < N; i++) {\n x = sc.nextLong();\n y = sc.nextLong();\n\n if (Math.abs(x) > D) {\n continue;\n }\n if (Math.abs(y) > D) {\n continue;\n }\n if ((x * x) + (y * y) <= (DD)) {\n cnt++;\n }\n //memo.add(Integer.hashCode(k));\n }\n\n pw.println(cnt);\n\n pw.flush();\n // System.out.println(cnt);\n }\n\n // sc.close();\n // pw.println(cnt);\n // pw.flush();\n public static int cal(int flipped) {\n int cnt = 0;\n while (flipped != 0) {\n flipped = flipped % numPop(flipped);\n cnt++;\n }\n return cnt;\n }\n\n public static int numPop(int num) {\n int cnt = 0;\n while (num != 0) {\n cnt += (num & 1);\n num = num >> 1;\n }\n return cnt;\n }\n\n static PrintWriter pw;\n static MScanner sc;\n\n static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }\n\n static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n\n static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n}",
"Main",
"static PrintWriter pw;",
"pw",
"static MScanner sc;",
"sc",
"public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n int N = sc.nextInt();\n long D = sc.nextLong();\n long DD = D * D;\n int cnt = 0;\n long x, y;\n for (int i = 0; i < N; i++) {\n x = sc.nextLong();\n y = sc.nextLong();\n\n if (Math.abs(x) > D) {\n continue;\n }\n if (Math.abs(y) > D) {\n continue;\n }\n if ((x * x) + (y * y) <= (DD)) {\n cnt++;\n }\n //memo.add(Integer.hashCode(k));\n }\n\n pw.println(cnt);\n\n pw.flush();\n // System.out.println(cnt);\n }",
"main",
"{\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n int N = sc.nextInt();\n long D = sc.nextLong();\n long DD = D * D;\n int cnt = 0;\n long x, y;\n for (int i = 0; i < N; i++) {\n x = sc.nextLong();\n y = sc.nextLong();\n\n if (Math.abs(x) > D) {\n continue;\n }\n if (Math.abs(y) > D) {\n continue;\n }\n if ((x * x) + (y * y) <= (DD)) {\n cnt++;\n }\n //memo.add(Integer.hashCode(k));\n }\n\n pw.println(cnt);\n\n pw.flush();\n // System.out.println(cnt);\n }",
"sc = new MScanner(System.in)",
"sc",
"new MScanner(System.in)",
"pw = new PrintWriter(System.out)",
"pw",
"new PrintWriter(System.out)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long D = sc.nextLong();",
"D",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long DD = D * D;",
"DD",
"D * D",
"D",
"D",
"int cnt = 0;",
"cnt",
"0",
"long x",
"x",
"y;",
"y",
"for (int i = 0; i < N; i++) {\n x = sc.nextLong();\n y = sc.nextLong();\n\n if (Math.abs(x) > D) {\n continue;\n }\n if (Math.abs(y) > D) {\n continue;\n }\n if ((x * x) + (y * y) <= (DD)) {\n cnt++;\n }\n //memo.add(Integer.hashCode(k));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n x = sc.nextLong();\n y = sc.nextLong();\n\n if (Math.abs(x) > D) {\n continue;\n }\n if (Math.abs(y) > D) {\n continue;\n }\n if ((x * x) + (y * y) <= (DD)) {\n cnt++;\n }\n //memo.add(Integer.hashCode(k));\n }",
"{\n x = sc.nextLong();\n y = sc.nextLong();\n\n if (Math.abs(x) > D) {\n continue;\n }\n if (Math.abs(y) > D) {\n continue;\n }\n if ((x * x) + (y * y) <= (DD)) {\n cnt++;\n }\n //memo.add(Integer.hashCode(k));\n }",
"x = sc.nextLong()",
"x",
"sc.nextLong()",
"sc.nextLong",
"sc",
"y = sc.nextLong()",
"y",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if (Math.abs(x) > D) {\n continue;\n }",
"Math.abs(x) > D",
"Math.abs(x)",
"Math.abs",
"Math",
"x",
"D",
"{\n continue;\n }",
"continue;",
"if (Math.abs(y) > D) {\n continue;\n }",
"Math.abs(y) > D",
"Math.abs(y)",
"Math.abs",
"Math",
"y",
"D",
"{\n continue;\n }",
"continue;",
"if ((x * x) + (y * y) <= (DD)) {\n cnt++;\n }",
"(x * x) + (y * y) <= (DD)",
"(x * x) + (y * y)",
"(x * x)",
"x",
"x",
"(y * y)",
"y",
"y",
"(DD)",
"{\n cnt++;\n }",
"cnt++",
"cnt",
"pw.println(cnt)",
"pw.println",
"pw",
"cnt",
"pw.flush()",
"pw.flush",
"pw",
"String[] args",
"args",
"// sc.close();\n // pw.println(cnt);\n // pw.flush();\n public static int cal(int flipped) {\n int cnt = 0;\n while (flipped != 0) {\n flipped = flipped % numPop(flipped);\n cnt++;\n }\n return cnt;\n }",
"cal",
"{\n int cnt = 0;\n while (flipped != 0) {\n flipped = flipped % numPop(flipped);\n cnt++;\n }\n return cnt;\n }",
"int cnt = 0;",
"cnt",
"0",
"while (flipped != 0) {\n flipped = flipped % numPop(flipped);\n cnt++;\n }",
"flipped != 0",
"flipped",
"0",
"{\n flipped = flipped % numPop(flipped);\n cnt++;\n }",
"flipped = flipped % numPop(flipped)",
"flipped",
"flipped % numPop(flipped)",
"flipped",
"numPop(flipped)",
"numPop",
"flipped",
"cnt++",
"cnt",
"return cnt;",
"cnt",
"int flipped",
"flipped",
"public static int numPop(int num) {\n int cnt = 0;\n while (num != 0) {\n cnt += (num & 1);\n num = num >> 1;\n }\n return cnt;\n }",
"numPop",
"{\n int cnt = 0;\n while (num != 0) {\n cnt += (num & 1);\n num = num >> 1;\n }\n return cnt;\n }",
"int cnt = 0;",
"cnt",
"0",
"while (num != 0) {\n cnt += (num & 1);\n num = num >> 1;\n }",
"num != 0",
"num",
"0",
"{\n cnt += (num & 1);\n num = num >> 1;\n }",
"cnt += (num & 1)",
"cnt",
"(num & 1)",
"num",
"1",
"num = num >> 1",
"num",
"num >> 1",
"num",
"1",
"return cnt;",
"cnt",
"int num",
"num",
"static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }",
"shuffle",
"{\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }",
"for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < in.length",
"i",
"in.length",
"in",
"in.length",
"i++",
"i++",
"i",
"{\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"{\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"int idx = (int) (Math.random() * in.length);",
"idx",
"(int) (Math.random() * in.length)",
"Math.random()",
"Math.random",
"Math",
"in.length",
"in",
"in.length",
"int tmp = in[i];",
"tmp",
"in[i]",
"in",
"i",
"in[i] = in[idx]",
"in[i]",
"in",
"i",
"in[idx]",
"in",
"idx",
"in[idx] = tmp",
"in[idx]",
"in",
"idx",
"tmp",
"int[] in",
"in",
"static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }",
"shuffle",
"{\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }",
"for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < in.length",
"i",
"in.length",
"in",
"in.length",
"i++",
"i++",
"i",
"{\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"{\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"int idx = (int) (Math.random() * in.length);",
"idx",
"(int) (Math.random() * in.length)",
"Math.random()",
"Math.random",
"Math",
"in.length",
"in",
"in.length",
"long tmp = in[i];",
"tmp",
"in[i]",
"in",
"i",
"in[i] = in[idx]",
"in[i]",
"in",
"i",
"in[idx]",
"in",
"idx",
"in[idx] = tmp",
"in[idx]",
"in",
"idx",
"tmp",
"long[] in",
"in",
"static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }",
"MScanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }",
"MScanner",
"{\n br = new BufferedReader(new InputStreamReader(system));\n }",
"br = new BufferedReader(new InputStreamReader(system))",
"br",
"new BufferedReader(new InputStreamReader(system))",
"InputStream system",
"system",
"public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }",
"MScanner",
"{\n br = new BufferedReader(new FileReader(file));\n }",
"br = new BufferedReader(new FileReader(file))",
"br",
"new BufferedReader(new FileReader(file))",
"String file",
"file",
"public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }",
"intArr",
"{\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }",
"int[] in = new int[n];",
"in",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextInt();",
"in[i] = nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"return in;",
"in",
"int n",
"n",
"public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }",
"longArr",
"{\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }",
"long[] in = new long[n];",
"in",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextLong();",
"in[i] = nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"return in;",
"in",
"int n",
"n",
"public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }",
"intSortedArr",
"{\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }",
"int[] in = new int[n];",
"in",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextInt();",
"in[i] = nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"shuffle(in)",
"shuffle",
"in",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"return in;",
"in",
"int n",
"n",
"public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }",
"longSortedArr",
"{\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }",
"long[] in = new long[n];",
"in",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextLong();",
"in[i] = nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"shuffle(in)",
"shuffle",
"in",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"return in;",
"in",
"int n",
"n",
"public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }",
"IntegerArr",
"{\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }",
"Integer[] in = new Integer[n];",
"in",
"new Integer[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextInt();",
"in[i] = nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"return in;",
"in",
"int n",
"n",
"public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }",
"LongArr",
"{\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }",
"Long[] in = new Long[n];",
"in",
"new Long[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextLong();",
"in[i] = nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"return in;",
"in",
"int n",
"n",
"public String nextLine() throws IOException {\n return br.readLine();\n }",
"nextLine",
"{\n return br.readLine();\n }",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public char nextChar() throws IOException {\n return next().charAt(0);\n }",
"nextChar",
"{\n return next().charAt(0);\n }",
"return next().charAt(0);",
"next().charAt(0)",
"next().charAt",
"next()",
"next",
"0",
"public long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public boolean ready() throws IOException {\n return br.ready();\n }",
"ready",
"{\n return br.ready();\n }",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }",
"waitForInput",
"{\n Thread.sleep(3000);\n }",
"Thread.sleep(3000)",
"Thread.sleep",
"Thread",
"3000",
"public class Main {\n public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n int N = sc.nextInt();\n long D = sc.nextLong();\n long DD = D * D;\n int cnt = 0;\n long x, y;\n for (int i = 0; i < N; i++) {\n x = sc.nextLong();\n y = sc.nextLong();\n\n if (Math.abs(x) > D) {\n continue;\n }\n if (Math.abs(y) > D) {\n continue;\n }\n if ((x * x) + (y * y) <= (DD)) {\n cnt++;\n }\n //memo.add(Integer.hashCode(k));\n }\n\n pw.println(cnt);\n\n pw.flush();\n // System.out.println(cnt);\n }\n\n // sc.close();\n // pw.println(cnt);\n // pw.flush();\n public static int cal(int flipped) {\n int cnt = 0;\n while (flipped != 0) {\n flipped = flipped % numPop(flipped);\n cnt++;\n }\n return cnt;\n }\n\n public static int numPop(int num) {\n int cnt = 0;\n while (num != 0) {\n cnt += (num & 1);\n num = num >> 1;\n }\n return cnt;\n }\n\n static PrintWriter pw;\n static MScanner sc;\n\n static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }\n\n static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n\n static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n int N = sc.nextInt();\n long D = sc.nextLong();\n long DD = D * D;\n int cnt = 0;\n long x, y;\n for (int i = 0; i < N; i++) {\n x = sc.nextLong();\n y = sc.nextLong();\n\n if (Math.abs(x) > D) {\n continue;\n }\n if (Math.abs(y) > D) {\n continue;\n }\n if ((x * x) + (y * y) <= (DD)) {\n cnt++;\n }\n //memo.add(Integer.hashCode(k));\n }\n\n pw.println(cnt);\n\n pw.flush();\n // System.out.println(cnt);\n }\n\n // sc.close();\n // pw.println(cnt);\n // pw.flush();\n public static int cal(int flipped) {\n int cnt = 0;\n while (flipped != 0) {\n flipped = flipped % numPop(flipped);\n cnt++;\n }\n return cnt;\n }\n\n public static int numPop(int num) {\n int cnt = 0;\n while (num != 0) {\n cnt += (num & 1);\n num = num >> 1;\n }\n return cnt;\n }\n\n static PrintWriter pw;\n static MScanner sc;\n\n static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }\n\n static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n\n static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
import java.util.stream.Collectors;
public class Main {
public static void main(String[] args) throws IOException {
sc = new MScanner(System.in);
pw = new PrintWriter(System.out);
int N = sc.nextInt();
long D = sc.nextLong();
long DD = D * D;
int cnt = 0;
long x, y;
for (int i = 0; i < N; i++) {
x = sc.nextLong();
y = sc.nextLong();
if (Math.abs(x) > D) {
continue;
}
if (Math.abs(y) > D) {
continue;
}
if ((x * x) + (y * y) <= (DD)) {
cnt++;
}
//memo.add(Integer.hashCode(k));
}
pw.println(cnt);
pw.flush();
// System.out.println(cnt);
}
// sc.close();
// pw.println(cnt);
// pw.flush();
public static int cal(int flipped) {
int cnt = 0;
while (flipped != 0) {
flipped = flipped % numPop(flipped);
cnt++;
}
return cnt;
}
public static int numPop(int num) {
int cnt = 0;
while (num != 0) {
cnt += (num & 1);
num = num >> 1;
}
return cnt;
}
static PrintWriter pw;
static MScanner sc;
static class MScanner {
StringTokenizer st;
BufferedReader br;
public MScanner(InputStream system) {
br = new BufferedReader(new InputStreamReader(system));
}
public MScanner(String file) throws Exception {
br = new BufferedReader(new FileReader(file));
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int[] intArr(int n) throws IOException {
int[] in = new int[n];
for (int i = 0; i < n; i++) in[i] = nextInt();
return in;
}
public long[] longArr(int n) throws IOException {
long[] in = new long[n];
for (int i = 0; i < n; i++) in[i] = nextLong();
return in;
}
public int[] intSortedArr(int n) throws IOException {
int[] in = new int[n];
for (int i = 0; i < n; i++) in[i] = nextInt();
shuffle(in);
Arrays.sort(in);
return in;
}
public long[] longSortedArr(int n) throws IOException {
long[] in = new long[n];
for (int i = 0; i < n; i++) in[i] = nextLong();
shuffle(in);
Arrays.sort(in);
return in;
}
public Integer[] IntegerArr(int n) throws IOException {
Integer[] in = new Integer[n];
for (int i = 0; i < n; i++) in[i] = nextInt();
return in;
}
public Long[] LongArr(int n) throws IOException {
Long[] in = new Long[n];
for (int i = 0; i < n; i++) in[i] = nextLong();
return in;
}
public String nextLine() throws IOException {
return br.readLine();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public char nextChar() throws IOException {
return next().charAt(0);
}
public long nextLong() throws IOException {
return Long.parseLong(next());
}
public boolean ready() throws IOException {
return br.ready();
}
public void waitForInput() throws InterruptedException {
Thread.sleep(3000);
}
}
static void shuffle(int[] in) {
for (int i = 0; i < in.length; i++) {
int idx = (int) (Math.random() * in.length);
int tmp = in[i];
in[i] = in[idx];
in[idx] = tmp;
}
}
static void shuffle(long[] in) {
for (int i = 0; i < in.length; i++) {
int idx = (int) (Math.random() * in.length);
long tmp = in[i];
in[i] = in[idx];
in[idx] = tmp;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
56,
66
],
[
66,
67
],
[
11,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
9,
74
],
[
74,
75
]
]
| [
"/*package whatever //do not write package name here */\n\nimport java.io.*;\nimport java.util.Scanner;\n\n\nclass Main {\n\tpublic static void main (String[] args) {\n\t Scanner in = new Scanner(System.in);\n\t int n = in.nextInt();\n long d = in.nextLong();\n d = (long ) d * d;\n \n int answer = 0;\n for (int i=0;i<n;i++) {\n long x = in.nextLong();\n long y = in.nextLong();\n if (x * x + y * y <= d)\n answer++;\n }\n\n System.out.println(answer);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main (String[] args) {\n\t Scanner in = new Scanner(System.in);\n\t int n = in.nextInt();\n long d = in.nextLong();\n d = (long ) d * d;\n \n int answer = 0;\n for (int i=0;i<n;i++) {\n long x = in.nextLong();\n long y = in.nextLong();\n if (x * x + y * y <= d)\n answer++;\n }\n\n System.out.println(answer);\n\t}\n}",
"Main",
"public static void main (String[] args) {\n\t Scanner in = new Scanner(System.in);\n\t int n = in.nextInt();\n long d = in.nextLong();\n d = (long ) d * d;\n \n int answer = 0;\n for (int i=0;i<n;i++) {\n long x = in.nextLong();\n long y = in.nextLong();\n if (x * x + y * y <= d)\n answer++;\n }\n\n System.out.println(answer);\n\t}",
"main",
"{\n\t Scanner in = new Scanner(System.in);\n\t int n = in.nextInt();\n long d = in.nextLong();\n d = (long ) d * d;\n \n int answer = 0;\n for (int i=0;i<n;i++) {\n long x = in.nextLong();\n long y = in.nextLong();\n if (x * x + y * y <= d)\n answer++;\n }\n\n System.out.println(answer);\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"long d = in.nextLong();",
"d",
"in.nextLong()",
"in.nextLong",
"in",
"d = (long ) d * d",
"d",
"(long ) d * d",
"(long ) d",
"d",
"int answer = 0;",
"answer",
"0",
"for (int i=0;i<n;i++) {\n long x = in.nextLong();\n long y = in.nextLong();\n if (x * x + y * y <= d)\n answer++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long x = in.nextLong();\n long y = in.nextLong();\n if (x * x + y * y <= d)\n answer++;\n }",
"{\n long x = in.nextLong();\n long y = in.nextLong();\n if (x * x + y * y <= d)\n answer++;\n }",
"long x = in.nextLong();",
"x",
"in.nextLong()",
"in.nextLong",
"in",
"long y = in.nextLong();",
"y",
"in.nextLong()",
"in.nextLong",
"in",
"if (x * x + y * y <= d)\n answer++;",
"x * x + y * y <= d",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"d",
"answer++",
"answer",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args"
]
| /*package whatever //do not write package name here */
import java.io.*;
import java.util.Scanner;
class Main {
public static void main (String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
long d = in.nextLong();
d = (long ) d * d;
int answer = 0;
for (int i=0;i<n;i++) {
long x = in.nextLong();
long y = in.nextLong();
if (x * x + y * y <= d)
answer++;
}
System.out.println(answer);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
57,
59
],
[
48,
60
],
[
60,
61
],
[
61,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
6,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n long N = scan.nextInt();\n long D = scan.nextInt();\n\n int ans = 0;\n for(int i = 0;i < N;i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n if((x * x + y * y) <= D * D){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n long N = scan.nextInt();\n long D = scan.nextInt();\n\n int ans = 0;\n for(int i = 0;i < N;i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n if((x * x + y * y) <= D * D){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n long N = scan.nextInt();\n long D = scan.nextInt();\n\n int ans = 0;\n for(int i = 0;i < N;i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n if((x * x + y * y) <= D * D){\n ans++;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n long N = scan.nextInt();\n long D = scan.nextInt();\n\n int ans = 0;\n for(int i = 0;i < N;i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n if((x * x + y * y) <= D * D){\n ans++;\n }\n }\n System.out.println(ans);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long D = scan.nextInt();",
"D",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int ans = 0;",
"ans",
"0",
"for(int i = 0;i < N;i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n if((x * x + y * y) <= D * D){\n ans++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n long x = scan.nextInt();\n long y = scan.nextInt();\n if((x * x + y * y) <= D * D){\n ans++;\n }\n }",
"{\n long x = scan.nextInt();\n long y = scan.nextInt();\n if((x * x + y * y) <= D * D){\n ans++;\n }\n }",
"long x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long y = scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if((x * x + y * y) <= D * D){\n ans++;\n }",
"(x * x + y * y) <= D * D",
"(x * x + y * y)",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"D * D",
"D",
"D",
"{\n ans++;\n }",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n long N = scan.nextInt();\n long D = scan.nextInt();\n\n int ans = 0;\n for(int i = 0;i < N;i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n if((x * x + y * y) <= D * D){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"public class Main{\n\tpublic static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n long N = scan.nextInt();\n long D = scan.nextInt();\n\n int ans = 0;\n for(int i = 0;i < N;i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n if((x * x + y * y) <= D * D){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
long N = scan.nextInt();
long D = scan.nextInt();
int ans = 0;
for(int i = 0;i < N;i++){
long x = scan.nextInt();
long y = scan.nextInt();
if((x * x + y * y) <= D * D){
ans++;
}
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
2,
4,
18,
13,
13,
4,
18,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
124,
20
],
[
124,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
29,
34
],
[
23,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
40,
42
],
[
23,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
48,
50
],
[
23,
51
],
[
51,
52
],
[
51,
53
],
[
23,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
69,
74
],
[
66,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
80,
82
],
[
66,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
66,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
101,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
106,
110
],
[
92,
111
],
[
91,
112
],
[
112,
113
],
[
113,
114
],
[
23,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
21,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
]
| [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] in = br.readLine().split(\" \");\n int n = Integer.parseInt(in[0]);\n double d = Double.parseDouble(in[1]);\n int c = 0;\n for(int i=0;i<n;i++){\n in = br.readLine().split(\" \");\n double x = Double.parseDouble(in[0]);\n double y= Double.parseDouble(in[1]);\n if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){\n c++;\n }\n }\n System.out.println(c);\n\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] in = br.readLine().split(\" \");\n int n = Integer.parseInt(in[0]);\n double d = Double.parseDouble(in[1]);\n int c = 0;\n for(int i=0;i<n;i++){\n in = br.readLine().split(\" \");\n double x = Double.parseDouble(in[0]);\n double y= Double.parseDouble(in[1]);\n if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){\n c++;\n }\n }\n System.out.println(c);\n\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] in = br.readLine().split(\" \");\n int n = Integer.parseInt(in[0]);\n double d = Double.parseDouble(in[1]);\n int c = 0;\n for(int i=0;i<n;i++){\n in = br.readLine().split(\" \");\n double x = Double.parseDouble(in[0]);\n double y= Double.parseDouble(in[1]);\n if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){\n c++;\n }\n }\n System.out.println(c);\n\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] in = br.readLine().split(\" \");\n int n = Integer.parseInt(in[0]);\n double d = Double.parseDouble(in[1]);\n int c = 0;\n for(int i=0;i<n;i++){\n in = br.readLine().split(\" \");\n double x = Double.parseDouble(in[0]);\n double y= Double.parseDouble(in[1]);\n if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){\n c++;\n }\n }\n System.out.println(c);\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] in = br.readLine().split(\" \");",
"in",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(in[0]);",
"n",
"Integer.parseInt(in[0])",
"Integer.parseInt",
"Integer",
"in[0]",
"in",
"0",
"double d = Double.parseDouble(in[1]);",
"d",
"Double.parseDouble(in[1])",
"Double.parseDouble",
"Double",
"in[1]",
"in",
"1",
"int c = 0;",
"c",
"0",
"for(int i=0;i<n;i++){\n in = br.readLine().split(\" \");\n double x = Double.parseDouble(in[0]);\n double y= Double.parseDouble(in[1]);\n if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){\n c++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n in = br.readLine().split(\" \");\n double x = Double.parseDouble(in[0]);\n double y= Double.parseDouble(in[1]);\n if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){\n c++;\n }\n }",
"{\n in = br.readLine().split(\" \");\n double x = Double.parseDouble(in[0]);\n double y= Double.parseDouble(in[1]);\n if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){\n c++;\n }\n }",
"in = br.readLine().split(\" \")",
"in",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"double x = Double.parseDouble(in[0]);",
"x",
"Double.parseDouble(in[0])",
"Double.parseDouble",
"Double",
"in[0]",
"in",
"0",
"double y= Double.parseDouble(in[1]);",
"y",
"Double.parseDouble(in[1])",
"Double.parseDouble",
"Double",
"in[1]",
"in",
"1",
"if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){\n c++;\n }",
"Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0",
"Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))",
"Double.compare",
"Double",
"d",
"Math.sqrt(Math.pow(x,2)+Math.pow(y,2))",
"Math.sqrt",
"Math",
"Math.pow(x,2)+Math.pow(y,2)",
"Math.pow(x,2)",
"Math.pow",
"Math",
"x",
"2",
"Math.pow(y,2)",
"Math.pow",
"Math",
"y",
"2",
"0",
"{\n c++;\n }",
"c++",
"c",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] in = br.readLine().split(\" \");\n int n = Integer.parseInt(in[0]);\n double d = Double.parseDouble(in[1]);\n int c = 0;\n for(int i=0;i<n;i++){\n in = br.readLine().split(\" \");\n double x = Double.parseDouble(in[0]);\n double y= Double.parseDouble(in[1]);\n if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){\n c++;\n }\n }\n System.out.println(c);\n\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] in = br.readLine().split(\" \");\n int n = Integer.parseInt(in[0]);\n double d = Double.parseDouble(in[1]);\n int c = 0;\n for(int i=0;i<n;i++){\n in = br.readLine().split(\" \");\n double x = Double.parseDouble(in[0]);\n double y= Double.parseDouble(in[1]);\n if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){\n c++;\n }\n }\n System.out.println(c);\n\n }\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] in = br.readLine().split(" ");
int n = Integer.parseInt(in[0]);
double d = Double.parseDouble(in[1]);
int c = 0;
for(int i=0;i<n;i++){
in = br.readLine().split(" ");
double x = Double.parseDouble(in[0]);
double y= Double.parseDouble(in[1]);
if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){
c++;
}
}
System.out.println(c);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
2,
13,
2,
2,
13,
13,
2,
13,
13,
30,
40,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
109,
8
],
[
109,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
17,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
11,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
62,
67
],
[
59,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
59,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
59,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
91,
93
],
[
84,
94
],
[
94,
95
],
[
95,
96
],
[
11,
97
],
[
97,
98
],
[
98,
99
],
[
11,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
9,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] head = br.readLine().split(\" \");\n int ans = 0;\n int n = Integer.parseInt(head[0]);\n long d = Long.parseLong(head[1]);\n long d2 = d * d;\n for(int i = 0; i < n; i++){\n String[] data = br.readLine().split(\" \");\n long x = Long.parseLong(data[0]);\n long y = Long.parseLong(data[1]);\n if(d2 >= (x * x) + (y * y)){\n ans++;\n }\n }\n br.close();\n System.out.println(ans);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] head = br.readLine().split(\" \");\n int ans = 0;\n int n = Integer.parseInt(head[0]);\n long d = Long.parseLong(head[1]);\n long d2 = d * d;\n for(int i = 0; i < n; i++){\n String[] data = br.readLine().split(\" \");\n long x = Long.parseLong(data[0]);\n long y = Long.parseLong(data[1]);\n if(d2 >= (x * x) + (y * y)){\n ans++;\n }\n }\n br.close();\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] head = br.readLine().split(\" \");\n int ans = 0;\n int n = Integer.parseInt(head[0]);\n long d = Long.parseLong(head[1]);\n long d2 = d * d;\n for(int i = 0; i < n; i++){\n String[] data = br.readLine().split(\" \");\n long x = Long.parseLong(data[0]);\n long y = Long.parseLong(data[1]);\n if(d2 >= (x * x) + (y * y)){\n ans++;\n }\n }\n br.close();\n System.out.println(ans);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] head = br.readLine().split(\" \");\n int ans = 0;\n int n = Integer.parseInt(head[0]);\n long d = Long.parseLong(head[1]);\n long d2 = d * d;\n for(int i = 0; i < n; i++){\n String[] data = br.readLine().split(\" \");\n long x = Long.parseLong(data[0]);\n long y = Long.parseLong(data[1]);\n if(d2 >= (x * x) + (y * y)){\n ans++;\n }\n }\n br.close();\n System.out.println(ans);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] head = br.readLine().split(\" \");",
"head",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int ans = 0;",
"ans",
"0",
"int n = Integer.parseInt(head[0]);",
"n",
"Integer.parseInt(head[0])",
"Integer.parseInt",
"Integer",
"head[0]",
"head",
"0",
"long d = Long.parseLong(head[1]);",
"d",
"Long.parseLong(head[1])",
"Long.parseLong",
"Long",
"head[1]",
"head",
"1",
"long d2 = d * d;",
"d2",
"d * d",
"d",
"d",
"for(int i = 0; i < n; i++){\n String[] data = br.readLine().split(\" \");\n long x = Long.parseLong(data[0]);\n long y = Long.parseLong(data[1]);\n if(d2 >= (x * x) + (y * y)){\n ans++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] data = br.readLine().split(\" \");\n long x = Long.parseLong(data[0]);\n long y = Long.parseLong(data[1]);\n if(d2 >= (x * x) + (y * y)){\n ans++;\n }\n }",
"{\n String[] data = br.readLine().split(\" \");\n long x = Long.parseLong(data[0]);\n long y = Long.parseLong(data[1]);\n if(d2 >= (x * x) + (y * y)){\n ans++;\n }\n }",
"String[] data = br.readLine().split(\" \");",
"data",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"long x = Long.parseLong(data[0]);",
"x",
"Long.parseLong(data[0])",
"Long.parseLong",
"Long",
"data[0]",
"data",
"0",
"long y = Long.parseLong(data[1]);",
"y",
"Long.parseLong(data[1])",
"Long.parseLong",
"Long",
"data[1]",
"data",
"1",
"if(d2 >= (x * x) + (y * y)){\n ans++;\n }",
"d2 >= (x * x) + (y * y)",
"d2",
"(x * x) + (y * y)",
"(x * x)",
"x",
"x",
"(y * y)",
"y",
"y",
"{\n ans++;\n }",
"ans++",
"ans",
"br.close()",
"br.close",
"br",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] head = br.readLine().split(\" \");\n int ans = 0;\n int n = Integer.parseInt(head[0]);\n long d = Long.parseLong(head[1]);\n long d2 = d * d;\n for(int i = 0; i < n; i++){\n String[] data = br.readLine().split(\" \");\n long x = Long.parseLong(data[0]);\n long y = Long.parseLong(data[1]);\n if(d2 >= (x * x) + (y * y)){\n ans++;\n }\n }\n br.close();\n System.out.println(ans);\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] head = br.readLine().split(\" \");\n int ans = 0;\n int n = Integer.parseInt(head[0]);\n long d = Long.parseLong(head[1]);\n long d2 = d * d;\n for(int i = 0; i < n; i++){\n String[] data = br.readLine().split(\" \");\n long x = Long.parseLong(data[0]);\n long y = Long.parseLong(data[1]);\n if(d2 >= (x * x) + (y * y)){\n ans++;\n }\n }\n br.close();\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] head = br.readLine().split(" ");
int ans = 0;
int n = Integer.parseInt(head[0]);
long d = Long.parseLong(head[1]);
long d2 = d * d;
for(int i = 0; i < n; i++){
String[] data = br.readLine().split(" ");
long x = Long.parseLong(data[0]);
long y = Long.parseLong(data[1]);
if(d2 >= (x * x) + (y * y)){
ans++;
}
}
br.close();
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
2,
4,
18,
13,
18,
13,
13,
17,
4,
18,
13,
18,
13,
13,
17,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
8,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
79,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
89,
91
],
[
86,
92
],
[
72,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
6,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int[] x = new int[n];\n int[] y = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n int sum = 0;\n for (int i = 0; i < n; i++) {\n double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));\n if (a <= d) {\n sum++;\n }\n }\n System.out.println(sum);\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int[] x = new int[n];\n int[] y = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n int sum = 0;\n for (int i = 0; i < n; i++) {\n double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));\n if (a <= d) {\n sum++;\n }\n }\n System.out.println(sum);\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int[] x = new int[n];\n int[] y = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n int sum = 0;\n for (int i = 0; i < n; i++) {\n double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));\n if (a <= d) {\n sum++;\n }\n }\n System.out.println(sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int[] x = new int[n];\n int[] y = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n int sum = 0;\n for (int i = 0; i < n; i++) {\n double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));\n if (a <= d) {\n sum++;\n }\n }\n System.out.println(sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] x = new int[n];",
"x",
"new int[n]",
"n",
"int[] y = new int[n];",
"y",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }",
"{\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }",
"x[i] = sc.nextInt()",
"x[i]",
"x",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"y[i] = sc.nextInt()",
"y[i]",
"y",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sum = 0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));\n if (a <= d) {\n sum++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));\n if (a <= d) {\n sum++;\n }\n }",
"{\n double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));\n if (a <= d) {\n sum++;\n }\n }",
"double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));",
"a",
"Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2))",
"Math.sqrt",
"Math",
"Math.pow(x[i], 2) + Math.pow(y[i], 2)",
"Math.pow(x[i], 2)",
"Math.pow",
"Math",
"x[i]",
"x",
"i",
"2",
"Math.pow(y[i], 2)",
"Math.pow",
"Math",
"y[i]",
"y",
"i",
"2",
"if (a <= d) {\n sum++;\n }",
"a <= d",
"a",
"d",
"{\n sum++;\n }",
"sum++",
"sum",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int[] x = new int[n];\n int[] y = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n int sum = 0;\n for (int i = 0; i < n; i++) {\n double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));\n if (a <= d) {\n sum++;\n }\n }\n System.out.println(sum);\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int[] x = new int[n];\n int[] y = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n int sum = 0;\n for (int i = 0; i < n; i++) {\n double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));\n if (a <= d) {\n sum++;\n }\n }\n System.out.println(sum);\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int d = sc.nextInt();
int[] x = new int[n];
int[] y = new int[n];
for (int i = 0; i < n; i++) {
x[i] = sc.nextInt();
y[i] = sc.nextInt();
}
int sum = 0;
for (int i = 0; i < n; i++) {
double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));
if (a <= d) {
sum++;
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
53,
64
],
[
52,
65
],
[
65,
66
],
[
66,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
6,
74
],
[
74,
75
]
]
| [
"import java.util.*;\n \nclass Main{\n public static void main(String args[]){\n Scanner scan=new Scanner(System.in);\n int num=scan.nextInt();\n int disall=scan.nextInt();\n int x,y;\n int ans=0;\n for(int a=0; a<num; a++){\n x=scan.nextInt();\n y=scan.nextInt();\n if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String args[]){\n Scanner scan=new Scanner(System.in);\n int num=scan.nextInt();\n int disall=scan.nextInt();\n int x,y;\n int ans=0;\n for(int a=0; a<num; a++){\n x=scan.nextInt();\n y=scan.nextInt();\n if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner scan=new Scanner(System.in);\n int num=scan.nextInt();\n int disall=scan.nextInt();\n int x,y;\n int ans=0;\n for(int a=0; a<num; a++){\n x=scan.nextInt();\n y=scan.nextInt();\n if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){\n ans++;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner scan=new Scanner(System.in);\n int num=scan.nextInt();\n int disall=scan.nextInt();\n int x,y;\n int ans=0;\n for(int a=0; a<num; a++){\n x=scan.nextInt();\n y=scan.nextInt();\n if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){\n ans++;\n }\n }\n System.out.println(ans);\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int num=scan.nextInt();",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int disall=scan.nextInt();",
"disall",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int x",
"x",
"y;",
"y",
"int ans=0;",
"ans",
"0",
"for(int a=0; a<num; a++){\n x=scan.nextInt();\n y=scan.nextInt();\n if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){\n ans++;\n }\n }",
"int a=0;",
"int a=0;",
"a",
"0",
"a<num",
"a",
"num",
"a++",
"a++",
"a",
"{\n x=scan.nextInt();\n y=scan.nextInt();\n if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){\n ans++;\n }\n }",
"{\n x=scan.nextInt();\n y=scan.nextInt();\n if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){\n ans++;\n }\n }",
"x=scan.nextInt()",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"y=scan.nextInt()",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){\n ans++;\n }",
"Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall",
"Math.sqrt((long)x*(long)x+(long)y*(long)y)",
"Math.sqrt",
"Math",
"(long)x*(long)x+(long)y*(long)y",
"(long)x*(long)x",
"(long)x",
"(long)x",
"(long)y*(long)y",
"(long)y",
"(long)y",
"disall",
"{\n ans++;\n }",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args"
]
| import java.util.*;
class Main{
public static void main(String args[]){
Scanner scan=new Scanner(System.in);
int num=scan.nextInt();
int disall=scan.nextInt();
int x,y;
int ans=0;
for(int a=0; a<num; a++){
x=scan.nextInt();
y=scan.nextInt();
if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){
ans++;
}
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
41,
13,
41,
13,
2,
17,
17,
12,
13,
30,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
13,
40,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
2,
17,
17,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
4,
18,
13,
13,
29,
36,
23,
13,
12,
13,
30,
4,
18,
13,
4,
18,
13,
13,
13,
29,
36,
23,
13,
23,
13,
12,
13,
30,
28,
13,
13,
30,
30,
4,
18,
4,
18,
13,
13,
17,
4,
18,
13,
17,
29,
36,
23,
13,
12,
13,
30,
4,
18,
4,
18,
13,
13,
17,
29,
36,
23,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
12,
13,
30,
41,
13,
20,
0,
13,
20,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
2,
13,
40,
17,
40,
4,
13,
13,
2,
13,
17,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
20,
29,
13,
23,
13,
12,
13,
30,
0,
13,
4,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
41,
13,
4,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
599,
8
],
[
599,
9
],
[
9,
10
],
[
9,
11
],
[
599,
12
],
[
12,
13
],
[
599,
14
],
[
14,
15
],
[
599,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
599,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
23,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
23,
42
],
[
42,
43
],
[
42,
44
],
[
23,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
57,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
68,
78
],
[
78,
79
],
[
23,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
23,
84
],
[
84,
85
],
[
85,
86
],
[
21,
87
],
[
87,
88
],
[
599,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
89,
96
],
[
96,
97
],
[
89,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
89,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
106,
111
],
[
111,
112
],
[
104,
113
],
[
113,
114
],
[
89,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
121,
125
],
[
117,
126
],
[
126,
127
],
[
115,
128
],
[
128,
129
],
[
115,
130
],
[
130,
131
],
[
89,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
135,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
140,
146
],
[
134,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
134,
151
],
[
151,
152
],
[
132,
153
],
[
153,
154
],
[
89,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
158,
164
],
[
157,
165
],
[
165,
166
],
[
155,
167
],
[
167,
168
],
[
89,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
176,
177
],
[
175,
178
],
[
178,
179
],
[
179,
180
],
[
171,
181
],
[
181,
182
],
[
182,
183
],
[
169,
184
],
[
184,
185
],
[
89,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
189,
194
],
[
599,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
199,
201
],
[
195,
202
],
[
202,
203
],
[
202,
204
],
[
195,
206
],
[
206,
207
],
[
206,
208
],
[
195,
209
],
[
209,
210
],
[
209,
211
],
[
195,
212
],
[
212,
213
],
[
212,
214
],
[
195,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
221,
222
],
[
221,
223
],
[
215,
224
],
[
224,
225
],
[
195,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
233,
234
],
[
234,
235
],
[
229,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
236,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
240,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
250,
253
],
[
236,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
258
],
[
258,
259
],
[
259,
260
],
[
228,
261
],
[
261,
262
],
[
195,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
266,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
266,
274
],
[
274,
275
],
[
275,
276
],
[
195,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
282,
284
],
[
281,
285
],
[
285,
286
],
[
285,
287
],
[
277,
288
],
[
288,
289
],
[
195,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
294,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
300,
302
],
[
293,
303
],
[
303,
304
],
[
292,
305
],
[
305,
306
],
[
306,
307
],
[
195,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
311,
315
],
[
315,
316
],
[
310,
317
],
[
317,
318
],
[
317,
319
],
[
310,
320
],
[
320,
321
],
[
320,
322
],
[
322,
323
],
[
310,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
324,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
329,
332
],
[
328,
333
],
[
333,
334
],
[
333,
335
],
[
335,
336
],
[
310,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
195,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
344,
348
],
[
348,
349
],
[
343,
350
],
[
350,
351
],
[
350,
352
],
[
343,
353
],
[
353,
354
],
[
353,
355
],
[
343,
356
],
[
356,
357
],
[
356,
358
],
[
358,
359
],
[
343,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
360,
364
],
[
364,
365
],
[
365,
366
],
[
365,
367
],
[
364,
368
],
[
368,
369
],
[
368,
370
],
[
370,
371
],
[
343,
372
],
[
372,
373
],
[
373,
374
],
[
374,
375
],
[
374,
376
],
[
373,
377
],
[
377,
378
],
[
377,
379
],
[
372,
380
],
[
380,
381
],
[
381,
382
],
[
343,
383
],
[
383,
384
],
[
383,
385
],
[
385,
386
],
[
386,
387
],
[
387,
388
],
[
388,
389
],
[
388,
390
],
[
387,
391
],
[
391,
392
],
[
391,
393
],
[
386,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
394,
398
],
[
398,
399
],
[
398,
400
],
[
400,
401
],
[
400,
402
],
[
386,
403
],
[
403,
404
],
[
405,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
408,
409
],
[
405,
410
],
[
410,
411
],
[
411,
412
],
[
411,
413
],
[
405,
414
],
[
414,
415
],
[
414,
416
],
[
403,
417
],
[
417,
418
],
[
418,
419
],
[
419,
420
],
[
419,
421
],
[
421,
422
],
[
419,
423
],
[
403,
424
],
[
424,
425
],
[
425,
426
],
[
385,
427
],
[
427,
428
],
[
427,
429
],
[
429,
430
],
[
195,
431
],
[
431,
432
],
[
431,
433
],
[
433,
434
],
[
434,
435
],
[
434,
436
],
[
436,
437
],
[
433,
438
],
[
438,
439
],
[
439,
440
],
[
440,
441
],
[
440,
442
],
[
442,
443
],
[
442,
444
],
[
439,
445
],
[
445,
446
],
[
445,
447
],
[
447,
448
],
[
447,
449
],
[
438,
450
],
[
450,
451
],
[
433,
452
],
[
452,
453
],
[
195,
454
],
[
454,
455
],
[
454,
456
],
[
456,
457
],
[
457,
458
],
[
458,
459
],
[
459,
460
],
[
458,
461
],
[
461,
462
],
[
195,
463
],
[
463,
464
],
[
463,
465
],
[
465,
466
],
[
466,
467
],
[
466,
468
],
[
465,
470
],
[
470,
471
],
[
471,
472
],
[
472,
473
],
[
472,
474
],
[
470,
475
],
[
475,
476
],
[
475,
477
],
[
470,
478
],
[
478,
479
],
[
479,
480
],
[
470,
481
],
[
481,
482
],
[
482,
483
],
[
483,
484
],
[
483,
485
],
[
482,
486
],
[
486,
487
],
[
465,
488
],
[
488,
489
],
[
463,
490
],
[
490,
491
],
[
195,
492
],
[
492,
493
],
[
492,
494
],
[
494,
495
],
[
495,
496
],
[
495,
497
],
[
494,
499
],
[
499,
500
],
[
500,
501
],
[
501,
502
],
[
501,
503
],
[
499,
504
],
[
504,
505
],
[
504,
506
],
[
499,
507
],
[
507,
508
],
[
508,
509
],
[
499,
510
],
[
510,
511
],
[
511,
512
],
[
512,
513
],
[
512,
514
],
[
511,
515
],
[
515,
516
],
[
494,
517
],
[
517,
518
],
[
492,
519
],
[
519,
520
],
[
195,
521
],
[
521,
522
],
[
521,
523
],
[
523,
524
],
[
524,
525
],
[
524,
526
],
[
527,
528
],
[
527,
529
],
[
523,
530
],
[
530,
531
],
[
531,
532
],
[
532,
533
],
[
532,
534
],
[
530,
535
],
[
535,
536
],
[
535,
537
],
[
530,
538
],
[
538,
539
],
[
539,
540
],
[
530,
541
],
[
541,
542
],
[
542,
543
],
[
543,
544
],
[
543,
545
],
[
542,
546
],
[
523,
547
],
[
547,
548
],
[
521,
549
],
[
549,
550
],
[
195,
551
],
[
551,
552
],
[
551,
553
],
[
553,
554
],
[
554,
555
],
[
554,
556
],
[
556,
557
],
[
556,
558
],
[
553,
559
],
[
559,
560
],
[
560,
561
],
[
561,
562
],
[
561,
563
],
[
559,
564
],
[
564,
565
],
[
564,
566
],
[
559,
567
],
[
567,
568
],
[
568,
569
],
[
559,
570
],
[
571,
571
],
[
571,
572
],
[
572,
573
],
[
572,
574
],
[
574,
575
],
[
571,
576
],
[
576,
577
],
[
576,
578
],
[
578,
579
],
[
571,
580
],
[
580,
581
],
[
581,
582
],
[
582,
583
],
[
582,
584
],
[
580,
585
],
[
571,
586
],
[
586,
587
],
[
587,
588
],
[
588,
589
],
[
588,
590
],
[
586,
591
],
[
553,
592
],
[
592,
593
],
[
551,
594
],
[
594,
595
],
[
551,
596
],
[
596,
597
],
[
0,
598
],
[
598,
599
],
[
598,
600
]
]
| [
"/*\n Author: Anthony Ngene\n Created: 06/08/2020 - 06:05\n*/\n\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n// If a snake comes into your house, first kill the snake before asking where it came from. - African Proverb\npublic static void main(String[] args) throws IOException {\n in = new FastScanner();\n\n int n = in.intNext();\n double d = in.doubleNext();\n double dd = d * d;\n int counts = 0;\n for (int i = 0; i < n; i++) {\n double a = in.doubleNext(), b = in.doubleNext();\n if ((a*a + b*b) <= dd) counts++;\n }\n out.println(counts);\n\n out.close();\n}\n\n\n\nprivate static final FastWriter out = new FastWriter();\nprivate static FastScanner in;\nstatic ArrayList<Integer>[] adj;\nprivate static long e97 = (long)1e9 + 7;\nstatic class FastWriter {\n private static final int IO_BUFFERS = 128 * 1024;\n private final StringBuilder out;\n public FastWriter() {\n out = new StringBuilder(IO_BUFFERS);\n }\n public FastWriter p(Object object) {\n out.append(object);\n return this;\n }\n public FastWriter p(String format, Object... args) {\n out.append(String.format(format, args));\n return this;\n }\n public FastWriter pp(Object... args) {\n for (Object ob : args) {\n out.append(ob).append(\" \");\n }\n out.append(\"\\n\");\n return this;\n }\n public FastWriter println(Object object) {\n out.append(object).append(\"\\n\");\n return this;\n }\n public void toFile(String fileName) throws IOException {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }\n public void close() throws IOException {\n System.out.print(out);\n }\n}\nstatic class FastScanner {\n private InputStream sin = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n public FastScanner(){}\n public FastScanner(String filename) throws FileNotFoundException {\n File file = new File(filename);\n sin = new FileInputStream(file);\n }\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long longNext() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int intNext() {\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double doubleNext() { return Double.parseDouble(next());}\n public long[] nextLongArray(final int n){\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n public int[] nextIntArray(final int n){\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n public ArrayList<Integer>[] getAdj(int n) {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }\n\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n// If a snake comes into your house, first kill the snake before asking where it came from. - African Proverb\npublic static void main(String[] args) throws IOException {\n in = new FastScanner();\n\n int n = in.intNext();\n double d = in.doubleNext();\n double dd = d * d;\n int counts = 0;\n for (int i = 0; i < n; i++) {\n double a = in.doubleNext(), b = in.doubleNext();\n if ((a*a + b*b) <= dd) counts++;\n }\n out.println(counts);\n\n out.close();\n}\n\n\n\nprivate static final FastWriter out = new FastWriter();\nprivate static FastScanner in;\nstatic ArrayList<Integer>[] adj;\nprivate static long e97 = (long)1e9 + 7;\nstatic class FastWriter {\n private static final int IO_BUFFERS = 128 * 1024;\n private final StringBuilder out;\n public FastWriter() {\n out = new StringBuilder(IO_BUFFERS);\n }\n public FastWriter p(Object object) {\n out.append(object);\n return this;\n }\n public FastWriter p(String format, Object... args) {\n out.append(String.format(format, args));\n return this;\n }\n public FastWriter pp(Object... args) {\n for (Object ob : args) {\n out.append(ob).append(\" \");\n }\n out.append(\"\\n\");\n return this;\n }\n public FastWriter println(Object object) {\n out.append(object).append(\"\\n\");\n return this;\n }\n public void toFile(String fileName) throws IOException {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }\n public void close() throws IOException {\n System.out.print(out);\n }\n}\nstatic class FastScanner {\n private InputStream sin = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n public FastScanner(){}\n public FastScanner(String filename) throws FileNotFoundException {\n File file = new File(filename);\n sin = new FileInputStream(file);\n }\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long longNext() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int intNext() {\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double doubleNext() { return Double.parseDouble(next());}\n public long[] nextLongArray(final int n){\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n public int[] nextIntArray(final int n){\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n public ArrayList<Integer>[] getAdj(int n) {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }\n\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n}\n}",
"Main",
"private static final FastWriter out = new FastWriter();",
"out",
"new FastWriter()",
"private static FastScanner in;",
"in",
"static ArrayList<Integer>[] adj;",
"adj",
"private static long e97 = (long)1e9 + 7;",
"e97",
"(long)1e9 + 7",
"(long)1e9",
"7",
"// If a snake comes into your house, first kill the snake before asking where it came from. - African Proverb\npublic static void main(String[] args) throws IOException {\n in = new FastScanner();\n\n int n = in.intNext();\n double d = in.doubleNext();\n double dd = d * d;\n int counts = 0;\n for (int i = 0; i < n; i++) {\n double a = in.doubleNext(), b = in.doubleNext();\n if ((a*a + b*b) <= dd) counts++;\n }\n out.println(counts);\n\n out.close();\n}",
"main",
"{\n in = new FastScanner();\n\n int n = in.intNext();\n double d = in.doubleNext();\n double dd = d * d;\n int counts = 0;\n for (int i = 0; i < n; i++) {\n double a = in.doubleNext(), b = in.doubleNext();\n if ((a*a + b*b) <= dd) counts++;\n }\n out.println(counts);\n\n out.close();\n}",
"in = new FastScanner()",
"in",
"new FastScanner()",
"int n = in.intNext();",
"n",
"in.intNext()",
"in.intNext",
"in",
"double d = in.doubleNext();",
"d",
"in.doubleNext()",
"in.doubleNext",
"in",
"double dd = d * d;",
"dd",
"d * d",
"d",
"d",
"int counts = 0;",
"counts",
"0",
"for (int i = 0; i < n; i++) {\n double a = in.doubleNext(), b = in.doubleNext();\n if ((a*a + b*b) <= dd) counts++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n double a = in.doubleNext(), b = in.doubleNext();\n if ((a*a + b*b) <= dd) counts++;\n }",
"{\n double a = in.doubleNext(), b = in.doubleNext();\n if ((a*a + b*b) <= dd) counts++;\n }",
"double a = in.doubleNext()",
"a",
"in.doubleNext()",
"in.doubleNext",
"in",
"b = in.doubleNext();",
"b",
"in.doubleNext()",
"in.doubleNext",
"in",
"if ((a*a + b*b) <= dd) counts++;",
"(a*a + b*b) <= dd",
"(a*a + b*b)",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"dd",
"counts++",
"counts",
"out.println(counts)",
"out.println",
"out",
"counts",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class FastWriter {\n private static final int IO_BUFFERS = 128 * 1024;\n private final StringBuilder out;\n public FastWriter() {\n out = new StringBuilder(IO_BUFFERS);\n }\n public FastWriter p(Object object) {\n out.append(object);\n return this;\n }\n public FastWriter p(String format, Object... args) {\n out.append(String.format(format, args));\n return this;\n }\n public FastWriter pp(Object... args) {\n for (Object ob : args) {\n out.append(ob).append(\" \");\n }\n out.append(\"\\n\");\n return this;\n }\n public FastWriter println(Object object) {\n out.append(object).append(\"\\n\");\n return this;\n }\n public void toFile(String fileName) throws IOException {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }\n public void close() throws IOException {\n System.out.print(out);\n }\n}",
"FastWriter",
"private static final int IO_BUFFERS = 128 * 1024;",
"IO_BUFFERS",
"128 * 1024",
"128",
"1024",
"private final StringBuilder out;",
"out",
"public FastWriter() {\n out = new StringBuilder(IO_BUFFERS);\n }",
"FastWriter",
"{\n out = new StringBuilder(IO_BUFFERS);\n }",
"out = new StringBuilder(IO_BUFFERS)",
"out",
"new StringBuilder(IO_BUFFERS)",
"public FastWriter p(Object object) {\n out.append(object);\n return this;\n }",
"p",
"{\n out.append(object);\n return this;\n }",
"out.append(object)",
"out.append",
"out",
"object",
"return this;",
"this",
"Object object",
"object",
"public FastWriter p(String format, Object... args) {\n out.append(String.format(format, args));\n return this;\n }",
"p",
"{\n out.append(String.format(format, args));\n return this;\n }",
"out.append(String.format(format, args))",
"out.append",
"out",
"String.format(format, args)",
"String.format",
"String",
"format",
"args",
"return this;",
"this",
"String format",
"format",
"Object... args",
"args",
"public FastWriter pp(Object... args) {\n for (Object ob : args) {\n out.append(ob).append(\" \");\n }\n out.append(\"\\n\");\n return this;\n }",
"pp",
"{\n for (Object ob : args) {\n out.append(ob).append(\" \");\n }\n out.append(\"\\n\");\n return this;\n }",
"for (Object ob : args) {\n out.append(ob).append(\" \");\n }",
"Object ob",
"args",
"{\n out.append(ob).append(\" \");\n }",
"{\n out.append(ob).append(\" \");\n }",
"out.append(ob).append(\" \")",
"out.append(ob).append",
"out.append(ob)",
"out.append",
"out",
"ob",
"\" \"",
"out.append(\"\\n\")",
"out.append",
"out",
"\"\\n\"",
"return this;",
"this",
"Object... args",
"args",
"public FastWriter println(Object object) {\n out.append(object).append(\"\\n\");\n return this;\n }",
"println",
"{\n out.append(object).append(\"\\n\");\n return this;\n }",
"out.append(object).append(\"\\n\")",
"out.append(object).append",
"out.append(object)",
"out.append",
"out",
"object",
"\"\\n\"",
"return this;",
"this",
"Object object",
"object",
"public void toFile(String fileName) throws IOException {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }",
"toFile",
"{\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }",
"BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));",
"writer",
"new BufferedWriter(new FileWriter(fileName))",
"writer.write(out.toString())",
"writer.write",
"writer",
"out.toString()",
"out.toString",
"out",
"writer.close()",
"writer.close",
"writer",
"String fileName",
"fileName",
"public void close() throws IOException {\n System.out.print(out);\n }",
"close",
"{\n System.out.print(out);\n }",
"System.out.print(out)",
"System.out.print",
"System.out",
"System",
"System.out",
"out",
"static class FastScanner {\n private InputStream sin = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n public FastScanner(){}\n public FastScanner(String filename) throws FileNotFoundException {\n File file = new File(filename);\n sin = new FileInputStream(file);\n }\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long longNext() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int intNext() {\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double doubleNext() { return Double.parseDouble(next());}\n public long[] nextLongArray(final int n){\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n public int[] nextIntArray(final int n){\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n public ArrayList<Integer>[] getAdj(int n) {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }\n\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n}",
"FastScanner",
"private InputStream sin = System.in;",
"sin",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"public FastScanner(){}",
"FastScanner",
"{}",
"public FastScanner(String filename) throws FileNotFoundException {\n File file = new File(filename);\n sin = new FileInputStream(file);\n }",
"FastScanner",
"{\n File file = new File(filename);\n sin = new FileInputStream(file);\n }",
"File file = new File(filename);",
"file",
"new File(filename)",
"sin = new FileInputStream(file)",
"sin",
"new FileInputStream(file)",
"String filename",
"filename",
"private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"hasNextByte",
"{\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr < buflen",
"ptr",
"buflen",
"{\n return true;\n }",
"return true;",
"true",
"{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr = 0",
"ptr",
"0",
"try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n buflen = sin.read(buffer);\n }",
"buflen = sin.read(buffer)",
"buflen",
"sin.read(buffer)",
"sin.read",
"sin",
"buffer",
"if (buflen <= 0) {\n return false;\n }",
"buflen <= 0",
"buflen",
"0",
"{\n return false;\n }",
"return false;",
"false",
"return true;",
"true",
"private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"readByte",
"{ if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"if (hasNextByte()) return buffer[ptr++]; else return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}",
"isPrintableChar",
"{ return 33 <= c && c <= 126;}",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"hasNext",
"{ while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;",
"hasNextByte() && !isPrintableChar(buffer[ptr])",
"hasNextByte()",
"hasNextByte",
"!isPrintableChar(buffer[ptr])",
"isPrintableChar(buffer[ptr])",
"isPrintableChar",
"buffer[ptr]",
"buffer",
"ptr",
"ptr++",
"ptr",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"next",
"{\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n sb.appendCodePoint(b);\n b = readByte();\n }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public long longNext() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }",
"longNext",
"{\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"if (b == '-') {\n minus = true;\n b = readByte();\n }",
"b == '-'",
"b",
"'-'",
"{\n minus = true;\n b = readByte();\n }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n throw new NumberFormatException();\n }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }",
"true",
"{\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }",
"if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n n *= 10;\n n += b - '0';\n }",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }",
"b == -1 || !isPrintableChar(b) || b == ':'",
"b == -1 || !isPrintableChar(b) || b == ':'",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"b == ':'",
"b",
"':'",
"{\n return minus ? -n : n;\n }",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n throw new NumberFormatException();\n }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int intNext() {\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"intNext",
"{\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"long nl = longNext();",
"nl",
"longNext()",
"longNext",
"if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();",
"nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE",
"nl < Integer.MIN_VALUE",
"nl",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"nl > Integer.MAX_VALUE",
"nl",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) nl;",
"(int) nl",
"public double doubleNext() { return Double.parseDouble(next());}",
"doubleNext",
"{ return Double.parseDouble(next());}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public long[] nextLongArray(final int n){\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }",
"nextLongArray",
"{\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }",
"final long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = longNext();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = longNext();",
"a[i] = longNext()",
"a[i]",
"a",
"i",
"longNext()",
"longNext",
"return a;",
"a",
"final int n",
"n",
"public int[] nextIntArray(final int n){\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }",
"nextIntArray",
"{\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }",
"final int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = intNext();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = intNext();",
"a[i] = intNext()",
"a[i]",
"a",
"i",
"intNext()",
"intNext",
"return a;",
"a",
"final int n",
"n",
"public ArrayList<Integer>[] getAdj(int n) {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }",
"getAdj",
"{\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }",
"ArrayList<Integer>[] adj = new ArrayList[n + 1];",
"adj",
"new ArrayList[n + 1]",
"n + 1",
"n",
"1",
"for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"adj[i] = new ArrayList<>();",
"adj[i] = new ArrayList<>()",
"adj[i]",
"adj",
"i",
"new ArrayList<>()",
"return adj;",
"adj",
"int n",
"n",
"public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }",
"adjacencyList",
"{\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }",
"adj = getAdj(n)",
"adj",
"getAdj(n)",
"getAdj",
"n",
"for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }",
"{\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }",
"int a = intNext()",
"a",
"intNext()",
"intNext",
"b = intNext();",
"b",
"intNext()",
"intNext",
"adj[a].add(b)",
"adj[a].add",
"adj[a]",
"adj",
"a",
"b",
"adj[b].add(a)",
"adj[b].add",
"adj[b]",
"adj",
"b",
"a",
"return adj;",
"adj",
"int n",
"n",
"int m",
"m",
"public class Main {\n// If a snake comes into your house, first kill the snake before asking where it came from. - African Proverb\npublic static void main(String[] args) throws IOException {\n in = new FastScanner();\n\n int n = in.intNext();\n double d = in.doubleNext();\n double dd = d * d;\n int counts = 0;\n for (int i = 0; i < n; i++) {\n double a = in.doubleNext(), b = in.doubleNext();\n if ((a*a + b*b) <= dd) counts++;\n }\n out.println(counts);\n\n out.close();\n}\n\n\n\nprivate static final FastWriter out = new FastWriter();\nprivate static FastScanner in;\nstatic ArrayList<Integer>[] adj;\nprivate static long e97 = (long)1e9 + 7;\nstatic class FastWriter {\n private static final int IO_BUFFERS = 128 * 1024;\n private final StringBuilder out;\n public FastWriter() {\n out = new StringBuilder(IO_BUFFERS);\n }\n public FastWriter p(Object object) {\n out.append(object);\n return this;\n }\n public FastWriter p(String format, Object... args) {\n out.append(String.format(format, args));\n return this;\n }\n public FastWriter pp(Object... args) {\n for (Object ob : args) {\n out.append(ob).append(\" \");\n }\n out.append(\"\\n\");\n return this;\n }\n public FastWriter println(Object object) {\n out.append(object).append(\"\\n\");\n return this;\n }\n public void toFile(String fileName) throws IOException {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }\n public void close() throws IOException {\n System.out.print(out);\n }\n}\nstatic class FastScanner {\n private InputStream sin = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n public FastScanner(){}\n public FastScanner(String filename) throws FileNotFoundException {\n File file = new File(filename);\n sin = new FileInputStream(file);\n }\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long longNext() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int intNext() {\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double doubleNext() { return Double.parseDouble(next());}\n public long[] nextLongArray(final int n){\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n public int[] nextIntArray(final int n){\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n public ArrayList<Integer>[] getAdj(int n) {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }\n\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n}\n}",
"public class Main {\n// If a snake comes into your house, first kill the snake before asking where it came from. - African Proverb\npublic static void main(String[] args) throws IOException {\n in = new FastScanner();\n\n int n = in.intNext();\n double d = in.doubleNext();\n double dd = d * d;\n int counts = 0;\n for (int i = 0; i < n; i++) {\n double a = in.doubleNext(), b = in.doubleNext();\n if ((a*a + b*b) <= dd) counts++;\n }\n out.println(counts);\n\n out.close();\n}\n\n\n\nprivate static final FastWriter out = new FastWriter();\nprivate static FastScanner in;\nstatic ArrayList<Integer>[] adj;\nprivate static long e97 = (long)1e9 + 7;\nstatic class FastWriter {\n private static final int IO_BUFFERS = 128 * 1024;\n private final StringBuilder out;\n public FastWriter() {\n out = new StringBuilder(IO_BUFFERS);\n }\n public FastWriter p(Object object) {\n out.append(object);\n return this;\n }\n public FastWriter p(String format, Object... args) {\n out.append(String.format(format, args));\n return this;\n }\n public FastWriter pp(Object... args) {\n for (Object ob : args) {\n out.append(ob).append(\" \");\n }\n out.append(\"\\n\");\n return this;\n }\n public FastWriter println(Object object) {\n out.append(object).append(\"\\n\");\n return this;\n }\n public void toFile(String fileName) throws IOException {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }\n public void close() throws IOException {\n System.out.print(out);\n }\n}\nstatic class FastScanner {\n private InputStream sin = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n public FastScanner(){}\n public FastScanner(String filename) throws FileNotFoundException {\n File file = new File(filename);\n sin = new FileInputStream(file);\n }\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long longNext() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int intNext() {\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double doubleNext() { return Double.parseDouble(next());}\n public long[] nextLongArray(final int n){\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n public int[] nextIntArray(final int n){\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n public ArrayList<Integer>[] getAdj(int n) {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }\n\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n}\n}",
"Main"
]
| /*
Author: Anthony Ngene
Created: 06/08/2020 - 06:05
*/
import java.io.*;
import java.util.*;
public class Main {
// If a snake comes into your house, first kill the snake before asking where it came from. - African Proverb
public static void main(String[] args) throws IOException {
in = new FastScanner();
int n = in.intNext();
double d = in.doubleNext();
double dd = d * d;
int counts = 0;
for (int i = 0; i < n; i++) {
double a = in.doubleNext(), b = in.doubleNext();
if ((a*a + b*b) <= dd) counts++;
}
out.println(counts);
out.close();
}
private static final FastWriter out = new FastWriter();
private static FastScanner in;
static ArrayList<Integer>[] adj;
private static long e97 = (long)1e9 + 7;
static class FastWriter {
private static final int IO_BUFFERS = 128 * 1024;
private final StringBuilder out;
public FastWriter() {
out = new StringBuilder(IO_BUFFERS);
}
public FastWriter p(Object object) {
out.append(object);
return this;
}
public FastWriter p(String format, Object... args) {
out.append(String.format(format, args));
return this;
}
public FastWriter pp(Object... args) {
for (Object ob : args) {
out.append(ob).append(" ");
}
out.append("\n");
return this;
}
public FastWriter println(Object object) {
out.append(object).append("\n");
return this;
}
public void toFile(String fileName) throws IOException {
BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));
writer.write(out.toString());
writer.close();
}
public void close() throws IOException {
System.out.print(out);
}
}
static class FastScanner {
private InputStream sin = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
public FastScanner(){}
public FastScanner(String filename) throws FileNotFoundException {
File file = new File(filename);
sin = new FileInputStream(file);
}
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
}else{
ptr = 0;
try {
buflen = sin.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
public String next() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while(isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public long longNext() {
if (!hasNext()) throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while(true){
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
}else if(b == -1 || !isPrintableChar(b) || b == ':'){
return minus ? -n : n;
}else{
throw new NumberFormatException();
}
b = readByte();
}
}
public int intNext() {
long nl = longNext();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
return (int) nl;
}
public double doubleNext() { return Double.parseDouble(next());}
public long[] nextLongArray(final int n){
final long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = longNext();
return a;
}
public int[] nextIntArray(final int n){
final int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = intNext();
return a;
}
public ArrayList<Integer>[] getAdj(int n) {
ArrayList<Integer>[] adj = new ArrayList[n + 1];
for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();
return adj;
}
public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {
adj = getAdj(n);
for (int i = 0; i < m; i++) {
int a = intNext(), b = intNext();
adj[a].add(b);
adj[b].add(a);
}
return adj;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
0,
13,
2,
13,
17,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
4,
18,
13,
14,
2,
4,
18,
13,
2,
4,
18,
13,
18,
13,
13,
17,
4,
18,
13,
18,
13,
2,
13,
17,
17,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
106,
8
],
[
106,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
31,
32
],
[
31,
33
],
[
11,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
34,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
34,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
51,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
74,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
69,
90
],
[
68,
91
],
[
91,
92
],
[
92,
93
],
[
11,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
11,
100
],
[
100,
101
],
[
101,
102
],
[
9,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.util.Scanner;\nimport java.lang.Math;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int d = scan.nextInt();\n int counter = 0;\n int[] array = new int[n*2];\n for(int a=0; a<n*2; a=a+2){\n array[a] = scan.nextInt();\n array[a+1] = scan.nextInt();\n if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){\n counter++;\n }\n }\n System.out.println(counter);\n scan.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int d = scan.nextInt();\n int counter = 0;\n int[] array = new int[n*2];\n for(int a=0; a<n*2; a=a+2){\n array[a] = scan.nextInt();\n array[a+1] = scan.nextInt();\n if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){\n counter++;\n }\n }\n System.out.println(counter);\n scan.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int d = scan.nextInt();\n int counter = 0;\n int[] array = new int[n*2];\n for(int a=0; a<n*2; a=a+2){\n array[a] = scan.nextInt();\n array[a+1] = scan.nextInt();\n if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){\n counter++;\n }\n }\n System.out.println(counter);\n scan.close();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int d = scan.nextInt();\n int counter = 0;\n int[] array = new int[n*2];\n for(int a=0; a<n*2; a=a+2){\n array[a] = scan.nextInt();\n array[a+1] = scan.nextInt();\n if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){\n counter++;\n }\n }\n System.out.println(counter);\n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int d = scan.nextInt();",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int counter = 0;",
"counter",
"0",
"int[] array = new int[n*2];",
"array",
"new int[n*2]",
"n*2",
"n",
"2",
"for(int a=0; a<n*2; a=a+2){\n array[a] = scan.nextInt();\n array[a+1] = scan.nextInt();\n if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){\n counter++;\n }\n }",
"int a=0;",
"int a=0;",
"a",
"0",
"a<n*2",
"a",
"n*2",
"n",
"2",
"a=a+2",
"a=a+2",
"a",
"a+2",
"a",
"2",
"{\n array[a] = scan.nextInt();\n array[a+1] = scan.nextInt();\n if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){\n counter++;\n }\n }",
"{\n array[a] = scan.nextInt();\n array[a+1] = scan.nextInt();\n if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){\n counter++;\n }\n }",
"array[a] = scan.nextInt()",
"array[a]",
"array",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"array[a+1] = scan.nextInt()",
"array[a+1]",
"array",
"a+1",
"a",
"1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){\n counter++;\n }",
"Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d",
"Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))",
"Math.sqrt",
"Math",
"Math.pow(array[a],2)+Math.pow(array[a+1],2)",
"Math.pow(array[a],2)",
"Math.pow",
"Math",
"array[a]",
"array",
"a",
"2",
"Math.pow(array[a+1],2)",
"Math.pow",
"Math",
"array[a+1]",
"array",
"a+1",
"a",
"1",
"2",
"d",
"{\n counter++;\n }",
"counter++",
"counter",
"System.out.println(counter)",
"System.out.println",
"System.out",
"System",
"System.out",
"counter",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int d = scan.nextInt();\n int counter = 0;\n int[] array = new int[n*2];\n for(int a=0; a<n*2; a=a+2){\n array[a] = scan.nextInt();\n array[a+1] = scan.nextInt();\n if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){\n counter++;\n }\n }\n System.out.println(counter);\n scan.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int d = scan.nextInt();\n int counter = 0;\n int[] array = new int[n*2];\n for(int a=0; a<n*2; a=a+2){\n array[a] = scan.nextInt();\n array[a+1] = scan.nextInt();\n if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){\n counter++;\n }\n }\n System.out.println(counter);\n scan.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.lang.Math;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int d = scan.nextInt();
int counter = 0;
int[] array = new int[n*2];
for(int a=0; a<n*2; a=a+2){
array[a] = scan.nextInt();
array[a+1] = scan.nextInt();
if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){
counter++;
}
}
System.out.println(counter);
scan.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
17,
42,
2,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
9,
29,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
4,
13,
17,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
18,
13,
13,
29,
13,
12,
13,
30,
41,
13,
4,
18,
4,
13,
17,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
18,
13,
13,
29,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
13,
13,
0,
13,
17,
0,
13,
2,
2,
13,
13,
13,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
13,
2,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
13,
13,
2,
13,
17,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
29,
4,
13,
18,
13,
13,
4,
13,
4,
13,
18,
13,
2,
13,
13,
18,
13,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
4,
13,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
14,
2,
4,
13,
18,
13,
17,
18,
13,
17,
2,
13,
13,
40,
13,
4,
18,
13,
2,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
358,
8
],
[
358,
9
],
[
9,
10
],
[
358,
11
],
[
11,
12
],
[
358,
13
],
[
13,
14
],
[
358,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
17,
19
],
[
358,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
22,
39
],
[
39,
40
],
[
358,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
41,
49
],
[
49,
50
],
[
358,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
51,
59
],
[
59,
60
],
[
358,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
66,
70
],
[
63,
71
],
[
71,
72
],
[
71,
73
],
[
74,
75
],
[
74,
76
],
[
63,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
77,
87
],
[
87,
88
],
[
88,
89
],
[
77,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
63,
101
],
[
101,
102
],
[
358,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
108,
112
],
[
105,
113
],
[
113,
114
],
[
113,
115
],
[
116,
117
],
[
116,
118
],
[
105,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
119,
129
],
[
129,
130
],
[
130,
131
],
[
119,
132
],
[
133,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
140,
142
],
[
105,
143
],
[
143,
144
],
[
358,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
151,
153
],
[
358,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
164,
179
],
[
179,
180
],
[
179,
181
],
[
164,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
184,
188
],
[
156,
189
],
[
189,
190
],
[
154,
191
],
[
191,
192
],
[
154,
193
],
[
193,
194
],
[
154,
195
],
[
195,
196
],
[
358,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
206,
207
],
[
206,
208
],
[
201,
209
],
[
197,
210
],
[
210,
211
],
[
197,
212
],
[
212,
213
],
[
197,
214
],
[
214,
215
],
[
358,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
220,
223
],
[
223,
224
],
[
223,
225
],
[
220,
226
],
[
216,
227
],
[
227,
228
],
[
216,
229
],
[
229,
230
],
[
358,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
239,
240
],
[
233,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
244,
246
],
[
242,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
253,
255
],
[
249,
256
],
[
256,
257
],
[
256,
258
],
[
249,
259
],
[
247,
260
],
[
242,
261
],
[
231,
262
],
[
262,
263
],
[
231,
264
],
[
264,
265
],
[
231,
266
],
[
266,
267
],
[
358,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
272,
276
],
[
276,
277
],
[
276,
278
],
[
268,
279
],
[
279,
280
],
[
268,
281
],
[
281,
282
],
[
358,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
286,
287
],
[
285,
288
],
[
288,
289
],
[
288,
290
],
[
285,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
292,
295
],
[
291,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
296,
301
],
[
301,
302
],
[
301,
303
],
[
303,
304
],
[
303,
305
],
[
296,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
308,
310
],
[
296,
311
],
[
311,
312
],
[
311,
313
],
[
296,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
314,
319
],
[
319,
320
],
[
319,
321
],
[
314,
322
],
[
322,
323
],
[
323,
324
],
[
314,
325
],
[
326,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
326,
331
],
[
331,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
335,
336
],
[
335,
337
],
[
333,
338
],
[
338,
339
],
[
338,
340
],
[
332,
341
],
[
341,
342
],
[
341,
343
],
[
331,
344
],
[
344,
345
],
[
296,
346
],
[
346,
347
],
[
347,
348
],
[
346,
349
],
[
349,
350
],
[
349,
351
],
[
285,
352
],
[
352,
353
],
[
353,
354
],
[
283,
355
],
[
355,
356
],
[
0,
357
],
[
357,
358
],
[
357,
359
]
]
| [
"import java.util.*;\nimport java.io.*;\n\n public class Main{\n// taking inputs\nstatic BufferedReader s1;\nstatic BufferedWriter out;\nstatic String read() throws IOException{String line=\"\";while(line.length()==0){line=s1.readLine();continue;}return line;}\nstatic int int_v (String s1){return Integer.parseInt(s1);}\nstatic long long_v(String s1){return Long.parseLong(s1);}\nstatic int[] int_arr() throws IOException{String[] a=read().split(\" \");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}\nstatic long[] long_arr() throws IOException{String[] a=read().split(\" \");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}\nstatic void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}\nstatic long Modpow(long a,long p,long m){long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}\nstatic long Modmul(long a,long b,long m){return ((a%m)*(b%m))%m;}\nstatic long ModInv(long a,long m){return Modpow(a,m-2,m);}\nstatic long nck(int n,int r,long m){if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);}\nstatic long[] f;\nstatic long mod=(long)1e9+7;\n//......................................@uthor_Alx..............................................\n static long dis(long x1,long y1){\n \t\treturn x1*x1+y1*y1;\n }\n public static void main(String[] args) throws IOException{\n\t\t\t\tassign();\n\t\t\t\tint t=1;//int_v(read()),cn=1;\n\t\t\t\twhile(t--!=0){\n\t\t\t\t\tint[] x=int_arr();\n\t\t\t\t\tint n=x[0],d=x[1];\n\t\t\t\t\tint res=0;\n\t\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\t\tlong[] p=long_arr();\n\t\t\t\t\t\tif(dis(p[0],p[1])<=(long)d*d) res++;\n\t\t\t\t\t}\n\t\t\t\t\tout.write(res+\"\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t \n\t\t\t out.flush();\n\n\t}\n}\n\n\t \n\n\t ",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n// taking inputs\nstatic BufferedReader s1;\nstatic BufferedWriter out;\nstatic String read() throws IOException{String line=\"\";while(line.length()==0){line=s1.readLine();continue;}return line;}\nstatic int int_v (String s1){return Integer.parseInt(s1);}\nstatic long long_v(String s1){return Long.parseLong(s1);}\nstatic int[] int_arr() throws IOException{String[] a=read().split(\" \");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}\nstatic long[] long_arr() throws IOException{String[] a=read().split(\" \");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}\nstatic void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}\nstatic long Modpow(long a,long p,long m){long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}\nstatic long Modmul(long a,long b,long m){return ((a%m)*(b%m))%m;}\nstatic long ModInv(long a,long m){return Modpow(a,m-2,m);}\nstatic long nck(int n,int r,long m){if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);}\nstatic long[] f;\nstatic long mod=(long)1e9+7;\n//......................................@uthor_Alx..............................................\n static long dis(long x1,long y1){\n \t\treturn x1*x1+y1*y1;\n }\n public static void main(String[] args) throws IOException{\n\t\t\t\tassign();\n\t\t\t\tint t=1;//int_v(read()),cn=1;\n\t\t\t\twhile(t--!=0){\n\t\t\t\t\tint[] x=int_arr();\n\t\t\t\t\tint n=x[0],d=x[1];\n\t\t\t\t\tint res=0;\n\t\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\t\tlong[] p=long_arr();\n\t\t\t\t\t\tif(dis(p[0],p[1])<=(long)d*d) res++;\n\t\t\t\t\t}\n\t\t\t\t\tout.write(res+\"\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t \n\t\t\t out.flush();\n\n\t}\n}",
"Main",
"// taking inputs\nstatic BufferedReader s1;",
"s1",
"static BufferedWriter out;",
"out",
"static long[] f;",
"f",
"static long mod=(long)1e9+7;",
"mod",
"(long)1e9+7",
"(long)1e9",
"7",
"static String read() throws IOException{String line=\"\";while(line.length()==0){line=s1.readLine();continue;}return line;}",
"read",
"{String line=\"\";while(line.length()==0){line=s1.readLine();continue;}return line;}",
"String line=\"\";",
"line",
"\"\"",
"while(line.length()==0){line=s1.readLine();continue;}",
"line.length()==0",
"line.length()",
"line.length",
"line",
"0",
"{line=s1.readLine();continue;}",
"line=s1.readLine()",
"line",
"s1.readLine()",
"s1.readLine",
"s1",
"continue;",
"return line;",
"line",
"static int int_v (String s1){return Integer.parseInt(s1);}",
"int_v",
"{return Integer.parseInt(s1);}",
"return Integer.parseInt(s1);",
"Integer.parseInt(s1)",
"Integer.parseInt",
"Integer",
"s1",
"String s1",
"s1",
"static long long_v(String s1){return Long.parseLong(s1);}",
"long_v",
"{return Long.parseLong(s1);}",
"return Long.parseLong(s1);",
"Long.parseLong(s1)",
"Long.parseLong",
"Long",
"s1",
"String s1",
"s1",
"static int[] int_arr() throws IOException{String[] a=read().split(\" \");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}",
"int_arr",
"{String[] a=read().split(\" \");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}",
"String[] a=read().split(\" \");",
"a",
"read().split(\" \")",
"read().split",
"read()",
"read",
"\" \"",
"int[] b=new int[a.length];",
"b",
"new int[a.length]",
"a.length",
"a",
"a.length",
"for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{b[i]=int_v(a[i]);}",
"{b[i]=int_v(a[i]);}",
"b[i]=int_v(a[i])",
"b[i]",
"b",
"i",
"int_v(a[i])",
"int_v",
"a[i]",
"a",
"i",
"return b;",
"b",
"static long[] long_arr() throws IOException{String[] a=read().split(\" \");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}",
"long_arr",
"{String[] a=read().split(\" \");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}",
"String[] a=read().split(\" \");",
"a",
"read().split(\" \")",
"read().split",
"read()",
"read",
"\" \"",
"long[] b=new long[a.length];",
"b",
"new long[a.length]",
"a.length",
"a",
"a.length",
"for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{b[i]=long_v(a[i]);}",
"{b[i]=long_v(a[i]);}",
"b[i]=long_v(a[i])",
"b[i]",
"b",
"i",
"long_v(a[i])",
"long_v",
"a[i]",
"a",
"i",
"return b;",
"b",
"static void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}",
"assign",
"{s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}",
"s1=new BufferedReader(new InputStreamReader(System.in))",
"s1",
"new BufferedReader(new InputStreamReader(System.in))",
"out=new BufferedWriter(new OutputStreamWriter(System.out))",
"out",
"new BufferedWriter(new OutputStreamWriter(System.out))",
"static long Modpow(long a,long p,long m){long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}",
"Modpow",
"{long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}",
"long res=1;",
"res",
"1",
"while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}",
"p>0",
"p",
"0",
"{if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}",
"if((p&1)!=0){res=(res*a)%m;}",
"(p&1)!=0",
"(p&1)",
"p",
"1",
"0",
"{res=(res*a)%m;}",
"res=(res*a)%m",
"res",
"(res*a)%m",
"(res*a)",
"res",
"a",
"m",
"p >>=1",
"p",
"1",
"a=(a*a)%m",
"a",
"(a*a)%m",
"(a*a)",
"a",
"a",
"m",
"return res;",
"res",
"long a",
"a",
"long p",
"p",
"long m",
"m",
"static long Modmul(long a,long b,long m){return ((a%m)*(b%m))%m;}",
"Modmul",
"{return ((a%m)*(b%m))%m;}",
"return ((a%m)*(b%m))%m;",
"((a%m)*(b%m))%m",
"((a%m)*(b%m))",
"(a%m)",
"a",
"m",
"(b%m)",
"b",
"m",
"m",
"long a",
"a",
"long b",
"b",
"long m",
"m",
"static long ModInv(long a,long m){return Modpow(a,m-2,m);}",
"ModInv",
"{return Modpow(a,m-2,m);}",
"return Modpow(a,m-2,m);",
"Modpow(a,m-2,m)",
"Modpow",
"a",
"m-2",
"m",
"2",
"m",
"long a",
"a",
"long m",
"m",
"static long nck(int n,int r,long m){if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);}",
"nck",
"{if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);}",
"if(r>n){return 0l;}",
"r>n",
"r",
"n",
"{return 0l;}",
"return 0l;",
"0l",
"return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);",
"Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m)",
"Modmul",
"f[n]",
"f",
"n",
"ModInv(Modmul(f[n-r],f[r],m),m)",
"ModInv",
"Modmul(f[n-r],f[r],m)",
"Modmul",
"f[n-r]",
"f",
"n-r",
"n",
"r",
"f[r]",
"f",
"r",
"m",
"m",
"m",
"int n",
"n",
"int r",
"r",
"long m",
"m",
"//......................................@uthor_Alx..............................................\n static long dis(long x1,long y1){\n \t\treturn x1*x1+y1*y1;\n }",
"dis",
"{\n \t\treturn x1*x1+y1*y1;\n }",
"return x1*x1+y1*y1;",
"x1*x1+y1*y1",
"x1*x1",
"x1",
"x1",
"y1*y1",
"y1",
"y1",
"long x1",
"x1",
"long y1",
"y1",
"public static void main(String[] args) throws IOException{\n\t\t\t\tassign();\n\t\t\t\tint t=1;//int_v(read()),cn=1;\n\t\t\t\twhile(t--!=0){\n\t\t\t\t\tint[] x=int_arr();\n\t\t\t\t\tint n=x[0],d=x[1];\n\t\t\t\t\tint res=0;\n\t\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\t\tlong[] p=long_arr();\n\t\t\t\t\t\tif(dis(p[0],p[1])<=(long)d*d) res++;\n\t\t\t\t\t}\n\t\t\t\t\tout.write(res+\"\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t \n\t\t\t out.flush();\n\n\t}",
"main",
"{\n\t\t\t\tassign();\n\t\t\t\tint t=1;//int_v(read()),cn=1;\n\t\t\t\twhile(t--!=0){\n\t\t\t\t\tint[] x=int_arr();\n\t\t\t\t\tint n=x[0],d=x[1];\n\t\t\t\t\tint res=0;\n\t\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\t\tlong[] p=long_arr();\n\t\t\t\t\t\tif(dis(p[0],p[1])<=(long)d*d) res++;\n\t\t\t\t\t}\n\t\t\t\t\tout.write(res+\"\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t \n\t\t\t out.flush();\n\n\t}",
"assign()",
"assign",
"int t=1;",
"t",
"1",
"while(t--!=0){\n\t\t\t\t\tint[] x=int_arr();\n\t\t\t\t\tint n=x[0],d=x[1];\n\t\t\t\t\tint res=0;\n\t\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\t\tlong[] p=long_arr();\n\t\t\t\t\t\tif(dis(p[0],p[1])<=(long)d*d) res++;\n\t\t\t\t\t}\n\t\t\t\t\tout.write(res+\"\");\n\t\t\t\t\t\n\t\t\t\t}",
"t--!=0",
"t--",
"t",
"0",
"{\n\t\t\t\t\tint[] x=int_arr();\n\t\t\t\t\tint n=x[0],d=x[1];\n\t\t\t\t\tint res=0;\n\t\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\t\tlong[] p=long_arr();\n\t\t\t\t\t\tif(dis(p[0],p[1])<=(long)d*d) res++;\n\t\t\t\t\t}\n\t\t\t\t\tout.write(res+\"\");\n\t\t\t\t\t\n\t\t\t\t}",
"int[] x=int_arr();",
"x",
"int_arr()",
"int_arr",
"int n=x[0]",
"n",
"x[0]",
"x",
"0",
"d=x[1];",
"d",
"x[1]",
"x",
"1",
"int res=0;",
"res",
"0",
"for(int i=0;i<n;i++){\n\t\t\t\t\t\tlong[] p=long_arr();\n\t\t\t\t\t\tif(dis(p[0],p[1])<=(long)d*d) res++;\n\t\t\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\t\t\tlong[] p=long_arr();\n\t\t\t\t\t\tif(dis(p[0],p[1])<=(long)d*d) res++;\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tlong[] p=long_arr();\n\t\t\t\t\t\tif(dis(p[0],p[1])<=(long)d*d) res++;\n\t\t\t\t\t}",
"long[] p=long_arr();",
"p",
"long_arr()",
"long_arr",
"if(dis(p[0],p[1])<=(long)d*d) res++;",
"dis(p[0],p[1])<=(long)d*d",
"dis(p[0],p[1])",
"dis",
"p[0]",
"p",
"0",
"p[1]",
"p",
"1",
"(long)d*d",
"(long)d",
"d",
"res++",
"res",
"out.write(res+\"\")",
"out.write",
"out",
"res+\"\"",
"res",
"\"\"",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"public class Main{\n// taking inputs\nstatic BufferedReader s1;\nstatic BufferedWriter out;\nstatic String read() throws IOException{String line=\"\";while(line.length()==0){line=s1.readLine();continue;}return line;}\nstatic int int_v (String s1){return Integer.parseInt(s1);}\nstatic long long_v(String s1){return Long.parseLong(s1);}\nstatic int[] int_arr() throws IOException{String[] a=read().split(\" \");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}\nstatic long[] long_arr() throws IOException{String[] a=read().split(\" \");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}\nstatic void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}\nstatic long Modpow(long a,long p,long m){long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}\nstatic long Modmul(long a,long b,long m){return ((a%m)*(b%m))%m;}\nstatic long ModInv(long a,long m){return Modpow(a,m-2,m);}\nstatic long nck(int n,int r,long m){if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);}\nstatic long[] f;\nstatic long mod=(long)1e9+7;\n//......................................@uthor_Alx..............................................\n static long dis(long x1,long y1){\n \t\treturn x1*x1+y1*y1;\n }\n public static void main(String[] args) throws IOException{\n\t\t\t\tassign();\n\t\t\t\tint t=1;//int_v(read()),cn=1;\n\t\t\t\twhile(t--!=0){\n\t\t\t\t\tint[] x=int_arr();\n\t\t\t\t\tint n=x[0],d=x[1];\n\t\t\t\t\tint res=0;\n\t\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\t\tlong[] p=long_arr();\n\t\t\t\t\t\tif(dis(p[0],p[1])<=(long)d*d) res++;\n\t\t\t\t\t}\n\t\t\t\t\tout.write(res+\"\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t \n\t\t\t out.flush();\n\n\t}\n}",
"public class Main{\n// taking inputs\nstatic BufferedReader s1;\nstatic BufferedWriter out;\nstatic String read() throws IOException{String line=\"\";while(line.length()==0){line=s1.readLine();continue;}return line;}\nstatic int int_v (String s1){return Integer.parseInt(s1);}\nstatic long long_v(String s1){return Long.parseLong(s1);}\nstatic int[] int_arr() throws IOException{String[] a=read().split(\" \");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}\nstatic long[] long_arr() throws IOException{String[] a=read().split(\" \");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}\nstatic void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}\nstatic long Modpow(long a,long p,long m){long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}\nstatic long Modmul(long a,long b,long m){return ((a%m)*(b%m))%m;}\nstatic long ModInv(long a,long m){return Modpow(a,m-2,m);}\nstatic long nck(int n,int r,long m){if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);}\nstatic long[] f;\nstatic long mod=(long)1e9+7;\n//......................................@uthor_Alx..............................................\n static long dis(long x1,long y1){\n \t\treturn x1*x1+y1*y1;\n }\n public static void main(String[] args) throws IOException{\n\t\t\t\tassign();\n\t\t\t\tint t=1;//int_v(read()),cn=1;\n\t\t\t\twhile(t--!=0){\n\t\t\t\t\tint[] x=int_arr();\n\t\t\t\t\tint n=x[0],d=x[1];\n\t\t\t\t\tint res=0;\n\t\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\t\tlong[] p=long_arr();\n\t\t\t\t\t\tif(dis(p[0],p[1])<=(long)d*d) res++;\n\t\t\t\t\t}\n\t\t\t\t\tout.write(res+\"\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t \n\t\t\t out.flush();\n\n\t}\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main{
// taking inputs
static BufferedReader s1;
static BufferedWriter out;
static String read() throws IOException{String line="";while(line.length()==0){line=s1.readLine();continue;}return line;}
static int int_v (String s1){return Integer.parseInt(s1);}
static long long_v(String s1){return Long.parseLong(s1);}
static int[] int_arr() throws IOException{String[] a=read().split(" ");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}
static long[] long_arr() throws IOException{String[] a=read().split(" ");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}
static void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}
static long Modpow(long a,long p,long m){long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}
static long Modmul(long a,long b,long m){return ((a%m)*(b%m))%m;}
static long ModInv(long a,long m){return Modpow(a,m-2,m);}
static long nck(int n,int r,long m){if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);}
static long[] f;
static long mod=(long)1e9+7;
//......................................@uthor_Alx..............................................
static long dis(long x1,long y1){
return x1*x1+y1*y1;
}
public static void main(String[] args) throws IOException{
assign();
int t=1;//int_v(read()),cn=1;
while(t--!=0){
int[] x=int_arr();
int n=x[0],d=x[1];
int res=0;
for(int i=0;i<n;i++){
long[] p=long_arr();
if(dis(p[0],p[1])<=(long)d*d) res++;
}
out.write(res+"");
}
out.flush();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
37,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
6,
72
],
[
72,
73
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt(), D = scanner.nextInt(),ans=0;\n for (int i = 0; i < N; i++) {\n long a = scanner.nextInt(), b = scanner.nextInt();\n double dist = Math.sqrt(a*a+b*b);\n if (dist<=D)ans++;\n }\n System.out.println(ans);\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt(), D = scanner.nextInt(),ans=0;\n for (int i = 0; i < N; i++) {\n long a = scanner.nextInt(), b = scanner.nextInt();\n double dist = Math.sqrt(a*a+b*b);\n if (dist<=D)ans++;\n }\n System.out.println(ans);\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt(), D = scanner.nextInt(),ans=0;\n for (int i = 0; i < N; i++) {\n long a = scanner.nextInt(), b = scanner.nextInt();\n double dist = Math.sqrt(a*a+b*b);\n if (dist<=D)ans++;\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt(), D = scanner.nextInt(),ans=0;\n for (int i = 0; i < N; i++) {\n long a = scanner.nextInt(), b = scanner.nextInt();\n double dist = Math.sqrt(a*a+b*b);\n if (dist<=D)ans++;\n }\n System.out.println(ans);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt()",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"D = scanner.nextInt()",
"D",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"ans=0;",
"ans",
"0",
"for (int i = 0; i < N; i++) {\n long a = scanner.nextInt(), b = scanner.nextInt();\n double dist = Math.sqrt(a*a+b*b);\n if (dist<=D)ans++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n long a = scanner.nextInt(), b = scanner.nextInt();\n double dist = Math.sqrt(a*a+b*b);\n if (dist<=D)ans++;\n }",
"{\n long a = scanner.nextInt(), b = scanner.nextInt();\n double dist = Math.sqrt(a*a+b*b);\n if (dist<=D)ans++;\n }",
"long a = scanner.nextInt()",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"b = scanner.nextInt();",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"double dist = Math.sqrt(a*a+b*b);",
"dist",
"Math.sqrt(a*a+b*b)",
"Math.sqrt",
"Math",
"a*a+b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"if (dist<=D)ans++;",
"dist<=D",
"dist",
"D",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt(), D = scanner.nextInt(),ans=0;
for (int i = 0; i < N; i++) {
long a = scanner.nextInt(), b = scanner.nextInt();
double dist = Math.sqrt(a*a+b*b);
if (dist<=D)ans++;
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
89,
5
],
[
89,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
37,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
37,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
37,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
37,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
]
| [
"\nimport java.util.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\tint n=sc.nextInt();\n\tint d=sc.nextInt();\n\tint count=0;\n\tfor(int i=0;i<n;i++) {\n\t\tint x=Math.abs(sc.nextInt());\n\t\tint y=Math.abs(sc.nextInt());\n\t\tdouble ans2=Math.pow(x, 2)+Math.pow(y,2);\n\t\t\n\t\tdouble ans=Math.sqrt(ans2);\n\tif((double)d>=ans) {\n\t\tcount++;\n\t}\n\t\n\t\t\n\t}\n\tSystem.out.println(count);\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\tint n=sc.nextInt();\n\tint d=sc.nextInt();\n\tint count=0;\n\tfor(int i=0;i<n;i++) {\n\t\tint x=Math.abs(sc.nextInt());\n\t\tint y=Math.abs(sc.nextInt());\n\t\tdouble ans2=Math.pow(x, 2)+Math.pow(y,2);\n\t\t\n\t\tdouble ans=Math.sqrt(ans2);\n\tif((double)d>=ans) {\n\t\tcount++;\n\t}\n\t\n\t\t\n\t}\n\tSystem.out.println(count);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\tint n=sc.nextInt();\n\tint d=sc.nextInt();\n\tint count=0;\n\tfor(int i=0;i<n;i++) {\n\t\tint x=Math.abs(sc.nextInt());\n\t\tint y=Math.abs(sc.nextInt());\n\t\tdouble ans2=Math.pow(x, 2)+Math.pow(y,2);\n\t\t\n\t\tdouble ans=Math.sqrt(ans2);\n\tif((double)d>=ans) {\n\t\tcount++;\n\t}\n\t\n\t\t\n\t}\n\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\tint n=sc.nextInt();\n\tint d=sc.nextInt();\n\tint count=0;\n\tfor(int i=0;i<n;i++) {\n\t\tint x=Math.abs(sc.nextInt());\n\t\tint y=Math.abs(sc.nextInt());\n\t\tdouble ans2=Math.pow(x, 2)+Math.pow(y,2);\n\t\t\n\t\tdouble ans=Math.sqrt(ans2);\n\tif((double)d>=ans) {\n\t\tcount++;\n\t}\n\t\n\t\t\n\t}\n\tSystem.out.println(count);\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d=sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count=0;",
"count",
"0",
"for(int i=0;i<n;i++) {\n\t\tint x=Math.abs(sc.nextInt());\n\t\tint y=Math.abs(sc.nextInt());\n\t\tdouble ans2=Math.pow(x, 2)+Math.pow(y,2);\n\t\t\n\t\tdouble ans=Math.sqrt(ans2);\n\tif((double)d>=ans) {\n\t\tcount++;\n\t}\n\t\n\t\t\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\tint x=Math.abs(sc.nextInt());\n\t\tint y=Math.abs(sc.nextInt());\n\t\tdouble ans2=Math.pow(x, 2)+Math.pow(y,2);\n\t\t\n\t\tdouble ans=Math.sqrt(ans2);\n\tif((double)d>=ans) {\n\t\tcount++;\n\t}\n\t\n\t\t\n\t}",
"{\n\t\tint x=Math.abs(sc.nextInt());\n\t\tint y=Math.abs(sc.nextInt());\n\t\tdouble ans2=Math.pow(x, 2)+Math.pow(y,2);\n\t\t\n\t\tdouble ans=Math.sqrt(ans2);\n\tif((double)d>=ans) {\n\t\tcount++;\n\t}\n\t\n\t\t\n\t}",
"int x=Math.abs(sc.nextInt());",
"x",
"Math.abs(sc.nextInt())",
"Math.abs",
"Math",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y=Math.abs(sc.nextInt());",
"y",
"Math.abs(sc.nextInt())",
"Math.abs",
"Math",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double ans2=Math.pow(x, 2)+Math.pow(y,2);",
"ans2",
"Math.pow(x, 2)+Math.pow(y,2)",
"Math.pow(x, 2)",
"Math.pow",
"Math",
"x",
"2",
"Math.pow(y,2)",
"Math.pow",
"Math",
"y",
"2",
"double ans=Math.sqrt(ans2);",
"ans",
"Math.sqrt(ans2)",
"Math.sqrt",
"Math",
"ans2",
"if((double)d>=ans) {\n\t\tcount++;\n\t}",
"(double)d>=ans",
"(double)d",
"ans",
"{\n\t\tcount++;\n\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\tint n=sc.nextInt();\n\tint d=sc.nextInt();\n\tint count=0;\n\tfor(int i=0;i<n;i++) {\n\t\tint x=Math.abs(sc.nextInt());\n\t\tint y=Math.abs(sc.nextInt());\n\t\tdouble ans2=Math.pow(x, 2)+Math.pow(y,2);\n\t\t\n\t\tdouble ans=Math.sqrt(ans2);\n\tif((double)d>=ans) {\n\t\tcount++;\n\t}\n\t\n\t\t\n\t}\n\tSystem.out.println(count);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\tint n=sc.nextInt();\n\tint d=sc.nextInt();\n\tint count=0;\n\tfor(int i=0;i<n;i++) {\n\t\tint x=Math.abs(sc.nextInt());\n\t\tint y=Math.abs(sc.nextInt());\n\t\tdouble ans2=Math.pow(x, 2)+Math.pow(y,2);\n\t\t\n\t\tdouble ans=Math.sqrt(ans2);\n\tif((double)d>=ans) {\n\t\tcount++;\n\t}\n\t\n\t\t\n\t}\n\tSystem.out.println(count);\n\t}\n\n}",
"Main"
]
|
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int d=sc.nextInt();
int count=0;
for(int i=0;i<n;i++) {
int x=Math.abs(sc.nextInt());
int y=Math.abs(sc.nextInt());
double ans2=Math.pow(x, 2)+Math.pow(y,2);
double ans=Math.sqrt(ans2);
if((double)d>=ans) {
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
2,
13,
13,
30,
40,
13,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
30,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
4,
18,
13,
13,
29,
4,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
6,
13,
12,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
4,
18,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
373,
35
],
[
373,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
38,
49
],
[
49,
50
],
[
49,
51
],
[
38,
52
],
[
52,
53
],
[
52,
54
],
[
38,
55
],
[
55,
56
],
[
55,
57
],
[
38,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
58,
63
],
[
38,
64
],
[
64,
65
],
[
65,
66
],
[
36,
67
],
[
67,
68
],
[
373,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
93,
94
],
[
93,
95
],
[
82,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
108,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
108,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
125,
127
],
[
108,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
128,
134
],
[
134,
135
],
[
135,
136
],
[
82,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
71,
141
],
[
141,
142
],
[
71,
143
],
[
143,
144
],
[
71,
145
],
[
145,
146
],
[
373,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
147,
151
],
[
151,
152
],
[
151,
153
],
[
147,
155
],
[
155,
156
],
[
147,
157
],
[
157,
158
],
[
147,
159
],
[
159,
160
],
[
147,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
161,
169
],
[
169,
170
],
[
147,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
174,
179
],
[
179,
180
],
[
180,
181
],
[
173,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
190,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
199,
202
],
[
186,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
173,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
147,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
218,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
218,
232
],
[
232,
233
],
[
232,
234
],
[
218,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
242,
243
],
[
239,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
218,
248
],
[
248,
249
],
[
248,
250
],
[
218,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
251,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
258,
262
],
[
262,
263
],
[
262,
264
],
[
257,
265
],
[
265,
266
],
[
266,
267
],
[
256,
268
],
[
268,
269
],
[
268,
270
],
[
256,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
273,
275
],
[
256,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
218,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
147,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
287,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
293,
296
],
[
286,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
284,
301
],
[
301,
302
],
[
147,
303
],
[
303,
304
],
[
303,
305
],
[
305,
306
],
[
306,
307
],
[
310,
308
],
[
320,
309
],
[
317,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
314,
315
],
[
314,
316
],
[
317,
317
],
[
317,
318
],
[
317,
319
],
[
320,
320
],
[
320,
321
],
[
320,
322
],
[
310,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
303,
327
],
[
327,
328
],
[
147,
329
],
[
329,
330
],
[
329,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
373,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
335,
339
],
[
339,
340
],
[
339,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
339,
345
],
[
345,
346
],
[
335,
347
],
[
347,
348
],
[
347,
349
],
[
349,
350
],
[
350,
351
],
[
351,
352
],
[
351,
353
],
[
350,
354
],
[
347,
355
],
[
355,
356
],
[
335,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
360,
361
],
[
361,
362
],
[
335,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
366,
369
],
[
363,
370
],
[
370,
371
],
[
0,
372
],
[
372,
373
],
[
372,
374
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.BufferedWriter;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n BDistance solver = new BDistance();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BDistance {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int ntc = 1;\n// ntc = in.nextInt();\n while ((ntc--) > 0) {\n int n = in.nextInt();\n long d = in.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n long dist = x * x + y * y;\n if (dist <= d * d) {\n ++count;\n }\n }\n out.println(count);\n }\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(long i) {\n writer.println(i);\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.Writer;",
"Writer",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n BDistance solver = new BDistance();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BDistance {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int ntc = 1;\n// ntc = in.nextInt();\n while ((ntc--) > 0) {\n int n = in.nextInt();\n long d = in.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n long dist = x * x + y * y;\n if (dist <= d * d) {\n ++count;\n }\n }\n out.println(count);\n }\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(long i) {\n writer.println(i);\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n BDistance solver = new BDistance();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n BDistance solver = new BDistance();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"OutputWriter out = new OutputWriter(outputStream);",
"out",
"new OutputWriter(outputStream)",
"BDistance solver = new BDistance();",
"solver",
"new BDistance()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BDistance {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int ntc = 1;\n// ntc = in.nextInt();\n while ((ntc--) > 0) {\n int n = in.nextInt();\n long d = in.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n long dist = x * x + y * y;\n if (dist <= d * d) {\n ++count;\n }\n }\n out.println(count);\n }\n }\n\n }",
"BDistance",
"public void solve(int testNumber, InputReader in, OutputWriter out) {\n int ntc = 1;\n// ntc = in.nextInt();\n while ((ntc--) > 0) {\n int n = in.nextInt();\n long d = in.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n long dist = x * x + y * y;\n if (dist <= d * d) {\n ++count;\n }\n }\n out.println(count);\n }\n }",
"solve",
"{\n int ntc = 1;\n// ntc = in.nextInt();\n while ((ntc--) > 0) {\n int n = in.nextInt();\n long d = in.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n long dist = x * x + y * y;\n if (dist <= d * d) {\n ++count;\n }\n }\n out.println(count);\n }\n }",
"int ntc = 1;",
"ntc",
"1",
"while ((ntc--) > 0) {\n int n = in.nextInt();\n long d = in.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n long dist = x * x + y * y;\n if (dist <= d * d) {\n ++count;\n }\n }\n out.println(count);\n }",
"(ntc--) > 0",
"(ntc--)",
"ntc",
"0",
"{\n int n = in.nextInt();\n long d = in.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n long dist = x * x + y * y;\n if (dist <= d * d) {\n ++count;\n }\n }\n out.println(count);\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"long d = in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n long dist = x * x + y * y;\n if (dist <= d * d) {\n ++count;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long x = in.nextInt();\n long y = in.nextInt();\n long dist = x * x + y * y;\n if (dist <= d * d) {\n ++count;\n }\n }",
"{\n long x = in.nextInt();\n long y = in.nextInt();\n long dist = x * x + y * y;\n if (dist <= d * d) {\n ++count;\n }\n }",
"long x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"long y = in.nextInt();",
"y",
"in.nextInt()",
"in.nextInt",
"in",
"long dist = x * x + y * y;",
"dist",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"if (dist <= d * d) {\n ++count;\n }",
"dist <= d * d",
"dist",
"d * d",
"d",
"d",
"{\n ++count;\n }",
"++count",
"count",
"out.println(count)",
"out.println",
"out",
"count",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"OutputWriter out",
"out",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private InputReader.SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextInt",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"isSpaceChar",
"{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"if (filter != null) {\n return filter.isSpaceChar(c);\n }",
"filter != null",
"filter",
"null",
"{\n return filter.isSpaceChar(c);\n }",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return isWhitespace(c);",
"isWhitespace(c)",
"isWhitespace",
"c",
"int c",
"c",
"public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isWhitespace",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(long i) {\n writer.println(i);\n }\n\n }",
"OutputWriter",
"private final PrintWriter writer;",
"writer",
"public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"OutputWriter",
"{\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"writer",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"OutputStream outputStream",
"outputStream",
"public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }",
"OutputWriter",
"{\n this.writer = new PrintWriter(writer);\n }",
"this.writer = new PrintWriter(writer)",
"this.writer",
"this",
"this.writer",
"new PrintWriter(writer)",
"Writer writer",
"writer",
"public void close() {\n writer.close();\n }",
"close",
"{\n writer.close();\n }",
"writer.close()",
"writer.close",
"writer",
"public void println(long i) {\n writer.println(i);\n }",
"println",
"{\n writer.println(i);\n }",
"writer.println(i)",
"writer.println",
"writer",
"i",
"long i",
"i",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n BDistance solver = new BDistance();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BDistance {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int ntc = 1;\n// ntc = in.nextInt();\n while ((ntc--) > 0) {\n int n = in.nextInt();\n long d = in.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n long dist = x * x + y * y;\n if (dist <= d * d) {\n ++count;\n }\n }\n out.println(count);\n }\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(long i) {\n writer.println(i);\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n BDistance solver = new BDistance();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BDistance {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int ntc = 1;\n// ntc = in.nextInt();\n while ((ntc--) > 0) {\n int n = in.nextInt();\n long d = in.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n long x = in.nextInt();\n long y = in.nextInt();\n long dist = x * x + y * y;\n if (dist <= d * d) {\n ++count;\n }\n }\n out.println(count);\n }\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(long i) {\n writer.println(i);\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
OutputWriter out = new OutputWriter(outputStream);
BDistance solver = new BDistance();
solver.solve(1, in, out);
out.close();
}
static class BDistance {
public void solve(int testNumber, InputReader in, OutputWriter out) {
int ntc = 1;
// ntc = in.nextInt();
while ((ntc--) > 0) {
int n = in.nextInt();
long d = in.nextInt();
int count = 0;
for (int i = 0; i < n; i++) {
long x = in.nextInt();
long y = in.nextInt();
long dist = x * x + y * y;
if (dist <= d * d) {
++count;
}
}
out.println(count);
}
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private InputReader.SpaceCharFilter filter;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) {
return -1;
}
}
return buf[curChar++];
}
public int nextInt() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
if (c < '0' || c > '9') {
throw new InputMismatchException();
}
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public boolean isSpaceChar(int c) {
if (filter != null) {
return filter.isSpaceChar(c);
}
return isWhitespace(c);
}
public static boolean isWhitespace(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
static class OutputWriter {
private final PrintWriter writer;
public OutputWriter(OutputStream outputStream) {
writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
}
public OutputWriter(Writer writer) {
this.writer = new PrintWriter(writer);
}
public void close() {
writer.close();
}
public void println(long i) {
writer.println(i);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
17,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
54,
60
],
[
42,
61
],
[
41,
62
],
[
62,
63
],
[
11,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
9,
70
],
[
70,
71
]
]
| [
"import java.io.*;\nimport java.util.*;\n\nclass Main{\n \n public static void main(String args[]){\n \n Scanner s= new Scanner(System.in);\n \n int n =s.nextInt();\n float d = s.nextInt();\n int count=0;\n \n for(int i=0;i<n;i++){\n if(Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d)\n count++;\n }\n System.out.println(count);\n \n }\n \n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main{\n \n public static void main(String args[]){\n \n Scanner s= new Scanner(System.in);\n \n int n =s.nextInt();\n float d = s.nextInt();\n int count=0;\n \n for(int i=0;i<n;i++){\n if(Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d)\n count++;\n }\n System.out.println(count);\n \n }\n \n}",
"Main",
"public static void main(String args[]){\n \n Scanner s= new Scanner(System.in);\n \n int n =s.nextInt();\n float d = s.nextInt();\n int count=0;\n \n for(int i=0;i<n;i++){\n if(Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d)\n count++;\n }\n System.out.println(count);\n \n }",
"main",
"{\n \n Scanner s= new Scanner(System.in);\n \n int n =s.nextInt();\n float d = s.nextInt();\n int count=0;\n \n for(int i=0;i<n;i++){\n if(Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d)\n count++;\n }\n System.out.println(count);\n \n }",
"Scanner s= new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n =s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"float d = s.nextInt();",
"d",
"s.nextInt()",
"s.nextInt",
"s",
"int count=0;",
"count",
"0",
"for(int i=0;i<n;i++){\n if(Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d)\n count++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d)\n count++;\n }",
"{\n if(Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d)\n count++;\n }",
"if(Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d)\n count++;",
"Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d",
"Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))",
"Math.sqrt",
"Math",
"Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2)",
"Math.pow(s.nextInt(),2)",
"Math.pow",
"Math",
"s.nextInt()",
"s.nextInt",
"s",
"2",
"Math.pow(s.nextInt(),2)",
"Math.pow",
"Math",
"s.nextInt()",
"s.nextInt",
"s",
"2",
"d",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String args[]",
"args"
]
| import java.io.*;
import java.util.*;
class Main{
public static void main(String args[]){
Scanner s= new Scanner(System.in);
int n =s.nextInt();
float d = s.nextInt();
int count=0;
for(int i=0;i<n;i++){
if(Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d)
count++;
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
75,
5
],
[
75,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
48,
60
],
[
60,
61
],
[
61,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
6,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint N = sc.nextInt();\n\t\tlong D = sc.nextInt();\n\t\t\n\t\tint count = 0;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlong X = sc.nextInt();\n\t\t\tlong Y = sc.nextInt();\n\t\t\tif ((D * D) >= ((X * X) + (Y * Y))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 結果の出力\n\t\tSystem.out.println(count);\n\t\t\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint N = sc.nextInt();\n\t\tlong D = sc.nextInt();\n\t\t\n\t\tint count = 0;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlong X = sc.nextInt();\n\t\t\tlong Y = sc.nextInt();\n\t\t\tif ((D * D) >= ((X * X) + (Y * Y))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 結果の出力\n\t\tSystem.out.println(count);\n\t\t\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint N = sc.nextInt();\n\t\tlong D = sc.nextInt();\n\t\t\n\t\tint count = 0;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlong X = sc.nextInt();\n\t\t\tlong Y = sc.nextInt();\n\t\t\tif ((D * D) >= ((X * X) + (Y * Y))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 結果の出力\n\t\tSystem.out.println(count);\n\t\t\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint N = sc.nextInt();\n\t\tlong D = sc.nextInt();\n\t\t\n\t\tint count = 0;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlong X = sc.nextInt();\n\t\t\tlong Y = sc.nextInt();\n\t\t\tif ((D * D) >= ((X * X) + (Y * Y))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 結果の出力\n\t\tSystem.out.println(count);\n\t\t\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long D = sc.nextInt();",
"D",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < N; i++) {\n\t\t\tlong X = sc.nextInt();\n\t\t\tlong Y = sc.nextInt();\n\t\t\tif ((D * D) >= ((X * X) + (Y * Y))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tlong X = sc.nextInt();\n\t\t\tlong Y = sc.nextInt();\n\t\t\tif ((D * D) >= ((X * X) + (Y * Y))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tlong X = sc.nextInt();\n\t\t\tlong Y = sc.nextInt();\n\t\t\tif ((D * D) >= ((X * X) + (Y * Y))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"long X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if ((D * D) >= ((X * X) + (Y * Y))) {\n\t\t\t\tcount++;\n\t\t\t}",
"(D * D) >= ((X * X) + (Y * Y))",
"(D * D)",
"D",
"D",
"((X * X) + (Y * Y))",
"(X * X)",
"X",
"X",
"(Y * Y)",
"Y",
"Y",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint N = sc.nextInt();\n\t\tlong D = sc.nextInt();\n\t\t\n\t\tint count = 0;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlong X = sc.nextInt();\n\t\t\tlong Y = sc.nextInt();\n\t\t\tif ((D * D) >= ((X * X) + (Y * Y))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 結果の出力\n\t\tSystem.out.println(count);\n\t\t\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint N = sc.nextInt();\n\t\tlong D = sc.nextInt();\n\t\t\n\t\tint count = 0;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlong X = sc.nextInt();\n\t\t\tlong Y = sc.nextInt();\n\t\t\tif ((D * D) >= ((X * X) + (Y * Y))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 結果の出力\n\t\tSystem.out.println(count);\n\t\t\n\t\tsc.close();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// 入力値の取得
int N = sc.nextInt();
long D = sc.nextInt();
int count = 0;
for (int i = 0; i < N; i++) {
long X = sc.nextInt();
long Y = sc.nextInt();
if ((D * D) >= ((X * X) + (Y * Y))) {
count++;
}
}
// 結果の出力
System.out.println(count);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
17,
0,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
18,
13,
13,
14,
2,
2,
18,
13,
13,
18,
13,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
48,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
48,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
48,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
77,
87
],
[
87,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
6,
95
],
[
95,
96
]
]
| [
"import java.util.*;\n\nclass Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextInt();\n long[] x = new long[n];\n long[] y = new long[n];\n int cnt = 0;\n d *= d;\n \n for (int i=0; i<n; i++) {\n x[i] = sc.nextLong();\n x[i] *= x[i];\n y[i] = sc.nextLong();\n y[i] *= y[i];\n if (x[i]+y[i] <= d)\n cnt++;\n }\n \n System.out.println(cnt);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextInt();\n long[] x = new long[n];\n long[] y = new long[n];\n int cnt = 0;\n d *= d;\n \n for (int i=0; i<n; i++) {\n x[i] = sc.nextLong();\n x[i] *= x[i];\n y[i] = sc.nextLong();\n y[i] *= y[i];\n if (x[i]+y[i] <= d)\n cnt++;\n }\n \n System.out.println(cnt);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextInt();\n long[] x = new long[n];\n long[] y = new long[n];\n int cnt = 0;\n d *= d;\n \n for (int i=0; i<n; i++) {\n x[i] = sc.nextLong();\n x[i] *= x[i];\n y[i] = sc.nextLong();\n y[i] *= y[i];\n if (x[i]+y[i] <= d)\n cnt++;\n }\n \n System.out.println(cnt);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextInt();\n long[] x = new long[n];\n long[] y = new long[n];\n int cnt = 0;\n d *= d;\n \n for (int i=0; i<n; i++) {\n x[i] = sc.nextLong();\n x[i] *= x[i];\n y[i] = sc.nextLong();\n y[i] *= y[i];\n if (x[i]+y[i] <= d)\n cnt++;\n }\n \n System.out.println(cnt);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[] x = new long[n];",
"x",
"new long[n]",
"n",
"long[] y = new long[n];",
"y",
"new long[n]",
"n",
"int cnt = 0;",
"cnt",
"0",
"d *= d",
"d",
"d",
"for (int i=0; i<n; i++) {\n x[i] = sc.nextLong();\n x[i] *= x[i];\n y[i] = sc.nextLong();\n y[i] *= y[i];\n if (x[i]+y[i] <= d)\n cnt++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n x[i] = sc.nextLong();\n x[i] *= x[i];\n y[i] = sc.nextLong();\n y[i] *= y[i];\n if (x[i]+y[i] <= d)\n cnt++;\n }",
"{\n x[i] = sc.nextLong();\n x[i] *= x[i];\n y[i] = sc.nextLong();\n y[i] *= y[i];\n if (x[i]+y[i] <= d)\n cnt++;\n }",
"x[i] = sc.nextLong()",
"x[i]",
"x",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"x[i] *= x[i]",
"x[i]",
"x",
"i",
"x[i]",
"x",
"i",
"y[i] = sc.nextLong()",
"y[i]",
"y",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"y[i] *= y[i]",
"y[i]",
"y",
"i",
"y[i]",
"y",
"i",
"if (x[i]+y[i] <= d)\n cnt++;",
"x[i]+y[i] <= d",
"x[i]+y[i]",
"x[i]",
"x",
"i",
"y[i]",
"y",
"i",
"d",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args"
]
| import java.util.*;
class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long d = sc.nextInt();
long[] x = new long[n];
long[] y = new long[n];
int cnt = 0;
d *= d;
for (int i=0; i<n; i++) {
x[i] = sc.nextLong();
x[i] *= x[i];
y[i] = sc.nextLong();
y[i] *= y[i];
if (x[i]+y[i] <= d)
cnt++;
}
System.out.println(cnt);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
13,
14,
2,
13,
13,
40,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
2,
4,
18,
13,
2,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
14,
2,
4,
18,
13,
17,
17,
30,
0,
13,
17,
40,
13,
11,
1,
41,
13,
13,
2,
13,
4,
18,
13,
1,
40,
13,
30,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
20,
0,
13,
17,
30,
4,
18,
13,
4,
18,
13,
13,
14,
13,
0,
13,
17,
0,
13,
2,
4,
18,
13,
4,
18,
13,
13,
29,
2,
13,
8,
13,
40,
17,
17,
12,
13,
30,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
316,
11
],
[
316,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
49,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
49,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
14,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
14,
89
],
[
89,
90
],
[
90,
91
],
[
12,
92
],
[
92,
93
],
[
316,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
114,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
114,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
135,
137
],
[
114,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
94,
143
],
[
143,
144
],
[
316,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
145,
149
],
[
149,
150
],
[
145,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
151,
157
],
[
157,
158
],
[
145,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
162,
171
],
[
171,
172
],
[
171,
173
],
[
161,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
145,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
182,
185
],
[
185,
186
],
[
145,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
191,
194
],
[
194,
195
],
[
145,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
145,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
205,
210
],
[
210,
211
],
[
210,
212
],
[
205,
213
],
[
213,
214
],
[
213,
215
],
[
205,
216
],
[
216,
217
],
[
216,
218
],
[
205,
219
],
[
219,
220
],
[
219,
221
],
[
205,
222
],
[
222,
223
],
[
222,
224
],
[
205,
225
],
[
225,
226
],
[
225,
227
],
[
205,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
230,
233
],
[
229,
234
],
[
228,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
239,
240
],
[
205,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
241,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
241,
251
],
[
251,
252
],
[
252,
253
],
[
241,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
257,
260
],
[
256,
261
],
[
255,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
266,
267
],
[
265,
268
],
[
268,
269
],
[
269,
270
],
[
262,
271
],
[
271,
272
],
[
271,
273
],
[
262,
274
],
[
274,
275
],
[
274,
276
],
[
255,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
278,
281
],
[
281,
282
],
[
282,
283
],
[
281,
284
],
[
277,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
287,
289
],
[
205,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
293,
296
],
[
296,
297
],
[
297,
298
],
[
292,
299
],
[
205,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
303,
304
],
[
303,
305
],
[
305,
306
],
[
303,
307
],
[
145,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
0,
315
],
[
315,
316
],
[
315,
317
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.util.Arrays;\npublic class Main {\n\tpublic static void main (String [] args) throws IOException\n\n\t{\n\t\tScanner s=new Scanner(System.in);\n\t\tPrintWriter pw=new PrintWriter(System.out);\n\t\tStringBuilder sb=new StringBuilder();\n\n\t\tint n=s.nextInt();\n\t\tint d=s.nextInt();\n\t\tint c=0;\n\t\tfor (int i=0; i<n;i++)\n\t\t{\n\t\t\tint x=s.nextInt();\n\t\t\tint y=s.nextInt();\n\t\t\tdouble ans=Math.pow(x,2)+Math.pow(y,2);\n\t\t\tdouble res=Math.sqrt(ans);\n\t\t\tif (res<=d)\n\t\t\t\tc++;\n\t\t}\n\t\tpw.println(c);\n\t\tpw.flush();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\tpublic static void shuffle(int[] a)\n\t{\n\t\tint n = a.length;\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tint r = i + (int)(Math.random() * (n - i));\n\t\t\tint tmp = a[i];\n\t\t\ta[i] = a[r];\n\t\t\ta[r] = tmp;\n\t\t}\n\t}\n\n\n\n\n\n\tstatic class Scanner\n{\n\tStringTokenizer st;\n\tBufferedReader br;\n\n\tpublic Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n\tpublic String next() throws IOException\n\t{\n\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\treturn st.nextToken();\n\t}\n\n\tpublic int nextInt() throws IOException {return Integer.parseInt(next());}\n\n\tpublic long nextLong() throws IOException {return Long.parseLong(next());}\n\n\tpublic String nextLine() throws IOException {return br.readLine();}\n\n\tpublic double nextDouble() throws IOException\n\t{\n\t\tString x = next();\n\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\tdouble res = 0, f = 1;\n\t\tboolean dec = false, neg = false;\n\t\tint start = 0;\n\t\tif(x.charAt(0) == '-')\n\t\t{\n\t\t\tneg = true;\n\t\t\tstart++;\n\t\t}\n\t\tfor(int i = start; i < x.length(); i++)\n\t\t\tif(x.charAt(i) == '.')\n\t\t\t{\n\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\tdec = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\tif(dec)\n\t\t\t\t\tf *= 10;\n\t\t\t}\n\t\tres += Long.parseLong(sb.toString()) / f;\n\t\treturn res * (neg?-1:1);\n\t}\n\n\tpublic boolean ready() throws IOException {return br.ready();}\n\n\n}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n\tpublic static void main (String [] args) throws IOException\n\n\t{\n\t\tScanner s=new Scanner(System.in);\n\t\tPrintWriter pw=new PrintWriter(System.out);\n\t\tStringBuilder sb=new StringBuilder();\n\n\t\tint n=s.nextInt();\n\t\tint d=s.nextInt();\n\t\tint c=0;\n\t\tfor (int i=0; i<n;i++)\n\t\t{\n\t\t\tint x=s.nextInt();\n\t\t\tint y=s.nextInt();\n\t\t\tdouble ans=Math.pow(x,2)+Math.pow(y,2);\n\t\t\tdouble res=Math.sqrt(ans);\n\t\t\tif (res<=d)\n\t\t\t\tc++;\n\t\t}\n\t\tpw.println(c);\n\t\tpw.flush();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\tpublic static void shuffle(int[] a)\n\t{\n\t\tint n = a.length;\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tint r = i + (int)(Math.random() * (n - i));\n\t\t\tint tmp = a[i];\n\t\t\ta[i] = a[r];\n\t\t\ta[r] = tmp;\n\t\t}\n\t}\n\n\n\n\n\n\tstatic class Scanner\n{\n\tStringTokenizer st;\n\tBufferedReader br;\n\n\tpublic Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n\tpublic String next() throws IOException\n\t{\n\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\treturn st.nextToken();\n\t}\n\n\tpublic int nextInt() throws IOException {return Integer.parseInt(next());}\n\n\tpublic long nextLong() throws IOException {return Long.parseLong(next());}\n\n\tpublic String nextLine() throws IOException {return br.readLine();}\n\n\tpublic double nextDouble() throws IOException\n\t{\n\t\tString x = next();\n\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\tdouble res = 0, f = 1;\n\t\tboolean dec = false, neg = false;\n\t\tint start = 0;\n\t\tif(x.charAt(0) == '-')\n\t\t{\n\t\t\tneg = true;\n\t\t\tstart++;\n\t\t}\n\t\tfor(int i = start; i < x.length(); i++)\n\t\t\tif(x.charAt(i) == '.')\n\t\t\t{\n\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\tdec = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\tif(dec)\n\t\t\t\t\tf *= 10;\n\t\t\t}\n\t\tres += Long.parseLong(sb.toString()) / f;\n\t\treturn res * (neg?-1:1);\n\t}\n\n\tpublic boolean ready() throws IOException {return br.ready();}\n\n\n}\n}",
"Main",
"public static void main (String [] args) throws IOException\n\n\t{\n\t\tScanner s=new Scanner(System.in);\n\t\tPrintWriter pw=new PrintWriter(System.out);\n\t\tStringBuilder sb=new StringBuilder();\n\n\t\tint n=s.nextInt();\n\t\tint d=s.nextInt();\n\t\tint c=0;\n\t\tfor (int i=0; i<n;i++)\n\t\t{\n\t\t\tint x=s.nextInt();\n\t\t\tint y=s.nextInt();\n\t\t\tdouble ans=Math.pow(x,2)+Math.pow(y,2);\n\t\t\tdouble res=Math.sqrt(ans);\n\t\t\tif (res<=d)\n\t\t\t\tc++;\n\t\t}\n\t\tpw.println(c);\n\t\tpw.flush();\n\n}",
"main",
"{\n\t\tScanner s=new Scanner(System.in);\n\t\tPrintWriter pw=new PrintWriter(System.out);\n\t\tStringBuilder sb=new StringBuilder();\n\n\t\tint n=s.nextInt();\n\t\tint d=s.nextInt();\n\t\tint c=0;\n\t\tfor (int i=0; i<n;i++)\n\t\t{\n\t\t\tint x=s.nextInt();\n\t\t\tint y=s.nextInt();\n\t\t\tdouble ans=Math.pow(x,2)+Math.pow(y,2);\n\t\t\tdouble res=Math.sqrt(ans);\n\t\t\tif (res<=d)\n\t\t\t\tc++;\n\t\t}\n\t\tpw.println(c);\n\t\tpw.flush();\n\n}",
"Scanner s=new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"PrintWriter pw=new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"StringBuilder sb=new StringBuilder();",
"sb",
"new StringBuilder()",
"int n=s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int d=s.nextInt();",
"d",
"s.nextInt()",
"s.nextInt",
"s",
"int c=0;",
"c",
"0",
"for (int i=0; i<n;i++)\n\t\t{\n\t\t\tint x=s.nextInt();\n\t\t\tint y=s.nextInt();\n\t\t\tdouble ans=Math.pow(x,2)+Math.pow(y,2);\n\t\t\tdouble res=Math.sqrt(ans);\n\t\t\tif (res<=d)\n\t\t\t\tc++;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint x=s.nextInt();\n\t\t\tint y=s.nextInt();\n\t\t\tdouble ans=Math.pow(x,2)+Math.pow(y,2);\n\t\t\tdouble res=Math.sqrt(ans);\n\t\t\tif (res<=d)\n\t\t\t\tc++;\n\t\t}",
"{\n\t\t\tint x=s.nextInt();\n\t\t\tint y=s.nextInt();\n\t\t\tdouble ans=Math.pow(x,2)+Math.pow(y,2);\n\t\t\tdouble res=Math.sqrt(ans);\n\t\t\tif (res<=d)\n\t\t\t\tc++;\n\t\t}",
"int x=s.nextInt();",
"x",
"s.nextInt()",
"s.nextInt",
"s",
"int y=s.nextInt();",
"y",
"s.nextInt()",
"s.nextInt",
"s",
"double ans=Math.pow(x,2)+Math.pow(y,2);",
"ans",
"Math.pow(x,2)+Math.pow(y,2)",
"Math.pow(x,2)",
"Math.pow",
"Math",
"x",
"2",
"Math.pow(y,2)",
"Math.pow",
"Math",
"y",
"2",
"double res=Math.sqrt(ans);",
"res",
"Math.sqrt(ans)",
"Math.sqrt",
"Math",
"ans",
"if (res<=d)\n\t\t\t\tc++;",
"res<=d",
"res",
"d",
"c++",
"c",
"pw.println(c)",
"pw.println",
"pw",
"c",
"pw.flush()",
"pw.flush",
"pw",
"String [] args",
"args",
"public static void shuffle(int[] a)\n\t{\n\t\tint n = a.length;\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tint r = i + (int)(Math.random() * (n - i));\n\t\t\tint tmp = a[i];\n\t\t\ta[i] = a[r];\n\t\t\ta[r] = tmp;\n\t\t}\n\t}",
"shuffle",
"{\n\t\tint n = a.length;\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tint r = i + (int)(Math.random() * (n - i));\n\t\t\tint tmp = a[i];\n\t\t\ta[i] = a[r];\n\t\t\ta[r] = tmp;\n\t\t}\n\t}",
"int n = a.length;",
"n",
"a.length",
"a",
"a.length",
"for(int i = 0; i < n; i++)\n\t\t{\n\t\t\tint r = i + (int)(Math.random() * (n - i));\n\t\t\tint tmp = a[i];\n\t\t\ta[i] = a[r];\n\t\t\ta[r] = tmp;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint r = i + (int)(Math.random() * (n - i));\n\t\t\tint tmp = a[i];\n\t\t\ta[i] = a[r];\n\t\t\ta[r] = tmp;\n\t\t}",
"{\n\t\t\tint r = i + (int)(Math.random() * (n - i));\n\t\t\tint tmp = a[i];\n\t\t\ta[i] = a[r];\n\t\t\ta[r] = tmp;\n\t\t}",
"int r = i + (int)(Math.random() * (n - i));",
"r",
"i + (int)(Math.random() * (n - i))",
"i",
"(int)(Math.random() * (n - i))",
"Math.random()",
"Math.random",
"Math",
"(n - i)",
"n",
"i",
"int tmp = a[i];",
"tmp",
"a[i]",
"a",
"i",
"a[i] = a[r]",
"a[i]",
"a",
"i",
"a[r]",
"a",
"r",
"a[r] = tmp",
"a[r]",
"a",
"r",
"tmp",
"int[] a",
"a",
"static class Scanner\n{\n\tStringTokenizer st;\n\tBufferedReader br;\n\n\tpublic Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n\tpublic String next() throws IOException\n\t{\n\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\treturn st.nextToken();\n\t}\n\n\tpublic int nextInt() throws IOException {return Integer.parseInt(next());}\n\n\tpublic long nextLong() throws IOException {return Long.parseLong(next());}\n\n\tpublic String nextLine() throws IOException {return br.readLine();}\n\n\tpublic double nextDouble() throws IOException\n\t{\n\t\tString x = next();\n\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\tdouble res = 0, f = 1;\n\t\tboolean dec = false, neg = false;\n\t\tint start = 0;\n\t\tif(x.charAt(0) == '-')\n\t\t{\n\t\t\tneg = true;\n\t\t\tstart++;\n\t\t}\n\t\tfor(int i = start; i < x.length(); i++)\n\t\t\tif(x.charAt(i) == '.')\n\t\t\t{\n\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\tdec = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\tif(dec)\n\t\t\t\t\tf *= 10;\n\t\t\t}\n\t\tres += Long.parseLong(sb.toString()) / f;\n\t\treturn res * (neg?-1:1);\n\t}\n\n\tpublic boolean ready() throws IOException {return br.ready();}\n\n\n}",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}",
"Scanner",
"{\tbr = new BufferedReader(new InputStreamReader(s));}",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public String next() throws IOException\n\t{\n\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\treturn st.nextToken();\n\t}",
"next",
"{\n\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\treturn st.nextToken();\n\t}",
"while (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {return Integer.parseInt(next());}",
"nextInt",
"{return Integer.parseInt(next());}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {return Long.parseLong(next());}",
"nextLong",
"{return Long.parseLong(next());}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public String nextLine() throws IOException {return br.readLine();}",
"nextLine",
"{return br.readLine();}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public double nextDouble() throws IOException\n\t{\n\t\tString x = next();\n\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\tdouble res = 0, f = 1;\n\t\tboolean dec = false, neg = false;\n\t\tint start = 0;\n\t\tif(x.charAt(0) == '-')\n\t\t{\n\t\t\tneg = true;\n\t\t\tstart++;\n\t\t}\n\t\tfor(int i = start; i < x.length(); i++)\n\t\t\tif(x.charAt(i) == '.')\n\t\t\t{\n\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\tdec = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\tif(dec)\n\t\t\t\t\tf *= 10;\n\t\t\t}\n\t\tres += Long.parseLong(sb.toString()) / f;\n\t\treturn res * (neg?-1:1);\n\t}",
"nextDouble",
"{\n\t\tString x = next();\n\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\tdouble res = 0, f = 1;\n\t\tboolean dec = false, neg = false;\n\t\tint start = 0;\n\t\tif(x.charAt(0) == '-')\n\t\t{\n\t\t\tneg = true;\n\t\t\tstart++;\n\t\t}\n\t\tfor(int i = start; i < x.length(); i++)\n\t\t\tif(x.charAt(i) == '.')\n\t\t\t{\n\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\tdec = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\tif(dec)\n\t\t\t\t\tf *= 10;\n\t\t\t}\n\t\tres += Long.parseLong(sb.toString()) / f;\n\t\treturn res * (neg?-1:1);\n\t}",
"String x = next();",
"x",
"next()",
"next",
"StringBuilder sb = new StringBuilder(\"0\");",
"sb",
"new StringBuilder(\"0\")",
"double res = 0",
"res",
"0",
"f = 1;",
"f",
"1",
"boolean dec = false",
"dec",
"false",
"neg = false;",
"neg",
"false",
"int start = 0;",
"start",
"0",
"if(x.charAt(0) == '-')\n\t\t{\n\t\t\tneg = true;\n\t\t\tstart++;\n\t\t}",
"x.charAt(0) == '-'",
"x.charAt(0)",
"x.charAt",
"x",
"0",
"'-'",
"{\n\t\t\tneg = true;\n\t\t\tstart++;\n\t\t}",
"neg = true",
"neg",
"true",
"start++",
"start",
"for(int i = start; i < x.length(); i++)\n\t\t\tif(x.charAt(i) == '.')\n\t\t\t{\n\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\tdec = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\tif(dec)\n\t\t\t\t\tf *= 10;\n\t\t\t}",
"int i = start;",
"int i = start;",
"i",
"start",
"i < x.length()",
"i",
"x.length()",
"x.length",
"x",
"i++",
"i++",
"i",
"if(x.charAt(i) == '.')\n\t\t\t{\n\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\tdec = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\tif(dec)\n\t\t\t\t\tf *= 10;\n\t\t\t}",
"if(x.charAt(i) == '.')\n\t\t\t{\n\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\tdec = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\tif(dec)\n\t\t\t\t\tf *= 10;\n\t\t\t}",
"x.charAt(i) == '.'",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"'.'",
"{\n\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\tdec = true;\n\t\t\t}",
"res = Long.parseLong(sb.toString())",
"res",
"Long.parseLong(sb.toString())",
"Long.parseLong",
"Long",
"sb.toString()",
"sb.toString",
"sb",
"sb = new StringBuilder(\"0\")",
"sb",
"new StringBuilder(\"0\")",
"dec = true",
"dec",
"true",
"{\n\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\tif(dec)\n\t\t\t\t\tf *= 10;\n\t\t\t}",
"sb.append(x.charAt(i))",
"sb.append",
"sb",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"if(dec)\n\t\t\t\t\tf *= 10;",
"dec",
"f *= 10",
"f",
"10",
"res += Long.parseLong(sb.toString()) / f",
"res",
"Long.parseLong(sb.toString()) / f",
"Long.parseLong(sb.toString())",
"Long.parseLong",
"Long",
"sb.toString()",
"sb.toString",
"sb",
"f",
"return res * (neg?-1:1);",
"res * (neg?-1:1)",
"res",
"(neg?-1:1)",
"neg",
"-1",
"1",
"1",
"public boolean ready() throws IOException {return br.ready();}",
"ready",
"{return br.ready();}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public class Main {\n\tpublic static void main (String [] args) throws IOException\n\n\t{\n\t\tScanner s=new Scanner(System.in);\n\t\tPrintWriter pw=new PrintWriter(System.out);\n\t\tStringBuilder sb=new StringBuilder();\n\n\t\tint n=s.nextInt();\n\t\tint d=s.nextInt();\n\t\tint c=0;\n\t\tfor (int i=0; i<n;i++)\n\t\t{\n\t\t\tint x=s.nextInt();\n\t\t\tint y=s.nextInt();\n\t\t\tdouble ans=Math.pow(x,2)+Math.pow(y,2);\n\t\t\tdouble res=Math.sqrt(ans);\n\t\t\tif (res<=d)\n\t\t\t\tc++;\n\t\t}\n\t\tpw.println(c);\n\t\tpw.flush();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\tpublic static void shuffle(int[] a)\n\t{\n\t\tint n = a.length;\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tint r = i + (int)(Math.random() * (n - i));\n\t\t\tint tmp = a[i];\n\t\t\ta[i] = a[r];\n\t\t\ta[r] = tmp;\n\t\t}\n\t}\n\n\n\n\n\n\tstatic class Scanner\n{\n\tStringTokenizer st;\n\tBufferedReader br;\n\n\tpublic Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n\tpublic String next() throws IOException\n\t{\n\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\treturn st.nextToken();\n\t}\n\n\tpublic int nextInt() throws IOException {return Integer.parseInt(next());}\n\n\tpublic long nextLong() throws IOException {return Long.parseLong(next());}\n\n\tpublic String nextLine() throws IOException {return br.readLine();}\n\n\tpublic double nextDouble() throws IOException\n\t{\n\t\tString x = next();\n\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\tdouble res = 0, f = 1;\n\t\tboolean dec = false, neg = false;\n\t\tint start = 0;\n\t\tif(x.charAt(0) == '-')\n\t\t{\n\t\t\tneg = true;\n\t\t\tstart++;\n\t\t}\n\t\tfor(int i = start; i < x.length(); i++)\n\t\t\tif(x.charAt(i) == '.')\n\t\t\t{\n\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\tdec = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\tif(dec)\n\t\t\t\t\tf *= 10;\n\t\t\t}\n\t\tres += Long.parseLong(sb.toString()) / f;\n\t\treturn res * (neg?-1:1);\n\t}\n\n\tpublic boolean ready() throws IOException {return br.ready();}\n\n\n}\n}",
"public class Main {\n\tpublic static void main (String [] args) throws IOException\n\n\t{\n\t\tScanner s=new Scanner(System.in);\n\t\tPrintWriter pw=new PrintWriter(System.out);\n\t\tStringBuilder sb=new StringBuilder();\n\n\t\tint n=s.nextInt();\n\t\tint d=s.nextInt();\n\t\tint c=0;\n\t\tfor (int i=0; i<n;i++)\n\t\t{\n\t\t\tint x=s.nextInt();\n\t\t\tint y=s.nextInt();\n\t\t\tdouble ans=Math.pow(x,2)+Math.pow(y,2);\n\t\t\tdouble res=Math.sqrt(ans);\n\t\t\tif (res<=d)\n\t\t\t\tc++;\n\t\t}\n\t\tpw.println(c);\n\t\tpw.flush();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\tpublic static void shuffle(int[] a)\n\t{\n\t\tint n = a.length;\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tint r = i + (int)(Math.random() * (n - i));\n\t\t\tint tmp = a[i];\n\t\t\ta[i] = a[r];\n\t\t\ta[r] = tmp;\n\t\t}\n\t}\n\n\n\n\n\n\tstatic class Scanner\n{\n\tStringTokenizer st;\n\tBufferedReader br;\n\n\tpublic Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n\tpublic String next() throws IOException\n\t{\n\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\treturn st.nextToken();\n\t}\n\n\tpublic int nextInt() throws IOException {return Integer.parseInt(next());}\n\n\tpublic long nextLong() throws IOException {return Long.parseLong(next());}\n\n\tpublic String nextLine() throws IOException {return br.readLine();}\n\n\tpublic double nextDouble() throws IOException\n\t{\n\t\tString x = next();\n\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\tdouble res = 0, f = 1;\n\t\tboolean dec = false, neg = false;\n\t\tint start = 0;\n\t\tif(x.charAt(0) == '-')\n\t\t{\n\t\t\tneg = true;\n\t\t\tstart++;\n\t\t}\n\t\tfor(int i = start; i < x.length(); i++)\n\t\t\tif(x.charAt(i) == '.')\n\t\t\t{\n\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\tdec = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\tif(dec)\n\t\t\t\t\tf *= 10;\n\t\t\t}\n\t\tres += Long.parseLong(sb.toString()) / f;\n\t\treturn res * (neg?-1:1);\n\t}\n\n\tpublic boolean ready() throws IOException {return br.ready();}\n\n\n}\n}",
"Main"
]
| import java.util.*;
import java.io.*;
import java.util.Arrays;
public class Main {
public static void main (String [] args) throws IOException
{
Scanner s=new Scanner(System.in);
PrintWriter pw=new PrintWriter(System.out);
StringBuilder sb=new StringBuilder();
int n=s.nextInt();
int d=s.nextInt();
int c=0;
for (int i=0; i<n;i++)
{
int x=s.nextInt();
int y=s.nextInt();
double ans=Math.pow(x,2)+Math.pow(y,2);
double res=Math.sqrt(ans);
if (res<=d)
c++;
}
pw.println(c);
pw.flush();
}
public static void shuffle(int[] a)
{
int n = a.length;
for(int i = 0; i < n; i++)
{
int r = i + (int)(Math.random() * (n - i));
int tmp = a[i];
a[i] = a[r];
a[r] = tmp;
}
}
static class Scanner
{
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}
public String next() throws IOException
{
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int nextInt() throws IOException {return Integer.parseInt(next());}
public long nextLong() throws IOException {return Long.parseLong(next());}
public String nextLine() throws IOException {return br.readLine();}
public double nextDouble() throws IOException
{
String x = next();
StringBuilder sb = new StringBuilder("0");
double res = 0, f = 1;
boolean dec = false, neg = false;
int start = 0;
if(x.charAt(0) == '-')
{
neg = true;
start++;
}
for(int i = start; i < x.length(); i++)
if(x.charAt(i) == '.')
{
res = Long.parseLong(sb.toString());
sb = new StringBuilder("0");
dec = true;
}
else
{
sb.append(x.charAt(i));
if(dec)
f *= 10;
}
res += Long.parseLong(sb.toString()) / f;
return res * (neg?-1:1);
}
public boolean ready() throws IOException {return br.ready();}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
2,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
4,
18,
13,
12,
13,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
4,
18,
13,
17,
12,
13,
30,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
4,
18,
13,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
242,
11
],
[
242,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
14,
33
],
[
33,
34
],
[
14,
35
],
[
35,
36
],
[
35,
37
],
[
14,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
50,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
50,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
50,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
50,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
14,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
14,
90
],
[
90,
91
],
[
91,
92
],
[
12,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
95,
99
],
[
99,
100
],
[
95,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
95,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
110,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
120,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
109,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
95,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
142,
143
],
[
95,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
95,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
160,
161
],
[
95,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
168,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
164,
181
],
[
181,
182
],
[
0,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
183,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
194,
195
],
[
183,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
199,
202
],
[
202,
203
],
[
203,
204
],
[
198,
205
],
[
205,
206
],
[
206,
207
],
[
205,
208
],
[
198,
209
],
[
209,
210
],
[
210,
211
],
[
196,
212
],
[
212,
213
],
[
183,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
217,
220
],
[
183,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
224,
227
],
[
227,
228
],
[
228,
229
],
[
221,
230
],
[
230,
231
],
[
183,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
234,
238
],
[
238,
239
],
[
239,
240
],
[
0,
241
],
[
241,
242
],
[
241,
243
]
]
| [
"import java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\npublic class Main{\n public static void main(String[] args) throws IOException{\n FastReader in = new FastReader();\n FastWriter out = new FastWriter();\n long n = in.nextLong();\n double d = in.nextDouble();\n long x, y;\n int ans = 0;\n for (int i = 0; i < n; i++){\n x = in.nextLong();\n y = in.nextLong();\n long a = x*x, b = y*y;\n double c = Math.sqrt(a+b);\n if (c<=d){\n ans++;\n }\n }\n out.pl(ans);\n out.close();\n }\n}\nclass FastReader{ \n BufferedReader br; \n StringTokenizer st; \n public FastReader() { \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n String next(){ \n while (st == null || !st.hasMoreElements()) { \n try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n int nextInt(){ \n return Integer.parseInt(next()); \n } \n long nextLong(){ \n return Long.parseLong(next()); \n } \n double nextDouble(){ \n return Double.parseDouble(next()); \n } \n String nextLine(){ \n String str = \"\"; \n try{ \n str = br.readLine(); \n } \n catch (IOException e){ \n e.printStackTrace(); \n } \n return str; \n } \n}\nclass FastWriter{\n PrintWriter out;\n FastWriter(){\n out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\tout.flush();\n }\n void pl(Object o){\n out.write(o.toString());\n\t out.write(\"\\n\");\n out.flush();\n }\n void pl(){\n out.write(\"\\n\");\n }\n void p(Object o){\n out.write(o.toString());\n }\n void close(){\n out.flush();\n out.close();\n } \n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[] args) throws IOException{\n FastReader in = new FastReader();\n FastWriter out = new FastWriter();\n long n = in.nextLong();\n double d = in.nextDouble();\n long x, y;\n int ans = 0;\n for (int i = 0; i < n; i++){\n x = in.nextLong();\n y = in.nextLong();\n long a = x*x, b = y*y;\n double c = Math.sqrt(a+b);\n if (c<=d){\n ans++;\n }\n }\n out.pl(ans);\n out.close();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n FastReader in = new FastReader();\n FastWriter out = new FastWriter();\n long n = in.nextLong();\n double d = in.nextDouble();\n long x, y;\n int ans = 0;\n for (int i = 0; i < n; i++){\n x = in.nextLong();\n y = in.nextLong();\n long a = x*x, b = y*y;\n double c = Math.sqrt(a+b);\n if (c<=d){\n ans++;\n }\n }\n out.pl(ans);\n out.close();\n }",
"main",
"{\n FastReader in = new FastReader();\n FastWriter out = new FastWriter();\n long n = in.nextLong();\n double d = in.nextDouble();\n long x, y;\n int ans = 0;\n for (int i = 0; i < n; i++){\n x = in.nextLong();\n y = in.nextLong();\n long a = x*x, b = y*y;\n double c = Math.sqrt(a+b);\n if (c<=d){\n ans++;\n }\n }\n out.pl(ans);\n out.close();\n }",
"FastReader in = new FastReader();",
"in",
"new FastReader()",
"FastWriter out = new FastWriter();",
"out",
"new FastWriter()",
"long n = in.nextLong();",
"n",
"in.nextLong()",
"in.nextLong",
"in",
"double d = in.nextDouble();",
"d",
"in.nextDouble()",
"in.nextDouble",
"in",
"long x",
"x",
"y;",
"y",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < n; i++){\n x = in.nextLong();\n y = in.nextLong();\n long a = x*x, b = y*y;\n double c = Math.sqrt(a+b);\n if (c<=d){\n ans++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n x = in.nextLong();\n y = in.nextLong();\n long a = x*x, b = y*y;\n double c = Math.sqrt(a+b);\n if (c<=d){\n ans++;\n }\n }",
"{\n x = in.nextLong();\n y = in.nextLong();\n long a = x*x, b = y*y;\n double c = Math.sqrt(a+b);\n if (c<=d){\n ans++;\n }\n }",
"x = in.nextLong()",
"x",
"in.nextLong()",
"in.nextLong",
"in",
"y = in.nextLong()",
"y",
"in.nextLong()",
"in.nextLong",
"in",
"long a = x*x",
"a",
"x*x",
"x",
"x",
"b = y*y;",
"b",
"y*y",
"y",
"y",
"double c = Math.sqrt(a+b);",
"c",
"Math.sqrt(a+b)",
"Math.sqrt",
"Math",
"a+b",
"a",
"b",
"if (c<=d){\n ans++;\n }",
"c<=d",
"c",
"d",
"{\n ans++;\n }",
"ans++",
"ans",
"out.pl(ans)",
"out.pl",
"out",
"ans",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"class FastReader{ \n BufferedReader br; \n StringTokenizer st; \n public FastReader() { \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n String next(){ \n while (st == null || !st.hasMoreElements()) { \n try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n int nextInt(){ \n return Integer.parseInt(next()); \n } \n long nextLong(){ \n return Long.parseLong(next()); \n } \n double nextDouble(){ \n return Double.parseDouble(next()); \n } \n String nextLine(){ \n String str = \"\"; \n try{ \n str = br.readLine(); \n } \n catch (IOException e){ \n e.printStackTrace(); \n } \n return str; \n } \n}",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() { \n br = new BufferedReader(new InputStreamReader(System.in)); \n }",
"FastReader",
"{ \n br = new BufferedReader(new InputStreamReader(System.in)); \n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next(){ \n while (st == null || !st.hasMoreElements()) { \n try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"next",
"{ \n while (st == null || !st.hasMoreElements()) { \n try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"while (st == null || !st.hasMoreElements()) { \n try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n } \n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{ \n try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n } \n }",
"try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n }",
"catch (IOException e){ \n e.printStackTrace(); \n }",
"IOException e",
"{ \n e.printStackTrace(); \n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n st = new StringTokenizer(br.readLine()); \n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt(){ \n return Integer.parseInt(next()); \n }",
"nextInt",
"{ \n return Integer.parseInt(next()); \n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong(){ \n return Long.parseLong(next()); \n }",
"nextLong",
"{ \n return Long.parseLong(next()); \n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble(){ \n return Double.parseDouble(next()); \n }",
"nextDouble",
"{ \n return Double.parseDouble(next()); \n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine(){ \n String str = \"\"; \n try{ \n str = br.readLine(); \n } \n catch (IOException e){ \n e.printStackTrace(); \n } \n return str; \n }",
"nextLine",
"{ \n String str = \"\"; \n try{ \n str = br.readLine(); \n } \n catch (IOException e){ \n e.printStackTrace(); \n } \n return str; \n }",
"String str = \"\";",
"str",
"\"\"",
"try{ \n str = br.readLine(); \n } \n catch (IOException e){ \n e.printStackTrace(); \n }",
"catch (IOException e){ \n e.printStackTrace(); \n }",
"IOException e",
"{ \n e.printStackTrace(); \n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n str = br.readLine(); \n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"class FastWriter{\n PrintWriter out;\n FastWriter(){\n out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\tout.flush();\n }\n void pl(Object o){\n out.write(o.toString());\n\t out.write(\"\\n\");\n out.flush();\n }\n void pl(){\n out.write(\"\\n\");\n }\n void p(Object o){\n out.write(o.toString());\n }\n void close(){\n out.flush();\n out.close();\n } \n}",
"FastWriter",
"PrintWriter out;",
"out",
"FastWriter(){\n out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\tout.flush();\n }",
"FastWriter",
"{\n out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\tout.flush();\n }",
"out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))",
"out",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))",
"out.flush()",
"out.flush",
"out",
"void pl(Object o){\n out.write(o.toString());\n\t out.write(\"\\n\");\n out.flush();\n }",
"pl",
"{\n out.write(o.toString());\n\t out.write(\"\\n\");\n out.flush();\n }",
"out.write(o.toString())",
"out.write",
"out",
"o.toString()",
"o.toString",
"o",
"out.write(\"\\n\")",
"out.write",
"out",
"\"\\n\"",
"out.flush()",
"out.flush",
"out",
"Object o",
"o",
"void pl(){\n out.write(\"\\n\");\n }",
"pl",
"{\n out.write(\"\\n\");\n }",
"out.write(\"\\n\")",
"out.write",
"out",
"\"\\n\"",
"void p(Object o){\n out.write(o.toString());\n }",
"p",
"{\n out.write(o.toString());\n }",
"out.write(o.toString())",
"out.write",
"out",
"o.toString()",
"o.toString",
"o",
"Object o",
"o",
"void close(){\n out.flush();\n out.close();\n }",
"close",
"{\n out.flush();\n out.close();\n }",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"public class Main{\n public static void main(String[] args) throws IOException{\n FastReader in = new FastReader();\n FastWriter out = new FastWriter();\n long n = in.nextLong();\n double d = in.nextDouble();\n long x, y;\n int ans = 0;\n for (int i = 0; i < n; i++){\n x = in.nextLong();\n y = in.nextLong();\n long a = x*x, b = y*y;\n double c = Math.sqrt(a+b);\n if (c<=d){\n ans++;\n }\n }\n out.pl(ans);\n out.close();\n }\n}",
"public class Main{\n public static void main(String[] args) throws IOException{\n FastReader in = new FastReader();\n FastWriter out = new FastWriter();\n long n = in.nextLong();\n double d = in.nextDouble();\n long x, y;\n int ans = 0;\n for (int i = 0; i < n; i++){\n x = in.nextLong();\n y = in.nextLong();\n long a = x*x, b = y*y;\n double c = Math.sqrt(a+b);\n if (c<=d){\n ans++;\n }\n }\n out.pl(ans);\n out.close();\n }\n}",
"Main"
]
| import java.util.*;
import java.lang.*;
import java.io.*;
public class Main{
public static void main(String[] args) throws IOException{
FastReader in = new FastReader();
FastWriter out = new FastWriter();
long n = in.nextLong();
double d = in.nextDouble();
long x, y;
int ans = 0;
for (int i = 0; i < n; i++){
x = in.nextLong();
y = in.nextLong();
long a = x*x, b = y*y;
double c = Math.sqrt(a+b);
if (c<=d){
ans++;
}
}
out.pl(ans);
out.close();
}
}
class FastReader{
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next(){
while (st == null || !st.hasMoreElements()) {
try{
st = new StringTokenizer(br.readLine());
}catch (IOException e){
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt(){
return Integer.parseInt(next());
}
long nextLong(){
return Long.parseLong(next());
}
double nextDouble(){
return Double.parseDouble(next());
}
String nextLine(){
String str = "";
try{
str = br.readLine();
}
catch (IOException e){
e.printStackTrace();
}
return str;
}
}
class FastWriter{
PrintWriter out;
FastWriter(){
out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
out.flush();
}
void pl(Object o){
out.write(o.toString());
out.write("\n");
out.flush();
}
void pl(){
out.write("\n");
}
void p(Object o){
out.write(o.toString());
}
void close(){
out.flush();
out.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
14,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
163,
8
],
[
163,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
28,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
33,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
11,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
9,
72
],
[
72,
73
],
[
163,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
74,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
74,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
89,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
99,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
88,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
74,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
74,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
74,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
74,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
147,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
143,
160
],
[
160,
161
],
[
0,
162
],
[
162,
163
],
[
162,
164
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int t = sc.nextInt();\n double distance = sc.nextDouble();\n int c = 0;\n while (t-- > 0) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n double v = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n if (v <= distance)\n c++;\n }\n System.out.println(c);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int t = sc.nextInt();\n double distance = sc.nextDouble();\n int c = 0;\n while (t-- > 0) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n double v = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n if (v <= distance)\n c++;\n }\n System.out.println(c);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n FastReader sc = new FastReader();\n int t = sc.nextInt();\n double distance = sc.nextDouble();\n int c = 0;\n while (t-- > 0) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n double v = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n if (v <= distance)\n c++;\n }\n System.out.println(c);\n }",
"main",
"{\n FastReader sc = new FastReader();\n int t = sc.nextInt();\n double distance = sc.nextDouble();\n int c = 0;\n while (t-- > 0) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n double v = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n if (v <= distance)\n c++;\n }\n System.out.println(c);\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double distance = sc.nextDouble();",
"distance",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"int c = 0;",
"c",
"0",
"while (t-- > 0) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n double v = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n if (v <= distance)\n c++;\n }",
"t-- > 0",
"t--",
"t",
"0",
"{\n int a = sc.nextInt();\n int b = sc.nextInt();\n double v = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n if (v <= distance)\n c++;\n }",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double v = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));",
"v",
"Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2))",
"Math.sqrt",
"Math",
"Math.pow(a, 2) + Math.pow(b, 2)",
"Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"Math.pow(b, 2)",
"Math.pow",
"Math",
"b",
"2",
"if (v <= distance)\n c++;",
"v <= distance",
"v",
"distance",
"c++",
"c",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int t = sc.nextInt();\n double distance = sc.nextDouble();\n int c = 0;\n while (t-- > 0) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n double v = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n if (v <= distance)\n c++;\n }\n System.out.println(c);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int t = sc.nextInt();\n double distance = sc.nextDouble();\n int c = 0;\n while (t-- > 0) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n double v = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n if (v <= distance)\n c++;\n }\n System.out.println(c);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
FastReader sc = new FastReader();
int t = sc.nextInt();
double distance = sc.nextDouble();
int c = 0;
while (t-- > 0) {
int a = sc.nextInt();
int b = sc.nextInt();
double v = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
if (v <= distance)
c++;
}
System.out.println(c);
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
41,
13,
17,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
18,
13,
13,
17,
4,
18,
13,
18,
4,
18,
13,
17,
17,
0,
18,
18,
13,
13,
17,
4,
18,
13,
18,
4,
18,
13,
17,
17,
14,
2,
13,
4,
18,
13,
2,
4,
18,
13,
18,
18,
13,
13,
17,
17,
4,
18,
13,
18,
18,
13,
13,
17,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
133,
5
],
[
133,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
22,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
74,
79
],
[
59,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
89,
94
],
[
59,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
102,
110
],
[
101,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
111,
119
],
[
95,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
8,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
6,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String input = scan.nextLine();\n int n = Integer.parseInt(input.split(\" \")[0]);\n double d = Integer.parseInt(input.split(\" \")[1]);\n int c = 0;\n int[][] x = new int[n][2];\n for(int i = 0; i < n ; i++){\n input = scan.nextLine();\n x[i][0] = Integer.parseInt(input.split(\" \")[0]);\n x[i][1] = Integer.parseInt(input.split(\" \")[1]);\n if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){\n c += 1;\n }\n }\n System.out.println(c);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String input = scan.nextLine();\n int n = Integer.parseInt(input.split(\" \")[0]);\n double d = Integer.parseInt(input.split(\" \")[1]);\n int c = 0;\n int[][] x = new int[n][2];\n for(int i = 0; i < n ; i++){\n input = scan.nextLine();\n x[i][0] = Integer.parseInt(input.split(\" \")[0]);\n x[i][1] = Integer.parseInt(input.split(\" \")[1]);\n if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){\n c += 1;\n }\n }\n System.out.println(c);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String input = scan.nextLine();\n int n = Integer.parseInt(input.split(\" \")[0]);\n double d = Integer.parseInt(input.split(\" \")[1]);\n int c = 0;\n int[][] x = new int[n][2];\n for(int i = 0; i < n ; i++){\n input = scan.nextLine();\n x[i][0] = Integer.parseInt(input.split(\" \")[0]);\n x[i][1] = Integer.parseInt(input.split(\" \")[1]);\n if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){\n c += 1;\n }\n }\n System.out.println(c);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String input = scan.nextLine();\n int n = Integer.parseInt(input.split(\" \")[0]);\n double d = Integer.parseInt(input.split(\" \")[1]);\n int c = 0;\n int[][] x = new int[n][2];\n for(int i = 0; i < n ; i++){\n input = scan.nextLine();\n x[i][0] = Integer.parseInt(input.split(\" \")[0]);\n x[i][1] = Integer.parseInt(input.split(\" \")[1]);\n if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){\n c += 1;\n }\n }\n System.out.println(c);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String input = scan.nextLine();",
"input",
"scan.nextLine()",
"scan.nextLine",
"scan",
"int n = Integer.parseInt(input.split(\" \")[0]);",
"n",
"Integer.parseInt(input.split(\" \")[0])",
"Integer.parseInt",
"Integer",
"input.split(\" \")[0]",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"0",
"double d = Integer.parseInt(input.split(\" \")[1]);",
"d",
"Integer.parseInt(input.split(\" \")[1])",
"Integer.parseInt",
"Integer",
"input.split(\" \")[1]",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"1",
"int c = 0;",
"c",
"0",
"int[][] x = new int[n][2];",
"x",
"new int[n][2]",
"n",
"2",
"for(int i = 0; i < n ; i++){\n input = scan.nextLine();\n x[i][0] = Integer.parseInt(input.split(\" \")[0]);\n x[i][1] = Integer.parseInt(input.split(\" \")[1]);\n if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){\n c += 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n input = scan.nextLine();\n x[i][0] = Integer.parseInt(input.split(\" \")[0]);\n x[i][1] = Integer.parseInt(input.split(\" \")[1]);\n if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){\n c += 1;\n }\n }",
"{\n input = scan.nextLine();\n x[i][0] = Integer.parseInt(input.split(\" \")[0]);\n x[i][1] = Integer.parseInt(input.split(\" \")[1]);\n if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){\n c += 1;\n }\n }",
"input = scan.nextLine()",
"input",
"scan.nextLine()",
"scan.nextLine",
"scan",
"x[i][0] = Integer.parseInt(input.split(\" \")[0])",
"x[i][0]",
"x[i]",
"x",
"i",
"0",
"Integer.parseInt(input.split(\" \")[0])",
"Integer.parseInt",
"Integer",
"input.split(\" \")[0]",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"0",
"x[i][1] = Integer.parseInt(input.split(\" \")[1])",
"x[i][1]",
"x[i]",
"x",
"i",
"1",
"Integer.parseInt(input.split(\" \")[1])",
"Integer.parseInt",
"Integer",
"input.split(\" \")[1]",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"1",
"if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){\n c += 1;\n }",
"d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))",
"d",
"Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))",
"Math.sqrt",
"Math",
"Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2)",
"Math.pow(x[i][0] , 2)",
"Math.pow",
"Math",
"x[i][0]",
"x[i]",
"x",
"i",
"0",
"2",
"Math.pow(x[i][1] , 2)",
"Math.pow",
"Math",
"x[i][1]",
"x[i]",
"x",
"i",
"1",
"2",
"{\n c += 1;\n }",
"c += 1",
"c",
"1",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String input = scan.nextLine();\n int n = Integer.parseInt(input.split(\" \")[0]);\n double d = Integer.parseInt(input.split(\" \")[1]);\n int c = 0;\n int[][] x = new int[n][2];\n for(int i = 0; i < n ; i++){\n input = scan.nextLine();\n x[i][0] = Integer.parseInt(input.split(\" \")[0]);\n x[i][1] = Integer.parseInt(input.split(\" \")[1]);\n if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){\n c += 1;\n }\n }\n System.out.println(c);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String input = scan.nextLine();\n int n = Integer.parseInt(input.split(\" \")[0]);\n double d = Integer.parseInt(input.split(\" \")[1]);\n int c = 0;\n int[][] x = new int[n][2];\n for(int i = 0; i < n ; i++){\n input = scan.nextLine();\n x[i][0] = Integer.parseInt(input.split(\" \")[0]);\n x[i][1] = Integer.parseInt(input.split(\" \")[1]);\n if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){\n c += 1;\n }\n }\n System.out.println(c);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String input = scan.nextLine();
int n = Integer.parseInt(input.split(" ")[0]);
double d = Integer.parseInt(input.split(" ")[1]);
int c = 0;
int[][] x = new int[n][2];
for(int i = 0; i < n ; i++){
input = scan.nextLine();
x[i][0] = Integer.parseInt(input.split(" ")[0]);
x[i][1] = Integer.parseInt(input.split(" ")[1]);
if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){
c += 1;
}
}
System.out.println(c);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
41,
13,
41,
13,
2,
17,
17,
12,
13,
30,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
13,
40,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
2,
17,
17,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
4,
18,
13,
13,
29,
36,
23,
13,
12,
13,
30,
4,
18,
13,
4,
18,
13,
13,
13,
29,
36,
23,
13,
23,
13,
12,
13,
30,
28,
13,
13,
30,
30,
4,
18,
4,
18,
13,
13,
17,
4,
18,
13,
17,
29,
36,
23,
13,
12,
13,
30,
4,
18,
4,
18,
13,
4,
18,
13,
13,
17,
23,
13,
12,
13,
30,
4,
18,
4,
18,
13,
4,
18,
13,
13,
17,
23,
13,
12,
13,
30,
4,
18,
4,
18,
13,
4,
18,
13,
13,
17,
23,
13,
12,
13,
30,
4,
18,
4,
18,
13,
4,
18,
13,
13,
17,
23,
13,
12,
13,
30,
4,
18,
4,
18,
13,
4,
18,
13,
13,
17,
23,
13,
12,
13,
30,
4,
18,
4,
18,
13,
4,
18,
13,
13,
17,
23,
13,
12,
13,
30,
28,
13,
13,
30,
4,
18,
4,
18,
13,
4,
18,
13,
13,
17,
23,
13,
12,
13,
30,
28,
13,
13,
30,
4,
18,
4,
18,
13,
4,
18,
13,
13,
17,
23,
13,
12,
13,
30,
28,
13,
13,
30,
4,
18,
4,
18,
13,
4,
18,
13,
13,
17,
23,
13,
12,
13,
30,
28,
13,
13,
30,
4,
18,
4,
18,
13,
4,
18,
13,
13,
17,
23,
13,
12,
13,
30,
28,
13,
13,
30,
4,
18,
4,
18,
13,
4,
18,
13,
13,
17,
23,
13,
12,
13,
30,
4,
18,
4,
18,
13,
13,
17,
29,
36,
23,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
12,
13,
30,
41,
13,
20,
0,
13,
20,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
2,
13,
40,
17,
40,
4,
13,
13,
2,
13,
17,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
20,
29,
13,
23,
13,
12,
13,
30,
0,
13,
4,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
41,
13,
4,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
813,
8
],
[
813,
9
],
[
9,
10
],
[
9,
11
],
[
813,
12
],
[
12,
13
],
[
813,
14
],
[
14,
15
],
[
813,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
813,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
23,
37
],
[
37,
38
],
[
37,
39
],
[
23,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
23,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
57,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
68,
78
],
[
78,
79
],
[
23,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
23,
84
],
[
84,
85
],
[
85,
86
],
[
21,
87
],
[
87,
88
],
[
813,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
89,
96
],
[
96,
97
],
[
89,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
89,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
106,
111
],
[
111,
112
],
[
104,
113
],
[
113,
114
],
[
89,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
121,
125
],
[
117,
126
],
[
126,
127
],
[
115,
128
],
[
128,
129
],
[
115,
130
],
[
130,
131
],
[
89,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
135,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
140,
146
],
[
134,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
134,
151
],
[
151,
152
],
[
132,
153
],
[
153,
154
],
[
89,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
158,
167
],
[
155,
168
],
[
168,
169
],
[
89,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
175,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
173,
182
],
[
170,
183
],
[
183,
184
],
[
89,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
190,
193
],
[
193,
194
],
[
194,
195
],
[
193,
196
],
[
188,
197
],
[
185,
198
],
[
198,
199
],
[
89,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
205,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
203,
212
],
[
200,
213
],
[
213,
214
],
[
89,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
220,
223
],
[
223,
224
],
[
224,
225
],
[
223,
226
],
[
218,
227
],
[
215,
228
],
[
228,
229
],
[
89,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
235,
238
],
[
238,
239
],
[
239,
240
],
[
238,
241
],
[
233,
242
],
[
230,
243
],
[
243,
244
],
[
89,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
248,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
254,
257
],
[
257,
258
],
[
258,
259
],
[
257,
260
],
[
252,
261
],
[
245,
262
],
[
262,
263
],
[
89,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
267,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
273,
276
],
[
276,
277
],
[
277,
278
],
[
276,
279
],
[
271,
280
],
[
264,
281
],
[
281,
282
],
[
89,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
286,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
292,
295
],
[
295,
296
],
[
296,
297
],
[
295,
298
],
[
290,
299
],
[
283,
300
],
[
300,
301
],
[
89,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
305,
308
],
[
308,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
311,
314
],
[
314,
315
],
[
315,
316
],
[
314,
317
],
[
309,
318
],
[
302,
319
],
[
319,
320
],
[
89,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
324,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
330,
333
],
[
333,
334
],
[
334,
335
],
[
333,
336
],
[
328,
337
],
[
321,
338
],
[
338,
339
],
[
89,
340
],
[
340,
341
],
[
340,
342
],
[
342,
343
],
[
343,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
345,
348
],
[
343,
349
],
[
342,
350
],
[
350,
351
],
[
340,
352
],
[
352,
353
],
[
89,
354
],
[
354,
355
],
[
354,
356
],
[
356,
357
],
[
357,
358
],
[
357,
359
],
[
356,
360
],
[
360,
361
],
[
361,
362
],
[
360,
363
],
[
363,
364
],
[
364,
365
],
[
356,
366
],
[
366,
367
],
[
367,
368
],
[
354,
369
],
[
369,
370
],
[
89,
371
],
[
371,
372
],
[
371,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
376,
377
],
[
376,
378
],
[
374,
379
],
[
813,
380
],
[
380,
381
],
[
380,
382
],
[
382,
383
],
[
382,
384
],
[
384,
385
],
[
384,
386
],
[
380,
387
],
[
387,
388
],
[
387,
389
],
[
380,
391
],
[
391,
392
],
[
391,
393
],
[
380,
394
],
[
394,
395
],
[
394,
396
],
[
380,
397
],
[
397,
398
],
[
397,
399
],
[
380,
400
],
[
400,
401
],
[
400,
402
],
[
402,
403
],
[
403,
404
],
[
403,
405
],
[
402,
406
],
[
406,
407
],
[
406,
408
],
[
400,
409
],
[
409,
410
],
[
380,
411
],
[
411,
412
],
[
411,
413
],
[
413,
414
],
[
414,
415
],
[
415,
416
],
[
415,
417
],
[
414,
418
],
[
418,
419
],
[
419,
420
],
[
414,
421
],
[
421,
422
],
[
422,
423
],
[
422,
424
],
[
421,
425
],
[
425,
426
],
[
426,
427
],
[
426,
428
],
[
428,
429
],
[
429,
430
],
[
430,
431
],
[
425,
432
],
[
432,
433
],
[
433,
434
],
[
433,
435
],
[
435,
436
],
[
436,
437
],
[
435,
438
],
[
421,
439
],
[
439,
440
],
[
440,
441
],
[
440,
442
],
[
439,
443
],
[
443,
444
],
[
444,
445
],
[
413,
446
],
[
446,
447
],
[
380,
448
],
[
448,
449
],
[
448,
450
],
[
450,
451
],
[
451,
452
],
[
452,
453
],
[
451,
454
],
[
454,
455
],
[
455,
456
],
[
455,
457
],
[
457,
458
],
[
451,
459
],
[
459,
460
],
[
460,
461
],
[
380,
462
],
[
462,
463
],
[
462,
464
],
[
464,
465
],
[
465,
466
],
[
466,
467
],
[
467,
468
],
[
467,
469
],
[
466,
470
],
[
470,
471
],
[
470,
472
],
[
462,
473
],
[
473,
474
],
[
380,
475
],
[
475,
476
],
[
475,
477
],
[
477,
478
],
[
478,
479
],
[
479,
480
],
[
480,
481
],
[
479,
482
],
[
482,
483
],
[
483,
484
],
[
483,
485
],
[
485,
486
],
[
485,
487
],
[
478,
488
],
[
488,
489
],
[
477,
490
],
[
490,
491
],
[
491,
492
],
[
380,
493
],
[
493,
494
],
[
493,
495
],
[
495,
496
],
[
496,
497
],
[
497,
498
],
[
498,
499
],
[
496,
500
],
[
500,
501
],
[
495,
502
],
[
502,
503
],
[
502,
504
],
[
495,
505
],
[
505,
506
],
[
505,
507
],
[
507,
508
],
[
495,
509
],
[
509,
510
],
[
510,
511
],
[
510,
512
],
[
509,
513
],
[
513,
514
],
[
514,
515
],
[
515,
516
],
[
514,
517
],
[
513,
518
],
[
518,
519
],
[
518,
520
],
[
520,
521
],
[
495,
522
],
[
522,
523
],
[
523,
524
],
[
524,
525
],
[
380,
526
],
[
526,
527
],
[
526,
528
],
[
528,
529
],
[
529,
530
],
[
530,
531
],
[
531,
532
],
[
529,
533
],
[
533,
534
],
[
528,
535
],
[
535,
536
],
[
535,
537
],
[
528,
538
],
[
538,
539
],
[
538,
540
],
[
528,
541
],
[
541,
542
],
[
541,
543
],
[
543,
544
],
[
528,
545
],
[
545,
546
],
[
546,
547
],
[
546,
548
],
[
545,
549
],
[
549,
550
],
[
550,
551
],
[
550,
552
],
[
549,
553
],
[
553,
554
],
[
553,
555
],
[
555,
556
],
[
528,
557
],
[
557,
558
],
[
558,
559
],
[
559,
560
],
[
559,
561
],
[
558,
562
],
[
562,
563
],
[
562,
564
],
[
557,
565
],
[
565,
566
],
[
566,
567
],
[
528,
568
],
[
568,
569
],
[
568,
570
],
[
570,
571
],
[
571,
572
],
[
572,
573
],
[
573,
574
],
[
573,
575
],
[
572,
576
],
[
576,
577
],
[
576,
578
],
[
571,
579
],
[
579,
580
],
[
580,
581
],
[
580,
582
],
[
579,
583
],
[
583,
584
],
[
583,
585
],
[
585,
586
],
[
585,
587
],
[
571,
588
],
[
588,
589
],
[
590,
590
],
[
590,
591
],
[
591,
592
],
[
591,
593
],
[
593,
594
],
[
590,
595
],
[
595,
596
],
[
596,
597
],
[
596,
598
],
[
590,
599
],
[
599,
600
],
[
599,
601
],
[
588,
602
],
[
602,
603
],
[
603,
604
],
[
604,
605
],
[
604,
606
],
[
606,
607
],
[
604,
608
],
[
588,
609
],
[
609,
610
],
[
610,
611
],
[
570,
612
],
[
612,
613
],
[
612,
614
],
[
614,
615
],
[
380,
616
],
[
616,
617
],
[
616,
618
],
[
618,
619
],
[
619,
620
],
[
619,
621
],
[
621,
622
],
[
618,
623
],
[
623,
624
],
[
624,
625
],
[
625,
626
],
[
625,
627
],
[
627,
628
],
[
627,
629
],
[
624,
630
],
[
630,
631
],
[
630,
632
],
[
632,
633
],
[
632,
634
],
[
623,
635
],
[
635,
636
],
[
618,
637
],
[
637,
638
],
[
380,
639
],
[
639,
640
],
[
639,
641
],
[
641,
642
],
[
642,
643
],
[
643,
644
],
[
644,
645
],
[
643,
646
],
[
646,
647
],
[
380,
648
],
[
648,
649
],
[
648,
650
],
[
650,
651
],
[
651,
652
],
[
651,
653
],
[
650,
655
],
[
655,
656
],
[
656,
657
],
[
657,
658
],
[
657,
659
],
[
655,
660
],
[
660,
661
],
[
660,
662
],
[
655,
663
],
[
663,
664
],
[
664,
665
],
[
655,
666
],
[
666,
667
],
[
667,
668
],
[
668,
669
],
[
668,
670
],
[
667,
671
],
[
671,
672
],
[
650,
673
],
[
673,
674
],
[
648,
675
],
[
675,
676
],
[
380,
677
],
[
677,
678
],
[
677,
679
],
[
679,
680
],
[
680,
681
],
[
680,
682
],
[
679,
684
],
[
684,
685
],
[
685,
686
],
[
686,
687
],
[
686,
688
],
[
684,
689
],
[
689,
690
],
[
689,
691
],
[
684,
692
],
[
692,
693
],
[
693,
694
],
[
684,
695
],
[
695,
696
],
[
696,
697
],
[
697,
698
],
[
697,
699
],
[
696,
700
],
[
700,
701
],
[
679,
702
],
[
702,
703
],
[
677,
704
],
[
704,
705
],
[
380,
706
],
[
706,
707
],
[
706,
708
],
[
708,
709
],
[
709,
710
],
[
709,
711
],
[
708,
713
],
[
713,
714
],
[
714,
715
],
[
715,
716
],
[
715,
717
],
[
713,
718
],
[
718,
719
],
[
718,
720
],
[
713,
721
],
[
721,
722
],
[
722,
723
],
[
713,
724
],
[
724,
725
],
[
725,
726
],
[
726,
727
],
[
726,
728
],
[
725,
729
],
[
729,
730
],
[
708,
731
],
[
731,
732
],
[
706,
733
],
[
733,
734
],
[
380,
735
],
[
735,
736
],
[
735,
737
],
[
737,
738
],
[
738,
739
],
[
738,
740
],
[
741,
742
],
[
741,
743
],
[
737,
744
],
[
744,
745
],
[
745,
746
],
[
746,
747
],
[
746,
748
],
[
744,
749
],
[
749,
750
],
[
749,
751
],
[
744,
752
],
[
752,
753
],
[
753,
754
],
[
744,
755
],
[
755,
756
],
[
756,
757
],
[
757,
758
],
[
757,
759
],
[
756,
760
],
[
737,
761
],
[
761,
762
],
[
735,
763
],
[
763,
764
],
[
380,
765
],
[
765,
766
],
[
765,
767
],
[
767,
768
],
[
768,
769
],
[
768,
770
],
[
770,
771
],
[
770,
772
],
[
767,
773
],
[
773,
774
],
[
774,
775
],
[
775,
776
],
[
775,
777
],
[
773,
778
],
[
778,
779
],
[
778,
780
],
[
773,
781
],
[
781,
782
],
[
782,
783
],
[
773,
784
],
[
785,
785
],
[
785,
786
],
[
786,
787
],
[
786,
788
],
[
788,
789
],
[
785,
790
],
[
790,
791
],
[
790,
792
],
[
792,
793
],
[
785,
794
],
[
794,
795
],
[
795,
796
],
[
796,
797
],
[
796,
798
],
[
794,
799
],
[
785,
800
],
[
800,
801
],
[
801,
802
],
[
802,
803
],
[
802,
804
],
[
800,
805
],
[
767,
806
],
[
806,
807
],
[
765,
808
],
[
808,
809
],
[
765,
810
],
[
810,
811
],
[
0,
812
],
[
812,
813
],
[
812,
814
]
]
| [
"/*\n Author: Anthony Ngene\n Created: 17/08/2020 - 06:22\n*/\n\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n// A man who views the world the same at 50 as he did at 20 has wasted 30 years of his life. - Muhammad Ali\n public static void main(String[] args) throws IOException {\n in = new FastScanner();\n\n int n = in.intNext();\n long d = in.longNext();\n int count = 0;\n long dSquared = d * d;\n for (int i = 0; i < n; i++) {\n long x = in.longNext(), y = in.longNext();\n if (x*x + y*y <= dSquared) count++;\n }\n out.println(count);\n\n out.close();\n }\n\n// Generated Code Below:\nprivate static final FastWriter out = new FastWriter();\nprivate static FastScanner in;\nstatic ArrayList<Integer>[] adj;\nprivate static long e97 = (long)1e9 + 7;\nstatic class FastWriter {\n private static final int IO_BUFFERS = 128 * 1024;\n private final StringBuilder out;\n public FastWriter() { out = new StringBuilder(IO_BUFFERS); }\n public FastWriter p(Object object) { out.append(object); return this; }\n public FastWriter p(String format, Object... args) { out.append(String.format(format, args)); return this; }\n public FastWriter pp(Object... args) { for (Object ob : args) { out.append(ob).append(\" \"); } out.append(\"\\n\"); return this; }\n public void println(long[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(int[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(char[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(double[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(boolean[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public <T>void println(T[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(long[][] arr) { for (long[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(int[][] arr) { for (int[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(char[][] arr) { for (char[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(double[][] arr) { for (double[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public <T>void println(T[][] arr) { for (T[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public FastWriter println(Object object) { out.append(object).append(\"\\n\"); return this; }\n public void toFile(String fileName) throws IOException {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }\n public void close() throws IOException { System.out.print(out); }\n}\nstatic class FastScanner {\n private InputStream sin = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n public FastScanner(){}\n public FastScanner(String filename) throws FileNotFoundException {\n File file = new File(filename);\n sin = new FileInputStream(file);\n }\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long longNext() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int intNext() {\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double doubleNext() { return Double.parseDouble(next());}\n public long[] nextLongArray(final int n){\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n public int[] nextIntArray(final int n){\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n public double[] nextDoubleArray(final int n){\n final double[] a = new double[n];\n for (int i = 0; i < n; i++)\n a[i] = doubleNext();\n return a;\n }\n public ArrayList<Integer>[] getAdj(int n) {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n// A man who views the world the same at 50 as he did at 20 has wasted 30 years of his life. - Muhammad Ali\n public static void main(String[] args) throws IOException {\n in = new FastScanner();\n\n int n = in.intNext();\n long d = in.longNext();\n int count = 0;\n long dSquared = d * d;\n for (int i = 0; i < n; i++) {\n long x = in.longNext(), y = in.longNext();\n if (x*x + y*y <= dSquared) count++;\n }\n out.println(count);\n\n out.close();\n }\n\n// Generated Code Below:\nprivate static final FastWriter out = new FastWriter();\nprivate static FastScanner in;\nstatic ArrayList<Integer>[] adj;\nprivate static long e97 = (long)1e9 + 7;\nstatic class FastWriter {\n private static final int IO_BUFFERS = 128 * 1024;\n private final StringBuilder out;\n public FastWriter() { out = new StringBuilder(IO_BUFFERS); }\n public FastWriter p(Object object) { out.append(object); return this; }\n public FastWriter p(String format, Object... args) { out.append(String.format(format, args)); return this; }\n public FastWriter pp(Object... args) { for (Object ob : args) { out.append(ob).append(\" \"); } out.append(\"\\n\"); return this; }\n public void println(long[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(int[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(char[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(double[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(boolean[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public <T>void println(T[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(long[][] arr) { for (long[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(int[][] arr) { for (int[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(char[][] arr) { for (char[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(double[][] arr) { for (double[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public <T>void println(T[][] arr) { for (T[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public FastWriter println(Object object) { out.append(object).append(\"\\n\"); return this; }\n public void toFile(String fileName) throws IOException {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }\n public void close() throws IOException { System.out.print(out); }\n}\nstatic class FastScanner {\n private InputStream sin = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n public FastScanner(){}\n public FastScanner(String filename) throws FileNotFoundException {\n File file = new File(filename);\n sin = new FileInputStream(file);\n }\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long longNext() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int intNext() {\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double doubleNext() { return Double.parseDouble(next());}\n public long[] nextLongArray(final int n){\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n public int[] nextIntArray(final int n){\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n public double[] nextDoubleArray(final int n){\n final double[] a = new double[n];\n for (int i = 0; i < n; i++)\n a[i] = doubleNext();\n return a;\n }\n public ArrayList<Integer>[] getAdj(int n) {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n}\n}",
"Main",
"// Generated Code Below:\nprivate static final FastWriter out = new FastWriter();",
"out",
"new FastWriter()",
"private static FastScanner in;",
"in",
"static ArrayList<Integer>[] adj;",
"adj",
"private static long e97 = (long)1e9 + 7;",
"e97",
"(long)1e9 + 7",
"(long)1e9",
"7",
"// A man who views the world the same at 50 as he did at 20 has wasted 30 years of his life. - Muhammad Ali\n public static void main(String[] args) throws IOException {\n in = new FastScanner();\n\n int n = in.intNext();\n long d = in.longNext();\n int count = 0;\n long dSquared = d * d;\n for (int i = 0; i < n; i++) {\n long x = in.longNext(), y = in.longNext();\n if (x*x + y*y <= dSquared) count++;\n }\n out.println(count);\n\n out.close();\n }",
"main",
"{\n in = new FastScanner();\n\n int n = in.intNext();\n long d = in.longNext();\n int count = 0;\n long dSquared = d * d;\n for (int i = 0; i < n; i++) {\n long x = in.longNext(), y = in.longNext();\n if (x*x + y*y <= dSquared) count++;\n }\n out.println(count);\n\n out.close();\n }",
"in = new FastScanner()",
"in",
"new FastScanner()",
"int n = in.intNext();",
"n",
"in.intNext()",
"in.intNext",
"in",
"long d = in.longNext();",
"d",
"in.longNext()",
"in.longNext",
"in",
"int count = 0;",
"count",
"0",
"long dSquared = d * d;",
"dSquared",
"d * d",
"d",
"d",
"for (int i = 0; i < n; i++) {\n long x = in.longNext(), y = in.longNext();\n if (x*x + y*y <= dSquared) count++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long x = in.longNext(), y = in.longNext();\n if (x*x + y*y <= dSquared) count++;\n }",
"{\n long x = in.longNext(), y = in.longNext();\n if (x*x + y*y <= dSquared) count++;\n }",
"long x = in.longNext()",
"x",
"in.longNext()",
"in.longNext",
"in",
"y = in.longNext();",
"y",
"in.longNext()",
"in.longNext",
"in",
"if (x*x + y*y <= dSquared) count++;",
"x*x + y*y <= dSquared",
"x*x + y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"dSquared",
"count++",
"count",
"out.println(count)",
"out.println",
"out",
"count",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class FastWriter {\n private static final int IO_BUFFERS = 128 * 1024;\n private final StringBuilder out;\n public FastWriter() { out = new StringBuilder(IO_BUFFERS); }\n public FastWriter p(Object object) { out.append(object); return this; }\n public FastWriter p(String format, Object... args) { out.append(String.format(format, args)); return this; }\n public FastWriter pp(Object... args) { for (Object ob : args) { out.append(ob).append(\" \"); } out.append(\"\\n\"); return this; }\n public void println(long[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(int[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(char[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(double[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(boolean[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public <T>void println(T[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(long[][] arr) { for (long[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(int[][] arr) { for (int[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(char[][] arr) { for (char[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(double[][] arr) { for (double[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public <T>void println(T[][] arr) { for (T[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public FastWriter println(Object object) { out.append(object).append(\"\\n\"); return this; }\n public void toFile(String fileName) throws IOException {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }\n public void close() throws IOException { System.out.print(out); }\n}",
"FastWriter",
"private static final int IO_BUFFERS = 128 * 1024;",
"IO_BUFFERS",
"128 * 1024",
"128",
"1024",
"private final StringBuilder out;",
"out",
"public FastWriter() { out = new StringBuilder(IO_BUFFERS); }",
"FastWriter",
"{ out = new StringBuilder(IO_BUFFERS); }",
"out = new StringBuilder(IO_BUFFERS)",
"out",
"new StringBuilder(IO_BUFFERS)",
"public FastWriter p(Object object) { out.append(object); return this; }",
"p",
"{ out.append(object); return this; }",
"out.append(object)",
"out.append",
"out",
"object",
"return this;",
"this",
"Object object",
"object",
"public FastWriter p(String format, Object... args) { out.append(String.format(format, args)); return this; }",
"p",
"{ out.append(String.format(format, args)); return this; }",
"out.append(String.format(format, args))",
"out.append",
"out",
"String.format(format, args)",
"String.format",
"String",
"format",
"args",
"return this;",
"this",
"String format",
"format",
"Object... args",
"args",
"public FastWriter pp(Object... args) { for (Object ob : args) { out.append(ob).append(\" \"); } out.append(\"\\n\"); return this; }",
"pp",
"{ for (Object ob : args) { out.append(ob).append(\" \"); } out.append(\"\\n\"); return this; }",
"for (Object ob : args) { out.append(ob).append(\" \"); }",
"Object ob",
"args",
"{ out.append(ob).append(\" \"); }",
"{ out.append(ob).append(\" \"); }",
"out.append(ob).append(\" \")",
"out.append(ob).append",
"out.append(ob)",
"out.append",
"out",
"ob",
"\" \"",
"out.append(\"\\n\")",
"out.append",
"out",
"\"\\n\"",
"return this;",
"this",
"Object... args",
"args",
"public void println(long[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }",
"println",
"{ out.append(Arrays.toString(arr)).append(\"\\n\"); }",
"out.append(Arrays.toString(arr)).append(\"\\n\")",
"out.append(Arrays.toString(arr)).append",
"out.append(Arrays.toString(arr))",
"out.append",
"out",
"Arrays.toString(arr)",
"Arrays.toString",
"Arrays",
"arr",
"\"\\n\"",
"long[] arr",
"arr",
"public void println(int[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }",
"println",
"{ out.append(Arrays.toString(arr)).append(\"\\n\"); }",
"out.append(Arrays.toString(arr)).append(\"\\n\")",
"out.append(Arrays.toString(arr)).append",
"out.append(Arrays.toString(arr))",
"out.append",
"out",
"Arrays.toString(arr)",
"Arrays.toString",
"Arrays",
"arr",
"\"\\n\"",
"int[] arr",
"arr",
"public void println(char[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }",
"println",
"{ out.append(Arrays.toString(arr)).append(\"\\n\"); }",
"out.append(Arrays.toString(arr)).append(\"\\n\")",
"out.append(Arrays.toString(arr)).append",
"out.append(Arrays.toString(arr))",
"out.append",
"out",
"Arrays.toString(arr)",
"Arrays.toString",
"Arrays",
"arr",
"\"\\n\"",
"char[] arr",
"arr",
"public void println(double[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }",
"println",
"{ out.append(Arrays.toString(arr)).append(\"\\n\"); }",
"out.append(Arrays.toString(arr)).append(\"\\n\")",
"out.append(Arrays.toString(arr)).append",
"out.append(Arrays.toString(arr))",
"out.append",
"out",
"Arrays.toString(arr)",
"Arrays.toString",
"Arrays",
"arr",
"\"\\n\"",
"double[] arr",
"arr",
"public void println(boolean[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }",
"println",
"{ out.append(Arrays.toString(arr)).append(\"\\n\"); }",
"out.append(Arrays.toString(arr)).append(\"\\n\")",
"out.append(Arrays.toString(arr)).append",
"out.append(Arrays.toString(arr))",
"out.append",
"out",
"Arrays.toString(arr)",
"Arrays.toString",
"Arrays",
"arr",
"\"\\n\"",
"boolean[] arr",
"arr",
"public <T>void println(T[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }",
"println",
"{ out.append(Arrays.toString(arr)).append(\"\\n\"); }",
"out.append(Arrays.toString(arr)).append(\"\\n\")",
"out.append(Arrays.toString(arr)).append",
"out.append(Arrays.toString(arr))",
"out.append",
"out",
"Arrays.toString(arr)",
"Arrays.toString",
"Arrays",
"arr",
"\"\\n\"",
"T[] arr",
"arr",
"public void println(long[][] arr) { for (long[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }",
"println",
"{ for (long[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }",
"for (long[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\");",
"long[] row",
"arr",
"out.append(Arrays.toString(row)).append(\"\\n\");",
"out.append(Arrays.toString(row)).append(\"\\n\")",
"out.append(Arrays.toString(row)).append",
"out.append(Arrays.toString(row))",
"out.append",
"out",
"Arrays.toString(row)",
"Arrays.toString",
"Arrays",
"row",
"\"\\n\"",
"long[][] arr",
"arr",
"public void println(int[][] arr) { for (int[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }",
"println",
"{ for (int[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }",
"for (int[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\");",
"int[] row",
"arr",
"out.append(Arrays.toString(row)).append(\"\\n\");",
"out.append(Arrays.toString(row)).append(\"\\n\")",
"out.append(Arrays.toString(row)).append",
"out.append(Arrays.toString(row))",
"out.append",
"out",
"Arrays.toString(row)",
"Arrays.toString",
"Arrays",
"row",
"\"\\n\"",
"int[][] arr",
"arr",
"public void println(char[][] arr) { for (char[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }",
"println",
"{ for (char[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }",
"for (char[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\");",
"char[] row",
"arr",
"out.append(Arrays.toString(row)).append(\"\\n\");",
"out.append(Arrays.toString(row)).append(\"\\n\")",
"out.append(Arrays.toString(row)).append",
"out.append(Arrays.toString(row))",
"out.append",
"out",
"Arrays.toString(row)",
"Arrays.toString",
"Arrays",
"row",
"\"\\n\"",
"char[][] arr",
"arr",
"public void println(double[][] arr) { for (double[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }",
"println",
"{ for (double[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }",
"for (double[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\");",
"double[] row",
"arr",
"out.append(Arrays.toString(row)).append(\"\\n\");",
"out.append(Arrays.toString(row)).append(\"\\n\")",
"out.append(Arrays.toString(row)).append",
"out.append(Arrays.toString(row))",
"out.append",
"out",
"Arrays.toString(row)",
"Arrays.toString",
"Arrays",
"row",
"\"\\n\"",
"double[][] arr",
"arr",
"public <T>void println(T[][] arr) { for (T[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }",
"println",
"{ for (T[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }",
"for (T[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\");",
"T[] row",
"arr",
"out.append(Arrays.toString(row)).append(\"\\n\");",
"out.append(Arrays.toString(row)).append(\"\\n\")",
"out.append(Arrays.toString(row)).append",
"out.append(Arrays.toString(row))",
"out.append",
"out",
"Arrays.toString(row)",
"Arrays.toString",
"Arrays",
"row",
"\"\\n\"",
"T[][] arr",
"arr",
"public FastWriter println(Object object) { out.append(object).append(\"\\n\"); return this; }",
"println",
"{ out.append(object).append(\"\\n\"); return this; }",
"out.append(object).append(\"\\n\")",
"out.append(object).append",
"out.append(object)",
"out.append",
"out",
"object",
"\"\\n\"",
"return this;",
"this",
"Object object",
"object",
"public void toFile(String fileName) throws IOException {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }",
"toFile",
"{\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }",
"BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));",
"writer",
"new BufferedWriter(new FileWriter(fileName))",
"writer.write(out.toString())",
"writer.write",
"writer",
"out.toString()",
"out.toString",
"out",
"writer.close()",
"writer.close",
"writer",
"String fileName",
"fileName",
"public void close() throws IOException { System.out.print(out); }",
"close",
"{ System.out.print(out); }",
"System.out.print(out)",
"System.out.print",
"System.out",
"System",
"System.out",
"out",
"static class FastScanner {\n private InputStream sin = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n public FastScanner(){}\n public FastScanner(String filename) throws FileNotFoundException {\n File file = new File(filename);\n sin = new FileInputStream(file);\n }\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long longNext() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int intNext() {\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double doubleNext() { return Double.parseDouble(next());}\n public long[] nextLongArray(final int n){\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n public int[] nextIntArray(final int n){\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n public double[] nextDoubleArray(final int n){\n final double[] a = new double[n];\n for (int i = 0; i < n; i++)\n a[i] = doubleNext();\n return a;\n }\n public ArrayList<Integer>[] getAdj(int n) {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n}",
"FastScanner",
"private InputStream sin = System.in;",
"sin",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"public FastScanner(){}",
"FastScanner",
"{}",
"public FastScanner(String filename) throws FileNotFoundException {\n File file = new File(filename);\n sin = new FileInputStream(file);\n }",
"FastScanner",
"{\n File file = new File(filename);\n sin = new FileInputStream(file);\n }",
"File file = new File(filename);",
"file",
"new File(filename)",
"sin = new FileInputStream(file)",
"sin",
"new FileInputStream(file)",
"String filename",
"filename",
"private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"hasNextByte",
"{\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr < buflen",
"ptr",
"buflen",
"{\n return true;\n }",
"return true;",
"true",
"{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr = 0",
"ptr",
"0",
"try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n buflen = sin.read(buffer);\n }",
"buflen = sin.read(buffer)",
"buflen",
"sin.read(buffer)",
"sin.read",
"sin",
"buffer",
"if (buflen <= 0) {\n return false;\n }",
"buflen <= 0",
"buflen",
"0",
"{\n return false;\n }",
"return false;",
"false",
"return true;",
"true",
"private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"readByte",
"{ if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"if (hasNextByte()) return buffer[ptr++]; else return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}",
"isPrintableChar",
"{ return 33 <= c && c <= 126;}",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"hasNext",
"{ while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;",
"hasNextByte() && !isPrintableChar(buffer[ptr])",
"hasNextByte()",
"hasNextByte",
"!isPrintableChar(buffer[ptr])",
"isPrintableChar(buffer[ptr])",
"isPrintableChar",
"buffer[ptr]",
"buffer",
"ptr",
"ptr++",
"ptr",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"next",
"{\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n sb.appendCodePoint(b);\n b = readByte();\n }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public long longNext() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }",
"longNext",
"{\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"if (b == '-') {\n minus = true;\n b = readByte();\n }",
"b == '-'",
"b",
"'-'",
"{\n minus = true;\n b = readByte();\n }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n throw new NumberFormatException();\n }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }",
"true",
"{\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }",
"if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n n *= 10;\n n += b - '0';\n }",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }",
"b == -1 || !isPrintableChar(b) || b == ':'",
"b == -1 || !isPrintableChar(b) || b == ':'",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"b == ':'",
"b",
"':'",
"{\n return minus ? -n : n;\n }",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n throw new NumberFormatException();\n }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int intNext() {\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"intNext",
"{\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"long nl = longNext();",
"nl",
"longNext()",
"longNext",
"if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();",
"nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE",
"nl < Integer.MIN_VALUE",
"nl",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"nl > Integer.MAX_VALUE",
"nl",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) nl;",
"(int) nl",
"public double doubleNext() { return Double.parseDouble(next());}",
"doubleNext",
"{ return Double.parseDouble(next());}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public long[] nextLongArray(final int n){\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }",
"nextLongArray",
"{\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }",
"final long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = longNext();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = longNext();",
"a[i] = longNext()",
"a[i]",
"a",
"i",
"longNext()",
"longNext",
"return a;",
"a",
"final int n",
"n",
"public int[] nextIntArray(final int n){\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }",
"nextIntArray",
"{\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }",
"final int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = intNext();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = intNext();",
"a[i] = intNext()",
"a[i]",
"a",
"i",
"intNext()",
"intNext",
"return a;",
"a",
"final int n",
"n",
"public double[] nextDoubleArray(final int n){\n final double[] a = new double[n];\n for (int i = 0; i < n; i++)\n a[i] = doubleNext();\n return a;\n }",
"nextDoubleArray",
"{\n final double[] a = new double[n];\n for (int i = 0; i < n; i++)\n a[i] = doubleNext();\n return a;\n }",
"final double[] a = new double[n];",
"a",
"new double[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = doubleNext();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = doubleNext();",
"a[i] = doubleNext()",
"a[i]",
"a",
"i",
"doubleNext()",
"doubleNext",
"return a;",
"a",
"final int n",
"n",
"public ArrayList<Integer>[] getAdj(int n) {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }",
"getAdj",
"{\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }",
"ArrayList<Integer>[] adj = new ArrayList[n + 1];",
"adj",
"new ArrayList[n + 1]",
"n + 1",
"n",
"1",
"for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"adj[i] = new ArrayList<>();",
"adj[i] = new ArrayList<>()",
"adj[i]",
"adj",
"i",
"new ArrayList<>()",
"return adj;",
"adj",
"int n",
"n",
"public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }",
"adjacencyList",
"{\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }",
"adj = getAdj(n)",
"adj",
"getAdj(n)",
"getAdj",
"n",
"for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }",
"{\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }",
"int a = intNext()",
"a",
"intNext()",
"intNext",
"b = intNext();",
"b",
"intNext()",
"intNext",
"adj[a].add(b)",
"adj[a].add",
"adj[a]",
"adj",
"a",
"b",
"adj[b].add(a)",
"adj[b].add",
"adj[b]",
"adj",
"b",
"a",
"return adj;",
"adj",
"int n",
"n",
"int m",
"m",
"public class Main {\n// A man who views the world the same at 50 as he did at 20 has wasted 30 years of his life. - Muhammad Ali\n public static void main(String[] args) throws IOException {\n in = new FastScanner();\n\n int n = in.intNext();\n long d = in.longNext();\n int count = 0;\n long dSquared = d * d;\n for (int i = 0; i < n; i++) {\n long x = in.longNext(), y = in.longNext();\n if (x*x + y*y <= dSquared) count++;\n }\n out.println(count);\n\n out.close();\n }\n\n// Generated Code Below:\nprivate static final FastWriter out = new FastWriter();\nprivate static FastScanner in;\nstatic ArrayList<Integer>[] adj;\nprivate static long e97 = (long)1e9 + 7;\nstatic class FastWriter {\n private static final int IO_BUFFERS = 128 * 1024;\n private final StringBuilder out;\n public FastWriter() { out = new StringBuilder(IO_BUFFERS); }\n public FastWriter p(Object object) { out.append(object); return this; }\n public FastWriter p(String format, Object... args) { out.append(String.format(format, args)); return this; }\n public FastWriter pp(Object... args) { for (Object ob : args) { out.append(ob).append(\" \"); } out.append(\"\\n\"); return this; }\n public void println(long[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(int[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(char[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(double[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(boolean[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public <T>void println(T[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(long[][] arr) { for (long[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(int[][] arr) { for (int[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(char[][] arr) { for (char[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(double[][] arr) { for (double[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public <T>void println(T[][] arr) { for (T[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public FastWriter println(Object object) { out.append(object).append(\"\\n\"); return this; }\n public void toFile(String fileName) throws IOException {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }\n public void close() throws IOException { System.out.print(out); }\n}\nstatic class FastScanner {\n private InputStream sin = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n public FastScanner(){}\n public FastScanner(String filename) throws FileNotFoundException {\n File file = new File(filename);\n sin = new FileInputStream(file);\n }\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long longNext() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int intNext() {\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double doubleNext() { return Double.parseDouble(next());}\n public long[] nextLongArray(final int n){\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n public int[] nextIntArray(final int n){\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n public double[] nextDoubleArray(final int n){\n final double[] a = new double[n];\n for (int i = 0; i < n; i++)\n a[i] = doubleNext();\n return a;\n }\n public ArrayList<Integer>[] getAdj(int n) {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n}\n}",
"public class Main {\n// A man who views the world the same at 50 as he did at 20 has wasted 30 years of his life. - Muhammad Ali\n public static void main(String[] args) throws IOException {\n in = new FastScanner();\n\n int n = in.intNext();\n long d = in.longNext();\n int count = 0;\n long dSquared = d * d;\n for (int i = 0; i < n; i++) {\n long x = in.longNext(), y = in.longNext();\n if (x*x + y*y <= dSquared) count++;\n }\n out.println(count);\n\n out.close();\n }\n\n// Generated Code Below:\nprivate static final FastWriter out = new FastWriter();\nprivate static FastScanner in;\nstatic ArrayList<Integer>[] adj;\nprivate static long e97 = (long)1e9 + 7;\nstatic class FastWriter {\n private static final int IO_BUFFERS = 128 * 1024;\n private final StringBuilder out;\n public FastWriter() { out = new StringBuilder(IO_BUFFERS); }\n public FastWriter p(Object object) { out.append(object); return this; }\n public FastWriter p(String format, Object... args) { out.append(String.format(format, args)); return this; }\n public FastWriter pp(Object... args) { for (Object ob : args) { out.append(ob).append(\" \"); } out.append(\"\\n\"); return this; }\n public void println(long[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(int[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(char[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(double[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(boolean[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public <T>void println(T[] arr) { out.append(Arrays.toString(arr)).append(\"\\n\"); }\n public void println(long[][] arr) { for (long[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(int[][] arr) { for (int[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(char[][] arr) { for (char[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public void println(double[][] arr) { for (double[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public <T>void println(T[][] arr) { for (T[] row: arr) out.append(Arrays.toString(row)).append(\"\\n\"); }\n public FastWriter println(Object object) { out.append(object).append(\"\\n\"); return this; }\n public void toFile(String fileName) throws IOException {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n writer.write(out.toString());\n writer.close();\n }\n public void close() throws IOException { System.out.print(out); }\n}\nstatic class FastScanner {\n private InputStream sin = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n public FastScanner(){}\n public FastScanner(String filename) throws FileNotFoundException {\n File file = new File(filename);\n sin = new FileInputStream(file);\n }\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = sin.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long longNext() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b) || b == ':'){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int intNext() {\n long nl = longNext();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double doubleNext() { return Double.parseDouble(next());}\n public long[] nextLongArray(final int n){\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n public int[] nextIntArray(final int n){\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n public double[] nextDoubleArray(final int n){\n final double[] a = new double[n];\n for (int i = 0; i < n; i++)\n a[i] = doubleNext();\n return a;\n }\n public ArrayList<Integer>[] getAdj(int n) {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n return adj;\n }\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n adj = getAdj(n);\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n}\n}",
"Main"
]
| /*
Author: Anthony Ngene
Created: 17/08/2020 - 06:22
*/
import java.io.*;
import java.util.*;
public class Main {
// A man who views the world the same at 50 as he did at 20 has wasted 30 years of his life. - Muhammad Ali
public static void main(String[] args) throws IOException {
in = new FastScanner();
int n = in.intNext();
long d = in.longNext();
int count = 0;
long dSquared = d * d;
for (int i = 0; i < n; i++) {
long x = in.longNext(), y = in.longNext();
if (x*x + y*y <= dSquared) count++;
}
out.println(count);
out.close();
}
// Generated Code Below:
private static final FastWriter out = new FastWriter();
private static FastScanner in;
static ArrayList<Integer>[] adj;
private static long e97 = (long)1e9 + 7;
static class FastWriter {
private static final int IO_BUFFERS = 128 * 1024;
private final StringBuilder out;
public FastWriter() { out = new StringBuilder(IO_BUFFERS); }
public FastWriter p(Object object) { out.append(object); return this; }
public FastWriter p(String format, Object... args) { out.append(String.format(format, args)); return this; }
public FastWriter pp(Object... args) { for (Object ob : args) { out.append(ob).append(" "); } out.append("\n"); return this; }
public void println(long[] arr) { out.append(Arrays.toString(arr)).append("\n"); }
public void println(int[] arr) { out.append(Arrays.toString(arr)).append("\n"); }
public void println(char[] arr) { out.append(Arrays.toString(arr)).append("\n"); }
public void println(double[] arr) { out.append(Arrays.toString(arr)).append("\n"); }
public void println(boolean[] arr) { out.append(Arrays.toString(arr)).append("\n"); }
public <T>void println(T[] arr) { out.append(Arrays.toString(arr)).append("\n"); }
public void println(long[][] arr) { for (long[] row: arr) out.append(Arrays.toString(row)).append("\n"); }
public void println(int[][] arr) { for (int[] row: arr) out.append(Arrays.toString(row)).append("\n"); }
public void println(char[][] arr) { for (char[] row: arr) out.append(Arrays.toString(row)).append("\n"); }
public void println(double[][] arr) { for (double[] row: arr) out.append(Arrays.toString(row)).append("\n"); }
public <T>void println(T[][] arr) { for (T[] row: arr) out.append(Arrays.toString(row)).append("\n"); }
public FastWriter println(Object object) { out.append(object).append("\n"); return this; }
public void toFile(String fileName) throws IOException {
BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));
writer.write(out.toString());
writer.close();
}
public void close() throws IOException { System.out.print(out); }
}
static class FastScanner {
private InputStream sin = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
public FastScanner(){}
public FastScanner(String filename) throws FileNotFoundException {
File file = new File(filename);
sin = new FileInputStream(file);
}
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
}else{
ptr = 0;
try {
buflen = sin.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
public String next() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while(isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public long longNext() {
if (!hasNext()) throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while(true){
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
}else if(b == -1 || !isPrintableChar(b) || b == ':'){
return minus ? -n : n;
}else{
throw new NumberFormatException();
}
b = readByte();
}
}
public int intNext() {
long nl = longNext();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
return (int) nl;
}
public double doubleNext() { return Double.parseDouble(next());}
public long[] nextLongArray(final int n){
final long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = longNext();
return a;
}
public int[] nextIntArray(final int n){
final int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = intNext();
return a;
}
public double[] nextDoubleArray(final int n){
final double[] a = new double[n];
for (int i = 0; i < n; i++)
a[i] = doubleNext();
return a;
}
public ArrayList<Integer>[] getAdj(int n) {
ArrayList<Integer>[] adj = new ArrayList[n + 1];
for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();
return adj;
}
public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {
adj = getAdj(n);
for (int i = 0; i < m; i++) {
int a = intNext(), b = intNext();
adj[a].add(b);
adj[b].add(a);
}
return adj;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
0,
13,
19,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
2,
13,
17,
23,
13,
12,
13,
30,
29,
4,
18,
13,
2,
13,
17,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
41,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
14,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
0,
13,
20,
17,
0,
13,
17,
0,
13,
20,
12,
13,
30,
38,
30,
4,
13,
30,
4,
18,
33,
12,
13,
30,
14,
2,
13,
17,
4,
18,
13,
12,
13,
30,
14,
2,
13,
18,
13,
13,
29,
18,
13,
40,
13,
41,
13,
4,
18,
13,
42,
2,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
17,
0,
13,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
345,
17
],
[
345,
18
],
[
18,
19
],
[
345,
20
],
[
20,
21
],
[
20,
22
],
[
345,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
25,
34
],
[
34,
35
],
[
35,
36
],
[
23,
37
],
[
37,
38
],
[
345,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
46,
48
],
[
39,
49
],
[
49,
50
],
[
345,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
51,
61
],
[
61,
62
],
[
345,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
66,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
84,
85
],
[
84,
86
],
[
73,
88
],
[
88,
89
],
[
88,
90
],
[
73,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
110,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
73,
119
],
[
119,
120
],
[
73,
121
],
[
121,
122
],
[
121,
123
],
[
73,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
124,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
147,
149
],
[
142,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
154,
156
],
[
136,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
73,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
345,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
169,
173
],
[
173,
174
],
[
169,
175
],
[
175,
176
],
[
169,
177
],
[
177,
178
],
[
177,
179
],
[
169,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
182,
190
],
[
190,
191
],
[
190,
192
],
[
169,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
196,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
169,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
211,
212
],
[
212,
213
],
[
169,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
220,
222
],
[
217,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
216,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
216,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
216,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
244,
247
],
[
244,
248
],
[
216,
249
],
[
249,
250
],
[
249,
251
],
[
216,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
169,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
261,
264
],
[
264,
265
],
[
169,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
270,
273
],
[
273,
274
],
[
169,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
279,
282
],
[
282,
283
],
[
169,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
291,
296
],
[
296,
297
],
[
296,
298
],
[
291,
299
],
[
299,
300
],
[
300,
301
],
[
291,
302
],
[
303,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
304,
308
],
[
308,
309
],
[
286,
310
],
[
310,
311
],
[
284,
312
],
[
312,
313
],
[
169,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
316,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
321,
326
],
[
326,
327
],
[
326,
328
],
[
321,
329
],
[
329,
330
],
[
330,
331
],
[
321,
332
],
[
333,
333
],
[
333,
334
],
[
334,
335
],
[
335,
336
],
[
335,
337
],
[
334,
338
],
[
338,
339
],
[
316,
340
],
[
340,
341
],
[
314,
342
],
[
342,
343
],
[
0,
344
],
[
344,
345
],
[
344,
346
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.util.Arrays;\nimport java.util.Collections;\n// import java.io.BufferedReader;\n// import java.io.IOException;\n// import java.io.InputStreamReader;\n// import java.util.ArrayList;\n// import java.util.Arrays;\n// import java.util.Collections;\n// import java.util.List;\n// import java.util.HashSet;\n// import java.util.Set;\n// import java.util.Map;\n// import java.util.HashMap;\n\nimport java.math.*;\n\npublic class Main {\n private static Scanner sc;\n private static final long mod = 1000000007;\n\n public static void main(final String[] args) {\n final Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private static String getUpperAlpha(int i) {\n return String.valueOf((char) (i + 64));\n }\n\n /* i=1 return a */\n private static String getLowerAlpha(int i) {\n return String.valueOf((char) (i + 96));\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null)\n br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length)\n return s[i++];\n String st = br.readLine();\n while (st == \"\")\n st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n\n public long[] nextLongArray(int n) throws NumberFormatException, IOException {\n long[] ret = new long[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextLong();\n }\n return ret;\n }\n\n public int[] nextIntArray(int n) throws NumberFormatException, IOException {\n int[] ret = new int[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextInt();\n }\n return ret;\n }\n }\n\n private void solve() {\n try {\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextLong();\n y[i] = sc.nextLong();\n }\n double dis;\n int count=0;\n for (int i = 0; i < n; i++) {\n dis= Math.sqrt(x[i] * x[i] + y[i] * y[i]);\n if(dis<=d) count++;\n }\n System.out.println(count);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.math.*;",
"math.*",
"java",
"public class Main {\n private static Scanner sc;\n private static final long mod = 1000000007;\n\n public static void main(final String[] args) {\n final Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private static String getUpperAlpha(int i) {\n return String.valueOf((char) (i + 64));\n }\n\n /* i=1 return a */\n private static String getLowerAlpha(int i) {\n return String.valueOf((char) (i + 96));\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null)\n br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length)\n return s[i++];\n String st = br.readLine();\n while (st == \"\")\n st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n\n public long[] nextLongArray(int n) throws NumberFormatException, IOException {\n long[] ret = new long[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextLong();\n }\n return ret;\n }\n\n public int[] nextIntArray(int n) throws NumberFormatException, IOException {\n int[] ret = new int[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextInt();\n }\n return ret;\n }\n }\n\n private void solve() {\n try {\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextLong();\n y[i] = sc.nextLong();\n }\n double dis;\n int count=0;\n for (int i = 0; i < n; i++) {\n dis= Math.sqrt(x[i] * x[i] + y[i] * y[i]);\n if(dis<=d) count++;\n }\n System.out.println(count);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n}",
"Main",
"private static Scanner sc;",
"sc",
"private static final long mod = 1000000007;",
"mod",
"1000000007",
"public static void main(final String[] args) {\n final Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }",
"main",
"{\n final Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }",
"final Main instance = new Main();",
"instance",
"new Main()",
"sc = instance.new Scanner()",
"sc",
"instance.new Scanner()",
"instance",
"instance",
"instance.solve()",
"instance.solve",
"instance",
"final String[] args",
"args",
"private static String getUpperAlpha(int i) {\n return String.valueOf((char) (i + 64));\n }",
"getUpperAlpha",
"{\n return String.valueOf((char) (i + 64));\n }",
"return String.valueOf((char) (i + 64));",
"String.valueOf((char) (i + 64))",
"String.valueOf",
"String",
"(char) (i + 64)",
"i",
"64",
"int i",
"i",
"/* i=1 return a */\n private static String getLowerAlpha(int i) {\n return String.valueOf((char) (i + 96));\n }",
"getLowerAlpha",
"{\n return String.valueOf((char) (i + 96));\n }",
"return String.valueOf((char) (i + 96));",
"String.valueOf((char) (i + 96))",
"String.valueOf",
"String",
"(char) (i + 96)",
"i",
"96",
"int i",
"i",
"private void solve() {\n try {\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextLong();\n y[i] = sc.nextLong();\n }\n double dis;\n int count=0;\n for (int i = 0; i < n; i++) {\n dis= Math.sqrt(x[i] * x[i] + y[i] * y[i]);\n if(dis<=d) count++;\n }\n System.out.println(count);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"solve",
"{\n try {\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextLong();\n y[i] = sc.nextLong();\n }\n double dis;\n int count=0;\n for (int i = 0; i < n; i++) {\n dis= Math.sqrt(x[i] * x[i] + y[i] * y[i]);\n if(dis<=d) count++;\n }\n System.out.println(count);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"try {\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextLong();\n y[i] = sc.nextLong();\n }\n double dis;\n int count=0;\n for (int i = 0; i < n; i++) {\n dis= Math.sqrt(x[i] * x[i] + y[i] * y[i]);\n if(dis<=d) count++;\n }\n System.out.println(count);\n\n } catch (Exception e) {\n e.printStackTrace();\n }",
"catch (Exception e) {\n e.printStackTrace();\n }",
"Exception e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextLong();\n y[i] = sc.nextLong();\n }\n double dis;\n int count=0;\n for (int i = 0; i < n; i++) {\n dis= Math.sqrt(x[i] * x[i] + y[i] * y[i]);\n if(dis<=d) count++;\n }\n System.out.println(count);\n\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long[] x = new long[n];",
"x",
"new long[n]",
"n",
"long[] y = new long[n];",
"y",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n x[i] = sc.nextLong();\n y[i] = sc.nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n x[i] = sc.nextLong();\n y[i] = sc.nextLong();\n }",
"{\n x[i] = sc.nextLong();\n y[i] = sc.nextLong();\n }",
"x[i] = sc.nextLong()",
"x[i]",
"x",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"y[i] = sc.nextLong()",
"y[i]",
"y",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"double dis;",
"dis",
"int count=0;",
"count",
"0",
"for (int i = 0; i < n; i++) {\n dis= Math.sqrt(x[i] * x[i] + y[i] * y[i]);\n if(dis<=d) count++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n dis= Math.sqrt(x[i] * x[i] + y[i] * y[i]);\n if(dis<=d) count++;\n }",
"{\n dis= Math.sqrt(x[i] * x[i] + y[i] * y[i]);\n if(dis<=d) count++;\n }",
"dis= Math.sqrt(x[i] * x[i] + y[i] * y[i])",
"dis",
"Math.sqrt(x[i] * x[i] + y[i] * y[i])",
"Math.sqrt",
"Math",
"x[i] * x[i] + y[i] * y[i]",
"x[i] * x[i]",
"x[i]",
"x",
"i",
"x[i]",
"x",
"i",
"y[i] * y[i]",
"y[i]",
"y",
"i",
"y[i]",
"y",
"i",
"if(dis<=d) count++;",
"dis<=d",
"dis",
"d",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null)\n br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length)\n return s[i++];\n String st = br.readLine();\n while (st == \"\")\n st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n\n public long[] nextLongArray(int n) throws NumberFormatException, IOException {\n long[] ret = new long[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextLong();\n }\n return ret;\n }\n\n public int[] nextIntArray(int n) throws NumberFormatException, IOException {\n int[] ret = new int[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextInt();\n }\n return ret;\n }\n }",
"Scanner",
"String[] s;",
"s",
"int i;",
"i",
"BufferedReader br;",
"br",
"String regex = \" \";",
"regex",
"\" \"",
"public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"Scanner",
"{\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"s = new String[0]",
"s",
"new String[0]",
"0",
"i = 0",
"i",
"0",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"@Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }",
"finalize",
"{\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }",
"try {\n super.finalize();\n } finally {\n destruction();\n }",
"{\n destruction();\n }",
"destruction()",
"destruction",
"{\n super.finalize();\n }",
"super.finalize()",
"super.finalize",
"super",
"private void destruction() throws IOException {\n if (br != null)\n br.close();\n }",
"destruction",
"{\n if (br != null)\n br.close();\n }",
"if (br != null)\n br.close();",
"br != null",
"br",
"null",
"br.close()",
"br.close",
"br",
"public String next() throws IOException {\n if (i < s.length)\n return s[i++];\n String st = br.readLine();\n while (st == \"\")\n st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }",
"next",
"{\n if (i < s.length)\n return s[i++];\n String st = br.readLine();\n while (st == \"\")\n st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }",
"if (i < s.length)\n return s[i++];",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"return s[i++];",
"s[i++]",
"s",
"i++",
"i",
"String st = br.readLine();",
"st",
"br.readLine()",
"br.readLine",
"br",
"while (st == \"\")\n st = br.readLine();",
"st == \"\"",
"st",
"\"\"",
"st = br.readLine()",
"st",
"br.readLine()",
"br.readLine",
"br",
"s = st.split(regex, 0)",
"s",
"st.split(regex, 0)",
"st.split",
"st",
"regex",
"0",
"i = 0",
"i",
"0",
"return s[i++];",
"s[i++]",
"s",
"i++",
"i",
"public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public long[] nextLongArray(int n) throws NumberFormatException, IOException {\n long[] ret = new long[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextLong();\n }\n return ret;\n }",
"nextLongArray",
"{\n long[] ret = new long[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextLong();\n }\n return ret;\n }",
"long[] ret = new long[n];",
"ret",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n ret[i] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ret[i] = nextLong();\n }",
"{\n ret[i] = nextLong();\n }",
"ret[i] = nextLong()",
"ret[i]",
"ret",
"i",
"nextLong()",
"nextLong",
"return ret;",
"ret",
"int n",
"n",
"public int[] nextIntArray(int n) throws NumberFormatException, IOException {\n int[] ret = new int[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextInt();\n }\n return ret;\n }",
"nextIntArray",
"{\n int[] ret = new int[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextInt();\n }\n return ret;\n }",
"int[] ret = new int[n];",
"ret",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n ret[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ret[i] = nextInt();\n }",
"{\n ret[i] = nextInt();\n }",
"ret[i] = nextInt()",
"ret[i]",
"ret",
"i",
"nextInt()",
"nextInt",
"return ret;",
"ret",
"int n",
"n",
"public class Main {\n private static Scanner sc;\n private static final long mod = 1000000007;\n\n public static void main(final String[] args) {\n final Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private static String getUpperAlpha(int i) {\n return String.valueOf((char) (i + 64));\n }\n\n /* i=1 return a */\n private static String getLowerAlpha(int i) {\n return String.valueOf((char) (i + 96));\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null)\n br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length)\n return s[i++];\n String st = br.readLine();\n while (st == \"\")\n st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n\n public long[] nextLongArray(int n) throws NumberFormatException, IOException {\n long[] ret = new long[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextLong();\n }\n return ret;\n }\n\n public int[] nextIntArray(int n) throws NumberFormatException, IOException {\n int[] ret = new int[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextInt();\n }\n return ret;\n }\n }\n\n private void solve() {\n try {\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextLong();\n y[i] = sc.nextLong();\n }\n double dis;\n int count=0;\n for (int i = 0; i < n; i++) {\n dis= Math.sqrt(x[i] * x[i] + y[i] * y[i]);\n if(dis<=d) count++;\n }\n System.out.println(count);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n}",
"public class Main {\n private static Scanner sc;\n private static final long mod = 1000000007;\n\n public static void main(final String[] args) {\n final Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private static String getUpperAlpha(int i) {\n return String.valueOf((char) (i + 64));\n }\n\n /* i=1 return a */\n private static String getLowerAlpha(int i) {\n return String.valueOf((char) (i + 96));\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null)\n br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length)\n return s[i++];\n String st = br.readLine();\n while (st == \"\")\n st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n\n public long[] nextLongArray(int n) throws NumberFormatException, IOException {\n long[] ret = new long[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextLong();\n }\n return ret;\n }\n\n public int[] nextIntArray(int n) throws NumberFormatException, IOException {\n int[] ret = new int[n];\n for (int i = 0; i < n; i++) {\n ret[i] = nextInt();\n }\n return ret;\n }\n }\n\n private void solve() {\n try {\n int n = sc.nextInt();\n long d = sc.nextLong();\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = sc.nextLong();\n y[i] = sc.nextLong();\n }\n double dis;\n int count=0;\n for (int i = 0; i < n; i++) {\n dis= Math.sqrt(x[i] * x[i] + y[i] * y[i]);\n if(dis<=d) count++;\n }\n System.out.println(count);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
import java.util.Arrays;
import java.util.Collections;
// import java.io.BufferedReader;
// import java.io.IOException;
// import java.io.InputStreamReader;
// import java.util.ArrayList;
// import java.util.Arrays;
// import java.util.Collections;
// import java.util.List;
// import java.util.HashSet;
// import java.util.Set;
// import java.util.Map;
// import java.util.HashMap;
import java.math.*;
public class Main {
private static Scanner sc;
private static final long mod = 1000000007;
public static void main(final String[] args) {
final Main instance = new Main();
sc = instance.new Scanner();
instance.solve();
}
private static String getUpperAlpha(int i) {
return String.valueOf((char) (i + 64));
}
/* i=1 return a */
private static String getLowerAlpha(int i) {
return String.valueOf((char) (i + 96));
}
private class Scanner {
String[] s;
int i;
BufferedReader br;
String regex = " ";
public Scanner() {
s = new String[0];
i = 0;
br = new BufferedReader(new InputStreamReader(System.in));
}
@Override
protected void finalize() throws Throwable {
try {
super.finalize();
} finally {
destruction();
}
}
private void destruction() throws IOException {
if (br != null)
br.close();
}
public String next() throws IOException {
if (i < s.length)
return s[i++];
String st = br.readLine();
while (st == "")
st = br.readLine();
s = st.split(regex, 0);
i = 0;
return s[i++];
}
public int nextInt() throws NumberFormatException, IOException {
return Integer.parseInt(next());
}
public Long nextLong() throws NumberFormatException, IOException {
return Long.parseLong(next());
}
public Double nextDouble() throws NumberFormatException, IOException {
return Double.parseDouble(next());
}
public long[] nextLongArray(int n) throws NumberFormatException, IOException {
long[] ret = new long[n];
for (int i = 0; i < n; i++) {
ret[i] = nextLong();
}
return ret;
}
public int[] nextIntArray(int n) throws NumberFormatException, IOException {
int[] ret = new int[n];
for (int i = 0; i < n; i++) {
ret[i] = nextInt();
}
return ret;
}
}
private void solve() {
try {
int n = sc.nextInt();
long d = sc.nextLong();
long[] x = new long[n];
long[] y = new long[n];
for (int i = 0; i < n; i++) {
x[i] = sc.nextLong();
y[i] = sc.nextLong();
}
double dis;
int count=0;
for (int i = 0; i < n; i++) {
dis= Math.sqrt(x[i] * x[i] + y[i] * y[i]);
if(dis<=d) count++;
}
System.out.println(count);
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
108,
5
],
[
108,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
8,
62
],
[
62,
63
],
[
62,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
79,
95
],
[
78,
96
],
[
96,
97
],
[
97,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
6,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n long D = scanner.nextLong();\n long D2 = D * D;\n\n long[] X = new long[N];\n long[] Y = new long[N];\n\n for (int i = 0; i < N; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n }\n\n int result = 0;\n for (int i = 0; i < N; i++) {\n if (X[i]*X[i] + Y[i]*Y[i] <= D2) {\n result++;\n }\n }\n\n System.out.println(result);\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n long D = scanner.nextLong();\n long D2 = D * D;\n\n long[] X = new long[N];\n long[] Y = new long[N];\n\n for (int i = 0; i < N; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n }\n\n int result = 0;\n for (int i = 0; i < N; i++) {\n if (X[i]*X[i] + Y[i]*Y[i] <= D2) {\n result++;\n }\n }\n\n System.out.println(result);\n }\n\n}",
"Main",
"public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n long D = scanner.nextLong();\n long D2 = D * D;\n\n long[] X = new long[N];\n long[] Y = new long[N];\n\n for (int i = 0; i < N; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n }\n\n int result = 0;\n for (int i = 0; i < N; i++) {\n if (X[i]*X[i] + Y[i]*Y[i] <= D2) {\n result++;\n }\n }\n\n System.out.println(result);\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n long D = scanner.nextLong();\n long D2 = D * D;\n\n long[] X = new long[N];\n long[] Y = new long[N];\n\n for (int i = 0; i < N; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n }\n\n int result = 0;\n for (int i = 0; i < N; i++) {\n if (X[i]*X[i] + Y[i]*Y[i] <= D2) {\n result++;\n }\n }\n\n System.out.println(result);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long D = scanner.nextLong();",
"D",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"long D2 = D * D;",
"D2",
"D * D",
"D",
"D",
"long[] X = new long[N];",
"X",
"new long[N]",
"N",
"long[] Y = new long[N];",
"Y",
"new long[N]",
"N",
"for (int i = 0; i < N; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n }",
"{\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n }",
"X[i] = scanner.nextLong()",
"X[i]",
"X",
"i",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"Y[i] = scanner.nextLong()",
"Y[i]",
"Y",
"i",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"int result = 0;",
"result",
"0",
"for (int i = 0; i < N; i++) {\n if (X[i]*X[i] + Y[i]*Y[i] <= D2) {\n result++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if (X[i]*X[i] + Y[i]*Y[i] <= D2) {\n result++;\n }\n }",
"{\n if (X[i]*X[i] + Y[i]*Y[i] <= D2) {\n result++;\n }\n }",
"if (X[i]*X[i] + Y[i]*Y[i] <= D2) {\n result++;\n }",
"X[i]*X[i] + Y[i]*Y[i] <= D2",
"X[i]*X[i] + Y[i]*Y[i]",
"X[i]*X[i]",
"X[i]",
"X",
"i",
"X[i]",
"X",
"i",
"Y[i]*Y[i]",
"Y[i]",
"Y",
"i",
"Y[i]",
"Y",
"i",
"D2",
"{\n result++;\n }",
"result++",
"result",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n long D = scanner.nextLong();\n long D2 = D * D;\n\n long[] X = new long[N];\n long[] Y = new long[N];\n\n for (int i = 0; i < N; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n }\n\n int result = 0;\n for (int i = 0; i < N; i++) {\n if (X[i]*X[i] + Y[i]*Y[i] <= D2) {\n result++;\n }\n }\n\n System.out.println(result);\n }\n\n}",
"public class Main {\n\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n long D = scanner.nextLong();\n long D2 = D * D;\n\n long[] X = new long[N];\n long[] Y = new long[N];\n\n for (int i = 0; i < N; i++) {\n X[i] = scanner.nextLong();\n Y[i] = scanner.nextLong();\n }\n\n int result = 0;\n for (int i = 0; i < N; i++) {\n if (X[i]*X[i] + Y[i]*Y[i] <= D2) {\n result++;\n }\n }\n\n System.out.println(result);\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
long D = scanner.nextLong();
long D2 = D * D;
long[] X = new long[N];
long[] Y = new long[N];
for (int i = 0; i < N; i++) {
X[i] = scanner.nextLong();
Y[i] = scanner.nextLong();
}
int result = 0;
for (int i = 0; i < N; i++) {
if (X[i]*X[i] + Y[i]*Y[i] <= D2) {
result++;
}
}
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
14,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
79,
5
],
[
79,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
37,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
]
| [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int D = sc.nextInt();\n int ans = 0;\n for(int i=0;i<N;i++){\n int p = sc.nextInt();\n int q = sc.nextInt();\n double dist = Math.sqrt(Math.pow(p,2)+Math.pow(q,2));\n if(dist<=D) ans++;\n }\n \n System.out.print(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int D = sc.nextInt();\n int ans = 0;\n for(int i=0;i<N;i++){\n int p = sc.nextInt();\n int q = sc.nextInt();\n double dist = Math.sqrt(Math.pow(p,2)+Math.pow(q,2));\n if(dist<=D) ans++;\n }\n \n System.out.print(ans);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int D = sc.nextInt();\n int ans = 0;\n for(int i=0;i<N;i++){\n int p = sc.nextInt();\n int q = sc.nextInt();\n double dist = Math.sqrt(Math.pow(p,2)+Math.pow(q,2));\n if(dist<=D) ans++;\n }\n \n System.out.print(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int D = sc.nextInt();\n int ans = 0;\n for(int i=0;i<N;i++){\n int p = sc.nextInt();\n int q = sc.nextInt();\n double dist = Math.sqrt(Math.pow(p,2)+Math.pow(q,2));\n if(dist<=D) ans++;\n }\n \n System.out.print(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int D = sc.nextInt();",
"D",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = 0;",
"ans",
"0",
"for(int i=0;i<N;i++){\n int p = sc.nextInt();\n int q = sc.nextInt();\n double dist = Math.sqrt(Math.pow(p,2)+Math.pow(q,2));\n if(dist<=D) ans++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n int p = sc.nextInt();\n int q = sc.nextInt();\n double dist = Math.sqrt(Math.pow(p,2)+Math.pow(q,2));\n if(dist<=D) ans++;\n }",
"{\n int p = sc.nextInt();\n int q = sc.nextInt();\n double dist = Math.sqrt(Math.pow(p,2)+Math.pow(q,2));\n if(dist<=D) ans++;\n }",
"int p = sc.nextInt();",
"p",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int q = sc.nextInt();",
"q",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double dist = Math.sqrt(Math.pow(p,2)+Math.pow(q,2));",
"dist",
"Math.sqrt(Math.pow(p,2)+Math.pow(q,2))",
"Math.sqrt",
"Math",
"Math.pow(p,2)+Math.pow(q,2)",
"Math.pow(p,2)",
"Math.pow",
"Math",
"p",
"2",
"Math.pow(q,2)",
"Math.pow",
"Math",
"q",
"2",
"if(dist<=D) ans++;",
"dist<=D",
"dist",
"D",
"ans++",
"ans",
"System.out.print(ans)",
"System.out.print",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int D = sc.nextInt();\n int ans = 0;\n for(int i=0;i<N;i++){\n int p = sc.nextInt();\n int q = sc.nextInt();\n double dist = Math.sqrt(Math.pow(p,2)+Math.pow(q,2));\n if(dist<=D) ans++;\n }\n \n System.out.print(ans);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int D = sc.nextInt();\n int ans = 0;\n for(int i=0;i<N;i++){\n int p = sc.nextInt();\n int q = sc.nextInt();\n double dist = Math.sqrt(Math.pow(p,2)+Math.pow(q,2));\n if(dist<=D) ans++;\n }\n \n System.out.print(ans);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int D = sc.nextInt();
int ans = 0;
for(int i=0;i<N;i++){
int p = sc.nextInt();
int q = sc.nextInt();
double dist = Math.sqrt(Math.pow(p,2)+Math.pow(q,2));
if(dist<=D) ans++;
}
System.out.print(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
20,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
20,
20,
41,
13,
4,
18,
20,
20,
14,
2,
4,
18,
13,
4,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
94,
8
],
[
94,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
11,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
46,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
46,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
46,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
46,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
73,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
11,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
9,
91
],
[
91,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
]
| [
"import java.math.BigDecimal;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\tBigDecimal doubled = new BigDecimal(d).multiply(new BigDecimal(d));\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsc.hasNextLine();\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tBigDecimal doublex = new BigDecimal(x).multiply(new BigDecimal(x));\n\t\t\tBigDecimal doubley = new BigDecimal(y).multiply(new BigDecimal(y));\n\t\t\tif (doubled.compareTo(doublex.add(doubley)) >= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\tBigDecimal doubled = new BigDecimal(d).multiply(new BigDecimal(d));\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsc.hasNextLine();\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tBigDecimal doublex = new BigDecimal(x).multiply(new BigDecimal(x));\n\t\t\tBigDecimal doubley = new BigDecimal(y).multiply(new BigDecimal(y));\n\t\t\tif (doubled.compareTo(doublex.add(doubley)) >= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\tBigDecimal doubled = new BigDecimal(d).multiply(new BigDecimal(d));\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsc.hasNextLine();\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tBigDecimal doublex = new BigDecimal(x).multiply(new BigDecimal(x));\n\t\t\tBigDecimal doubley = new BigDecimal(y).multiply(new BigDecimal(y));\n\t\t\tif (doubled.compareTo(doublex.add(doubley)) >= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\tBigDecimal doubled = new BigDecimal(d).multiply(new BigDecimal(d));\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsc.hasNextLine();\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tBigDecimal doublex = new BigDecimal(x).multiply(new BigDecimal(x));\n\t\t\tBigDecimal doubley = new BigDecimal(y).multiply(new BigDecimal(y));\n\t\t\tif (doubled.compareTo(doublex.add(doubley)) >= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"BigDecimal doubled = new BigDecimal(d).multiply(new BigDecimal(d));",
"doubled",
"new BigDecimal(d).multiply(new BigDecimal(d))",
"new BigDecimal(d).multiply",
"new BigDecimal(d)",
"new BigDecimal(d)",
"int cnt = 0;",
"cnt",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tsc.hasNextLine();\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tBigDecimal doublex = new BigDecimal(x).multiply(new BigDecimal(x));\n\t\t\tBigDecimal doubley = new BigDecimal(y).multiply(new BigDecimal(y));\n\t\t\tif (doubled.compareTo(doublex.add(doubley)) >= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsc.hasNextLine();\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tBigDecimal doublex = new BigDecimal(x).multiply(new BigDecimal(x));\n\t\t\tBigDecimal doubley = new BigDecimal(y).multiply(new BigDecimal(y));\n\t\t\tif (doubled.compareTo(doublex.add(doubley)) >= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tsc.hasNextLine();\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tBigDecimal doublex = new BigDecimal(x).multiply(new BigDecimal(x));\n\t\t\tBigDecimal doubley = new BigDecimal(y).multiply(new BigDecimal(y));\n\t\t\tif (doubled.compareTo(doublex.add(doubley)) >= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"sc.hasNextLine()",
"sc.hasNextLine",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"BigDecimal doublex = new BigDecimal(x).multiply(new BigDecimal(x));",
"doublex",
"new BigDecimal(x).multiply(new BigDecimal(x))",
"new BigDecimal(x).multiply",
"new BigDecimal(x)",
"new BigDecimal(x)",
"BigDecimal doubley = new BigDecimal(y).multiply(new BigDecimal(y));",
"doubley",
"new BigDecimal(y).multiply(new BigDecimal(y))",
"new BigDecimal(y).multiply",
"new BigDecimal(y)",
"new BigDecimal(y)",
"if (doubled.compareTo(doublex.add(doubley)) >= 0) {\n\t\t\t\tcnt++;\n\t\t\t}",
"doubled.compareTo(doublex.add(doubley)) >= 0",
"doubled.compareTo(doublex.add(doubley))",
"doubled.compareTo",
"doubled",
"doublex.add(doubley)",
"doublex.add",
"doublex",
"doubley",
"0",
"{\n\t\t\t\tcnt++;\n\t\t\t}",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\tBigDecimal doubled = new BigDecimal(d).multiply(new BigDecimal(d));\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsc.hasNextLine();\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tBigDecimal doublex = new BigDecimal(x).multiply(new BigDecimal(x));\n\t\t\tBigDecimal doubley = new BigDecimal(y).multiply(new BigDecimal(y));\n\t\t\tif (doubled.compareTo(doublex.add(doubley)) >= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\tBigDecimal doubled = new BigDecimal(d).multiply(new BigDecimal(d));\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsc.hasNextLine();\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tBigDecimal doublex = new BigDecimal(x).multiply(new BigDecimal(x));\n\t\t\tBigDecimal doubley = new BigDecimal(y).multiply(new BigDecimal(y));\n\t\t\tif (doubled.compareTo(doublex.add(doubley)) >= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"Main"
]
| import java.math.BigDecimal;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int d = sc.nextInt();
BigDecimal doubled = new BigDecimal(d).multiply(new BigDecimal(d));
int cnt = 0;
for (int i = 0; i < n; i++) {
sc.hasNextLine();
int x = sc.nextInt();
int y = sc.nextInt();
BigDecimal doublex = new BigDecimal(x).multiply(new BigDecimal(x));
BigDecimal doubley = new BigDecimal(y).multiply(new BigDecimal(y));
if (doubled.compareTo(doublex.add(doubley)) >= 0) {
cnt++;
}
}
System.out.println(cnt);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
75,
5
],
[
75,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
6,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(); long d = sc.nextInt();\n long dist = d*d;\n int ans = 0;\n for(int i=0;i<n;i++){\n long a = sc.nextInt(); long b = sc.nextInt();\n if((a*a)+(b*b) <= dist){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(); long d = sc.nextInt();\n long dist = d*d;\n int ans = 0;\n for(int i=0;i<n;i++){\n long a = sc.nextInt(); long b = sc.nextInt();\n if((a*a)+(b*b) <= dist){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(); long d = sc.nextInt();\n long dist = d*d;\n int ans = 0;\n for(int i=0;i<n;i++){\n long a = sc.nextInt(); long b = sc.nextInt();\n if((a*a)+(b*b) <= dist){\n ans++;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(); long d = sc.nextInt();\n long dist = d*d;\n int ans = 0;\n for(int i=0;i<n;i++){\n long a = sc.nextInt(); long b = sc.nextInt();\n if((a*a)+(b*b) <= dist){\n ans++;\n }\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long dist = d*d;",
"dist",
"d*d",
"d",
"d",
"int ans = 0;",
"ans",
"0",
"for(int i=0;i<n;i++){\n long a = sc.nextInt(); long b = sc.nextInt();\n if((a*a)+(b*b) <= dist){\n ans++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long a = sc.nextInt(); long b = sc.nextInt();\n if((a*a)+(b*b) <= dist){\n ans++;\n }\n }",
"{\n long a = sc.nextInt(); long b = sc.nextInt();\n if((a*a)+(b*b) <= dist){\n ans++;\n }\n }",
"long a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if((a*a)+(b*b) <= dist){\n ans++;\n }",
"(a*a)+(b*b) <= dist",
"(a*a)+(b*b)",
"(a*a)",
"a",
"a",
"(b*b)",
"b",
"b",
"dist",
"{\n ans++;\n }",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(); long d = sc.nextInt();\n long dist = d*d;\n int ans = 0;\n for(int i=0;i<n;i++){\n long a = sc.nextInt(); long b = sc.nextInt();\n if((a*a)+(b*b) <= dist){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(); long d = sc.nextInt();\n long dist = d*d;\n int ans = 0;\n for(int i=0;i<n;i++){\n long a = sc.nextInt(); long b = sc.nextInt();\n if((a*a)+(b*b) <= dist){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt(); long d = sc.nextInt();
long dist = d*d;
int ans = 0;
for(int i=0;i<n;i++){
long a = sc.nextInt(); long b = sc.nextInt();
if((a*a)+(b*b) <= dist){
ans++;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
0,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
13,
30,
40,
13,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
30,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
4,
18,
13,
13,
29,
4,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
6,
13,
12,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
381,
23
],
[
381,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
43
],
[
43,
44
],
[
43,
45
],
[
26,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
46,
51
],
[
26,
52
],
[
52,
53
],
[
53,
54
],
[
24,
55
],
[
55,
56
],
[
381,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
72,
73
],
[
72,
74
],
[
61,
75
],
[
75,
76
],
[
75,
77
],
[
61,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
90,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
101,
111
],
[
111,
112
],
[
112,
113
],
[
61,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
59,
118
],
[
118,
119
],
[
59,
120
],
[
120,
121
],
[
59,
122
],
[
122,
123
],
[
381,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
124,
128
],
[
128,
129
],
[
128,
130
],
[
124,
132
],
[
132,
133
],
[
124,
134
],
[
134,
135
],
[
124,
136
],
[
136,
137
],
[
124,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
138,
146
],
[
146,
147
],
[
124,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
151,
156
],
[
156,
157
],
[
157,
158
],
[
150,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
167,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
163,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
150,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
124,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
195,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
195,
209
],
[
209,
210
],
[
209,
211
],
[
195,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
216,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
195,
225
],
[
225,
226
],
[
225,
227
],
[
195,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
228,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
239,
240
],
[
239,
241
],
[
234,
242
],
[
242,
243
],
[
243,
244
],
[
233,
245
],
[
245,
246
],
[
245,
247
],
[
233,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
250,
252
],
[
233,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
195,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
124,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
263,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
268,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
263,
277
],
[
277,
278
],
[
277,
279
],
[
263,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
280,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
284,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
263,
293
],
[
293,
294
],
[
293,
295
],
[
263,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
296,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
303,
307
],
[
307,
308
],
[
307,
309
],
[
302,
310
],
[
310,
311
],
[
311,
312
],
[
301,
313
],
[
313,
314
],
[
313,
315
],
[
301,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
318,
320
],
[
301,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
263,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
124,
329
],
[
329,
330
],
[
329,
331
],
[
331,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
332,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
338,
341
],
[
331,
342
],
[
342,
343
],
[
343,
344
],
[
343,
345
],
[
329,
346
],
[
346,
347
],
[
124,
348
],
[
348,
349
],
[
348,
350
],
[
350,
351
],
[
351,
352
],
[
355,
353
],
[
365,
354
],
[
362,
355
],
[
355,
356
],
[
356,
357
],
[
356,
358
],
[
355,
359
],
[
359,
360
],
[
359,
361
],
[
362,
362
],
[
362,
363
],
[
362,
364
],
[
365,
365
],
[
365,
366
],
[
365,
367
],
[
355,
368
],
[
368,
369
],
[
368,
370
],
[
370,
371
],
[
348,
372
],
[
372,
373
],
[
124,
374
],
[
374,
375
],
[
374,
376
],
[
376,
377
],
[
376,
378
],
[
378,
379
],
[
0,
380
],
[
380,
381
],
[
380,
382
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BDistance solver = new BDistance();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BDistance {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n int n = s.nextInt();\n long d = s.nextLong();\n int count = 0;\n d *= d;\n for (int i = 0; i < n; i++) {\n long x = s.nextLong();\n long y = s.nextLong();\n if (x * x + y * y <= d) {\n count++;\n }\n }\n\n out.println(count);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BDistance solver = new BDistance();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BDistance {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n int n = s.nextInt();\n long d = s.nextLong();\n int count = 0;\n d *= d;\n for (int i = 0; i < n; i++) {\n long x = s.nextLong();\n long y = s.nextLong();\n if (x * x + y * y <= d) {\n count++;\n }\n }\n\n out.println(count);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BDistance solver = new BDistance();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BDistance solver = new BDistance();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"FastReader in = new FastReader(inputStream);",
"in",
"new FastReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"BDistance solver = new BDistance();",
"solver",
"new BDistance()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BDistance {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n int n = s.nextInt();\n long d = s.nextLong();\n int count = 0;\n d *= d;\n for (int i = 0; i < n; i++) {\n long x = s.nextLong();\n long y = s.nextLong();\n if (x * x + y * y <= d) {\n count++;\n }\n }\n\n out.println(count);\n }\n\n }",
"BDistance",
"public void solve(int testNumber, FastReader s, PrintWriter out) {\n int n = s.nextInt();\n long d = s.nextLong();\n int count = 0;\n d *= d;\n for (int i = 0; i < n; i++) {\n long x = s.nextLong();\n long y = s.nextLong();\n if (x * x + y * y <= d) {\n count++;\n }\n }\n\n out.println(count);\n }",
"solve",
"{\n int n = s.nextInt();\n long d = s.nextLong();\n int count = 0;\n d *= d;\n for (int i = 0; i < n; i++) {\n long x = s.nextLong();\n long y = s.nextLong();\n if (x * x + y * y <= d) {\n count++;\n }\n }\n\n out.println(count);\n }",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"long d = s.nextLong();",
"d",
"s.nextLong()",
"s.nextLong",
"s",
"int count = 0;",
"count",
"0",
"d *= d",
"d",
"d",
"for (int i = 0; i < n; i++) {\n long x = s.nextLong();\n long y = s.nextLong();\n if (x * x + y * y <= d) {\n count++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long x = s.nextLong();\n long y = s.nextLong();\n if (x * x + y * y <= d) {\n count++;\n }\n }",
"{\n long x = s.nextLong();\n long y = s.nextLong();\n if (x * x + y * y <= d) {\n count++;\n }\n }",
"long x = s.nextLong();",
"x",
"s.nextLong()",
"s.nextLong",
"s",
"long y = s.nextLong();",
"y",
"s.nextLong()",
"s.nextLong",
"s",
"if (x * x + y * y <= d) {\n count++;\n }",
"x * x + y * y <= d",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"d",
"{\n count++;\n }",
"count++",
"count",
"out.println(count)",
"out.println",
"out",
"count",
"int testNumber",
"testNumber",
"FastReader s",
"s",
"PrintWriter out",
"out",
"static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }",
"FastReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private FastReader.SpaceCharFilter filter;",
"filter",
"public FastReader(InputStream stream) {\n this.stream = stream;\n }",
"FastReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextInt",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextLong",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"long res = 0;",
"res",
"0",
"do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"isSpaceChar",
"{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"if (filter != null) {\n return filter.isSpaceChar(c);\n }",
"filter != null",
"filter",
"null",
"{\n return filter.isSpaceChar(c);\n }",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return isWhitespace(c);",
"isWhitespace(c)",
"isWhitespace",
"c",
"int c",
"c",
"public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isWhitespace",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BDistance solver = new BDistance();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BDistance {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n int n = s.nextInt();\n long d = s.nextLong();\n int count = 0;\n d *= d;\n for (int i = 0; i < n; i++) {\n long x = s.nextLong();\n long y = s.nextLong();\n if (x * x + y * y <= d) {\n count++;\n }\n }\n\n out.println(count);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BDistance solver = new BDistance();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BDistance {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n int n = s.nextInt();\n long d = s.nextLong();\n int count = 0;\n d *= d;\n for (int i = 0; i < n; i++) {\n long x = s.nextLong();\n long y = s.nextLong();\n if (x * x + y * y <= d) {\n count++;\n }\n }\n\n out.println(count);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
FastReader in = new FastReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
BDistance solver = new BDistance();
solver.solve(1, in, out);
out.close();
}
static class BDistance {
public void solve(int testNumber, FastReader s, PrintWriter out) {
int n = s.nextInt();
long d = s.nextLong();
int count = 0;
d *= d;
for (int i = 0; i < n; i++) {
long x = s.nextLong();
long y = s.nextLong();
if (x * x + y * y <= d) {
count++;
}
}
out.println(count);
}
}
static class FastReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private FastReader.SpaceCharFilter filter;
public FastReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) {
return -1;
}
}
return buf[curChar++];
}
public int nextInt() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
if (c < '0' || c > '9') {
throw new InputMismatchException();
}
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public long nextLong() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
long res = 0;
do {
if (c < '0' || c > '9') {
throw new InputMismatchException();
}
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public boolean isSpaceChar(int c) {
if (filter != null) {
return filter.isSpaceChar(c);
}
return isWhitespace(c);
}
public static boolean isWhitespace(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
14,
2,
13,
13,
40,
13,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
169,
17
],
[
169,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
169,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
55,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
70,
71
],
[
55,
72
],
[
72,
73
],
[
72,
74
],
[
55,
76
],
[
76,
77
],
[
76,
78
],
[
55,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
111,
112
],
[
55,
113
],
[
113,
114
],
[
113,
115
],
[
55,
116
],
[
116,
117
],
[
116,
118
],
[
55,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
119,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
131,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
55,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
53,
162
],
[
162,
163
],
[
53,
164
],
[
164,
165
],
[
53,
166
],
[
166,
167
],
[
0,
168
],
[
168,
169
],
[
168,
170
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.next());\n Long d = Long.parseLong(in.next());\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = Long.parseLong(in.next());\n y[i] = Long.parseLong(in.next());\n }\n int ans = 0;\n double distance = 0;\n for (int i = 0; i < n; i++) {\n distance = Math.sqrt((x[i] * x[i]) + (y[i] * y[i]));\n// out.println(distance);\n if (distance <= (double) d) ans++;\n }\n // 出力\n out.println(ans);\n\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.next());\n Long d = Long.parseLong(in.next());\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = Long.parseLong(in.next());\n y[i] = Long.parseLong(in.next());\n }\n int ans = 0;\n double distance = 0;\n for (int i = 0; i < n; i++) {\n distance = Math.sqrt((x[i] * x[i]) + (y[i] * y[i]));\n// out.println(distance);\n if (distance <= (double) d) ans++;\n }\n // 出力\n out.println(ans);\n\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"B solver = new B();",
"solver",
"new B()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.next());\n Long d = Long.parseLong(in.next());\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = Long.parseLong(in.next());\n y[i] = Long.parseLong(in.next());\n }\n int ans = 0;\n double distance = 0;\n for (int i = 0; i < n; i++) {\n distance = Math.sqrt((x[i] * x[i]) + (y[i] * y[i]));\n// out.println(distance);\n if (distance <= (double) d) ans++;\n }\n // 出力\n out.println(ans);\n\n }\n\n }",
"B",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.next());\n Long d = Long.parseLong(in.next());\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = Long.parseLong(in.next());\n y[i] = Long.parseLong(in.next());\n }\n int ans = 0;\n double distance = 0;\n for (int i = 0; i < n; i++) {\n distance = Math.sqrt((x[i] * x[i]) + (y[i] * y[i]));\n// out.println(distance);\n if (distance <= (double) d) ans++;\n }\n // 出力\n out.println(ans);\n\n }",
"solve",
"{\n // 入力\n int n = Integer.parseInt(in.next());\n Long d = Long.parseLong(in.next());\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = Long.parseLong(in.next());\n y[i] = Long.parseLong(in.next());\n }\n int ans = 0;\n double distance = 0;\n for (int i = 0; i < n; i++) {\n distance = Math.sqrt((x[i] * x[i]) + (y[i] * y[i]));\n// out.println(distance);\n if (distance <= (double) d) ans++;\n }\n // 出力\n out.println(ans);\n\n }",
"int n = Integer.parseInt(in.next());",
"n",
"Integer.parseInt(in.next())",
"Integer.parseInt",
"Integer",
"in.next()",
"in.next",
"in",
"Long d = Long.parseLong(in.next());",
"d",
"Long.parseLong(in.next())",
"Long.parseLong",
"Long",
"in.next()",
"in.next",
"in",
"long[] x = new long[n];",
"x",
"new long[n]",
"n",
"long[] y = new long[n];",
"y",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n x[i] = Long.parseLong(in.next());\n y[i] = Long.parseLong(in.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n x[i] = Long.parseLong(in.next());\n y[i] = Long.parseLong(in.next());\n }",
"{\n x[i] = Long.parseLong(in.next());\n y[i] = Long.parseLong(in.next());\n }",
"x[i] = Long.parseLong(in.next())",
"x[i]",
"x",
"i",
"Long.parseLong(in.next())",
"Long.parseLong",
"Long",
"in.next()",
"in.next",
"in",
"y[i] = Long.parseLong(in.next())",
"y[i]",
"y",
"i",
"Long.parseLong(in.next())",
"Long.parseLong",
"Long",
"in.next()",
"in.next",
"in",
"int ans = 0;",
"ans",
"0",
"double distance = 0;",
"distance",
"0",
"for (int i = 0; i < n; i++) {\n distance = Math.sqrt((x[i] * x[i]) + (y[i] * y[i]));\n// out.println(distance);\n if (distance <= (double) d) ans++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n distance = Math.sqrt((x[i] * x[i]) + (y[i] * y[i]));\n// out.println(distance);\n if (distance <= (double) d) ans++;\n }",
"{\n distance = Math.sqrt((x[i] * x[i]) + (y[i] * y[i]));\n// out.println(distance);\n if (distance <= (double) d) ans++;\n }",
"distance = Math.sqrt((x[i] * x[i]) + (y[i] * y[i]))",
"distance",
"Math.sqrt((x[i] * x[i]) + (y[i] * y[i]))",
"Math.sqrt",
"Math",
"(x[i] * x[i]) + (y[i] * y[i])",
"(x[i] * x[i])",
"x[i]",
"x",
"i",
"x[i]",
"x",
"i",
"(y[i] * y[i])",
"y[i]",
"y",
"i",
"y[i]",
"y",
"i",
"if (distance <= (double) d) ans++;",
"distance <= (double) d",
"distance",
"(double) d",
"ans++",
"ans",
"out.println(ans)",
"out.println",
"out",
"ans",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.next());\n Long d = Long.parseLong(in.next());\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = Long.parseLong(in.next());\n y[i] = Long.parseLong(in.next());\n }\n int ans = 0;\n double distance = 0;\n for (int i = 0; i < n; i++) {\n distance = Math.sqrt((x[i] * x[i]) + (y[i] * y[i]));\n// out.println(distance);\n if (distance <= (double) d) ans++;\n }\n // 出力\n out.println(ans);\n\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.next());\n Long d = Long.parseLong(in.next());\n long[] x = new long[n];\n long[] y = new long[n];\n for (int i = 0; i < n; i++) {\n x[i] = Long.parseLong(in.next());\n y[i] = Long.parseLong(in.next());\n }\n int ans = 0;\n double distance = 0;\n for (int i = 0; i < n; i++) {\n distance = Math.sqrt((x[i] * x[i]) + (y[i] * y[i]));\n// out.println(distance);\n if (distance <= (double) d) ans++;\n }\n // 出力\n out.println(ans);\n\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
B solver = new B();
solver.solve(1, in, out);
out.close();
}
static class B {
public void solve(int testNumber, Scanner in, PrintWriter out) {
// 入力
int n = Integer.parseInt(in.next());
Long d = Long.parseLong(in.next());
long[] x = new long[n];
long[] y = new long[n];
for (int i = 0; i < n; i++) {
x[i] = Long.parseLong(in.next());
y[i] = Long.parseLong(in.next());
}
int ans = 0;
double distance = 0;
for (int i = 0; i < n; i++) {
distance = Math.sqrt((x[i] * x[i]) + (y[i] * y[i]));
// out.println(distance);
if (distance <= (double) d) ans++;
}
// 出力
out.println(ans);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
14,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
79,
5
],
[
79,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
37,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
]
| [
"import java.util.Scanner;\npublic class Main\n{\n public static void main (String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int p = sc.nextInt();\n int q = sc.nextInt();\n int result = 0;\n \n for(int i = 0; i < p; i++)\n {\n double x1 = sc.nextDouble();\n double x2 = sc.nextDouble();\n double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));\n if(dis <= q)\n result++;\n }\n System.out.println(result);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n public static void main (String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int p = sc.nextInt();\n int q = sc.nextInt();\n int result = 0;\n \n for(int i = 0; i < p; i++)\n {\n double x1 = sc.nextDouble();\n double x2 = sc.nextDouble();\n double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));\n if(dis <= q)\n result++;\n }\n System.out.println(result);\n }\n}",
"Main",
"public static void main (String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int p = sc.nextInt();\n int q = sc.nextInt();\n int result = 0;\n \n for(int i = 0; i < p; i++)\n {\n double x1 = sc.nextDouble();\n double x2 = sc.nextDouble();\n double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));\n if(dis <= q)\n result++;\n }\n System.out.println(result);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int p = sc.nextInt();\n int q = sc.nextInt();\n int result = 0;\n \n for(int i = 0; i < p; i++)\n {\n double x1 = sc.nextDouble();\n double x2 = sc.nextDouble();\n double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));\n if(dis <= q)\n result++;\n }\n System.out.println(result);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int p = sc.nextInt();",
"p",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int q = sc.nextInt();",
"q",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int result = 0;",
"result",
"0",
"for(int i = 0; i < p; i++)\n {\n double x1 = sc.nextDouble();\n double x2 = sc.nextDouble();\n double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));\n if(dis <= q)\n result++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < p",
"i",
"p",
"i++",
"i++",
"i",
"{\n double x1 = sc.nextDouble();\n double x2 = sc.nextDouble();\n double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));\n if(dis <= q)\n result++;\n }",
"{\n double x1 = sc.nextDouble();\n double x2 = sc.nextDouble();\n double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));\n if(dis <= q)\n result++;\n }",
"double x1 = sc.nextDouble();",
"x1",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double x2 = sc.nextDouble();",
"x2",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));",
"dis",
"Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2))",
"Math.sqrt",
"Math",
"Math.pow(x1,2) + Math.pow(x2,2)",
"Math.pow(x1,2)",
"Math.pow",
"Math",
"x1",
"2",
"Math.pow(x2,2)",
"Math.pow",
"Math",
"x2",
"2",
"if(dis <= q)\n result++;",
"dis <= q",
"dis",
"q",
"result++",
"result",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main\n{\n public static void main (String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int p = sc.nextInt();\n int q = sc.nextInt();\n int result = 0;\n \n for(int i = 0; i < p; i++)\n {\n double x1 = sc.nextDouble();\n double x2 = sc.nextDouble();\n double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));\n if(dis <= q)\n result++;\n }\n System.out.println(result);\n }\n}",
"public class Main\n{\n public static void main (String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int p = sc.nextInt();\n int q = sc.nextInt();\n int result = 0;\n \n for(int i = 0; i < p; i++)\n {\n double x1 = sc.nextDouble();\n double x2 = sc.nextDouble();\n double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));\n if(dis <= q)\n result++;\n }\n System.out.println(result);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main
{
public static void main (String[] args)
{
Scanner sc = new Scanner(System.in);
int p = sc.nextInt();
int q = sc.nextInt();
int result = 0;
for(int i = 0; i < p; i++)
{
double x1 = sc.nextDouble();
double x2 = sc.nextDouble();
double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
if(dis <= q)
result++;
}
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
77,
5
],
[
77,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
37,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
37,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
63,
65
],
[
54,
66
],
[
66,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
6,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int N = s.nextInt();\n long D = s.nextInt();\n int count = 0;\n for (int i = 0; i < N; i++) {\n long x = Math.abs(s.nextInt());\n long y = Math.abs(s.nextInt());\n if (x * x + y * y <= D * D) count++;\n }\n System.out.println(count);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int N = s.nextInt();\n long D = s.nextInt();\n int count = 0;\n for (int i = 0; i < N; i++) {\n long x = Math.abs(s.nextInt());\n long y = Math.abs(s.nextInt());\n if (x * x + y * y <= D * D) count++;\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int N = s.nextInt();\n long D = s.nextInt();\n int count = 0;\n for (int i = 0; i < N; i++) {\n long x = Math.abs(s.nextInt());\n long y = Math.abs(s.nextInt());\n if (x * x + y * y <= D * D) count++;\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int N = s.nextInt();\n long D = s.nextInt();\n int count = 0;\n for (int i = 0; i < N; i++) {\n long x = Math.abs(s.nextInt());\n long y = Math.abs(s.nextInt());\n if (x * x + y * y <= D * D) count++;\n }\n System.out.println(count);\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int N = s.nextInt();",
"N",
"s.nextInt()",
"s.nextInt",
"s",
"long D = s.nextInt();",
"D",
"s.nextInt()",
"s.nextInt",
"s",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < N; i++) {\n long x = Math.abs(s.nextInt());\n long y = Math.abs(s.nextInt());\n if (x * x + y * y <= D * D) count++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n long x = Math.abs(s.nextInt());\n long y = Math.abs(s.nextInt());\n if (x * x + y * y <= D * D) count++;\n }",
"{\n long x = Math.abs(s.nextInt());\n long y = Math.abs(s.nextInt());\n if (x * x + y * y <= D * D) count++;\n }",
"long x = Math.abs(s.nextInt());",
"x",
"Math.abs(s.nextInt())",
"Math.abs",
"Math",
"s.nextInt()",
"s.nextInt",
"s",
"long y = Math.abs(s.nextInt());",
"y",
"Math.abs(s.nextInt())",
"Math.abs",
"Math",
"s.nextInt()",
"s.nextInt",
"s",
"if (x * x + y * y <= D * D) count++;",
"x * x + y * y <= D * D",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"D * D",
"D",
"D",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int N = s.nextInt();\n long D = s.nextInt();\n int count = 0;\n for (int i = 0; i < N; i++) {\n long x = Math.abs(s.nextInt());\n long y = Math.abs(s.nextInt());\n if (x * x + y * y <= D * D) count++;\n }\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int N = s.nextInt();\n long D = s.nextInt();\n int count = 0;\n for (int i = 0; i < N; i++) {\n long x = Math.abs(s.nextInt());\n long y = Math.abs(s.nextInt());\n if (x * x + y * y <= D * D) count++;\n }\n System.out.println(count);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int N = s.nextInt();
long D = s.nextInt();
int count = 0;
for (int i = 0; i < N; i++) {
long x = Math.abs(s.nextInt());
long y = Math.abs(s.nextInt());
if (x * x + y * y <= D * D) count++;
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
4,
18,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
30,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
4,
18,
13,
13,
29,
4,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
6,
13,
12,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
34,
35
],
[
34,
36
],
[
0,
37
],
[
351,
38
],
[
351,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
41,
52
],
[
52,
53
],
[
52,
54
],
[
41,
55
],
[
55,
56
],
[
55,
57
],
[
41,
58
],
[
58,
59
],
[
58,
60
],
[
41,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
61,
65
],
[
61,
66
],
[
41,
67
],
[
67,
68
],
[
68,
69
],
[
39,
70
],
[
70,
71
],
[
351,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
76,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
87,
88
],
[
87,
89
],
[
76,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
95,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
115,
117
],
[
107,
118
],
[
106,
119
],
[
119,
120
],
[
120,
121
],
[
76,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
74,
128
],
[
128,
129
],
[
74,
130
],
[
130,
131
],
[
74,
132
],
[
132,
133
],
[
351,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
138,
144
],
[
144,
145
],
[
134,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
146,
154
],
[
154,
155
],
[
134,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
351,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
162,
166
],
[
166,
167
],
[
166,
168
],
[
162,
170
],
[
170,
171
],
[
162,
172
],
[
172,
173
],
[
162,
174
],
[
174,
175
],
[
162,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
176,
184
],
[
184,
185
],
[
162,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
189,
194
],
[
194,
195
],
[
195,
196
],
[
188,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
205,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
214,
217
],
[
201,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
188,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
162,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
233,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
238,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
233,
247
],
[
247,
248
],
[
247,
249
],
[
233,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
254,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
233,
263
],
[
263,
264
],
[
263,
265
],
[
233,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
266,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
277
],
[
277,
278
],
[
277,
279
],
[
272,
280
],
[
280,
281
],
[
281,
282
],
[
271,
283
],
[
283,
284
],
[
283,
285
],
[
271,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
288,
290
],
[
271,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
233,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
162,
299
],
[
299,
300
],
[
299,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
302,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
308,
311
],
[
301,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
299,
316
],
[
316,
317
],
[
162,
318
],
[
318,
319
],
[
318,
320
],
[
320,
321
],
[
321,
322
],
[
325,
323
],
[
335,
324
],
[
332,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
329,
330
],
[
329,
331
],
[
332,
332
],
[
332,
333
],
[
332,
334
],
[
335,
335
],
[
335,
336
],
[
335,
337
],
[
325,
338
],
[
338,
339
],
[
338,
340
],
[
340,
341
],
[
318,
342
],
[
342,
343
],
[
162,
344
],
[
344,
345
],
[
344,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
0,
350
],
[
350,
351
],
[
350,
352
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.BufferedWriter;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author srikanth\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n abc174_b solver = new abc174_b();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc174_b {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n int d = in.nextInt();\n int count = 0;\n\n while (n-- > 0) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n if (Math.sqrt(x * x + y * y) <= d) {\n count++;\n }\n }\n System.out.println(count);\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n// System.out.println(\"numchars \"+numChars);\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintStream;",
"PrintStream",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.Writer;",
"Writer",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n abc174_b solver = new abc174_b();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc174_b {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n int d = in.nextInt();\n int count = 0;\n\n while (n-- > 0) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n if (Math.sqrt(x * x + y * y) <= d) {\n count++;\n }\n }\n System.out.println(count);\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n// System.out.println(\"numchars \"+numChars);\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n abc174_b solver = new abc174_b();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n abc174_b solver = new abc174_b();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"OutputWriter out = new OutputWriter(outputStream);",
"out",
"new OutputWriter(outputStream)",
"abc174_b solver = new abc174_b();",
"solver",
"new abc174_b()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class abc174_b {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n int d = in.nextInt();\n int count = 0;\n\n while (n-- > 0) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n if (Math.sqrt(x * x + y * y) <= d) {\n count++;\n }\n }\n System.out.println(count);\n }\n\n }",
"abc174_b",
"public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n int d = in.nextInt();\n int count = 0;\n\n while (n-- > 0) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n if (Math.sqrt(x * x + y * y) <= d) {\n count++;\n }\n }\n System.out.println(count);\n }",
"solve",
"{\n int n = in.nextInt();\n int d = in.nextInt();\n int count = 0;\n\n while (n-- > 0) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n if (Math.sqrt(x * x + y * y) <= d) {\n count++;\n }\n }\n System.out.println(count);\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int d = in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"int count = 0;",
"count",
"0",
"while (n-- > 0) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n if (Math.sqrt(x * x + y * y) <= d) {\n count++;\n }\n }",
"n-- > 0",
"n--",
"n",
"0",
"{\n double x = in.nextInt();\n double y = in.nextInt();\n\n if (Math.sqrt(x * x + y * y) <= d) {\n count++;\n }\n }",
"double x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"double y = in.nextInt();",
"y",
"in.nextInt()",
"in.nextInt",
"in",
"if (Math.sqrt(x * x + y * y) <= d) {\n count++;\n }",
"Math.sqrt(x * x + y * y) <= d",
"Math.sqrt(x * x + y * y)",
"Math.sqrt",
"Math",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"d",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"OutputWriter out",
"out",
"static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n }",
"OutputWriter",
"private final PrintWriter writer;",
"writer",
"public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"OutputWriter",
"{\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"writer",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"OutputStream outputStream",
"outputStream",
"public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }",
"OutputWriter",
"{\n this.writer = new PrintWriter(writer);\n }",
"this.writer = new PrintWriter(writer)",
"this.writer",
"this",
"this.writer",
"new PrintWriter(writer)",
"Writer writer",
"writer",
"public void close() {\n writer.close();\n }",
"close",
"{\n writer.close();\n }",
"writer.close()",
"writer.close",
"writer",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n// System.out.println(\"numchars \"+numChars);\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private InputReader.SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n// System.out.println(\"numchars \"+numChars);\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n// System.out.println(\"numchars \"+numChars);\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextInt",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"isSpaceChar",
"{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"if (filter != null) {\n return filter.isSpaceChar(c);\n }",
"filter != null",
"filter",
"null",
"{\n return filter.isSpaceChar(c);\n }",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return isWhitespace(c);",
"isWhitespace(c)",
"isWhitespace",
"c",
"int c",
"c",
"public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isWhitespace",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n abc174_b solver = new abc174_b();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc174_b {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n int d = in.nextInt();\n int count = 0;\n\n while (n-- > 0) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n if (Math.sqrt(x * x + y * y) <= d) {\n count++;\n }\n }\n System.out.println(count);\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n// System.out.println(\"numchars \"+numChars);\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n abc174_b solver = new abc174_b();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc174_b {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n int d = in.nextInt();\n int count = 0;\n\n while (n-- > 0) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n if (Math.sqrt(x * x + y * y) <= d) {\n count++;\n }\n }\n System.out.println(count);\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n// System.out.println(\"numchars \"+numChars);\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author srikanth
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
OutputWriter out = new OutputWriter(outputStream);
abc174_b solver = new abc174_b();
solver.solve(1, in, out);
out.close();
}
static class abc174_b {
public void solve(int testNumber, InputReader in, OutputWriter out) {
int n = in.nextInt();
int d = in.nextInt();
int count = 0;
while (n-- > 0) {
double x = in.nextInt();
double y = in.nextInt();
if (Math.sqrt(x * x + y * y) <= d) {
count++;
}
}
System.out.println(count);
}
}
static class OutputWriter {
private final PrintWriter writer;
public OutputWriter(OutputStream outputStream) {
writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
}
public OutputWriter(Writer writer) {
this.writer = new PrintWriter(writer);
}
public void close() {
writer.close();
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private InputReader.SpaceCharFilter filter;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
// System.out.println("numchars "+numChars);
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) {
return -1;
}
}
return buf[curChar++];
}
public int nextInt() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
if (c < '0' || c > '9') {
throw new InputMismatchException();
}
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public boolean isSpaceChar(int c) {
if (filter != null) {
return filter.isSpaceChar(c);
}
return isWhitespace(c);
}
public static boolean isWhitespace(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
78,
8
],
[
78,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
60,
62
],
[
51,
63
],
[
63,
64
],
[
64,
65
],
[
11,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
11,
72
],
[
72,
73
],
[
73,
74
],
[
9,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
]
| [
"import java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int ans = 0;\n int n = sc.nextInt();\n long d = sc.nextInt();\n for (int cnt = 0; cnt < n; cnt++) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n if (x * x + y * y <= d * d) {\n ans++;\n }\n }\n System.out.println(ans);\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int ans = 0;\n int n = sc.nextInt();\n long d = sc.nextInt();\n for (int cnt = 0; cnt < n; cnt++) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n if (x * x + y * y <= d * d) {\n ans++;\n }\n }\n System.out.println(ans);\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int ans = 0;\n int n = sc.nextInt();\n long d = sc.nextInt();\n for (int cnt = 0; cnt < n; cnt++) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n if (x * x + y * y <= d * d) {\n ans++;\n }\n }\n System.out.println(ans);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int ans = 0;\n int n = sc.nextInt();\n long d = sc.nextInt();\n for (int cnt = 0; cnt < n; cnt++) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n if (x * x + y * y <= d * d) {\n ans++;\n }\n }\n System.out.println(ans);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int ans = 0;",
"ans",
"0",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int cnt = 0; cnt < n; cnt++) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n if (x * x + y * y <= d * d) {\n ans++;\n }\n }",
"int cnt = 0;",
"int cnt = 0;",
"cnt",
"0",
"cnt < n",
"cnt",
"n",
"cnt++",
"cnt++",
"cnt",
"{\n long x = sc.nextInt();\n long y = sc.nextInt();\n if (x * x + y * y <= d * d) {\n ans++;\n }\n }",
"{\n long x = sc.nextInt();\n long y = sc.nextInt();\n if (x * x + y * y <= d * d) {\n ans++;\n }\n }",
"long x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (x * x + y * y <= d * d) {\n ans++;\n }",
"x * x + y * y <= d * d",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"d * d",
"d",
"d",
"{\n ans++;\n }",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int ans = 0;\n int n = sc.nextInt();\n long d = sc.nextInt();\n for (int cnt = 0; cnt < n; cnt++) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n if (x * x + y * y <= d * d) {\n ans++;\n }\n }\n System.out.println(ans);\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int ans = 0;\n int n = sc.nextInt();\n long d = sc.nextInt();\n for (int cnt = 0; cnt < n; cnt++) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n if (x * x + y * y <= d * d) {\n ans++;\n }\n }\n System.out.println(ans);\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int ans = 0;
int n = sc.nextInt();
long d = sc.nextInt();
for (int cnt = 0; cnt < n; cnt++) {
long x = sc.nextInt();
long y = sc.nextInt();
if (x * x + y * y <= d * d) {
ans++;
}
}
System.out.println(ans);
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
14,
2,
13,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
60,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
75,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
93,
100
],
[
100,
101
],
[
101,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
6,
109
],
[
109,
110
]
]
| [
"import java.util.*;\nclass Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tLong d = sc.nextLong();\n\t\tLong[] x = new Long[n];\n\t\tLong[] y = new Long[n];\n\t\tint cnt = 0;\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i] = sc.nextLong();\n\t\t\ty[i] = sc.nextLong();\n\t\t}\n\n\t\tlong l = 0l;\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tl = (x[i] * x[i]) + (y[i] * y[i]); \n\t\t\tif(d >= Math.sqrt(l)){\n\t\t\t\tcnt++;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(cnt);\n\t\t}\n\t}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tLong d = sc.nextLong();\n\t\tLong[] x = new Long[n];\n\t\tLong[] y = new Long[n];\n\t\tint cnt = 0;\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i] = sc.nextLong();\n\t\t\ty[i] = sc.nextLong();\n\t\t}\n\n\t\tlong l = 0l;\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tl = (x[i] * x[i]) + (y[i] * y[i]); \n\t\t\tif(d >= Math.sqrt(l)){\n\t\t\t\tcnt++;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(cnt);\n\t\t}\n\t}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tLong d = sc.nextLong();\n\t\tLong[] x = new Long[n];\n\t\tLong[] y = new Long[n];\n\t\tint cnt = 0;\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i] = sc.nextLong();\n\t\t\ty[i] = sc.nextLong();\n\t\t}\n\n\t\tlong l = 0l;\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tl = (x[i] * x[i]) + (y[i] * y[i]); \n\t\t\tif(d >= Math.sqrt(l)){\n\t\t\t\tcnt++;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(cnt);\n\t\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tLong d = sc.nextLong();\n\t\tLong[] x = new Long[n];\n\t\tLong[] y = new Long[n];\n\t\tint cnt = 0;\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i] = sc.nextLong();\n\t\t\ty[i] = sc.nextLong();\n\t\t}\n\n\t\tlong l = 0l;\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tl = (x[i] * x[i]) + (y[i] * y[i]); \n\t\t\tif(d >= Math.sqrt(l)){\n\t\t\t\tcnt++;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(cnt);\n\t\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"Long[] x = new Long[n];",
"x",
"new Long[n]",
"n",
"Long[] y = new Long[n];",
"y",
"new Long[n]",
"n",
"int cnt = 0;",
"cnt",
"0",
"for(int i=0;i<n;i++){\n\t\t\tx[i] = sc.nextLong();\n\t\t\ty[i] = sc.nextLong();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tx[i] = sc.nextLong();\n\t\t\ty[i] = sc.nextLong();\n\t\t}",
"{\n\t\t\tx[i] = sc.nextLong();\n\t\t\ty[i] = sc.nextLong();\n\t\t}",
"x[i] = sc.nextLong()",
"x[i]",
"x",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"y[i] = sc.nextLong()",
"y[i]",
"y",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long l = 0l;",
"l",
"0l",
"for(int i=0;i<n;i++){\n\t\t\tl = (x[i] * x[i]) + (y[i] * y[i]); \n\t\t\tif(d >= Math.sqrt(l)){\n\t\t\t\tcnt++;\n\t\t\t\t\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tl = (x[i] * x[i]) + (y[i] * y[i]); \n\t\t\tif(d >= Math.sqrt(l)){\n\t\t\t\tcnt++;\n\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tl = (x[i] * x[i]) + (y[i] * y[i]); \n\t\t\tif(d >= Math.sqrt(l)){\n\t\t\t\tcnt++;\n\t\t\t\t\n\t\t\t}\n\t\t}",
"l = (x[i] * x[i]) + (y[i] * y[i])",
"l",
"(x[i] * x[i]) + (y[i] * y[i])",
"(x[i] * x[i])",
"x[i]",
"x",
"i",
"x[i]",
"x",
"i",
"(y[i] * y[i])",
"y[i]",
"y",
"i",
"y[i]",
"y",
"i",
"if(d >= Math.sqrt(l)){\n\t\t\t\tcnt++;\n\t\t\t\t\n\t\t\t}",
"d >= Math.sqrt(l)",
"d",
"Math.sqrt(l)",
"Math.sqrt",
"Math",
"l",
"{\n\t\t\t\tcnt++;\n\t\t\t\t\n\t\t\t}",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args"
]
| import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
Long d = sc.nextLong();
Long[] x = new Long[n];
Long[] y = new Long[n];
int cnt = 0;
for(int i=0;i<n;i++){
x[i] = sc.nextLong();
y[i] = sc.nextLong();
}
long l = 0l;
for(int i=0;i<n;i++){
l = (x[i] * x[i]) + (y[i] * y[i]);
if(d >= Math.sqrt(l)){
cnt++;
}
}
System.out.println(cnt);
}
} |
[
7,
6,
12,
13,
30,
29,
2,
18,
13,
13,
18,
13,
13,
23,
13,
23,
13,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
2,
13,
13,
2,
13,
4,
13,
2,
13,
13,
29,
17,
29,
17,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
40,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
41,
13,
4,
13,
13,
2,
13,
17,
41,
13,
2,
2,
13,
13,
13,
14,
2,
2,
13,
17,
17,
29,
13,
29,
2,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
13,
29,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
23,
13,
12,
13,
30,
42,
40,
4,
18,
13,
30,
38,
5,
13,
30,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
6,
13,
12,
13,
30,
4,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
13,
2,
18,
13,
13,
17,
4,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
13,
2,
18,
13,
13,
17,
4,
13,
23,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
2,
3
],
[
2,
4
],
[
4,
5
],
[
5,
6
],
[
6,
7
],
[
7,
8
],
[
7,
9
],
[
6,
10
],
[
10,
11
],
[
10,
12
],
[
2,
13
],
[
13,
14
],
[
2,
15
],
[
15,
16
],
[
0,
17
],
[
17,
18
],
[
17,
19
],
[
0,
20
],
[
20,
21
],
[
20,
22
],
[
0,
23
],
[
458,
24
],
[
458,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
458,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
32,
39
],
[
39,
40
],
[
39,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
30,
45
],
[
45,
46
],
[
458,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
51,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
50,
64
],
[
64,
65
],
[
49,
66
],
[
66,
67
],
[
47,
68
],
[
68,
69
],
[
47,
70
],
[
70,
71
],
[
47,
72
],
[
72,
73
],
[
458,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
78,
83
],
[
83,
84
],
[
74,
85
],
[
85,
86
],
[
458,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
91,
96
],
[
87,
97
],
[
97,
98
],
[
87,
99
],
[
99,
100
],
[
458,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
103,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
112,
115
],
[
115,
116
],
[
115,
117
],
[
103,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
103,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
125,
131
],
[
131,
132
],
[
103,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
101,
139
],
[
139,
140
],
[
101,
141
],
[
141,
142
],
[
458,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
149,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
145,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
145,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
168,
170
],
[
161,
171
],
[
171,
172
],
[
172,
173
],
[
161,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
143,
183
],
[
183,
184
],
[
458,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
197,
198
],
[
197,
199
],
[
192,
200
],
[
200,
201
],
[
201,
202
],
[
192,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
187,
209
],
[
209,
210
],
[
185,
211
],
[
211,
212
],
[
185,
213
],
[
213,
214
],
[
458,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
215,
219
],
[
219,
220
],
[
215,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
224,
228
],
[
223,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
221,
234
],
[
234,
235
],
[
221,
236
],
[
236,
237
],
[
215,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
244,
245
],
[
245,
246
],
[
244,
247
],
[
244,
248
],
[
240,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
249,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
249,
259
],
[
259,
260
],
[
260,
261
],
[
249,
262
],
[
263,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
264,
268
],
[
268,
269
],
[
269,
270
],
[
268,
271
],
[
238,
272
],
[
272,
273
],
[
458,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
274,
278
],
[
278,
279
],
[
274,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
286,
287
],
[
286,
288
],
[
280,
289
],
[
289,
290
],
[
274,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
294,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
300,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
293,
308
],
[
308,
309
],
[
309,
310
],
[
310,
311
],
[
274,
312
],
[
312,
313
],
[
312,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
316,
319
],
[
319,
320
],
[
274,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
325,
328
],
[
328,
329
],
[
274,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
332,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
339,
341
],
[
337,
342
],
[
342,
343
],
[
342,
344
],
[
337,
345
],
[
345,
346
],
[
346,
347
],
[
337,
348
],
[
348,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
349,
353
],
[
353,
354
],
[
332,
355
],
[
355,
356
],
[
330,
357
],
[
357,
358
],
[
274,
359
],
[
359,
360
],
[
359,
361
],
[
361,
362
],
[
362,
363
],
[
362,
364
],
[
361,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
366,
371
],
[
371,
372
],
[
371,
373
],
[
366,
374
],
[
374,
375
],
[
375,
376
],
[
366,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
378,
382
],
[
382,
383
],
[
361,
384
],
[
384,
385
],
[
359,
386
],
[
386,
387
],
[
458,
388
],
[
388,
389
],
[
388,
390
],
[
390,
391
],
[
390,
392
],
[
392,
393
],
[
393,
394
],
[
393,
395
],
[
390,
396
],
[
396,
397
],
[
388,
398
],
[
398,
399
],
[
398,
400
],
[
400,
401
],
[
401,
402
],
[
402,
403
],
[
403,
404
],
[
403,
405
],
[
401,
406
],
[
406,
407
],
[
406,
408
],
[
408,
409
],
[
408,
410
],
[
401,
411
],
[
411,
412
],
[
412,
413
],
[
401,
414
],
[
415,
415
],
[
415,
416
],
[
416,
417
],
[
416,
418
],
[
418,
419
],
[
419,
420
],
[
419,
421
],
[
418,
422
],
[
400,
423
],
[
423,
424
],
[
398,
425
],
[
425,
426
],
[
388,
427
],
[
427,
428
],
[
427,
429
],
[
429,
430
],
[
430,
431
],
[
431,
432
],
[
432,
433
],
[
432,
434
],
[
430,
435
],
[
435,
436
],
[
435,
437
],
[
437,
438
],
[
437,
439
],
[
430,
440
],
[
440,
441
],
[
441,
442
],
[
430,
443
],
[
444,
444
],
[
444,
445
],
[
445,
446
],
[
445,
447
],
[
447,
448
],
[
448,
449
],
[
448,
450
],
[
447,
451
],
[
429,
452
],
[
452,
453
],
[
427,
454
],
[
454,
455
],
[
388,
456
],
[
0,
457
],
[
457,
458
],
[
457,
459
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main{\n\t\n\tstatic long mod=(long)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint n=in.nextInt();\n\t\t\tint d=in.nextInt();\n\t\t\tint count=0;\n\t\t\tfor(int i=0; i<n; i++) {\n\t\t\t\tint x=in.nextInt();\n\t\t\t\tint y=in.nextInt();\n\t\t\t\tif((long)x*x+(long)y*y<=(long)d*d) count++;\n\t\t\t}\n\t\t\tout.println(count);\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\tstatic boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t}",
"public int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}",
"compare",
"{\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}",
"return p1.u-p2.u;",
"p1.u-p2.u",
"p1.u",
"p1",
"p1.u",
"p2.u",
"p2",
"p2.u",
"Pair p1",
"p1",
"Pair p2",
"p2",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\t\n\tstatic long mod=(long)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint n=in.nextInt();\n\t\t\tint d=in.nextInt();\n\t\t\tint count=0;\n\t\t\tfor(int i=0; i<n; i++) {\n\t\t\t\tint x=in.nextInt();\n\t\t\t\tint y=in.nextInt();\n\t\t\t\tif((long)x*x+(long)y*y<=(long)d*d) count++;\n\t\t\t}\n\t\t\tout.println(count);\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\tstatic boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"Main",
"static long mod=(long)1e9+7;",
"mod",
"(long)1e9+7",
"(long)1e9",
"7",
"public static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint n=in.nextInt();\n\t\t\tint d=in.nextInt();\n\t\t\tint count=0;\n\t\t\tfor(int i=0; i<n; i++) {\n\t\t\t\tint x=in.nextInt();\n\t\t\t\tint y=in.nextInt();\n\t\t\t\tif((long)x*x+(long)y*y<=(long)d*d) count++;\n\t\t\t}\n\t\t\tout.println(count);\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}",
"main",
"{\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint n=in.nextInt();\n\t\t\tint d=in.nextInt();\n\t\t\tint count=0;\n\t\t\tfor(int i=0; i<n; i++) {\n\t\t\t\tint x=in.nextInt();\n\t\t\t\tint y=in.nextInt();\n\t\t\t\tif((long)x*x+(long)y*y<=(long)d*d) count++;\n\t\t\t}\n\t\t\tout.println(count);\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}",
"Writer out=new Writer(System.out);",
"out",
"new Writer(System.out)",
"Reader in=new Reader(System.in);",
"in",
"new Reader(System.in)",
"int ts=1;",
"ts",
"1",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}",
"tri",
"{\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}",
"if(c<a+b && c>abs(a-b)) return true;",
"c<a+b && c>abs(a-b)",
"c<a+b",
"c",
"a+b",
"a",
"b",
"c>abs(a-b)",
"c",
"abs(a-b)",
"abs",
"a-b",
"a",
"b",
"return true;",
"true",
"return false;",
"false",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}",
"abs",
"{\n\t\treturn a>0 ? a : -a;\n\t}",
"return a>0 ? a : -a;",
"a>0 ? a : -a",
"a>0",
"a",
"0",
"a",
"-a",
"a",
"int a",
"a",
"static int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}",
"max",
"{\n\t\treturn a>b ? a : b;\n\t}",
"return a>b ? a : b;",
"a>b ? a : b",
"a>b",
"a",
"b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}",
"pow",
"{\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}",
"if(m==0) return 1;",
"m==0",
"m",
"0",
"return 1;",
"1",
"int temp=pow(n,m/2);",
"temp",
"pow(n,m/2)",
"pow",
"n",
"m/2",
"m",
"2",
"long res=(((long)temp*temp)%mod);",
"res",
"(((long)temp*temp)%mod)",
"((long)temp*temp)",
"(long)temp",
"temp",
"mod",
"if(m%2==0) return (int)res;",
"m%2==0",
"m%2",
"m",
"2",
"0",
"return (int)res;",
"(int)res",
"return (int)((res*n)%mod);",
"(int)((res*n)%mod)",
"(res*n)",
"res",
"n",
"mod",
"int n",
"n",
"int m",
"m",
"static void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}",
"sort",
"{\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}",
"ArrayList<Integer> list=new ArrayList<>();",
"list",
"new ArrayList<>()",
"for (int i:a) list.add(i);",
"int i",
"a",
"list.add(i);",
"list.add(i)",
"list.add",
"list",
"i",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"for (int i=0; i<a.length; i++) a[i]=list.get(i);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i]=list.get(i);",
"a[i]=list.get(i)",
"a[i]",
"a",
"i",
"list.get(i)",
"list.get",
"list",
"i",
"int[] a",
"a",
"static int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}",
"array",
"{\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}",
"int a[]=new int[n];",
"a",
"new int[n]",
"n",
"for(int i=0; i<n; i++) a[i]=value;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=value;",
"a[i]=value",
"a[i]",
"a",
"i",
"value",
"return a;",
"a",
"int n",
"n",
"int value",
"value",
"static class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"Pair",
"int u",
"u",
"v;",
"v",
"Pair(int u, int v){this.u=u; this.v=v;}",
"Pair",
"{this.u=u; this.v=v;}",
"this.u=u",
"this.u",
"this",
"this.u",
"u",
"this.v=v",
"this.v",
"this",
"this.v",
"v",
"int u",
"u",
"int v",
"v",
"static void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}",
"sort",
"{\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}",
"List<Pair> al=new ArrayList<>(Arrays.asList(coll));",
"al",
"new ArrayList<>(Arrays.asList(coll))",
"Collections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t})",
"Collections.sort",
"Collections",
"al",
"new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t}",
"for(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<al.size()",
"i",
"al.size()",
"al.size",
"al",
"i++",
"i++",
"i",
"{\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}",
"{\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}",
"coll[i]=al.get(i)",
"coll[i]",
"coll",
"i",
"al.get(i)",
"al.get",
"al",
"i",
"Pair [] coll",
"coll",
"static class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}",
"Reader",
"BufferedReader br;",
"br",
"StringTokenizer to;",
"to",
"Reader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}",
"Reader",
"{\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}",
"br=new BufferedReader(new InputStreamReader(stream))",
"br",
"new BufferedReader(new InputStreamReader(stream))",
"to=new StringTokenizer(\"\")",
"to",
"new StringTokenizer(\"\")",
"InputStream stream",
"stream",
"String next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}",
"next",
"{\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}",
"while(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}",
"!to.hasMoreTokens()",
"to.hasMoreTokens()",
"to.hasMoreTokens",
"to",
"{\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}",
"try {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}",
"catch(IOException e) {}",
"IOException e",
"{}",
"{\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}",
"to=new StringTokenizer(br.readLine())",
"to",
"new StringTokenizer(br.readLine())",
"return to.nextToken();",
"to.nextToken()",
"to.nextToken",
"to",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"int [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"readArray",
"{\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"int a[]=new int[n];",
"a",
"new int[n]",
"n",
"for(int i=0; i<n ;i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}",
"readLongArray",
"{\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}",
"long a[]=new long[n];",
"a",
"new long[n]",
"n",
"for(int i=0; i<n ;i++) a[i]=nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextLong();",
"a[i]=nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"static class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}",
"Writer",
"Writer(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}",
"Writer",
"{\n\t\t\tsuper(stream);\n\t\t}",
"super(stream)",
"super",
"stream",
"OutputStream stream",
"stream",
"void println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"println",
"{\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"for(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"print(array[i]+\" \")",
"print",
"array[i]+\" \"",
"array[i]",
"array",
"i",
"\" \"",
"println()",
"println",
"int [] array",
"array",
"void println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"println",
"{\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"for(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"print(array[i]+\" \")",
"print",
"array[i]+\" \"",
"array[i]",
"array",
"i",
"\" \"",
"println()",
"println",
"long [] array",
"array",
"PrintWriter",
"public class Main{\n\t\n\tstatic long mod=(long)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint n=in.nextInt();\n\t\t\tint d=in.nextInt();\n\t\t\tint count=0;\n\t\t\tfor(int i=0; i<n; i++) {\n\t\t\t\tint x=in.nextInt();\n\t\t\t\tint y=in.nextInt();\n\t\t\t\tif((long)x*x+(long)y*y<=(long)d*d) count++;\n\t\t\t}\n\t\t\tout.println(count);\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\tstatic boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"public class Main{\n\t\n\tstatic long mod=(long)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint n=in.nextInt();\n\t\t\tint d=in.nextInt();\n\t\t\tint count=0;\n\t\t\tfor(int i=0; i<n; i++) {\n\t\t\t\tint x=in.nextInt();\n\t\t\t\tint y=in.nextInt();\n\t\t\t\tif((long)x*x+(long)y*y<=(long)d*d) count++;\n\t\t\t}\n\t\t\tout.println(count);\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\tstatic boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main{
static long mod=(long)1e9+7;
public static void main(String[] args) throws IOException {
Writer out=new Writer(System.out);
Reader in=new Reader(System.in);
int ts=1;
outer: while(ts-->0) {
int n=in.nextInt();
int d=in.nextInt();
int count=0;
for(int i=0; i<n; i++) {
int x=in.nextInt();
int y=in.nextInt();
if((long)x*x+(long)y*y<=(long)d*d) count++;
}
out.println(count);
}
out.close();
}
static boolean tri(int a, int b, int c) {
if(c<a+b && c>abs(a-b)) return true;
return false;
}
/*********************************** UTILITY CODE BELOW **************************************/
static int abs(int a) {
return a>0 ? a : -a;
}
static int max(int a, int b) {
return a>b ? a : b;
}
static int pow(int n, int m) {
if(m==0) return 1;
int temp=pow(n,m/2);
long res=(((long)temp*temp)%mod);
if(m%2==0) return (int)res;
return (int)((res*n)%mod);
}
static class Pair{
int u, v;
Pair(int u, int v){this.u=u; this.v=v;}
static void sort(Pair [] coll) {
List<Pair> al=new ArrayList<>(Arrays.asList(coll));
Collections.sort(al,new Comparator<Pair>() {
public int compare(Pair p1, Pair p2) {
return p1.u-p2.u;
}
});
for(int i=0; i<al.size(); i++) {
coll[i]=al.get(i);
}
}
}
static void sort(int[] a) {
ArrayList<Integer> list=new ArrayList<>();
for (int i:a) list.add(i);
Collections.sort(list);
for (int i=0; i<a.length; i++) a[i]=list.get(i);
}
static int [] array(int n, int value) {
int a[]=new int[n];
for(int i=0; i<n; i++) a[i]=value;
return a;
}
static class Reader{
BufferedReader br;
StringTokenizer to;
Reader(InputStream stream){
br=new BufferedReader(new InputStreamReader(stream));
to=new StringTokenizer("");
}
String next() {
while(!to.hasMoreTokens()) {
try {
to=new StringTokenizer(br.readLine());
}catch(IOException e) {}
}
return to.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
int [] readArray(int n) {
int a[]=new int[n];
for(int i=0; i<n ;i++) a[i]=nextInt();
return a;
}
long [] readLongArray(int n) {
long a[]=new long[n];
for(int i=0; i<n ;i++) a[i]=nextLong();
return a;
}
}
static class Writer extends PrintWriter{
Writer(OutputStream stream){
super(stream);
}
void println(int [] array) {
for(int i=0; i<array.length; i++) {
print(array[i]+" ");
}
println();
}
void println(long [] array) {
for(int i=0; i<array.length; i++) {
print(array[i]+" ");
}
println();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
81,
5
],
[
81,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
37,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
37,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
60,
64
],
[
37,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
]
| [
"import java.util.*;\npublic class Main {\n public static void main(String args[]) {\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n double d=s.nextDouble();\n int c=0;\n for(int i=0;i<n;i++)\n {\n int x=s.nextInt();\n int y=s.nextInt();\n long x1=x*x;\n long y1=y*y;\n double d1 = Math.hypot(x, y);\n \n if(d1<=d)\n {\n c++;\n // System.out.print(x+\" \"+y+\"\\n\");\n }\n }\n System.out.println(c);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String args[]) {\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n double d=s.nextDouble();\n int c=0;\n for(int i=0;i<n;i++)\n {\n int x=s.nextInt();\n int y=s.nextInt();\n long x1=x*x;\n long y1=y*y;\n double d1 = Math.hypot(x, y);\n \n if(d1<=d)\n {\n c++;\n // System.out.print(x+\" \"+y+\"\\n\");\n }\n }\n System.out.println(c);\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n double d=s.nextDouble();\n int c=0;\n for(int i=0;i<n;i++)\n {\n int x=s.nextInt();\n int y=s.nextInt();\n long x1=x*x;\n long y1=y*y;\n double d1 = Math.hypot(x, y);\n \n if(d1<=d)\n {\n c++;\n // System.out.print(x+\" \"+y+\"\\n\");\n }\n }\n System.out.println(c);\n }",
"main",
"{\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n double d=s.nextDouble();\n int c=0;\n for(int i=0;i<n;i++)\n {\n int x=s.nextInt();\n int y=s.nextInt();\n long x1=x*x;\n long y1=y*y;\n double d1 = Math.hypot(x, y);\n \n if(d1<=d)\n {\n c++;\n // System.out.print(x+\" \"+y+\"\\n\");\n }\n }\n System.out.println(c);\n }",
"Scanner s=new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n=s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"double d=s.nextDouble();",
"d",
"s.nextDouble()",
"s.nextDouble",
"s",
"int c=0;",
"c",
"0",
"for(int i=0;i<n;i++)\n {\n int x=s.nextInt();\n int y=s.nextInt();\n long x1=x*x;\n long y1=y*y;\n double d1 = Math.hypot(x, y);\n \n if(d1<=d)\n {\n c++;\n // System.out.print(x+\" \"+y+\"\\n\");\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int x=s.nextInt();\n int y=s.nextInt();\n long x1=x*x;\n long y1=y*y;\n double d1 = Math.hypot(x, y);\n \n if(d1<=d)\n {\n c++;\n // System.out.print(x+\" \"+y+\"\\n\");\n }\n }",
"{\n int x=s.nextInt();\n int y=s.nextInt();\n long x1=x*x;\n long y1=y*y;\n double d1 = Math.hypot(x, y);\n \n if(d1<=d)\n {\n c++;\n // System.out.print(x+\" \"+y+\"\\n\");\n }\n }",
"int x=s.nextInt();",
"x",
"s.nextInt()",
"s.nextInt",
"s",
"int y=s.nextInt();",
"y",
"s.nextInt()",
"s.nextInt",
"s",
"long x1=x*x;",
"x1",
"x*x",
"x",
"x",
"long y1=y*y;",
"y1",
"y*y",
"y",
"y",
"double d1 = Math.hypot(x, y);",
"d1",
"Math.hypot(x, y)",
"Math.hypot",
"Math",
"x",
"y",
"if(d1<=d)\n {\n c++;\n // System.out.print(x+\" \"+y+\"\\n\");\n }",
"d1<=d",
"d1",
"d",
"{\n c++;\n // System.out.print(x+\" \"+y+\"\\n\");\n }",
"c++",
"c",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) {\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n double d=s.nextDouble();\n int c=0;\n for(int i=0;i<n;i++)\n {\n int x=s.nextInt();\n int y=s.nextInt();\n long x1=x*x;\n long y1=y*y;\n double d1 = Math.hypot(x, y);\n \n if(d1<=d)\n {\n c++;\n // System.out.print(x+\" \"+y+\"\\n\");\n }\n }\n System.out.println(c);\n }\n}",
"public class Main {\n public static void main(String args[]) {\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n double d=s.nextDouble();\n int c=0;\n for(int i=0;i<n;i++)\n {\n int x=s.nextInt();\n int y=s.nextInt();\n long x1=x*x;\n long y1=y*y;\n double d1 = Math.hypot(x, y);\n \n if(d1<=d)\n {\n c++;\n // System.out.print(x+\" \"+y+\"\\n\");\n }\n }\n System.out.println(c);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int n=s.nextInt();
double d=s.nextDouble();
int c=0;
for(int i=0;i<n;i++)
{
int x=s.nextInt();
int y=s.nextInt();
long x1=x*x;
long y1=y*y;
double d1 = Math.hypot(x, y);
if(d1<=d)
{
c++;
// System.out.print(x+" "+y+"\n");
}
}
System.out.println(c);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
20,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
4,
18,
13,
4,
18,
4,
18,
13,
13,
17,
17,
4,
18,
13,
4,
18,
4,
18,
13,
13,
17,
17,
14,
2,
13,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
133,
11
],
[
133,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
49,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
60,
61
],
[
49,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
49,
66
],
[
66,
67
],
[
67,
68
],
[
14,
69
],
[
69,
70
],
[
69,
71
],
[
14,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
94,
100
],
[
91,
101
],
[
90,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
105,
111
],
[
102,
112
],
[
84,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
14,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
14,
127
],
[
127,
128
],
[
128,
129
],
[
12,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
]
| [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tint n = scanner.nextInt();\n\t\tdouble d = scanner.nextInt();\n\t\tList<Integer> x_y = new ArrayList<>();\n\t\tList<List<Integer>> x_y_set = new ArrayList<>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y_set.add(new ArrayList<>(x_y));\n\t\t\tx_y.clear();\n\t\t}\n\t\tdouble distance =0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdistance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)\n\t\t\t\t\t\t\t\t\t+ Math.pow(x_y_set.get(i).get(1),2));\n\t\t\tif(distance <= d) {\n\t\t\t\tans+=1;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscanner.close();\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tint n = scanner.nextInt();\n\t\tdouble d = scanner.nextInt();\n\t\tList<Integer> x_y = new ArrayList<>();\n\t\tList<List<Integer>> x_y_set = new ArrayList<>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y_set.add(new ArrayList<>(x_y));\n\t\t\tx_y.clear();\n\t\t}\n\t\tdouble distance =0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdistance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)\n\t\t\t\t\t\t\t\t\t+ Math.pow(x_y_set.get(i).get(1),2));\n\t\t\tif(distance <= d) {\n\t\t\t\tans+=1;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscanner.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tint n = scanner.nextInt();\n\t\tdouble d = scanner.nextInt();\n\t\tList<Integer> x_y = new ArrayList<>();\n\t\tList<List<Integer>> x_y_set = new ArrayList<>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y_set.add(new ArrayList<>(x_y));\n\t\t\tx_y.clear();\n\t\t}\n\t\tdouble distance =0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdistance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)\n\t\t\t\t\t\t\t\t\t+ Math.pow(x_y_set.get(i).get(1),2));\n\t\t\tif(distance <= d) {\n\t\t\t\tans+=1;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscanner.close();\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tint n = scanner.nextInt();\n\t\tdouble d = scanner.nextInt();\n\t\tList<Integer> x_y = new ArrayList<>();\n\t\tList<List<Integer>> x_y_set = new ArrayList<>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y_set.add(new ArrayList<>(x_y));\n\t\t\tx_y.clear();\n\t\t}\n\t\tdouble distance =0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdistance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)\n\t\t\t\t\t\t\t\t\t+ Math.pow(x_y_set.get(i).get(1),2));\n\t\t\tif(distance <= d) {\n\t\t\t\tans+=1;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscanner.close();\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int ans = 0;",
"ans",
"0",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"double d = scanner.nextInt();",
"d",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"List<Integer> x_y = new ArrayList<>();",
"x_y",
"new ArrayList<>()",
"List<List<Integer>> x_y_set = new ArrayList<>();",
"x_y_set",
"new ArrayList<>()",
"for (int i = 0; i < n; i++) {\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y_set.add(new ArrayList<>(x_y));\n\t\t\tx_y.clear();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y_set.add(new ArrayList<>(x_y));\n\t\t\tx_y.clear();\n\t\t}",
"{\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y_set.add(new ArrayList<>(x_y));\n\t\t\tx_y.clear();\n\t\t}",
"x_y.add(scanner.nextInt())",
"x_y.add",
"x_y",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"x_y.add(scanner.nextInt())",
"x_y.add",
"x_y",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"x_y_set.add(new ArrayList<>(x_y))",
"x_y_set.add",
"x_y_set",
"new ArrayList<>(x_y)",
"x_y.clear()",
"x_y.clear",
"x_y",
"double distance =0;",
"distance",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tdistance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)\n\t\t\t\t\t\t\t\t\t+ Math.pow(x_y_set.get(i).get(1),2));\n\t\t\tif(distance <= d) {\n\t\t\t\tans+=1;\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tdistance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)\n\t\t\t\t\t\t\t\t\t+ Math.pow(x_y_set.get(i).get(1),2));\n\t\t\tif(distance <= d) {\n\t\t\t\tans+=1;\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tdistance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)\n\t\t\t\t\t\t\t\t\t+ Math.pow(x_y_set.get(i).get(1),2));\n\t\t\tif(distance <= d) {\n\t\t\t\tans+=1;\n\t\t\t}\n\n\t\t}",
"distance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)\n\t\t\t\t\t\t\t\t\t+ Math.pow(x_y_set.get(i).get(1),2))",
"distance",
"Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)\n\t\t\t\t\t\t\t\t\t+ Math.pow(x_y_set.get(i).get(1),2))",
"Math.sqrt",
"Math",
"Math.pow(x_y_set.get(i).get(0),2)\n\t\t\t\t\t\t\t\t\t+ Math.pow(x_y_set.get(i).get(1),2)",
"Math.pow(x_y_set.get(i).get(0),2)",
"Math.pow",
"Math",
"x_y_set.get(i).get(0)",
"x_y_set.get(i).get",
"x_y_set.get(i)",
"x_y_set.get",
"x_y_set",
"i",
"0",
"2",
"Math.pow(x_y_set.get(i).get(1),2)",
"Math.pow",
"Math",
"x_y_set.get(i).get(1)",
"x_y_set.get(i).get",
"x_y_set.get(i)",
"x_y_set.get",
"x_y_set",
"i",
"1",
"2",
"if(distance <= d) {\n\t\t\t\tans+=1;\n\t\t\t}",
"distance <= d",
"distance",
"d",
"{\n\t\t\t\tans+=1;\n\t\t\t}",
"ans+=1",
"ans",
"1",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tint n = scanner.nextInt();\n\t\tdouble d = scanner.nextInt();\n\t\tList<Integer> x_y = new ArrayList<>();\n\t\tList<List<Integer>> x_y_set = new ArrayList<>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y_set.add(new ArrayList<>(x_y));\n\t\t\tx_y.clear();\n\t\t}\n\t\tdouble distance =0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdistance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)\n\t\t\t\t\t\t\t\t\t+ Math.pow(x_y_set.get(i).get(1),2));\n\t\t\tif(distance <= d) {\n\t\t\t\tans+=1;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscanner.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tint n = scanner.nextInt();\n\t\tdouble d = scanner.nextInt();\n\t\tList<Integer> x_y = new ArrayList<>();\n\t\tList<List<Integer>> x_y_set = new ArrayList<>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y.add(scanner.nextInt());\n\t\t\tx_y_set.add(new ArrayList<>(x_y));\n\t\t\tx_y.clear();\n\t\t}\n\t\tdouble distance =0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdistance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)\n\t\t\t\t\t\t\t\t\t+ Math.pow(x_y_set.get(i).get(1),2));\n\t\t\tif(distance <= d) {\n\t\t\t\tans+=1;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscanner.close();\n\t}\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int ans = 0;
int n = scanner.nextInt();
double d = scanner.nextInt();
List<Integer> x_y = new ArrayList<>();
List<List<Integer>> x_y_set = new ArrayList<>();
for (int i = 0; i < n; i++) {
x_y.add(scanner.nextInt());
x_y.add(scanner.nextInt());
x_y_set.add(new ArrayList<>(x_y));
x_y.clear();
}
double distance =0;
for (int i = 0; i < n; i++) {
distance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)
+ Math.pow(x_y_set.get(i).get(1),2));
if(distance <= d) {
ans+=1;
}
}
System.out.println(ans);
scanner.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
0,
13,
4,
18,
18,
13,
13,
18,
13,
13,
0,
13,
4,
18,
18,
13,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
29,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
29,
43
],
[
43,
44
],
[
43,
45
],
[
29,
47
],
[
47,
48
],
[
47,
49
],
[
29,
51
],
[
51,
52
],
[
51,
53
],
[
29,
54
],
[
54,
55
],
[
29,
56
],
[
56,
57
],
[
29,
58
],
[
58,
59
],
[
29,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
29,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
78,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
78,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
78,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
78,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
120,
125
],
[
119,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
29,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
27,
136
],
[
136,
137
]
]
| [
"import java.util.Scanner;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Comparator;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.*;\nimport java.math.BigInteger;\nclass Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n BigInteger D = scan.nextBigInteger();\n BigInteger X[] = new BigInteger[N];\n BigInteger Y[] = new BigInteger[N];\n int count = 0;\n BigInteger rlt1, rlt2, rlt;\n BigInteger dd = D.multiply(D);\n for (int i = 0;i < N;i++) {\n X[i] = scan.nextBigInteger();\n Y[i] = scan.nextBigInteger();\n rlt1 = X[i].multiply(X[i]);\n rlt2 = Y[i].multiply(Y[i]);\n rlt = rlt1.add(rlt2);\n if (rlt.compareTo(dd)<=0) {\n count += 1;\n }\n }\n System.out.println(count);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.*;",
"util.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n BigInteger D = scan.nextBigInteger();\n BigInteger X[] = new BigInteger[N];\n BigInteger Y[] = new BigInteger[N];\n int count = 0;\n BigInteger rlt1, rlt2, rlt;\n BigInteger dd = D.multiply(D);\n for (int i = 0;i < N;i++) {\n X[i] = scan.nextBigInteger();\n Y[i] = scan.nextBigInteger();\n rlt1 = X[i].multiply(X[i]);\n rlt2 = Y[i].multiply(Y[i]);\n rlt = rlt1.add(rlt2);\n if (rlt.compareTo(dd)<=0) {\n count += 1;\n }\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n BigInteger D = scan.nextBigInteger();\n BigInteger X[] = new BigInteger[N];\n BigInteger Y[] = new BigInteger[N];\n int count = 0;\n BigInteger rlt1, rlt2, rlt;\n BigInteger dd = D.multiply(D);\n for (int i = 0;i < N;i++) {\n X[i] = scan.nextBigInteger();\n Y[i] = scan.nextBigInteger();\n rlt1 = X[i].multiply(X[i]);\n rlt2 = Y[i].multiply(Y[i]);\n rlt = rlt1.add(rlt2);\n if (rlt.compareTo(dd)<=0) {\n count += 1;\n }\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n BigInteger D = scan.nextBigInteger();\n BigInteger X[] = new BigInteger[N];\n BigInteger Y[] = new BigInteger[N];\n int count = 0;\n BigInteger rlt1, rlt2, rlt;\n BigInteger dd = D.multiply(D);\n for (int i = 0;i < N;i++) {\n X[i] = scan.nextBigInteger();\n Y[i] = scan.nextBigInteger();\n rlt1 = X[i].multiply(X[i]);\n rlt2 = Y[i].multiply(Y[i]);\n rlt = rlt1.add(rlt2);\n if (rlt.compareTo(dd)<=0) {\n count += 1;\n }\n }\n System.out.println(count);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"BigInteger D = scan.nextBigInteger();",
"D",
"scan.nextBigInteger()",
"scan.nextBigInteger",
"scan",
"BigInteger X[] = new BigInteger[N];",
"X",
"new BigInteger[N]",
"N",
"BigInteger Y[] = new BigInteger[N];",
"Y",
"new BigInteger[N]",
"N",
"int count = 0;",
"count",
"0",
"BigInteger rlt1",
"rlt1",
"rlt2",
"rlt2",
"rlt;",
"rlt",
"BigInteger dd = D.multiply(D);",
"dd",
"D.multiply(D)",
"D.multiply",
"D",
"D",
"for (int i = 0;i < N;i++) {\n X[i] = scan.nextBigInteger();\n Y[i] = scan.nextBigInteger();\n rlt1 = X[i].multiply(X[i]);\n rlt2 = Y[i].multiply(Y[i]);\n rlt = rlt1.add(rlt2);\n if (rlt.compareTo(dd)<=0) {\n count += 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n X[i] = scan.nextBigInteger();\n Y[i] = scan.nextBigInteger();\n rlt1 = X[i].multiply(X[i]);\n rlt2 = Y[i].multiply(Y[i]);\n rlt = rlt1.add(rlt2);\n if (rlt.compareTo(dd)<=0) {\n count += 1;\n }\n }",
"{\n X[i] = scan.nextBigInteger();\n Y[i] = scan.nextBigInteger();\n rlt1 = X[i].multiply(X[i]);\n rlt2 = Y[i].multiply(Y[i]);\n rlt = rlt1.add(rlt2);\n if (rlt.compareTo(dd)<=0) {\n count += 1;\n }\n }",
"X[i] = scan.nextBigInteger()",
"X[i]",
"X",
"i",
"scan.nextBigInteger()",
"scan.nextBigInteger",
"scan",
"Y[i] = scan.nextBigInteger()",
"Y[i]",
"Y",
"i",
"scan.nextBigInteger()",
"scan.nextBigInteger",
"scan",
"rlt1 = X[i].multiply(X[i])",
"rlt1",
"X[i].multiply(X[i])",
"X[i].multiply",
"X[i]",
"X",
"i",
"X[i]",
"X",
"i",
"rlt2 = Y[i].multiply(Y[i])",
"rlt2",
"Y[i].multiply(Y[i])",
"Y[i].multiply",
"Y[i]",
"Y",
"i",
"Y[i]",
"Y",
"i",
"rlt = rlt1.add(rlt2)",
"rlt",
"rlt1.add(rlt2)",
"rlt1.add",
"rlt1",
"rlt2",
"if (rlt.compareTo(dd)<=0) {\n count += 1;\n }",
"rlt.compareTo(dd)<=0",
"rlt.compareTo(dd)",
"rlt.compareTo",
"rlt",
"dd",
"0",
"{\n count += 1;\n }",
"count += 1",
"count",
"1",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args"
]
| import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
import java.util.*;
import java.math.BigInteger;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
BigInteger D = scan.nextBigInteger();
BigInteger X[] = new BigInteger[N];
BigInteger Y[] = new BigInteger[N];
int count = 0;
BigInteger rlt1, rlt2, rlt;
BigInteger dd = D.multiply(D);
for (int i = 0;i < N;i++) {
X[i] = scan.nextBigInteger();
Y[i] = scan.nextBigInteger();
rlt1 = X[i].multiply(X[i]);
rlt2 = Y[i].multiply(Y[i]);
rlt = rlt1.add(rlt2);
if (rlt.compareTo(dd)<=0) {
count += 1;
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
41,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
176,
8
],
[
176,
9
],
[
9,
10
],
[
176,
11
],
[
11,
12
],
[
11,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
13,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
13,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
13,
30
],
[
30,
31
],
[
30,
32
],
[
13,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
45,
68
],
[
68,
69
],
[
68,
70
],
[
45,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
13,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
13,
82
],
[
82,
83
],
[
83,
84
],
[
11,
85
],
[
85,
86
],
[
176,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
87,
91
],
[
91,
92
],
[
87,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
87,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
102,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
112,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
101,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
87,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
87,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
87,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
152,
153
],
[
87,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
160,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
156,
173
],
[
173,
174
],
[
0,
175
],
[
175,
176
],
[
175,
177
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n\n public static void main(String[] args) throws Exception {\n\n FastReader fs = new FastReader();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n int n = fs.nextInt();\n int d = fs.nextInt();\n int ans = 0 ;\n for(int i =0 ; i<n ; i++){\n long x = fs.nextLong();\n long y = fs.nextLong();\n\n double dist = Math.sqrt(x*x + y*y);\n double dd = d;\n\n // out.println(dist+\" \"+dd);\n\n if(dist<=dd){\n ans++;\n }\n\n }\n\n out.println(ans);\n\n\n\n\n\n\n\n\n\n out.close();\n\n }\n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n\n //-----------MyScanner class for faster input----------\n public static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n //--------------------------------------------------------\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\n public static void main(String[] args) throws Exception {\n\n FastReader fs = new FastReader();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n int n = fs.nextInt();\n int d = fs.nextInt();\n int ans = 0 ;\n for(int i =0 ; i<n ; i++){\n long x = fs.nextLong();\n long y = fs.nextLong();\n\n double dist = Math.sqrt(x*x + y*y);\n double dd = d;\n\n // out.println(dist+\" \"+dd);\n\n if(dist<=dd){\n ans++;\n }\n\n }\n\n out.println(ans);\n\n\n\n\n\n\n\n\n\n out.close();\n\n }\n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n\n //-----------MyScanner class for faster input----------\n public static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n //--------------------------------------------------------\n}",
"Main",
"//-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;",
"out",
"public static void main(String[] args) throws Exception {\n\n FastReader fs = new FastReader();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n int n = fs.nextInt();\n int d = fs.nextInt();\n int ans = 0 ;\n for(int i =0 ; i<n ; i++){\n long x = fs.nextLong();\n long y = fs.nextLong();\n\n double dist = Math.sqrt(x*x + y*y);\n double dd = d;\n\n // out.println(dist+\" \"+dd);\n\n if(dist<=dd){\n ans++;\n }\n\n }\n\n out.println(ans);\n\n\n\n\n\n\n\n\n\n out.close();\n\n }",
"main",
"{\n\n FastReader fs = new FastReader();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n int n = fs.nextInt();\n int d = fs.nextInt();\n int ans = 0 ;\n for(int i =0 ; i<n ; i++){\n long x = fs.nextLong();\n long y = fs.nextLong();\n\n double dist = Math.sqrt(x*x + y*y);\n double dd = d;\n\n // out.println(dist+\" \"+dd);\n\n if(dist<=dd){\n ans++;\n }\n\n }\n\n out.println(ans);\n\n\n\n\n\n\n\n\n\n out.close();\n\n }",
"FastReader fs = new FastReader();",
"fs",
"new FastReader()",
"out = new PrintWriter(new BufferedOutputStream(System.out))",
"out",
"new PrintWriter(new BufferedOutputStream(System.out))",
"int n = fs.nextInt();",
"n",
"fs.nextInt()",
"fs.nextInt",
"fs",
"int d = fs.nextInt();",
"d",
"fs.nextInt()",
"fs.nextInt",
"fs",
"int ans = 0 ;",
"ans",
"0",
"for(int i =0 ; i<n ; i++){\n long x = fs.nextLong();\n long y = fs.nextLong();\n\n double dist = Math.sqrt(x*x + y*y);\n double dd = d;\n\n // out.println(dist+\" \"+dd);\n\n if(dist<=dd){\n ans++;\n }\n\n }",
"int i =0 ;",
"int i =0 ;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long x = fs.nextLong();\n long y = fs.nextLong();\n\n double dist = Math.sqrt(x*x + y*y);\n double dd = d;\n\n // out.println(dist+\" \"+dd);\n\n if(dist<=dd){\n ans++;\n }\n\n }",
"{\n long x = fs.nextLong();\n long y = fs.nextLong();\n\n double dist = Math.sqrt(x*x + y*y);\n double dd = d;\n\n // out.println(dist+\" \"+dd);\n\n if(dist<=dd){\n ans++;\n }\n\n }",
"long x = fs.nextLong();",
"x",
"fs.nextLong()",
"fs.nextLong",
"fs",
"long y = fs.nextLong();",
"y",
"fs.nextLong()",
"fs.nextLong",
"fs",
"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",
"double dd = d;",
"dd",
"d",
"if(dist<=dd){\n ans++;\n }",
"dist<=dd",
"dist",
"dd",
"{\n ans++;\n }",
"ans++",
"ans",
"out.println(ans)",
"out.println",
"out",
"ans",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\n\n public static void main(String[] args) throws Exception {\n\n FastReader fs = new FastReader();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n int n = fs.nextInt();\n int d = fs.nextInt();\n int ans = 0 ;\n for(int i =0 ; i<n ; i++){\n long x = fs.nextLong();\n long y = fs.nextLong();\n\n double dist = Math.sqrt(x*x + y*y);\n double dd = d;\n\n // out.println(dist+\" \"+dd);\n\n if(dist<=dd){\n ans++;\n }\n\n }\n\n out.println(ans);\n\n\n\n\n\n\n\n\n\n out.close();\n\n }\n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n\n //-----------MyScanner class for faster input----------\n public static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n //--------------------------------------------------------\n}",
"public class Main {\n\n\n public static void main(String[] args) throws Exception {\n\n FastReader fs = new FastReader();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n int n = fs.nextInt();\n int d = fs.nextInt();\n int ans = 0 ;\n for(int i =0 ; i<n ; i++){\n long x = fs.nextLong();\n long y = fs.nextLong();\n\n double dist = Math.sqrt(x*x + y*y);\n double dd = d;\n\n // out.println(dist+\" \"+dd);\n\n if(dist<=dd){\n ans++;\n }\n\n }\n\n out.println(ans);\n\n\n\n\n\n\n\n\n\n out.close();\n\n }\n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n\n //-----------MyScanner class for faster input----------\n public static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n //--------------------------------------------------------\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
FastReader fs = new FastReader();
out = new PrintWriter(new BufferedOutputStream(System.out));
int n = fs.nextInt();
int d = fs.nextInt();
int ans = 0 ;
for(int i =0 ; i<n ; i++){
long x = fs.nextLong();
long y = fs.nextLong();
double dist = Math.sqrt(x*x + y*y);
double dd = d;
// out.println(dist+" "+dd);
if(dist<=dd){
ans++;
}
}
out.println(ans);
out.close();
}
//-----------PrintWriter for faster output---------------------------------
public static PrintWriter out;
//-----------MyScanner class for faster input----------
public static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
//--------------------------------------------------------
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
29,
2,
2,
2,
13,
13,
17,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
4,
18,
13,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
23,
13,
23,
13,
12,
13,
30,
14,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
13,
17,
17,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
2,
4,
13,
18,
18,
13,
13,
13,
4,
13,
18,
18,
13,
13,
13,
0,
13,
4,
13,
2,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
17,
13,
23,
13,
12,
13,
30,
29,
18,
4,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
20,
41,
13,
4,
13,
13,
2,
13,
13,
41,
13,
18,
13,
13,
41,
13,
2,
18,
13,
13,
2,
2,
18,
13,
13,
17,
2,
13,
13,
29,
20,
23,
13,
23,
13,
12,
13,
30,
0,
13,
13,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
0,
13,
2,
2,
13,
13,
13,
0,
13,
2,
2,
13,
13,
13,
0,
13,
17,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
2,
18,
13,
13,
17,
1,
40,
13,
30,
4,
18,
13,
2,
18,
13,
13,
17,
4,
18,
13,
18,
13,
2,
18,
13,
13,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
2,
18,
13,
13,
17,
1,
40,
13,
30,
4,
18,
13,
2,
18,
13,
13,
17,
4,
18,
13,
18,
13,
2,
18,
13,
13,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
4,
18,
13,
2,
18,
13,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
4,
18,
13,
8,
2,
18,
13,
13,
17,
17,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
4,
18,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
20,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
18,
36,
13,
17,
18,
36,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
18,
13,
13,
18,
13,
13,
14,
2,
13,
13,
29,
2,
13,
13,
14,
2,
13,
18,
13,
13,
29,
2,
13,
18,
13,
13,
29,
2,
13,
18,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
17,
14,
2,
4,
18,
36,
4,
18,
13,
30,
29,
17,
41,
13,
13,
29,
2,
2,
18,
36,
13,
18,
13,
13,
2,
18,
36,
13,
18,
13,
13,
23,
13,
12,
13,
30,
29,
20,
12,
13,
30,
29,
2,
2,
18,
36,
13,
17,
18,
36,
13,
12,
13,
30,
0,
13,
18,
13,
13,
0,
13,
18,
13,
13,
23,
13,
13,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
13,
0,
13,
20,
13,
0,
13,
13,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
13,
41,
13,
4,
13,
13,
14,
2,
13,
13,
29,
40,
13,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
18,
13,
13,
13,
0,
18,
13,
13,
18,
13,
13,
30,
0,
18,
13,
13,
13,
0,
18,
13,
13,
18,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
18,
13,
13,
13,
29,
13,
29,
0,
18,
13,
13,
4,
13,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
958,
8
],
[
958,
9
],
[
9,
10
],
[
958,
11
],
[
11,
12
],
[
958,
13
],
[
13,
14
],
[
958,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
19,
25
],
[
15,
26
],
[
26,
27
],
[
15,
28
],
[
28,
29
],
[
958,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
30,
41
],
[
41,
42
],
[
30,
43
],
[
43,
44
],
[
958,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
48,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
45,
68
],
[
68,
69
],
[
45,
70
],
[
70,
71
],
[
958,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
76,
81
],
[
75,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
75,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
72,
96
],
[
96,
97
],
[
72,
98
],
[
98,
99
],
[
958,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
109,
112
],
[
112,
113
],
[
112,
114
],
[
100,
115
],
[
115,
116
],
[
100,
117
],
[
117,
118
],
[
958,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
123,
126
],
[
119,
127
],
[
127,
128
],
[
958,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
135,
137
],
[
131,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
131,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
131,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
131,
154
],
[
154,
155
],
[
154,
156
],
[
131,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
162,
163
],
[
162,
164
],
[
157,
165
],
[
165,
166
],
[
166,
167
],
[
157,
168
],
[
169,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
175,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
169,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
194,
196
],
[
131,
197
],
[
197,
198
],
[
198,
199
],
[
197,
200
],
[
131,
201
],
[
201,
202
],
[
202,
203
],
[
129,
204
],
[
204,
205
],
[
958,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
211,
211
],
[
211,
212
],
[
211,
213
],
[
211,
214
],
[
206,
215
],
[
215,
216
],
[
958,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
222,
225
],
[
221,
226
],
[
217,
227
],
[
227,
228
],
[
217,
229
],
[
229,
230
],
[
958,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
233,
240
],
[
240,
241
],
[
240,
242
],
[
242,
243
],
[
242,
244
],
[
242,
245
],
[
245,
246
],
[
245,
247
],
[
233,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
250,
252
],
[
233,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
260,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
260,
264
],
[
260,
265
],
[
265,
266
],
[
265,
267
],
[
233,
268
],
[
268,
269
],
[
231,
270
],
[
270,
271
],
[
231,
272
],
[
272,
273
],
[
958,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
280,
282
],
[
276,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
283,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
289,
293
],
[
288,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
296,
300
],
[
287,
301
],
[
301,
302
],
[
301,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
303,
307
],
[
287,
308
],
[
308,
309
],
[
308,
310
],
[
276,
311
],
[
311,
312
],
[
274,
313
],
[
313,
314
],
[
274,
315
],
[
315,
316
],
[
274,
317
],
[
317,
318
],
[
958,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
322,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
329,
333
],
[
322,
334
],
[
334,
335
],
[
335,
336
],
[
322,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
338,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
341,
345
],
[
321,
346
],
[
346,
347
],
[
347,
348
],
[
346,
349
],
[
349,
350
],
[
349,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
351,
355
],
[
319,
356
],
[
356,
357
],
[
958,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
361,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
361,
366
],
[
366,
367
],
[
366,
368
],
[
368,
369
],
[
369,
370
],
[
369,
371
],
[
368,
372
],
[
361,
373
],
[
373,
374
],
[
374,
375
],
[
361,
376
],
[
376,
377
],
[
377,
378
],
[
378,
379
],
[
377,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
380,
384
],
[
360,
385
],
[
385,
386
],
[
386,
387
],
[
385,
388
],
[
388,
389
],
[
388,
390
],
[
390,
391
],
[
391,
392
],
[
391,
393
],
[
390,
394
],
[
358,
395
],
[
395,
396
],
[
958,
397
],
[
397,
398
],
[
397,
399
],
[
399,
400
],
[
400,
401
],
[
401,
402
],
[
402,
403
],
[
402,
404
],
[
400,
405
],
[
405,
406
],
[
405,
407
],
[
407,
408
],
[
407,
409
],
[
400,
410
],
[
410,
411
],
[
411,
412
],
[
400,
413
],
[
413,
414
],
[
414,
415
],
[
415,
416
],
[
414,
417
],
[
417,
418
],
[
418,
419
],
[
418,
420
],
[
417,
421
],
[
399,
422
],
[
422,
423
],
[
423,
424
],
[
397,
425
],
[
425,
426
],
[
958,
427
],
[
427,
428
],
[
427,
429
],
[
429,
430
],
[
430,
431
],
[
431,
432
],
[
432,
433
],
[
432,
434
],
[
430,
435
],
[
435,
436
],
[
435,
437
],
[
437,
438
],
[
437,
439
],
[
430,
440
],
[
440,
441
],
[
441,
442
],
[
430,
443
],
[
443,
444
],
[
444,
445
],
[
445,
446
],
[
444,
447
],
[
447,
448
],
[
448,
449
],
[
449,
450
],
[
449,
451
],
[
448,
452
],
[
447,
453
],
[
447,
454
],
[
454,
455
],
[
454,
456
],
[
429,
457
],
[
457,
458
],
[
458,
459
],
[
427,
460
],
[
460,
461
],
[
958,
462
],
[
462,
463
],
[
462,
464
],
[
464,
465
],
[
465,
466
],
[
466,
467
],
[
467,
468
],
[
467,
469
],
[
465,
470
],
[
470,
471
],
[
470,
472
],
[
472,
473
],
[
473,
474
],
[
465,
475
],
[
475,
476
],
[
476,
477
],
[
465,
478
],
[
478,
479
],
[
479,
480
],
[
480,
481
],
[
479,
482
],
[
482,
483
],
[
483,
484
],
[
484,
485
],
[
483,
486
],
[
482,
487
],
[
464,
488
],
[
488,
489
],
[
489,
490
],
[
462,
491
],
[
491,
492
],
[
958,
493
],
[
493,
494
],
[
493,
495
],
[
495,
496
],
[
493,
497
],
[
497,
498
],
[
493,
499
],
[
499,
500
],
[
499,
501
],
[
501,
502
],
[
502,
503
],
[
502,
504
],
[
499,
505
],
[
505,
506
],
[
493,
507
],
[
507,
508
],
[
507,
509
],
[
509,
510
],
[
510,
511
],
[
510,
512
],
[
507,
513
],
[
513,
514
],
[
493,
515
],
[
515,
516
],
[
515,
517
],
[
517,
518
],
[
518,
519
],
[
519,
520
],
[
520,
521
],
[
520,
522
],
[
519,
523
],
[
523,
524
],
[
524,
525
],
[
525,
526
],
[
518,
527
],
[
527,
528
],
[
527,
529
],
[
517,
530
],
[
530,
531
],
[
531,
532
],
[
532,
533
],
[
493,
534
],
[
534,
535
],
[
534,
536
],
[
536,
537
],
[
537,
538
],
[
538,
539
],
[
539,
540
],
[
538,
541
],
[
541,
542
],
[
493,
543
],
[
543,
544
],
[
543,
545
],
[
545,
546
],
[
546,
547
],
[
547,
548
],
[
548,
549
],
[
547,
550
],
[
550,
551
],
[
493,
552
],
[
552,
553
],
[
552,
554
],
[
554,
555
],
[
555,
556
],
[
556,
557
],
[
557,
558
],
[
493,
559
],
[
559,
560
],
[
559,
561
],
[
561,
562
],
[
562,
563
],
[
563,
564
],
[
564,
565
],
[
563,
566
],
[
566,
567
],
[
493,
568
],
[
568,
569
],
[
568,
570
],
[
570,
571
],
[
571,
572
],
[
571,
573
],
[
570,
575
],
[
575,
576
],
[
576,
577
],
[
577,
578
],
[
577,
579
],
[
575,
580
],
[
580,
581
],
[
580,
582
],
[
582,
583
],
[
582,
584
],
[
575,
585
],
[
585,
586
],
[
586,
587
],
[
575,
588
],
[
588,
589
],
[
589,
590
],
[
590,
591
],
[
590,
592
],
[
589,
593
],
[
593,
594
],
[
570,
595
],
[
595,
596
],
[
568,
597
],
[
597,
598
],
[
493,
599
],
[
599,
600
],
[
599,
601
],
[
601,
602
],
[
602,
603
],
[
602,
604
],
[
601,
606
],
[
606,
607
],
[
607,
608
],
[
608,
609
],
[
608,
610
],
[
606,
611
],
[
611,
612
],
[
611,
613
],
[
606,
614
],
[
614,
615
],
[
615,
616
],
[
606,
617
],
[
617,
618
],
[
618,
619
],
[
619,
620
],
[
619,
621
],
[
618,
622
],
[
622,
623
],
[
601,
624
],
[
624,
625
],
[
599,
626
],
[
626,
627
],
[
493,
628
],
[
628,
629
],
[
628,
630
],
[
630,
631
],
[
631,
632
],
[
493,
633
],
[
633,
634
],
[
633,
635
],
[
635,
636
],
[
636,
637
],
[
636,
638
],
[
635,
640
],
[
640,
641
],
[
641,
642
],
[
642,
643
],
[
642,
644
],
[
640,
645
],
[
645,
646
],
[
645,
647
],
[
640,
648
],
[
648,
649
],
[
649,
650
],
[
640,
651
],
[
651,
652
],
[
652,
653
],
[
653,
654
],
[
653,
655
],
[
652,
656
],
[
656,
657
],
[
635,
658
],
[
658,
659
],
[
633,
660
],
[
660,
661
],
[
493,
662
],
[
662,
663
],
[
662,
664
],
[
664,
665
],
[
665,
666
],
[
666,
667
],
[
667,
668
],
[
958,
669
],
[
669,
670
],
[
669,
671
],
[
671,
672
],
[
669,
673
],
[
673,
674
],
[
669,
675
],
[
675,
676
],
[
675,
677
],
[
677,
678
],
[
678,
679
],
[
679,
680
],
[
679,
681
],
[
678,
682
],
[
677,
683
],
[
683,
684
],
[
684,
685
],
[
684,
686
],
[
683,
687
],
[
675,
688
],
[
688,
689
],
[
675,
690
],
[
690,
691
],
[
669,
692
],
[
692,
693
],
[
692,
694
],
[
694,
695
],
[
695,
696
],
[
696,
697
],
[
697,
698
],
[
698,
699
],
[
698,
700
],
[
697,
701
],
[
696,
702
],
[
702,
703
],
[
702,
704
],
[
669,
705
],
[
705,
706
],
[
705,
707
],
[
707,
708
],
[
708,
709
],
[
708,
710
],
[
710,
711
],
[
711,
712
],
[
710,
713
],
[
710,
714
],
[
707,
715
],
[
715,
716
],
[
715,
717
],
[
717,
718
],
[
718,
719
],
[
717,
720
],
[
720,
721
],
[
720,
722
],
[
717,
723
],
[
723,
724
],
[
723,
725
],
[
707,
726
],
[
726,
727
],
[
727,
728
],
[
727,
729
],
[
726,
730
],
[
730,
731
],
[
731,
732
],
[
731,
733
],
[
707,
734
],
[
734,
735
],
[
735,
736
],
[
735,
737
],
[
737,
738
],
[
737,
739
],
[
734,
740
],
[
740,
741
],
[
741,
742
],
[
741,
743
],
[
743,
744
],
[
743,
745
],
[
707,
746
],
[
746,
747
],
[
747,
748
],
[
747,
749
],
[
749,
750
],
[
749,
751
],
[
705,
752
],
[
752,
753
],
[
669,
754
],
[
754,
755
],
[
754,
756
],
[
756,
757
],
[
757,
758
],
[
758,
759
],
[
758,
760
],
[
757,
761
],
[
761,
762
],
[
762,
763
],
[
756,
764
],
[
764,
765
],
[
765,
766
],
[
766,
767
],
[
767,
768
],
[
765,
769
],
[
769,
770
],
[
770,
771
],
[
764,
772
],
[
772,
773
],
[
773,
774
],
[
756,
775
],
[
775,
776
],
[
775,
777
],
[
756,
778
],
[
778,
779
],
[
779,
780
],
[
780,
781
],
[
781,
782
],
[
781,
783
],
[
780,
784
],
[
784,
785
],
[
784,
786
],
[
779,
787
],
[
787,
788
],
[
788,
789
],
[
788,
790
],
[
787,
791
],
[
791,
792
],
[
791,
793
],
[
754,
794
],
[
794,
795
],
[
669,
796
],
[
796,
797
],
[
796,
798
],
[
798,
799
],
[
799,
800
],
[
669,
801
],
[
801,
802
],
[
801,
803
],
[
803,
804
],
[
804,
805
],
[
806,
806
],
[
806,
807
],
[
807,
808
],
[
807,
809
],
[
806,
810
],
[
806,
811
],
[
811,
812
],
[
811,
813
],
[
669,
814
],
[
814,
815
],
[
814,
816
],
[
816,
817
],
[
817,
818
],
[
817,
819
],
[
819,
820
],
[
819,
821
],
[
816,
822
],
[
822,
823
],
[
822,
824
],
[
824,
825
],
[
824,
826
],
[
814,
827
],
[
827,
828
],
[
669,
829
],
[
958,
830
],
[
830,
831
],
[
830,
832
],
[
832,
833
],
[
830,
834
],
[
834,
835
],
[
830,
836
],
[
836,
837
],
[
830,
838
],
[
838,
839
],
[
838,
840
],
[
840,
841
],
[
841,
842
],
[
841,
843
],
[
840,
845
],
[
845,
846
],
[
845,
847
],
[
840,
849
],
[
849,
850
],
[
849,
851
],
[
840,
852
],
[
852,
853
],
[
853,
854
],
[
852,
855
],
[
852,
856
],
[
840,
857
],
[
857,
858
],
[
858,
859
],
[
859,
860
],
[
859,
861
],
[
857,
862
],
[
862,
863
],
[
862,
864
],
[
857,
865
],
[
865,
866
],
[
866,
867
],
[
857,
868
],
[
868,
869
],
[
869,
870
],
[
870,
871
],
[
870,
872
],
[
869,
873
],
[
838,
874
],
[
874,
875
],
[
830,
876
],
[
876,
877
],
[
876,
878
],
[
878,
879
],
[
879,
880
],
[
879,
881
],
[
881,
882
],
[
881,
883
],
[
878,
884
],
[
884,
885
],
[
884,
886
],
[
886,
887
],
[
886,
888
],
[
878,
889
],
[
889,
890
],
[
890,
891
],
[
890,
892
],
[
889,
893
],
[
878,
894
],
[
894,
895
],
[
878,
896
],
[
896,
897
],
[
897,
898
],
[
898,
899
],
[
898,
900
],
[
897,
901
],
[
901,
902
],
[
901,
903
],
[
896,
904
],
[
904,
905
],
[
905,
906
],
[
906,
907
],
[
906,
908
],
[
905,
909
],
[
904,
910
],
[
910,
911
],
[
911,
912
],
[
911,
913
],
[
910,
914
],
[
914,
915
],
[
914,
916
],
[
896,
917
],
[
917,
918
],
[
918,
919
],
[
919,
920
],
[
919,
921
],
[
918,
922
],
[
917,
923
],
[
923,
924
],
[
924,
925
],
[
924,
926
],
[
923,
927
],
[
927,
928
],
[
927,
929
],
[
876,
930
],
[
930,
931
],
[
876,
932
],
[
932,
933
],
[
830,
934
],
[
934,
935
],
[
934,
936
],
[
936,
937
],
[
937,
938
],
[
938,
939
],
[
939,
940
],
[
939,
941
],
[
938,
942
],
[
937,
943
],
[
943,
944
],
[
936,
945
],
[
945,
946
],
[
946,
947
],
[
947,
948
],
[
947,
949
],
[
946,
950
],
[
950,
951
],
[
950,
952
],
[
952,
953
],
[
952,
954
],
[
934,
955
],
[
955,
956
],
[
0,
957
],
[
957,
958
],
[
957,
959
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n static PrintWriter pw;\n static Scanner sc;\n static long ceildiv(long x, long y) { return (x+y-1)/y; }\n static int mod(long x, int m) { return (int)((x%m+m)%m); }\n static void put(TreeMap<Integer, Integer> map, Integer p){if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); }\n static void rem(TreeMap<Integer, Integer> map, Integer p){ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); }\n static long gcd(long x, long y) {return y==0?x:gcd(y, x%y);}\n static int Int(boolean x){ return x?1:0; }\n public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n pw=new PrintWriter(System.out);\n int n=sc.nextInt(), d=sc.nextInt();\n Pair[] arr=sc.nextPairArr(n);\n int ans=0;\n for(int i=0; i<n; i++){\n double x=Math.sqrt(sq(arr[i].x)+sq(arr[i].y));\n ans+=Int(x<=d);\n }\n pw.println(ans);\n pw.close();\n }\n static long sq(int x){\n return x*1l*x;\n }\n static long[] fact;\n static int modInv(int x, int mod){\n return Euclid(x, mod).x;\n }\n static Main.Pair Euclid(int x, int y){\n if(y==0)\n return new Main.Pair(1, 0);\n Main.Pair p=Euclid(y, x%y);\n int a=p.y, b=(int)(p.x-p.y*1l*(x/y));\n return new Main.Pair(a, b);\n }\n static long Pow(long a, int e, int mod) {\n a %= mod;\n long res = 1;\n while (e > 0) {\n if ((e & 1) == 1)\n res = (res * a) % mod;\n a = (a * a) % mod;\n e >>= 1;\n }\n return res;\n }\n static void printArr(int[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(long[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(Integer[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");\n pw.println();\n }\n static void printArr(char[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);\n pw.println();\n }\n static void printArr(ArrayList<Integer> list) {\n for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");\n pw.println();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public Pair nextPair() throws IOException{\n return new Pair(nextInt(), nextInt());\n }\n public Pair[] nextPairArr(int n) throws IOException{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x*1000+this.y);\n }\n public int compareTo(Pair p){\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }\n public Pair clone(){\n return new Pair(x, y);\n }\n public String toString(){\n return this.x+\" \"+this.y;\n }\n public void add(Pair p){\n x+=p.x;\n y+=p.y;\n }\n }\n static class Union{\n int[] rep, size;\n int sets;\n public Union(int n){\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }\n public void join(int x, int y){\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }\n public int getSet(int x){\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n static PrintWriter pw;\n static Scanner sc;\n static long ceildiv(long x, long y) { return (x+y-1)/y; }\n static int mod(long x, int m) { return (int)((x%m+m)%m); }\n static void put(TreeMap<Integer, Integer> map, Integer p){if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); }\n static void rem(TreeMap<Integer, Integer> map, Integer p){ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); }\n static long gcd(long x, long y) {return y==0?x:gcd(y, x%y);}\n static int Int(boolean x){ return x?1:0; }\n public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n pw=new PrintWriter(System.out);\n int n=sc.nextInt(), d=sc.nextInt();\n Pair[] arr=sc.nextPairArr(n);\n int ans=0;\n for(int i=0; i<n; i++){\n double x=Math.sqrt(sq(arr[i].x)+sq(arr[i].y));\n ans+=Int(x<=d);\n }\n pw.println(ans);\n pw.close();\n }\n static long sq(int x){\n return x*1l*x;\n }\n static long[] fact;\n static int modInv(int x, int mod){\n return Euclid(x, mod).x;\n }\n static Main.Pair Euclid(int x, int y){\n if(y==0)\n return new Main.Pair(1, 0);\n Main.Pair p=Euclid(y, x%y);\n int a=p.y, b=(int)(p.x-p.y*1l*(x/y));\n return new Main.Pair(a, b);\n }\n static long Pow(long a, int e, int mod) {\n a %= mod;\n long res = 1;\n while (e > 0) {\n if ((e & 1) == 1)\n res = (res * a) % mod;\n a = (a * a) % mod;\n e >>= 1;\n }\n return res;\n }\n static void printArr(int[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(long[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(Integer[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");\n pw.println();\n }\n static void printArr(char[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);\n pw.println();\n }\n static void printArr(ArrayList<Integer> list) {\n for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");\n pw.println();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public Pair nextPair() throws IOException{\n return new Pair(nextInt(), nextInt());\n }\n public Pair[] nextPairArr(int n) throws IOException{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x*1000+this.y);\n }\n public int compareTo(Pair p){\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }\n public Pair clone(){\n return new Pair(x, y);\n }\n public String toString(){\n return this.x+\" \"+this.y;\n }\n public void add(Pair p){\n x+=p.x;\n y+=p.y;\n }\n }\n static class Union{\n int[] rep, size;\n int sets;\n public Union(int n){\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }\n public void join(int x, int y){\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }\n public int getSet(int x){\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }\n }\n}",
"Main",
"static PrintWriter pw;",
"pw",
"static Scanner sc;",
"sc",
"static long[] fact;",
"fact",
"static long ceildiv(long x, long y) { return (x+y-1)/y; }",
"ceildiv",
"{ return (x+y-1)/y; }",
"return (x+y-1)/y;",
"(x+y-1)/y",
"(x+y-1)",
"x+y",
"x",
"y",
"1",
"y",
"long x",
"x",
"long y",
"y",
"static int mod(long x, int m) { return (int)((x%m+m)%m); }",
"mod",
"{ return (int)((x%m+m)%m); }",
"return (int)((x%m+m)%m);",
"(int)((x%m+m)%m)",
"(x%m+m)",
"x%m",
"x",
"m",
"m",
"m",
"long x",
"x",
"int m",
"m",
"static void put(TreeMap<Integer, Integer> map, Integer p){if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); }",
"put",
"{if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); }",
"if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1);",
"map.containsKey(p)",
"map.containsKey",
"map",
"p",
"map.replace(p, map.get(p)+1)",
"map.replace",
"map",
"p",
"map.get(p)+1",
"map.get(p)",
"map.get",
"map",
"p",
"1",
"map.put(p, 1)",
"map.put",
"map",
"p",
"1",
"TreeMap<Integer, Integer> map",
"map",
"Integer p",
"p",
"static void rem(TreeMap<Integer, Integer> map, Integer p){ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); }",
"rem",
"{ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); }",
"if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1);",
"map.get(p)==1",
"map.get(p)",
"map.get",
"map",
"p",
"1",
"map.remove(p)",
"map.remove",
"map",
"p",
"map.replace(p, map.get(p)-1)",
"map.replace",
"map",
"p",
"map.get(p)-1",
"map.get(p)",
"map.get",
"map",
"p",
"1",
"TreeMap<Integer, Integer> map",
"map",
"Integer p",
"p",
"static long gcd(long x, long y) {return y==0?x:gcd(y, x%y);}",
"gcd",
"{return y==0?x:gcd(y, x%y);}",
"return y==0?x:gcd(y, x%y);",
"y==0?x:gcd(y, x%y)",
"y==0",
"y",
"0",
"x",
"gcd(y, x%y)",
"gcd",
"y",
"x%y",
"x",
"y",
"long x",
"x",
"long y",
"y",
"static int Int(boolean x){ return x?1:0; }",
"Int",
"{ return x?1:0; }",
"return x?1:0;",
"x?1:0",
"x",
"1",
"0",
"boolean x",
"x",
"public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n pw=new PrintWriter(System.out);\n int n=sc.nextInt(), d=sc.nextInt();\n Pair[] arr=sc.nextPairArr(n);\n int ans=0;\n for(int i=0; i<n; i++){\n double x=Math.sqrt(sq(arr[i].x)+sq(arr[i].y));\n ans+=Int(x<=d);\n }\n pw.println(ans);\n pw.close();\n }",
"main",
"{\n sc = new Scanner(System.in);\n pw=new PrintWriter(System.out);\n int n=sc.nextInt(), d=sc.nextInt();\n Pair[] arr=sc.nextPairArr(n);\n int ans=0;\n for(int i=0; i<n; i++){\n double x=Math.sqrt(sq(arr[i].x)+sq(arr[i].y));\n ans+=Int(x<=d);\n }\n pw.println(ans);\n pw.close();\n }",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"pw=new PrintWriter(System.out)",
"pw",
"new PrintWriter(System.out)",
"int n=sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"d=sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Pair[] arr=sc.nextPairArr(n);",
"arr",
"sc.nextPairArr(n)",
"sc.nextPairArr",
"sc",
"n",
"int ans=0;",
"ans",
"0",
"for(int i=0; i<n; i++){\n double x=Math.sqrt(sq(arr[i].x)+sq(arr[i].y));\n ans+=Int(x<=d);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n double x=Math.sqrt(sq(arr[i].x)+sq(arr[i].y));\n ans+=Int(x<=d);\n }",
"{\n double x=Math.sqrt(sq(arr[i].x)+sq(arr[i].y));\n ans+=Int(x<=d);\n }",
"double x=Math.sqrt(sq(arr[i].x)+sq(arr[i].y));",
"x",
"Math.sqrt(sq(arr[i].x)+sq(arr[i].y))",
"Math.sqrt",
"Math",
"sq(arr[i].x)+sq(arr[i].y)",
"sq(arr[i].x)",
"sq",
"arr[i].x",
"arr[i]",
"arr",
"i",
"arr[i].x",
"sq(arr[i].y)",
"sq",
"arr[i].y",
"arr[i]",
"arr",
"i",
"arr[i].y",
"ans+=Int(x<=d)",
"ans",
"Int(x<=d)",
"Int",
"x<=d",
"x",
"d",
"pw.println(ans)",
"pw.println",
"pw",
"ans",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"static long sq(int x){\n return x*1l*x;\n }",
"sq",
"{\n return x*1l*x;\n }",
"return x*1l*x;",
"x*1l*x",
"x*1l*x",
"x",
"1l",
"x",
"int x",
"x",
"static int modInv(int x, int mod){\n return Euclid(x, mod).x;\n }",
"modInv",
"{\n return Euclid(x, mod).x;\n }",
"return Euclid(x, mod).x;",
"Euclid(x, mod).x",
"Euclid(x, mod)",
"Euclid",
"x",
"mod",
"Euclid(x, mod).x",
"int x",
"x",
"int mod",
"mod",
"static Main.Pair Euclid(int x, int y){\n if(y==0)\n return new Main.Pair(1, 0);\n Main.Pair p=Euclid(y, x%y);\n int a=p.y, b=(int)(p.x-p.y*1l*(x/y));\n return new Main.Pair(a, b);\n }",
"Euclid",
"{\n if(y==0)\n return new Main.Pair(1, 0);\n Main.Pair p=Euclid(y, x%y);\n int a=p.y, b=(int)(p.x-p.y*1l*(x/y));\n return new Main.Pair(a, b);\n }",
"if(y==0)\n return new Main.Pair(1, 0);",
"y==0",
"y",
"0",
"return new Main.Pair(1, 0);",
"new Main.Pair(1, 0)",
"Main.Pair p=Euclid(y, x%y);",
"p",
"Euclid(y, x%y)",
"Euclid",
"y",
"x%y",
"x",
"y",
"int a=p.y",
"a",
"p.y",
"p",
"p.y",
"b=(int)(p.x-p.y*1l*(x/y));",
"b",
"(int)(p.x-p.y*1l*(x/y))",
"p.x",
"p",
"p.x",
"p.y*1l*(x/y)",
"p.y*1l*(x/y)",
"p.y",
"p",
"p.y",
"1l",
"(x/y)",
"x",
"y",
"return new Main.Pair(a, b);",
"new Main.Pair(a, b)",
"int x",
"x",
"int y",
"y",
"static long Pow(long a, int e, int mod) {\n a %= mod;\n long res = 1;\n while (e > 0) {\n if ((e & 1) == 1)\n res = (res * a) % mod;\n a = (a * a) % mod;\n e >>= 1;\n }\n return res;\n }",
"Pow",
"{\n a %= mod;\n long res = 1;\n while (e > 0) {\n if ((e & 1) == 1)\n res = (res * a) % mod;\n a = (a * a) % mod;\n e >>= 1;\n }\n return res;\n }",
"a %= mod",
"a",
"mod",
"long res = 1;",
"res",
"1",
"while (e > 0) {\n if ((e & 1) == 1)\n res = (res * a) % mod;\n a = (a * a) % mod;\n e >>= 1;\n }",
"e > 0",
"e",
"0",
"{\n if ((e & 1) == 1)\n res = (res * a) % mod;\n a = (a * a) % mod;\n e >>= 1;\n }",
"if ((e & 1) == 1)\n res = (res * a) % mod;",
"(e & 1) == 1",
"(e & 1)",
"e",
"1",
"1",
"res = (res * a) % mod",
"res",
"(res * a) % mod",
"(res * a)",
"res",
"a",
"mod",
"a = (a * a) % mod",
"a",
"(a * a) % mod",
"(a * a)",
"a",
"a",
"mod",
"e >>= 1",
"e",
"1",
"return res;",
"res",
"long a",
"a",
"int e",
"e",
"int mod",
"mod",
"static void printArr(int[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }",
"printArr",
"{\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }",
"for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arr.length - 1",
"i",
"arr.length - 1",
"arr.length",
"arr",
"arr.length",
"1",
"i++",
"i++",
"i",
"pw.print(arr[i] + \" \");",
"pw.print(arr[i] + \" \")",
"pw.print",
"pw",
"arr[i] + \" \"",
"arr[i]",
"arr",
"i",
"\" \"",
"pw.println(arr[arr.length - 1])",
"pw.println",
"pw",
"arr[arr.length - 1]",
"arr",
"arr.length - 1",
"arr.length",
"arr",
"arr.length",
"1",
"int[] arr",
"arr",
"static void printArr(long[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }",
"printArr",
"{\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }",
"for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arr.length - 1",
"i",
"arr.length - 1",
"arr.length",
"arr",
"arr.length",
"1",
"i++",
"i++",
"i",
"pw.print(arr[i] + \" \");",
"pw.print(arr[i] + \" \")",
"pw.print",
"pw",
"arr[i] + \" \"",
"arr[i]",
"arr",
"i",
"\" \"",
"pw.println(arr[arr.length - 1])",
"pw.println",
"pw",
"arr[arr.length - 1]",
"arr",
"arr.length - 1",
"arr.length",
"arr",
"arr.length",
"1",
"long[] arr",
"arr",
"static void printArr(Integer[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");\n pw.println();\n }",
"printArr",
"{\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");\n pw.println();\n }",
"for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"pw.print(arr[i] + \" \");",
"pw.print(arr[i] + \" \")",
"pw.print",
"pw",
"arr[i] + \" \"",
"arr[i]",
"arr",
"i",
"\" \"",
"pw.println()",
"pw.println",
"pw",
"Integer[] arr",
"arr",
"static void printArr(char[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);\n pw.println();\n }",
"printArr",
"{\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);\n pw.println();\n }",
"for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"pw.print(arr[i]==0? '1': arr[i]);",
"pw.print(arr[i]==0? '1': arr[i])",
"pw.print",
"pw",
"arr[i]==0? '1': arr[i]",
"arr[i]==0",
"arr[i]",
"arr",
"i",
"0",
"'1'",
"arr[i]",
"arr",
"i",
"pw.println()",
"pw.println",
"pw",
"char[] arr",
"arr",
"static void printArr(ArrayList<Integer> list) {\n for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");\n pw.println();\n }",
"printArr",
"{\n for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");\n pw.println();\n }",
"for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < list.size()",
"i",
"list.size()",
"list.size",
"list",
"i++",
"i++",
"i",
"pw.print(list.get(i)+\" \");",
"pw.print(list.get(i)+\" \")",
"pw.print",
"pw",
"list.get(i)+\" \"",
"list.get(i)",
"list.get",
"list",
"i",
"\" \"",
"pw.println()",
"pw.println",
"pw",
"ArrayList<Integer> list",
"list",
"static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public Pair nextPair() throws IOException{\n return new Pair(nextInt(), nextInt());\n }\n public Pair[] nextPairArr(int n) throws IOException{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }",
"Scanner",
"{\n br = new BufferedReader(new InputStreamReader(s));\n }",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }",
"Scanner",
"{\n br = new BufferedReader(r);\n }",
"br = new BufferedReader(r)",
"br",
"new BufferedReader(r)",
"FileReader r",
"r",
"public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public String nextLine() throws IOException {\n return br.readLine();\n }",
"nextLine",
"{\n return br.readLine();\n }",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }",
"nextArr",
"{\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }",
"int[] arr = new int[n];",
"arr",
"new int[n]",
"n",
"for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"arr[i] = nextInt();",
"arr[i] = nextInt()",
"arr[i]",
"arr",
"i",
"nextInt()",
"nextInt",
"return arr;",
"arr",
"int n",
"n",
"public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }",
"nextsort",
"{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }",
"Integer[] arr=new Integer[n];",
"arr",
"new Integer[n]",
"n",
"for(int i=0; i<n; i++)\n arr[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i]=nextInt();",
"arr[i]=nextInt()",
"arr[i]",
"arr",
"i",
"nextInt()",
"nextInt",
"return arr;",
"arr",
"int n",
"n",
"public Pair nextPair() throws IOException{\n return new Pair(nextInt(), nextInt());\n }",
"nextPair",
"{\n return new Pair(nextInt(), nextInt());\n }",
"return new Pair(nextInt(), nextInt());",
"new Pair(nextInt(), nextInt())",
"public Pair[] nextPairArr(int n) throws IOException{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }",
"nextPairArr",
"{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }",
"Pair[] arr=new Pair[n];",
"arr",
"new Pair[n]",
"n",
"for(int i=0; i<n; i++)\n arr[i]=nextPair();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i]=nextPair();",
"arr[i]=nextPair()",
"arr[i]",
"arr",
"i",
"nextPair()",
"nextPair",
"return arr;",
"arr",
"int n",
"n",
"public boolean ready() throws IOException {\n return br.ready();\n }",
"ready",
"{\n return br.ready();\n }",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x*1000+this.y);\n }\n public int compareTo(Pair p){\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }\n public Pair clone(){\n return new Pair(x, y);\n }\n public String toString(){\n return this.x+\" \"+this.y;\n }\n public void add(Pair p){\n x+=p.x;\n y+=p.y;\n }\n }",
"Pair",
"int x;",
"x",
"int y;",
"y",
"public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }",
"Pair",
"{\n this.x=x;\n this.y=y;\n }",
"this.x=x",
"this.x",
"this",
"this.x",
"x",
"this.y=y",
"this.y",
"this",
"this.y",
"y",
"int x",
"x",
"int y",
"y",
"public int hashCode() {\n return (this.x*1000+this.y);\n }",
"hashCode",
"{\n return (this.x*1000+this.y);\n }",
"return (this.x*1000+this.y);",
"(this.x*1000+this.y)",
"this.x*1000",
"this.x",
"this",
"this.x",
"1000",
"this.y",
"this",
"this.y",
"public int compareTo(Pair p){\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }",
"compareTo",
"{\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }",
"int min1=Math.min(x, y)",
"min1",
"Math.min(x, y)",
"Math.min",
"Math",
"x",
"y",
"min2=Math.min(p.x, p.y);",
"min2",
"Math.min(p.x, p.y)",
"Math.min",
"Math",
"p.x",
"p",
"p.x",
"p.y",
"p",
"p.y",
"if(min1!=min2)\n return min1-min2;",
"min1!=min2",
"min1",
"min2",
"return min1-min2;",
"min1-min2",
"min1",
"min2",
"if(x==p.x)\n return y-p.y;",
"x==p.x",
"x",
"p.x",
"p",
"p.x",
"return y-p.y;",
"y-p.y",
"y",
"p.y",
"p",
"p.y",
"return x-p.x;",
"x-p.x",
"x",
"p.x",
"p",
"p.x",
"Pair p",
"p",
"public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }",
"equals",
"{\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }",
"if (obj == null) {\n return false;\n }",
"obj == null",
"obj",
"null",
"{\n return false;\n }",
"return false;",
"false",
"if (this.getClass() != obj.getClass()) {\n return false;\n }",
"this.getClass() != obj.getClass()",
"this.getClass()",
"this.getClass",
"this",
"obj.getClass()",
"obj.getClass",
"obj",
"{\n return false;\n }",
"return false;",
"false",
"Pair p = (Pair) obj;",
"p",
"(Pair) obj",
"return this.x==p.x && this.y==p.y;",
"this.x==p.x && this.y==p.y",
"this.x==p.x",
"this.x",
"this",
"this.x",
"p.x",
"p",
"p.x",
"this.y==p.y",
"this.y",
"this",
"this.y",
"p.y",
"p",
"p.y",
"Object obj",
"obj",
"public Pair clone(){\n return new Pair(x, y);\n }",
"clone",
"{\n return new Pair(x, y);\n }",
"return new Pair(x, y);",
"new Pair(x, y)",
"public String toString(){\n return this.x+\" \"+this.y;\n }",
"toString",
"{\n return this.x+\" \"+this.y;\n }",
"return this.x+\" \"+this.y;",
"this.x+\" \"+this.y",
"this.x+\" \"+this.y",
"this.x",
"this",
"this.x",
"\" \"",
"this.y",
"this",
"this.y",
"public void add(Pair p){\n x+=p.x;\n y+=p.y;\n }",
"add",
"{\n x+=p.x;\n y+=p.y;\n }",
"x+=p.x",
"x",
"p.x",
"p",
"p.x",
"y+=p.y",
"y",
"p.y",
"p",
"p.y",
"Pair p",
"p",
"Comparable",
"static class Union{\n int[] rep, size;\n int sets;\n public Union(int n){\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }\n public void join(int x, int y){\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }\n public int getSet(int x){\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }\n }",
"Union",
"int[] rep",
"rep",
"size;",
"size",
"int sets;",
"sets",
"public Union(int n){\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }",
"Union",
"{\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }",
"rep=new int[n]",
"rep",
"new int[n]",
"n",
"size=new int[n]",
"size",
"new int[n]",
"n",
"sets=n",
"sets",
"n",
"Arrays.fill(size, 1)",
"Arrays.fill",
"Arrays",
"size",
"1",
"for(int i=0; i<n; i++)\n rep[i]=i;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"rep[i]=i;",
"rep[i]=i",
"rep[i]",
"rep",
"i",
"i",
"int n",
"n",
"public void join(int x, int y){\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }",
"join",
"{\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }",
"int a=getSet(x)",
"a",
"getSet(x)",
"getSet",
"x",
"b=getSet(y);",
"b",
"getSet(y)",
"getSet",
"y",
"if(a==b) return;",
"a==b",
"a",
"b",
"return;",
"sets--",
"sets",
"if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }",
"size[a]>size[b]",
"size[a]",
"size",
"a",
"size[b]",
"size",
"b",
"{\n rep[b]=a;\n size[a]+=size[b];\n }",
"rep[b]=a",
"rep[b]",
"rep",
"b",
"a",
"size[a]+=size[b]",
"size[a]",
"size",
"a",
"size[b]",
"size",
"b",
"{\n rep[a]=b;\n size[b]+=size[a];\n }",
"rep[a]=b",
"rep[a]",
"rep",
"a",
"b",
"size[b]+=size[a]",
"size[b]",
"size",
"b",
"size[a]",
"size",
"a",
"int x",
"x",
"int y",
"y",
"public int getSet(int x){\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }",
"getSet",
"{\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }",
"if(rep[x]==x)\n return x;",
"rep[x]==x",
"rep[x]",
"rep",
"x",
"x",
"return x;",
"x",
"return rep[x]=getSet(rep[x]);",
"rep[x]=getSet(rep[x])",
"rep[x]",
"rep",
"x",
"getSet(rep[x])",
"getSet",
"rep[x]",
"rep",
"x",
"int x",
"x",
"public class Main {\n static PrintWriter pw;\n static Scanner sc;\n static long ceildiv(long x, long y) { return (x+y-1)/y; }\n static int mod(long x, int m) { return (int)((x%m+m)%m); }\n static void put(TreeMap<Integer, Integer> map, Integer p){if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); }\n static void rem(TreeMap<Integer, Integer> map, Integer p){ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); }\n static long gcd(long x, long y) {return y==0?x:gcd(y, x%y);}\n static int Int(boolean x){ return x?1:0; }\n public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n pw=new PrintWriter(System.out);\n int n=sc.nextInt(), d=sc.nextInt();\n Pair[] arr=sc.nextPairArr(n);\n int ans=0;\n for(int i=0; i<n; i++){\n double x=Math.sqrt(sq(arr[i].x)+sq(arr[i].y));\n ans+=Int(x<=d);\n }\n pw.println(ans);\n pw.close();\n }\n static long sq(int x){\n return x*1l*x;\n }\n static long[] fact;\n static int modInv(int x, int mod){\n return Euclid(x, mod).x;\n }\n static Main.Pair Euclid(int x, int y){\n if(y==0)\n return new Main.Pair(1, 0);\n Main.Pair p=Euclid(y, x%y);\n int a=p.y, b=(int)(p.x-p.y*1l*(x/y));\n return new Main.Pair(a, b);\n }\n static long Pow(long a, int e, int mod) {\n a %= mod;\n long res = 1;\n while (e > 0) {\n if ((e & 1) == 1)\n res = (res * a) % mod;\n a = (a * a) % mod;\n e >>= 1;\n }\n return res;\n }\n static void printArr(int[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(long[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(Integer[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");\n pw.println();\n }\n static void printArr(char[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);\n pw.println();\n }\n static void printArr(ArrayList<Integer> list) {\n for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");\n pw.println();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public Pair nextPair() throws IOException{\n return new Pair(nextInt(), nextInt());\n }\n public Pair[] nextPairArr(int n) throws IOException{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x*1000+this.y);\n }\n public int compareTo(Pair p){\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }\n public Pair clone(){\n return new Pair(x, y);\n }\n public String toString(){\n return this.x+\" \"+this.y;\n }\n public void add(Pair p){\n x+=p.x;\n y+=p.y;\n }\n }\n static class Union{\n int[] rep, size;\n int sets;\n public Union(int n){\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }\n public void join(int x, int y){\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }\n public int getSet(int x){\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }\n }\n}",
"public class Main {\n static PrintWriter pw;\n static Scanner sc;\n static long ceildiv(long x, long y) { return (x+y-1)/y; }\n static int mod(long x, int m) { return (int)((x%m+m)%m); }\n static void put(TreeMap<Integer, Integer> map, Integer p){if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); }\n static void rem(TreeMap<Integer, Integer> map, Integer p){ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); }\n static long gcd(long x, long y) {return y==0?x:gcd(y, x%y);}\n static int Int(boolean x){ return x?1:0; }\n public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n pw=new PrintWriter(System.out);\n int n=sc.nextInt(), d=sc.nextInt();\n Pair[] arr=sc.nextPairArr(n);\n int ans=0;\n for(int i=0; i<n; i++){\n double x=Math.sqrt(sq(arr[i].x)+sq(arr[i].y));\n ans+=Int(x<=d);\n }\n pw.println(ans);\n pw.close();\n }\n static long sq(int x){\n return x*1l*x;\n }\n static long[] fact;\n static int modInv(int x, int mod){\n return Euclid(x, mod).x;\n }\n static Main.Pair Euclid(int x, int y){\n if(y==0)\n return new Main.Pair(1, 0);\n Main.Pair p=Euclid(y, x%y);\n int a=p.y, b=(int)(p.x-p.y*1l*(x/y));\n return new Main.Pair(a, b);\n }\n static long Pow(long a, int e, int mod) {\n a %= mod;\n long res = 1;\n while (e > 0) {\n if ((e & 1) == 1)\n res = (res * a) % mod;\n a = (a * a) % mod;\n e >>= 1;\n }\n return res;\n }\n static void printArr(int[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(long[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(Integer[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");\n pw.println();\n }\n static void printArr(char[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);\n pw.println();\n }\n static void printArr(ArrayList<Integer> list) {\n for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");\n pw.println();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public Pair nextPair() throws IOException{\n return new Pair(nextInt(), nextInt());\n }\n public Pair[] nextPairArr(int n) throws IOException{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x*1000+this.y);\n }\n public int compareTo(Pair p){\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }\n public Pair clone(){\n return new Pair(x, y);\n }\n public String toString(){\n return this.x+\" \"+this.y;\n }\n public void add(Pair p){\n x+=p.x;\n y+=p.y;\n }\n }\n static class Union{\n int[] rep, size;\n int sets;\n public Union(int n){\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }\n public void join(int x, int y){\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }\n public int getSet(int x){\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
static PrintWriter pw;
static Scanner sc;
static long ceildiv(long x, long y) { return (x+y-1)/y; }
static int mod(long x, int m) { return (int)((x%m+m)%m); }
static void put(TreeMap<Integer, Integer> map, Integer p){if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); }
static void rem(TreeMap<Integer, Integer> map, Integer p){ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); }
static long gcd(long x, long y) {return y==0?x:gcd(y, x%y);}
static int Int(boolean x){ return x?1:0; }
public static void main(String[] args) throws Exception {
sc = new Scanner(System.in);
pw=new PrintWriter(System.out);
int n=sc.nextInt(), d=sc.nextInt();
Pair[] arr=sc.nextPairArr(n);
int ans=0;
for(int i=0; i<n; i++){
double x=Math.sqrt(sq(arr[i].x)+sq(arr[i].y));
ans+=Int(x<=d);
}
pw.println(ans);
pw.close();
}
static long sq(int x){
return x*1l*x;
}
static long[] fact;
static int modInv(int x, int mod){
return Euclid(x, mod).x;
}
static Main.Pair Euclid(int x, int y){
if(y==0)
return new Main.Pair(1, 0);
Main.Pair p=Euclid(y, x%y);
int a=p.y, b=(int)(p.x-p.y*1l*(x/y));
return new Main.Pair(a, b);
}
static long Pow(long a, int e, int mod) {
a %= mod;
long res = 1;
while (e > 0) {
if ((e & 1) == 1)
res = (res * a) % mod;
a = (a * a) % mod;
e >>= 1;
}
return res;
}
static void printArr(int[] arr) {
for (int i = 0; i < arr.length - 1; i++)
pw.print(arr[i] + " ");
pw.println(arr[arr.length - 1]);
}
static void printArr(long[] arr) {
for (int i = 0; i < arr.length - 1; i++)
pw.print(arr[i] + " ");
pw.println(arr[arr.length - 1]);
}
static void printArr(Integer[] arr) {
for (int i = 0; i < arr.length; i++)
pw.print(arr[i] + " ");
pw.println();
}
static void printArr(char[] arr) {
for (int i = 0; i < arr.length; i++)
pw.print(arr[i]==0? '1': arr[i]);
pw.println();
}
static void printArr(ArrayList<Integer> list) {
for (int i = 0; i < list.size(); i++)
pw.print(list.get(i)+" ");
pw.println();
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
public Scanner(FileReader r) {
br = new BufferedReader(r);
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public long nextLong() throws IOException {
return Long.parseLong(next());
}
public String nextLine() throws IOException {
return br.readLine();
}
public double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public int[] nextArr(int n) throws IOException {
int[] arr = new int[n];
for (int i = 0; i < arr.length; i++)
arr[i] = nextInt();
return arr;
}
public Integer[] nextsort(int n) throws IOException{
Integer[] arr=new Integer[n];
for(int i=0; i<n; i++)
arr[i]=nextInt();
return arr;
}
public Pair nextPair() throws IOException{
return new Pair(nextInt(), nextInt());
}
public Pair[] nextPairArr(int n) throws IOException{
Pair[] arr=new Pair[n];
for(int i=0; i<n; i++)
arr[i]=nextPair();
return arr;
}
public boolean ready() throws IOException {
return br.ready();
}
}
static class Pair implements Comparable<Pair>{
int x;
int y;
public Pair(int x, int y) {
this.x=x;
this.y=y;
}
public int hashCode() {
return (this.x*1000+this.y);
}
public int compareTo(Pair p){
int min1=Math.min(x, y), min2=Math.min(p.x, p.y);
if(min1!=min2)
return min1-min2;
if(x==p.x)
return y-p.y;
return x-p.x;
}
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (this.getClass() != obj.getClass()) {
return false;
}
Pair p = (Pair) obj;
return this.x==p.x && this.y==p.y;
}
public Pair clone(){
return new Pair(x, y);
}
public String toString(){
return this.x+" "+this.y;
}
public void add(Pair p){
x+=p.x;
y+=p.y;
}
}
static class Union{
int[] rep, size;
int sets;
public Union(int n){
rep=new int[n];
size=new int[n];
sets=n;
Arrays.fill(size, 1);
for(int i=0; i<n; i++)
rep[i]=i;
}
public void join(int x, int y){
int a=getSet(x), b=getSet(y);
if(a==b) return;
sets--;
if(size[a]>size[b]){
rep[b]=a;
size[a]+=size[b];
}else{
rep[a]=b;
size[b]+=size[a];
}
}
public int getSet(int x){
if(rep[x]==x)
return x;
return rep[x]=getSet(rep[x]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
40,
13,
4,
18,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
4,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
6,
13,
41,
13,
12,
13,
30,
4,
13,
18,
13,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
4,
18,
18,
36,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
40,
17,
30,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
2,
2,
2,
13,
17,
2,
17,
13,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
2,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
17,
13,
29,
2,
13,
13,
0,
13,
17,
0,
13,
2,
13,
17,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
18,
13,
13,
30,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
2,
2,
2,
13,
17,
2,
17,
13,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
2,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
17,
13,
3,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
13,
17,
29,
2,
13,
13,
41,
13,
17,
0,
13,
4,
18,
13,
42,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
29,
2,
2,
13,
13,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
17,
30,
41,
13,
4,
18,
13,
42,
4,
18,
13,
13,
30,
0,
13,
4,
18,
13,
29,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
4,
18,
13,
13,
30,
0,
13,
4,
18,
13,
42,
2,
2,
13,
40,
17,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
29,
4,
18,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
2,
13,
40,
17,
2,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
4,
13,
17,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
13,
17,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
4,
13,
17,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
13,
17,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
769,
11
],
[
769,
12
],
[
12,
13
],
[
769,
14
],
[
14,
15
],
[
769,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
769,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
23,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
34,
35
],
[
34,
36
],
[
23,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
69,
71
],
[
60,
72
],
[
72,
73
],
[
23,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
769,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
78,
84
],
[
84,
85
],
[
769,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
88,
95
],
[
95,
96
],
[
88,
97
],
[
97,
98
],
[
98,
99
],
[
88,
100
],
[
100,
101
],
[
101,
102
],
[
88,
103
],
[
103,
104
],
[
104,
105
],
[
769,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
106,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
106,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
118,
126
],
[
126,
127
],
[
106,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
131,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
106,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
146,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
155,
157
],
[
152,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
160,
162
],
[
151,
163
],
[
163,
164
],
[
146,
165
],
[
165,
166
],
[
106,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
173,
177
],
[
177,
178
],
[
178,
179
],
[
170,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
180,
189
],
[
189,
190
],
[
191,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
196,
197
],
[
196,
198
],
[
191,
199
],
[
199,
200
],
[
199,
201
],
[
191,
202
],
[
202,
203
],
[
202,
204
],
[
189,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
180,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
215,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
211,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
180,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
237,
239
],
[
180,
240
],
[
240,
241
],
[
240,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
246,
247
],
[
242,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
253,
255
],
[
248,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
242,
260
],
[
260,
261
],
[
260,
262
],
[
242,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
265,
267
],
[
106,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
274,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
271,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
282,
291
],
[
291,
292
],
[
293,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
294,
298
],
[
298,
299
],
[
298,
300
],
[
293,
301
],
[
301,
302
],
[
301,
303
],
[
293,
304
],
[
304,
305
],
[
304,
306
],
[
291,
307
],
[
307,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
311,
312
],
[
282,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
313,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
320,
321
],
[
317,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
325,
326
],
[
313,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
327,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
335,
336
],
[
282,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
339,
341
],
[
282,
342
],
[
342,
343
],
[
342,
344
],
[
344,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
348,
349
],
[
344,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
351,
355
],
[
355,
356
],
[
355,
357
],
[
350,
358
],
[
344,
359
],
[
359,
360
],
[
359,
361
],
[
344,
362
],
[
362,
363
],
[
362,
364
],
[
364,
365
],
[
364,
366
],
[
282,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
367,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
282,
375
],
[
375,
376
],
[
375,
377
],
[
282,
378
],
[
378,
379
],
[
378,
380
],
[
380,
381
],
[
381,
382
],
[
282,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
384,
388
],
[
388,
389
],
[
388,
390
],
[
383,
391
],
[
391,
392
],
[
392,
393
],
[
392,
394
],
[
391,
395
],
[
395,
396
],
[
395,
397
],
[
397,
398
],
[
397,
399
],
[
391,
400
],
[
400,
401
],
[
400,
402
],
[
391,
403
],
[
403,
404
],
[
403,
405
],
[
405,
406
],
[
406,
407
],
[
282,
408
],
[
408,
409
],
[
409,
410
],
[
410,
411
],
[
410,
412
],
[
409,
413
],
[
106,
414
],
[
414,
415
],
[
414,
416
],
[
416,
417
],
[
417,
418
],
[
418,
419
],
[
418,
420
],
[
420,
421
],
[
421,
422
],
[
422,
423
],
[
420,
424
],
[
424,
425
],
[
417,
426
],
[
426,
427
],
[
427,
428
],
[
427,
429
],
[
429,
430
],
[
430,
431
],
[
426,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
433,
436
],
[
432,
437
],
[
437,
438
],
[
438,
439
],
[
438,
440
],
[
440,
441
],
[
441,
442
],
[
426,
443
],
[
443,
444
],
[
106,
445
],
[
445,
446
],
[
445,
447
],
[
447,
448
],
[
448,
449
],
[
449,
450
],
[
449,
451
],
[
451,
452
],
[
452,
453
],
[
453,
454
],
[
451,
455
],
[
455,
456
],
[
448,
457
],
[
457,
458
],
[
458,
459
],
[
458,
460
],
[
457,
461
],
[
461,
462
],
[
461,
463
],
[
463,
464
],
[
464,
465
],
[
457,
466
],
[
466,
467
],
[
467,
468
],
[
468,
469
],
[
467,
470
],
[
466,
471
],
[
471,
472
],
[
472,
473
],
[
472,
474
],
[
474,
475
],
[
475,
476
],
[
457,
477
],
[
477,
478
],
[
478,
479
],
[
479,
480
],
[
479,
481
],
[
481,
482
],
[
478,
483
],
[
483,
484
],
[
484,
485
],
[
485,
486
],
[
484,
487
],
[
477,
488
],
[
488,
489
],
[
489,
490
],
[
490,
491
],
[
489,
492
],
[
488,
493
],
[
493,
494
],
[
493,
495
],
[
495,
496
],
[
496,
497
],
[
457,
498
],
[
498,
499
],
[
499,
500
],
[
500,
501
],
[
106,
502
],
[
502,
503
],
[
502,
504
],
[
504,
505
],
[
505,
506
],
[
506,
507
],
[
506,
508
],
[
508,
509
],
[
509,
510
],
[
510,
511
],
[
508,
512
],
[
512,
513
],
[
505,
514
],
[
514,
515
],
[
515,
516
],
[
515,
517
],
[
514,
518
],
[
518,
519
],
[
518,
520
],
[
520,
521
],
[
521,
522
],
[
514,
523
],
[
523,
524
],
[
524,
525
],
[
525,
526
],
[
525,
527
],
[
527,
528
],
[
524,
529
],
[
529,
530
],
[
529,
531
],
[
523,
532
],
[
532,
533
],
[
533,
534
],
[
534,
535
],
[
533,
536
],
[
532,
537
],
[
537,
538
],
[
537,
539
],
[
539,
540
],
[
540,
541
],
[
514,
542
],
[
542,
543
],
[
543,
544
],
[
544,
545
],
[
106,
546
],
[
546,
547
],
[
546,
548
],
[
548,
549
],
[
549,
550
],
[
549,
551
],
[
548,
553
],
[
553,
554
],
[
554,
555
],
[
555,
556
],
[
555,
557
],
[
553,
558
],
[
558,
559
],
[
558,
560
],
[
553,
561
],
[
561,
562
],
[
562,
563
],
[
553,
564
],
[
565,
565
],
[
565,
566
],
[
566,
567
],
[
567,
568
],
[
567,
569
],
[
566,
570
],
[
570,
571
],
[
548,
572
],
[
572,
573
],
[
546,
574
],
[
574,
575
],
[
106,
576
],
[
576,
577
],
[
576,
578
],
[
578,
579
],
[
579,
580
],
[
579,
581
],
[
578,
583
],
[
583,
584
],
[
584,
585
],
[
585,
586
],
[
585,
587
],
[
583,
588
],
[
588,
589
],
[
588,
590
],
[
583,
591
],
[
591,
592
],
[
592,
593
],
[
583,
594
],
[
595,
595
],
[
595,
596
],
[
596,
597
],
[
597,
598
],
[
597,
599
],
[
596,
600
],
[
600,
601
],
[
601,
602
],
[
600,
603
],
[
578,
604
],
[
604,
605
],
[
576,
606
],
[
606,
607
],
[
106,
608
],
[
608,
609
],
[
608,
610
],
[
610,
611
],
[
611,
612
],
[
611,
613
],
[
614,
615
],
[
614,
616
],
[
610,
617
],
[
617,
618
],
[
618,
619
],
[
619,
620
],
[
619,
621
],
[
617,
622
],
[
622,
623
],
[
622,
624
],
[
617,
625
],
[
625,
626
],
[
626,
627
],
[
617,
628
],
[
629,
629
],
[
629,
630
],
[
630,
631
],
[
631,
632
],
[
631,
633
],
[
633,
634
],
[
633,
635
],
[
630,
636
],
[
636,
637
],
[
610,
638
],
[
638,
639
],
[
608,
640
],
[
640,
641
],
[
106,
642
],
[
642,
643
],
[
642,
644
],
[
644,
645
],
[
645,
646
],
[
645,
647
],
[
644,
649
],
[
649,
650
],
[
650,
651
],
[
651,
652
],
[
651,
653
],
[
649,
654
],
[
654,
655
],
[
654,
656
],
[
649,
657
],
[
657,
658
],
[
658,
659
],
[
649,
660
],
[
661,
661
],
[
661,
662
],
[
662,
663
],
[
663,
664
],
[
663,
665
],
[
662,
666
],
[
666,
667
],
[
644,
668
],
[
668,
669
],
[
642,
670
],
[
670,
671
],
[
106,
672
],
[
672,
673
],
[
672,
674
],
[
674,
675
],
[
675,
676
],
[
675,
677
],
[
674,
679
],
[
679,
680
],
[
680,
681
],
[
681,
682
],
[
681,
683
],
[
679,
684
],
[
684,
685
],
[
684,
686
],
[
679,
687
],
[
687,
688
],
[
688,
689
],
[
679,
690
],
[
691,
691
],
[
691,
692
],
[
692,
693
],
[
693,
694
],
[
693,
695
],
[
692,
696
],
[
696,
697
],
[
697,
698
],
[
696,
699
],
[
674,
700
],
[
700,
701
],
[
672,
702
],
[
702,
703
],
[
106,
704
],
[
704,
705
],
[
704,
706
],
[
706,
707
],
[
707,
708
],
[
707,
709
],
[
710,
711
],
[
710,
712
],
[
706,
713
],
[
713,
714
],
[
714,
715
],
[
715,
716
],
[
715,
717
],
[
713,
718
],
[
718,
719
],
[
718,
720
],
[
713,
721
],
[
721,
722
],
[
722,
723
],
[
713,
724
],
[
725,
725
],
[
725,
726
],
[
726,
727
],
[
727,
728
],
[
727,
729
],
[
729,
730
],
[
729,
731
],
[
726,
732
],
[
732,
733
],
[
706,
734
],
[
734,
735
],
[
704,
736
],
[
736,
737
],
[
106,
738
],
[
738,
739
],
[
738,
740
],
[
740,
741
],
[
741,
742
],
[
741,
743
],
[
740,
745
],
[
745,
746
],
[
746,
747
],
[
747,
748
],
[
747,
749
],
[
745,
750
],
[
750,
751
],
[
750,
752
],
[
745,
753
],
[
753,
754
],
[
754,
755
],
[
745,
756
],
[
757,
757
],
[
757,
758
],
[
758,
759
],
[
759,
760
],
[
759,
761
],
[
758,
762
],
[
762,
763
],
[
740,
764
],
[
764,
765
],
[
738,
766
],
[
766,
767
],
[
0,
768
],
[
768,
769
],
[
768,
770
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.math.BigDecimal;\n\n@SuppressWarnings(\"unused\")\npublic class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n int N = in.nextInt();\n long D = in.nextLong();\n int cnt = 0;\n for(int i = 0; i < N; i++){\n long X = in.nextLong(), Y = in.nextLong();\n if(X * X + Y * Y <= D * D) cnt++;\n }\n out.println(cnt);\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n int N = in.nextInt();\n long D = in.nextLong();\n int cnt = 0;\n for(int i = 0; i < N; i++){\n long X = in.nextLong(), Y = in.nextLong();\n if(X * X + Y * Y <= D * D) cnt++;\n }\n out.println(cnt);\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"Main",
"FastScanner in;",
"in",
"PrintWriter out;",
"out",
"final static int MOD = (int)1e9+7;",
"MOD",
"(int)1e9+7",
"(int)1e9",
"7",
"void solve(){\n int N = in.nextInt();\n long D = in.nextLong();\n int cnt = 0;\n for(int i = 0; i < N; i++){\n long X = in.nextLong(), Y = in.nextLong();\n if(X * X + Y * Y <= D * D) cnt++;\n }\n out.println(cnt);\n }",
"solve",
"{\n int N = in.nextInt();\n long D = in.nextLong();\n int cnt = 0;\n for(int i = 0; i < N; i++){\n long X = in.nextLong(), Y = in.nextLong();\n if(X * X + Y * Y <= D * D) cnt++;\n }\n out.println(cnt);\n }",
"int N = in.nextInt();",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"long D = in.nextLong();",
"D",
"in.nextLong()",
"in.nextLong",
"in",
"int cnt = 0;",
"cnt",
"0",
"for(int i = 0; i < N; i++){\n long X = in.nextLong(), Y = in.nextLong();\n if(X * X + Y * Y <= D * D) cnt++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n long X = in.nextLong(), Y = in.nextLong();\n if(X * X + Y * Y <= D * D) cnt++;\n }",
"{\n long X = in.nextLong(), Y = in.nextLong();\n if(X * X + Y * Y <= D * D) cnt++;\n }",
"long X = in.nextLong()",
"X",
"in.nextLong()",
"in.nextLong",
"in",
"Y = in.nextLong();",
"Y",
"in.nextLong()",
"in.nextLong",
"in",
"if(X * X + Y * Y <= D * D) cnt++;",
"X * X + Y * Y <= D * D",
"X * X + Y * Y",
"X * X",
"X",
"X",
"Y * Y",
"Y",
"Y",
"D * D",
"D",
"D",
"cnt++",
"cnt",
"out.println(cnt)",
"out.println",
"out",
"cnt",
"public static void main(String[] args) {\n new Main().m();\n }",
"main",
"{\n new Main().m();\n }",
"new Main().m()",
"new Main().m",
"new Main()",
"String[] args",
"args",
"private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }",
"m",
"{\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }",
"in = new FastScanner(System.in)",
"in",
"new FastScanner(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"in.close()",
"in.close",
"in",
"out.close()",
"out.close",
"out",
"static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }",
"FastScanner",
"private Reader input;",
"input",
"public FastScanner() {this(System.in);}",
"FastScanner",
"{this(System.in);}",
"this(System.in)",
"this",
"System.in",
"System",
"System.in",
"public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}",
"FastScanner",
"{this.input = new BufferedReader(new InputStreamReader(stream));}",
"this.input = new BufferedReader(new InputStreamReader(stream))",
"this.input",
"this",
"this.input",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"close",
"{\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n this.input.close();\n }",
"this.input.close()",
"this.input.close",
"this.input",
"this",
"this.input",
"public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"nextInt",
"{\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"long nl = nextLong();",
"nl",
"nextLong()",
"nextLong",
"if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();",
"nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE",
"nl < Integer.MIN_VALUE",
"nl",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"nl > Integer.MAX_VALUE",
"nl",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) nl;",
"(int) nl",
"public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }",
"nextLong",
"{\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }",
"try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }",
"catch (IOException e) {\n e.printStackTrace();\n return -1;\n }",
"IOException e",
"{\n e.printStackTrace();\n return -1;\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return -1;",
"-1",
"1",
"{\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n }",
"int sign = 1;",
"sign",
"1",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b)",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"b != '-'",
"b",
"'-'",
"b != '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }",
"b == '-'",
"b",
"'-'",
"{\n sign = -1;\n b = input.read();\n }",
"sign = -1",
"sign",
"-1",
"1",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '+') {\n b = input.read();\n }",
"b == '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"long ret = b - '0';",
"ret",
"b - '0'",
"b",
"'0'",
"while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }",
"true",
"{\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b < '0' || '9' < b) return ret * sign;",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"return ret * sign;",
"ret * sign",
"ret",
"sign",
"ret *= 10",
"ret",
"10",
"ret += b - '0'",
"ret",
"b - '0'",
"b",
"'0'",
"public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }",
"nextDouble",
"{\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }",
"try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }",
"catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }",
"IOException e",
"{\n e.printStackTrace();\n return Double.NaN;\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return Double.NaN;",
"Double.NaN",
"Double",
"Double.NaN",
"{\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n }",
"double sign = 1;",
"sign",
"1",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b)",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"b != '-'",
"b",
"'-'",
"b != '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }",
"b == '-'",
"b",
"'-'",
"{\n sign = -1;\n b = input.read();\n }",
"sign = -1",
"sign",
"-1",
"1",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '+') {\n b = input.read();\n }",
"b == '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"double ret = b - '0';",
"ret",
"b - '0'",
"b",
"'0'",
"while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }",
"true",
"{\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b < '0' || '9' < b) break;",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"break;",
"ret *= 10",
"ret",
"10",
"ret += b - '0'",
"ret",
"b - '0'",
"b",
"'0'",
"if (b != '.') return sign * ret;",
"b != '.'",
"b",
"'.'",
"return sign * ret;",
"sign * ret",
"sign",
"ret",
"double div = 1;",
"div",
"1",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }",
"ret *= 10",
"ret",
"10",
"ret += b - '0'",
"ret",
"b - '0'",
"b",
"'0'",
"div *= 10",
"div",
"10",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return sign * ret / div;",
"sign * ret / div",
"sign * ret",
"sign",
"ret",
"div",
"public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }",
"nextChar",
"{\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }",
"try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }",
"catch (IOException e) {\n e.printStackTrace();\n return 0;\n }",
"IOException e",
"{\n e.printStackTrace();\n return 0;\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return 0;",
"0",
"{\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n }",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while (Character.isWhitespace(b)) {\n b = input.read();\n }",
"Character.isWhitespace(b)",
"Character.isWhitespace",
"Character",
"b",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return (char) b;",
"(char) b",
"public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"nextStr",
"{\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"IOException e",
"{\n e.printStackTrace();\n return \"\";\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return \"\";",
"\"\"",
"{\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while (Character.isWhitespace(b)) {\n b = input.read();\n }",
"Character.isWhitespace(b)",
"Character.isWhitespace",
"Character",
"b",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }",
"b != -1 && !Character.isWhitespace(b)",
"b != -1",
"b",
"-1",
"1",
"!Character.isWhitespace(b)",
"Character.isWhitespace(b)",
"Character.isWhitespace",
"Character",
"b",
"{\n sb.append((char) b);\n b = input.read();\n }",
"sb.append((char) b)",
"sb.append",
"sb",
"(char) b",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"nextLine",
"{\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"IOException e",
"{\n e.printStackTrace();\n return \"\";\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return \"\";",
"\"\"",
"{\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }",
"b != -1 && b != '\\n'",
"b != -1",
"b",
"-1",
"1",
"b != '\\n'",
"b",
"'\\n'",
"{\n sb.append((char) b);\n b = input.read();\n }",
"sb.append((char) b)",
"sb.append",
"sb",
"(char) b",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }",
"nextIntArray",
"{\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }",
"int[] res = new int[n];",
"res",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextInt();\n }",
"{\n res[i] = nextInt();\n }",
"res[i] = nextInt()",
"res[i]",
"res",
"i",
"nextInt()",
"nextInt",
"return res;",
"res",
"int n",
"n",
"public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }",
"nextIntArrayDec",
"{\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }",
"int[] res = new int[n];",
"res",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextInt() - 1;\n }",
"{\n res[i] = nextInt() - 1;\n }",
"res[i] = nextInt() - 1",
"res[i]",
"res",
"i",
"nextInt() - 1",
"nextInt()",
"nextInt",
"1",
"return res;",
"res",
"int n",
"n",
"public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }",
"nextIntArray1Index",
"{\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }",
"int[] res = new int[n + 1];",
"res",
"new int[n + 1]",
"n + 1",
"n",
"1",
"for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i + 1] = nextInt();\n }",
"{\n res[i + 1] = nextInt();\n }",
"res[i + 1] = nextInt()",
"res[i + 1]",
"res",
"i + 1",
"i",
"1",
"nextInt()",
"nextInt",
"return res;",
"res",
"int n",
"n",
"public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }",
"nextLongArray",
"{\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }",
"long[] res = new long[n];",
"res",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextLong();\n }",
"{\n res[i] = nextLong();\n }",
"res[i] = nextLong()",
"res[i]",
"res",
"i",
"nextLong()",
"nextLong",
"return res;",
"res",
"int n",
"n",
"public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }",
"nextLongArrayDec",
"{\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }",
"long[] res = new long[n];",
"res",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextLong() - 1;\n }",
"{\n res[i] = nextLong() - 1;\n }",
"res[i] = nextLong() - 1",
"res[i]",
"res",
"i",
"nextLong() - 1",
"nextLong()",
"nextLong",
"1",
"return res;",
"res",
"int n",
"n",
"public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }",
"nextLongArray1Index",
"{\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }",
"long[] res = new long[n + 1];",
"res",
"new long[n + 1]",
"n + 1",
"n",
"1",
"for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i + 1] = nextLong();\n }",
"{\n res[i + 1] = nextLong();\n }",
"res[i + 1] = nextLong()",
"res[i + 1]",
"res",
"i + 1",
"i",
"1",
"nextLong()",
"nextLong",
"return res;",
"res",
"int n",
"n",
"public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }",
"nextDoubleArray",
"{\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }",
"double[] res = new double[n];",
"res",
"new double[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextDouble();\n }",
"{\n res[i] = nextDouble();\n }",
"res[i] = nextDouble()",
"res[i]",
"res",
"i",
"nextDouble()",
"nextDouble",
"return res;",
"res",
"int n",
"n",
"public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n int N = in.nextInt();\n long D = in.nextLong();\n int cnt = 0;\n for(int i = 0; i < N; i++){\n long X = in.nextLong(), Y = in.nextLong();\n if(X * X + Y * Y <= D * D) cnt++;\n }\n out.println(cnt);\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n int N = in.nextInt();\n long D = in.nextLong();\n int cnt = 0;\n for(int i = 0; i < N; i++){\n long X = in.nextLong(), Y = in.nextLong();\n if(X * X + Y * Y <= D * D) cnt++;\n }\n out.println(cnt);\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
import java.math.BigDecimal;
@SuppressWarnings("unused")
public class Main {
FastScanner in;
PrintWriter out;
final static int MOD = (int)1e9+7;
void solve(){
int N = in.nextInt();
long D = in.nextLong();
int cnt = 0;
for(int i = 0; i < N; i++){
long X = in.nextLong(), Y = in.nextLong();
if(X * X + Y * Y <= D * D) cnt++;
}
out.println(cnt);
}
public static void main(String[] args) {
new Main().m();
}
private void m() {
in = new FastScanner(System.in);
out = new PrintWriter(System.out);
/*
try {
String path = "input.txt";
out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));
}catch (IOException e){
e.printStackTrace();
}
*/
solve();
out.flush();
in.close();
out.close();
}
static class FastScanner {
private Reader input;
public FastScanner() {this(System.in);}
public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}
public void close() {
try {
this.input.close();
} catch (IOException e) {
e.printStackTrace();
}
}
public int nextInt() {
long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
return (int) nl;
}
public long nextLong() {
try {
int sign = 1;
int b = input.read();
while ((b < '0' || '9' < b) && b != '-' && b != '+') {
b = input.read();
}
if (b == '-') {
sign = -1;
b = input.read();
} else if (b == '+') {
b = input.read();
}
long ret = b - '0';
while (true) {
b = input.read();
if (b < '0' || '9' < b) return ret * sign;
ret *= 10;
ret += b - '0';
}
} catch (IOException e) {
e.printStackTrace();
return -1;
}
}
public double nextDouble() {
try {
double sign = 1;
int b = input.read();
while ((b < '0' || '9' < b) && b != '-' && b != '+') {
b = input.read();
}
if (b == '-') {
sign = -1;
b = input.read();
} else if (b == '+') {
b = input.read();
}
double ret = b - '0';
while (true) {
b = input.read();
if (b < '0' || '9' < b) break;
ret *= 10;
ret += b - '0';
}
if (b != '.') return sign * ret;
double div = 1;
b = input.read();
while ('0' <= b && b <= '9') {
ret *= 10;
ret += b - '0';
div *= 10;
b = input.read();
}
return sign * ret / div;
} catch (IOException e) {
e.printStackTrace();
return Double.NaN;
}
}
public char nextChar() {
try {
int b = input.read();
while (Character.isWhitespace(b)) {
b = input.read();
}
return (char) b;
} catch (IOException e) {
e.printStackTrace();
return 0;
}
}
public String nextStr() {
try {
StringBuilder sb = new StringBuilder();
int b = input.read();
while (Character.isWhitespace(b)) {
b = input.read();
}
while (b != -1 && !Character.isWhitespace(b)) {
sb.append((char) b);
b = input.read();
}
return sb.toString();
} catch (IOException e) {
e.printStackTrace();
return "";
}
}
public String nextLine() {
try {
StringBuilder sb = new StringBuilder();
int b = input.read();
while (b != -1 && b != '\n') {
sb.append((char) b);
b = input.read();
}
return sb.toString();
} catch (IOException e) {
e.printStackTrace();
return "";
}
}
public int[] nextIntArray(int n) {
int[] res = new int[n];
for (int i = 0; i < n; i++) {
res[i] = nextInt();
}
return res;
}
public int[] nextIntArrayDec(int n) {
int[] res = new int[n];
for (int i = 0; i < n; i++) {
res[i] = nextInt() - 1;
}
return res;
}
public int[] nextIntArray1Index(int n) {
int[] res = new int[n + 1];
for (int i = 0; i < n; i++) {
res[i + 1] = nextInt();
}
return res;
}
public long[] nextLongArray(int n) {
long[] res = new long[n];
for (int i = 0; i < n; i++) {
res[i] = nextLong();
}
return res;
}
public long[] nextLongArrayDec(int n) {
long[] res = new long[n];
for (int i = 0; i < n; i++) {
res[i] = nextLong() - 1;
}
return res;
}
public long[] nextLongArray1Index(int n) {
long[] res = new long[n + 1];
for (int i = 0; i < n; i++) {
res[i + 1] = nextLong();
}
return res;
}
public double[] nextDoubleArray(int n) {
double[] res = new double[n];
for (int i = 0; i < n; i++) {
res[i] = nextDouble();
}
return res;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
77,
5
],
[
77,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
57,
59
],
[
48,
60
],
[
60,
61
],
[
61,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
6,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = (long)sc.nextInt();\n int ans = 0;\n for (int cnt = 0; cnt < n; cnt++) {\n long x = (long)sc.nextInt();\n long y = (long)sc.nextInt();\n if ((x * x) + (y * y) <= (d * d)) {\n ans++;\n }\n }\n System.out.println(ans+\"\");\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = (long)sc.nextInt();\n int ans = 0;\n for (int cnt = 0; cnt < n; cnt++) {\n long x = (long)sc.nextInt();\n long y = (long)sc.nextInt();\n if ((x * x) + (y * y) <= (d * d)) {\n ans++;\n }\n }\n System.out.println(ans+\"\");\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = (long)sc.nextInt();\n int ans = 0;\n for (int cnt = 0; cnt < n; cnt++) {\n long x = (long)sc.nextInt();\n long y = (long)sc.nextInt();\n if ((x * x) + (y * y) <= (d * d)) {\n ans++;\n }\n }\n System.out.println(ans+\"\");\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = (long)sc.nextInt();\n int ans = 0;\n for (int cnt = 0; cnt < n; cnt++) {\n long x = (long)sc.nextInt();\n long y = (long)sc.nextInt();\n if ((x * x) + (y * y) <= (d * d)) {\n ans++;\n }\n }\n System.out.println(ans+\"\");\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = (long)sc.nextInt();",
"d",
"(long)sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = 0;",
"ans",
"0",
"for (int cnt = 0; cnt < n; cnt++) {\n long x = (long)sc.nextInt();\n long y = (long)sc.nextInt();\n if ((x * x) + (y * y) <= (d * d)) {\n ans++;\n }\n }",
"int cnt = 0;",
"int cnt = 0;",
"cnt",
"0",
"cnt < n",
"cnt",
"n",
"cnt++",
"cnt++",
"cnt",
"{\n long x = (long)sc.nextInt();\n long y = (long)sc.nextInt();\n if ((x * x) + (y * y) <= (d * d)) {\n ans++;\n }\n }",
"{\n long x = (long)sc.nextInt();\n long y = (long)sc.nextInt();\n if ((x * x) + (y * y) <= (d * d)) {\n ans++;\n }\n }",
"long x = (long)sc.nextInt();",
"x",
"(long)sc.nextInt()",
"sc.nextInt",
"sc",
"long y = (long)sc.nextInt();",
"y",
"(long)sc.nextInt()",
"sc.nextInt",
"sc",
"if ((x * x) + (y * y) <= (d * d)) {\n ans++;\n }",
"(x * x) + (y * y) <= (d * d)",
"(x * x) + (y * y)",
"(x * x)",
"x",
"x",
"(y * y)",
"y",
"y",
"(d * d)",
"d",
"d",
"{\n ans++;\n }",
"ans++",
"ans",
"System.out.println(ans+\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"ans+\"\"",
"ans",
"\"\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = (long)sc.nextInt();\n int ans = 0;\n for (int cnt = 0; cnt < n; cnt++) {\n long x = (long)sc.nextInt();\n long y = (long)sc.nextInt();\n if ((x * x) + (y * y) <= (d * d)) {\n ans++;\n }\n }\n System.out.println(ans+\"\");\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = (long)sc.nextInt();\n int ans = 0;\n for (int cnt = 0; cnt < n; cnt++) {\n long x = (long)sc.nextInt();\n long y = (long)sc.nextInt();\n if ((x * x) + (y * y) <= (d * d)) {\n ans++;\n }\n }\n System.out.println(ans+\"\");\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long d = (long)sc.nextInt();
int ans = 0;
for (int cnt = 0; cnt < n; cnt++) {
long x = (long)sc.nextInt();
long y = (long)sc.nextInt();
if ((x * x) + (y * y) <= (d * d)) {
ans++;
}
}
System.out.println(ans+"");
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
74,
8
],
[
74,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
60,
62
],
[
51,
63
],
[
63,
64
],
[
11,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
9,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
]
| [
"import java.util.Scanner;\nimport java.lang.Math;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int N = scan.nextInt(); long D = scan.nextInt();\n\n int ans = 0;\n for(int i = 0; i < N; i++) {\n long X = scan.nextInt();\n long Y = scan.nextInt();\n if(X*X+Y*Y <= D*D) ans++;\n }\n\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int N = scan.nextInt(); long D = scan.nextInt();\n\n int ans = 0;\n for(int i = 0; i < N; i++) {\n long X = scan.nextInt();\n long Y = scan.nextInt();\n if(X*X+Y*Y <= D*D) ans++;\n }\n\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int N = scan.nextInt(); long D = scan.nextInt();\n\n int ans = 0;\n for(int i = 0; i < N; i++) {\n long X = scan.nextInt();\n long Y = scan.nextInt();\n if(X*X+Y*Y <= D*D) ans++;\n }\n\n System.out.println(ans);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n int N = scan.nextInt(); long D = scan.nextInt();\n\n int ans = 0;\n for(int i = 0; i < N; i++) {\n long X = scan.nextInt();\n long Y = scan.nextInt();\n if(X*X+Y*Y <= D*D) ans++;\n }\n\n System.out.println(ans);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long D = scan.nextInt();",
"D",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int ans = 0;",
"ans",
"0",
"for(int i = 0; i < N; i++) {\n long X = scan.nextInt();\n long Y = scan.nextInt();\n if(X*X+Y*Y <= D*D) ans++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n long X = scan.nextInt();\n long Y = scan.nextInt();\n if(X*X+Y*Y <= D*D) ans++;\n }",
"{\n long X = scan.nextInt();\n long Y = scan.nextInt();\n if(X*X+Y*Y <= D*D) ans++;\n }",
"long X = scan.nextInt();",
"X",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long Y = scan.nextInt();",
"Y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(X*X+Y*Y <= D*D) ans++;",
"X*X+Y*Y <= D*D",
"X*X+Y*Y",
"X*X",
"X",
"X",
"Y*Y",
"Y",
"Y",
"D*D",
"D",
"D",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int N = scan.nextInt(); long D = scan.nextInt();\n\n int ans = 0;\n for(int i = 0; i < N; i++) {\n long X = scan.nextInt();\n long Y = scan.nextInt();\n if(X*X+Y*Y <= D*D) ans++;\n }\n\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int N = scan.nextInt(); long D = scan.nextInt();\n\n int ans = 0;\n for(int i = 0; i < N; i++) {\n long X = scan.nextInt();\n long Y = scan.nextInt();\n if(X*X+Y*Y <= D*D) ans++;\n }\n\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.lang.Math;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt(); long D = scan.nextInt();
int ans = 0;
for(int i = 0; i < N; i++) {
long X = scan.nextInt();
long Y = scan.nextInt();
if(X*X+Y*Y <= D*D) ans++;
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
2,
2,
2,
13,
13,
2,
13,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
106,
11
],
[
106,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
14,
45
],
[
45,
46
],
[
45,
47
],
[
14,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
63,
68
],
[
60,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
74,
76
],
[
60,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
60,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
85,
95
],
[
95,
96
],
[
14,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
12,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] s = br.readLine().split(\" \");\n int n = Integer.parseInt(s[0]);\n long d = Long.parseLong(s[1]);\n d *= d;\n int count = 0;\n for(int i=0; i<n; i++) {\n s = br.readLine().split(\" \");\n long x = Long.parseLong(s[0]);\n long y = Long.parseLong(s[1]);\n if(x*x + y*y <= d)\n count++;\n }\n System.out.print(count);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] s = br.readLine().split(\" \");\n int n = Integer.parseInt(s[0]);\n long d = Long.parseLong(s[1]);\n d *= d;\n int count = 0;\n for(int i=0; i<n; i++) {\n s = br.readLine().split(\" \");\n long x = Long.parseLong(s[0]);\n long y = Long.parseLong(s[1]);\n if(x*x + y*y <= d)\n count++;\n }\n System.out.print(count);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] s = br.readLine().split(\" \");\n int n = Integer.parseInt(s[0]);\n long d = Long.parseLong(s[1]);\n d *= d;\n int count = 0;\n for(int i=0; i<n; i++) {\n s = br.readLine().split(\" \");\n long x = Long.parseLong(s[0]);\n long y = Long.parseLong(s[1]);\n if(x*x + y*y <= d)\n count++;\n }\n System.out.print(count);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] s = br.readLine().split(\" \");\n int n = Integer.parseInt(s[0]);\n long d = Long.parseLong(s[1]);\n d *= d;\n int count = 0;\n for(int i=0; i<n; i++) {\n s = br.readLine().split(\" \");\n long x = Long.parseLong(s[0]);\n long y = Long.parseLong(s[1]);\n if(x*x + y*y <= d)\n count++;\n }\n System.out.print(count);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] s = br.readLine().split(\" \");",
"s",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(s[0]);",
"n",
"Integer.parseInt(s[0])",
"Integer.parseInt",
"Integer",
"s[0]",
"s",
"0",
"long d = Long.parseLong(s[1]);",
"d",
"Long.parseLong(s[1])",
"Long.parseLong",
"Long",
"s[1]",
"s",
"1",
"d *= d",
"d",
"d",
"int count = 0;",
"count",
"0",
"for(int i=0; i<n; i++) {\n s = br.readLine().split(\" \");\n long x = Long.parseLong(s[0]);\n long y = Long.parseLong(s[1]);\n if(x*x + y*y <= d)\n count++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s = br.readLine().split(\" \");\n long x = Long.parseLong(s[0]);\n long y = Long.parseLong(s[1]);\n if(x*x + y*y <= d)\n count++;\n }",
"{\n s = br.readLine().split(\" \");\n long x = Long.parseLong(s[0]);\n long y = Long.parseLong(s[1]);\n if(x*x + y*y <= d)\n count++;\n }",
"s = br.readLine().split(\" \")",
"s",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"long x = Long.parseLong(s[0]);",
"x",
"Long.parseLong(s[0])",
"Long.parseLong",
"Long",
"s[0]",
"s",
"0",
"long y = Long.parseLong(s[1]);",
"y",
"Long.parseLong(s[1])",
"Long.parseLong",
"Long",
"s[1]",
"s",
"1",
"if(x*x + y*y <= d)\n count++;",
"x*x + y*y <= d",
"x*x + y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"d",
"count++",
"count",
"System.out.print(count)",
"System.out.print",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] s = br.readLine().split(\" \");\n int n = Integer.parseInt(s[0]);\n long d = Long.parseLong(s[1]);\n d *= d;\n int count = 0;\n for(int i=0; i<n; i++) {\n s = br.readLine().split(\" \");\n long x = Long.parseLong(s[0]);\n long y = Long.parseLong(s[1]);\n if(x*x + y*y <= d)\n count++;\n }\n System.out.print(count);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] s = br.readLine().split(\" \");\n int n = Integer.parseInt(s[0]);\n long d = Long.parseLong(s[1]);\n d *= d;\n int count = 0;\n for(int i=0; i<n; i++) {\n s = br.readLine().split(\" \");\n long x = Long.parseLong(s[0]);\n long y = Long.parseLong(s[1]);\n if(x*x + y*y <= d)\n count++;\n }\n System.out.print(count);\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] s = br.readLine().split(" ");
int n = Integer.parseInt(s[0]);
long d = Long.parseLong(s[1]);
d *= d;
int count = 0;
for(int i=0; i<n; i++) {
s = br.readLine().split(" ");
long x = Long.parseLong(s[0]);
long y = Long.parseLong(s[1]);
if(x*x + y*y <= d)
count++;
}
System.out.print(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
4,
18,
13,
18,
13,
13,
17,
4,
18,
13,
18,
13,
13,
17,
4,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
8,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
76,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
74,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
90,
94
],
[
73,
95
],
[
95,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
6,
103
],
[
103,
104
]
]
| [
"import java.util.*;\n \nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int Num = sc.nextInt();\n int Dis = sc.nextInt();\n int[] Xa = new int[Num];\n int[] Ya = new int[Num];\n for(int i=0;i<Num;i++){\n Xa[i] = sc.nextInt();\n Ya[i] = sc.nextInt();\n }\n int R = 0;\n for(int k=0;k<Num;k++){\n if(Math.pow(Xa[k],2)+Math.pow(Ya[k],2)<=Math.pow(Dis,2))R++;\n }\n System.out.println(R);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int Num = sc.nextInt();\n int Dis = sc.nextInt();\n int[] Xa = new int[Num];\n int[] Ya = new int[Num];\n for(int i=0;i<Num;i++){\n Xa[i] = sc.nextInt();\n Ya[i] = sc.nextInt();\n }\n int R = 0;\n for(int k=0;k<Num;k++){\n if(Math.pow(Xa[k],2)+Math.pow(Ya[k],2)<=Math.pow(Dis,2))R++;\n }\n System.out.println(R);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int Num = sc.nextInt();\n int Dis = sc.nextInt();\n int[] Xa = new int[Num];\n int[] Ya = new int[Num];\n for(int i=0;i<Num;i++){\n Xa[i] = sc.nextInt();\n Ya[i] = sc.nextInt();\n }\n int R = 0;\n for(int k=0;k<Num;k++){\n if(Math.pow(Xa[k],2)+Math.pow(Ya[k],2)<=Math.pow(Dis,2))R++;\n }\n System.out.println(R);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int Num = sc.nextInt();\n int Dis = sc.nextInt();\n int[] Xa = new int[Num];\n int[] Ya = new int[Num];\n for(int i=0;i<Num;i++){\n Xa[i] = sc.nextInt();\n Ya[i] = sc.nextInt();\n }\n int R = 0;\n for(int k=0;k<Num;k++){\n if(Math.pow(Xa[k],2)+Math.pow(Ya[k],2)<=Math.pow(Dis,2))R++;\n }\n System.out.println(R);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int Num = sc.nextInt();",
"Num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Dis = sc.nextInt();",
"Dis",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] Xa = new int[Num];",
"Xa",
"new int[Num]",
"Num",
"int[] Ya = new int[Num];",
"Ya",
"new int[Num]",
"Num",
"for(int i=0;i<Num;i++){\n Xa[i] = sc.nextInt();\n Ya[i] = sc.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<Num",
"i",
"Num",
"i++",
"i++",
"i",
"{\n Xa[i] = sc.nextInt();\n Ya[i] = sc.nextInt();\n }",
"{\n Xa[i] = sc.nextInt();\n Ya[i] = sc.nextInt();\n }",
"Xa[i] = sc.nextInt()",
"Xa[i]",
"Xa",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Ya[i] = sc.nextInt()",
"Ya[i]",
"Ya",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int R = 0;",
"R",
"0",
"for(int k=0;k<Num;k++){\n if(Math.pow(Xa[k],2)+Math.pow(Ya[k],2)<=Math.pow(Dis,2))R++;\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<Num",
"k",
"Num",
"k++",
"k++",
"k",
"{\n if(Math.pow(Xa[k],2)+Math.pow(Ya[k],2)<=Math.pow(Dis,2))R++;\n }",
"{\n if(Math.pow(Xa[k],2)+Math.pow(Ya[k],2)<=Math.pow(Dis,2))R++;\n }",
"if(Math.pow(Xa[k],2)+Math.pow(Ya[k],2)<=Math.pow(Dis,2))R++;",
"Math.pow(Xa[k],2)+Math.pow(Ya[k],2)<=Math.pow(Dis,2)",
"Math.pow(Xa[k],2)+Math.pow(Ya[k],2)",
"Math.pow(Xa[k],2)",
"Math.pow",
"Math",
"Xa[k]",
"Xa",
"k",
"2",
"Math.pow(Ya[k],2)",
"Math.pow",
"Math",
"Ya[k]",
"Ya",
"k",
"2",
"Math.pow(Dis,2)",
"Math.pow",
"Math",
"Dis",
"2",
"R++",
"R",
"System.out.println(R)",
"System.out.println",
"System.out",
"System",
"System.out",
"R",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int Num = sc.nextInt();
int Dis = sc.nextInt();
int[] Xa = new int[Num];
int[] Ya = new int[Num];
for(int i=0;i<Num;i++){
Xa[i] = sc.nextInt();
Ya[i] = sc.nextInt();
}
int R = 0;
for(int k=0;k<Num;k++){
if(Math.pow(Xa[k],2)+Math.pow(Ya[k],2)<=Math.pow(Dis,2))R++;
}
System.out.println(R);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
80,
5
],
[
80,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
53,
64
],
[
52,
65
],
[
65,
66
],
[
66,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
6,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int dis = sc.nextInt();\n\n int count = 0;\n Long x, y;\n\n for(int i = 0; i < num; i++){\n x = sc.nextLong(); y = sc.nextLong();\n if( Math.sqrt(x*x+y*y) <= dis ){\n count++;\n }\n }\n\n System.out.println(count);\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int dis = sc.nextInt();\n\n int count = 0;\n Long x, y;\n\n for(int i = 0; i < num; i++){\n x = sc.nextLong(); y = sc.nextLong();\n if( Math.sqrt(x*x+y*y) <= dis ){\n count++;\n }\n }\n\n System.out.println(count);\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int dis = sc.nextInt();\n\n int count = 0;\n Long x, y;\n\n for(int i = 0; i < num; i++){\n x = sc.nextLong(); y = sc.nextLong();\n if( Math.sqrt(x*x+y*y) <= dis ){\n count++;\n }\n }\n\n System.out.println(count);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int dis = sc.nextInt();\n\n int count = 0;\n Long x, y;\n\n for(int i = 0; i < num; i++){\n x = sc.nextLong(); y = sc.nextLong();\n if( Math.sqrt(x*x+y*y) <= dis ){\n count++;\n }\n }\n\n System.out.println(count);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int dis = sc.nextInt();",
"dis",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 0;",
"count",
"0",
"Long x",
"x",
"y;",
"y",
"for(int i = 0; i < num; i++){\n x = sc.nextLong(); y = sc.nextLong();\n if( Math.sqrt(x*x+y*y) <= dis ){\n count++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n x = sc.nextLong(); y = sc.nextLong();\n if( Math.sqrt(x*x+y*y) <= dis ){\n count++;\n }\n }",
"{\n x = sc.nextLong(); y = sc.nextLong();\n if( Math.sqrt(x*x+y*y) <= dis ){\n count++;\n }\n }",
"x = sc.nextLong()",
"x",
"sc.nextLong()",
"sc.nextLong",
"sc",
"y = sc.nextLong()",
"y",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if( Math.sqrt(x*x+y*y) <= dis ){\n count++;\n }",
"Math.sqrt(x*x+y*y) <= dis",
"Math.sqrt(x*x+y*y)",
"Math.sqrt",
"Math",
"x*x+y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"dis",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int dis = sc.nextInt();\n\n int count = 0;\n Long x, y;\n\n for(int i = 0; i < num; i++){\n x = sc.nextLong(); y = sc.nextLong();\n if( Math.sqrt(x*x+y*y) <= dis ){\n count++;\n }\n }\n\n System.out.println(count);\n sc.close();\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int dis = sc.nextInt();\n\n int count = 0;\n Long x, y;\n\n for(int i = 0; i < num; i++){\n x = sc.nextLong(); y = sc.nextLong();\n if( Math.sqrt(x*x+y*y) <= dis ){\n count++;\n }\n }\n\n System.out.println(count);\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
int dis = sc.nextInt();
int count = 0;
Long x, y;
for(int i = 0; i < num; i++){
x = sc.nextLong(); y = sc.nextLong();
if( Math.sqrt(x*x+y*y) <= dis ){
count++;
}
}
System.out.println(count);
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
40,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
63,
65
],
[
54,
66
],
[
66,
67
],
[
67,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
]
]
| [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n long d = sc.nextLong();\n long x = 0;\n long y = 0;\n\n long count = 0;\n\n for(long i = 0; i < n; i++){\n x = sc.nextLong();\n y = sc.nextLong();\n if((x * x) + (y * y) <= d * d){\n count++;\n }\n }\n sc.close();\n\n System.out.println(count);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n long d = sc.nextLong();\n long x = 0;\n long y = 0;\n\n long count = 0;\n\n for(long i = 0; i < n; i++){\n x = sc.nextLong();\n y = sc.nextLong();\n if((x * x) + (y * y) <= d * d){\n count++;\n }\n }\n sc.close();\n\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n long d = sc.nextLong();\n long x = 0;\n long y = 0;\n\n long count = 0;\n\n for(long i = 0; i < n; i++){\n x = sc.nextLong();\n y = sc.nextLong();\n if((x * x) + (y * y) <= d * d){\n count++;\n }\n }\n sc.close();\n\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n long d = sc.nextLong();\n long x = 0;\n long y = 0;\n\n long count = 0;\n\n for(long i = 0; i < n; i++){\n x = sc.nextLong();\n y = sc.nextLong();\n if((x * x) + (y * y) <= d * d){\n count++;\n }\n }\n sc.close();\n\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n = sc.nextLong();",
"n",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long x = 0;",
"x",
"0",
"long y = 0;",
"y",
"0",
"long count = 0;",
"count",
"0",
"for(long i = 0; i < n; i++){\n x = sc.nextLong();\n y = sc.nextLong();\n if((x * x) + (y * y) <= d * d){\n count++;\n }\n }",
"long i = 0;",
"long i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n x = sc.nextLong();\n y = sc.nextLong();\n if((x * x) + (y * y) <= d * d){\n count++;\n }\n }",
"{\n x = sc.nextLong();\n y = sc.nextLong();\n if((x * x) + (y * y) <= d * d){\n count++;\n }\n }",
"x = sc.nextLong()",
"x",
"sc.nextLong()",
"sc.nextLong",
"sc",
"y = sc.nextLong()",
"y",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if((x * x) + (y * y) <= d * d){\n count++;\n }",
"(x * x) + (y * y) <= d * d",
"(x * x) + (y * y)",
"(x * x)",
"x",
"x",
"(y * y)",
"y",
"y",
"d * d",
"d",
"d",
"{\n count++;\n }",
"count++",
"count",
"sc.close()",
"sc.close",
"sc",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String args[]",
"args"
]
| import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
long d = sc.nextLong();
long x = 0;
long y = 0;
long count = 0;
for(long i = 0; i < n; i++){
x = sc.nextLong();
y = sc.nextLong();
if((x * x) + (y * y) <= d * d){
count++;
}
}
sc.close();
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
49,
60
],
[
48,
61
],
[
61,
62
],
[
62,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n double x = sc.nextDouble();\n double y = sc.nextDouble();\n if (Math.sqrt(x * x + y * y) <= d) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n double x = sc.nextDouble();\n double y = sc.nextDouble();\n if (Math.sqrt(x * x + y * y) <= d) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n double x = sc.nextDouble();\n double y = sc.nextDouble();\n if (Math.sqrt(x * x + y * y) <= d) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n double x = sc.nextDouble();\n double y = sc.nextDouble();\n if (Math.sqrt(x * x + y * y) <= d) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int cnt = 0;",
"cnt",
"0",
"for (int i = 0; i < n; i++) {\n double x = sc.nextDouble();\n double y = sc.nextDouble();\n if (Math.sqrt(x * x + y * y) <= d) {\n cnt++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n double x = sc.nextDouble();\n double y = sc.nextDouble();\n if (Math.sqrt(x * x + y * y) <= d) {\n cnt++;\n }\n }",
"{\n double x = sc.nextDouble();\n double y = sc.nextDouble();\n if (Math.sqrt(x * x + y * y) <= d) {\n cnt++;\n }\n }",
"double x = sc.nextDouble();",
"x",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double y = sc.nextDouble();",
"y",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"if (Math.sqrt(x * x + y * y) <= d) {\n cnt++;\n }",
"Math.sqrt(x * x + y * y) <= d",
"Math.sqrt(x * x + y * y)",
"Math.sqrt",
"Math",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"d",
"{\n cnt++;\n }",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n double x = sc.nextDouble();\n double y = sc.nextDouble();\n if (Math.sqrt(x * x + y * y) <= d) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n double x = sc.nextDouble();\n double y = sc.nextDouble();\n if (Math.sqrt(x * x + y * y) <= d) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int d = sc.nextInt();
int cnt = 0;
for (int i = 0; i < n; i++) {
double x = sc.nextDouble();
double y = sc.nextDouble();
if (Math.sqrt(x * x + y * y) <= d) {
cnt++;
}
}
System.out.println(cnt);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
14,
2,
13,
13,
30,
40,
13,
14,
2,
2,
13,
17,
2,
13,
13,
30,
9,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
45,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
45,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
80,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.util.*;\n public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n double D = sc.nextDouble();\n int cnt = 0;\n double[] X = new double[N];\n double[] Y = new double[N];\n for(int i=0; i<N; i++){\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n double d = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(d<=D){\n cnt++;\n } else if(N==0 || d>D){\n continue;\n }\n }\n System.out.println(cnt);\n }\n }",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n double D = sc.nextDouble();\n int cnt = 0;\n double[] X = new double[N];\n double[] Y = new double[N];\n for(int i=0; i<N; i++){\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n double d = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(d<=D){\n cnt++;\n } else if(N==0 || d>D){\n continue;\n }\n }\n System.out.println(cnt);\n }\n }",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n double D = sc.nextDouble();\n int cnt = 0;\n double[] X = new double[N];\n double[] Y = new double[N];\n for(int i=0; i<N; i++){\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n double d = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(d<=D){\n cnt++;\n } else if(N==0 || d>D){\n continue;\n }\n }\n System.out.println(cnt);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n double D = sc.nextDouble();\n int cnt = 0;\n double[] X = new double[N];\n double[] Y = new double[N];\n for(int i=0; i<N; i++){\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n double d = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(d<=D){\n cnt++;\n } else if(N==0 || d>D){\n continue;\n }\n }\n System.out.println(cnt);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double D = sc.nextDouble();",
"D",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"int cnt = 0;",
"cnt",
"0",
"double[] X = new double[N];",
"X",
"new double[N]",
"N",
"double[] Y = new double[N];",
"Y",
"new double[N]",
"N",
"for(int i=0; i<N; i++){\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n double d = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(d<=D){\n cnt++;\n } else if(N==0 || d>D){\n continue;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n double d = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(d<=D){\n cnt++;\n } else if(N==0 || d>D){\n continue;\n }\n }",
"{\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n double d = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(d<=D){\n cnt++;\n } else if(N==0 || d>D){\n continue;\n }\n }",
"X[i] = sc.nextDouble()",
"X[i]",
"X",
"i",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"Y[i] = sc.nextDouble()",
"Y[i]",
"Y",
"i",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double d = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);",
"d",
"Math.sqrt(X[i]*X[i]+Y[i]*Y[i])",
"Math.sqrt",
"Math",
"X[i]*X[i]+Y[i]*Y[i]",
"X[i]*X[i]",
"X[i]",
"X",
"i",
"X[i]",
"X",
"i",
"Y[i]*Y[i]",
"Y[i]",
"Y",
"i",
"Y[i]",
"Y",
"i",
"if(d<=D){\n cnt++;\n } else if(N==0 || d>D){\n continue;\n }",
"d<=D",
"d",
"D",
"{\n cnt++;\n }",
"cnt++",
"cnt",
"if(N==0 || d>D){\n continue;\n }",
"N==0 || d>D",
"N==0",
"N",
"0",
"d>D",
"d",
"D",
"{\n continue;\n }",
"continue;",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n double D = sc.nextDouble();\n int cnt = 0;\n double[] X = new double[N];\n double[] Y = new double[N];\n for(int i=0; i<N; i++){\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n double d = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(d<=D){\n cnt++;\n } else if(N==0 || d>D){\n continue;\n }\n }\n System.out.println(cnt);\n }\n }",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n double D = sc.nextDouble();\n int cnt = 0;\n double[] X = new double[N];\n double[] Y = new double[N];\n for(int i=0; i<N; i++){\n X[i] = sc.nextDouble();\n Y[i] = sc.nextDouble();\n double d = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(d<=D){\n cnt++;\n } else if(N==0 || d>D){\n continue;\n }\n }\n System.out.println(cnt);\n }\n }",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
double D = sc.nextDouble();
int cnt = 0;
double[] X = new double[N];
double[] Y = new double[N];
for(int i=0; i<N; i++){
X[i] = sc.nextDouble();
Y[i] = sc.nextDouble();
double d = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);
if(d<=D){
cnt++;
} else if(N==0 || d>D){
continue;
}
}
System.out.println(cnt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
25,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
30,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n //B - Distance\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n double D = scan.nextDouble();\n\n int overCount = 0;\n\n while (N-- > 0) {\n double X = scan.nextDouble();\n double Y = scan.nextDouble();\n double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (dis <= D) {\n overCount++;\n }\n }\n System.out.println(overCount);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n //B - Distance\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n double D = scan.nextDouble();\n\n int overCount = 0;\n\n while (N-- > 0) {\n double X = scan.nextDouble();\n double Y = scan.nextDouble();\n double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (dis <= D) {\n overCount++;\n }\n }\n System.out.println(overCount);\n }\n}",
"Main",
"//B - Distance\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n double D = scan.nextDouble();\n\n int overCount = 0;\n\n while (N-- > 0) {\n double X = scan.nextDouble();\n double Y = scan.nextDouble();\n double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (dis <= D) {\n overCount++;\n }\n }\n System.out.println(overCount);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n double D = scan.nextDouble();\n\n int overCount = 0;\n\n while (N-- > 0) {\n double X = scan.nextDouble();\n double Y = scan.nextDouble();\n double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (dis <= D) {\n overCount++;\n }\n }\n System.out.println(overCount);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"double D = scan.nextDouble();",
"D",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"int overCount = 0;",
"overCount",
"0",
"while (N-- > 0) {\n double X = scan.nextDouble();\n double Y = scan.nextDouble();\n double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (dis <= D) {\n overCount++;\n }\n }",
"N-- > 0",
"N--",
"N",
"0",
"{\n double X = scan.nextDouble();\n double Y = scan.nextDouble();\n double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (dis <= D) {\n overCount++;\n }\n }",
"double X = scan.nextDouble();",
"X",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"double Y = scan.nextDouble();",
"Y",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));",
"dis",
"Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2))",
"Math.sqrt",
"Math",
"Math.pow(X, 2) + Math.pow(Y, 2)",
"Math.pow(X, 2)",
"Math.pow",
"Math",
"X",
"2",
"Math.pow(Y, 2)",
"Math.pow",
"Math",
"Y",
"2",
"if (dis <= D) {\n overCount++;\n }",
"dis <= D",
"dis",
"D",
"{\n overCount++;\n }",
"overCount++",
"overCount",
"System.out.println(overCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"overCount",
"String[] args",
"args",
"public class Main {\n //B - Distance\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n double D = scan.nextDouble();\n\n int overCount = 0;\n\n while (N-- > 0) {\n double X = scan.nextDouble();\n double Y = scan.nextDouble();\n double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (dis <= D) {\n overCount++;\n }\n }\n System.out.println(overCount);\n }\n}",
"public class Main {\n //B - Distance\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n double D = scan.nextDouble();\n\n int overCount = 0;\n\n while (N-- > 0) {\n double X = scan.nextDouble();\n double Y = scan.nextDouble();\n double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));\n if (dis <= D) {\n overCount++;\n }\n }\n System.out.println(overCount);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
//B - Distance
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
double D = scan.nextDouble();
int overCount = 0;
while (N-- > 0) {
double X = scan.nextDouble();
double Y = scan.nextDouble();
double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
if (dis <= D) {
overCount++;
}
}
System.out.println(overCount);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
13,
4,
18,
13,
41,
13,
4,
13,
4,
18,
13,
41,
13,
17,
0,
13,
13,
42,
2,
40,
13,
17,
30,
0,
13,
20,
41,
13,
4,
13,
4,
18,
13,
41,
13,
4,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
13,
30,
0,
13,
17,
4,
18,
13,
2,
13,
17,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
106,
8
],
[
106,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
13,
16
],
[
9,
17
],
[
17,
18
],
[
106,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
25,
27
],
[
21,
28
],
[
28,
29
],
[
28,
30
],
[
21,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
21,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
21,
45
],
[
45,
46
],
[
45,
47
],
[
21,
48
],
[
48,
49
],
[
48,
50
],
[
21,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
56,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
74,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
21,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
91,
93
],
[
21,
94
],
[
94,
95
],
[
95,
96
],
[
21,
97
],
[
97,
98
],
[
98,
99
],
[
21,
100
],
[
100,
101
],
[
101,
102
],
[
19,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.io.*;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static int getInt(String a){\n return Integer.parseInt(a);\n }\n public static void main(String [] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = getInt(st.nextToken());\n long d = getInt(st.nextToken());\n int ans = 0;\n d *= d;\n\n while(n-- != 0){\n st = new StringTokenizer(br.readLine());\n long x = getInt(st.nextToken());\n long y = getInt(st.nextToken());\n if(x*x + y*y <= d){\n ans +=1;\n }\n }\n bw.write(ans+\"\");\n\n bw.flush();\n bw.close();\n br.close();\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n public static int getInt(String a){\n return Integer.parseInt(a);\n }\n public static void main(String [] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = getInt(st.nextToken());\n long d = getInt(st.nextToken());\n int ans = 0;\n d *= d;\n\n while(n-- != 0){\n st = new StringTokenizer(br.readLine());\n long x = getInt(st.nextToken());\n long y = getInt(st.nextToken());\n if(x*x + y*y <= d){\n ans +=1;\n }\n }\n bw.write(ans+\"\");\n\n bw.flush();\n bw.close();\n br.close();\n }\n}",
"Main",
"public static int getInt(String a){\n return Integer.parseInt(a);\n }",
"getInt",
"{\n return Integer.parseInt(a);\n }",
"return Integer.parseInt(a);",
"Integer.parseInt(a)",
"Integer.parseInt",
"Integer",
"a",
"String a",
"a",
"public static void main(String [] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = getInt(st.nextToken());\n long d = getInt(st.nextToken());\n int ans = 0;\n d *= d;\n\n while(n-- != 0){\n st = new StringTokenizer(br.readLine());\n long x = getInt(st.nextToken());\n long y = getInt(st.nextToken());\n if(x*x + y*y <= d){\n ans +=1;\n }\n }\n bw.write(ans+\"\");\n\n bw.flush();\n bw.close();\n br.close();\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = getInt(st.nextToken());\n long d = getInt(st.nextToken());\n int ans = 0;\n d *= d;\n\n while(n-- != 0){\n st = new StringTokenizer(br.readLine());\n long x = getInt(st.nextToken());\n long y = getInt(st.nextToken());\n if(x*x + y*y <= d){\n ans +=1;\n }\n }\n bw.write(ans+\"\");\n\n bw.flush();\n bw.close();\n br.close();\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));",
"bw",
"new BufferedWriter(new OutputStreamWriter(System.out))",
"StringTokenizer st = new StringTokenizer(br.readLine());",
"st",
"new StringTokenizer(br.readLine())",
"int n = getInt(st.nextToken());",
"n",
"getInt(st.nextToken())",
"getInt",
"st.nextToken()",
"st.nextToken",
"st",
"long d = getInt(st.nextToken());",
"d",
"getInt(st.nextToken())",
"getInt",
"st.nextToken()",
"st.nextToken",
"st",
"int ans = 0;",
"ans",
"0",
"d *= d",
"d",
"d",
"while(n-- != 0){\n st = new StringTokenizer(br.readLine());\n long x = getInt(st.nextToken());\n long y = getInt(st.nextToken());\n if(x*x + y*y <= d){\n ans +=1;\n }\n }",
"n-- != 0",
"n--",
"n",
"0",
"{\n st = new StringTokenizer(br.readLine());\n long x = getInt(st.nextToken());\n long y = getInt(st.nextToken());\n if(x*x + y*y <= d){\n ans +=1;\n }\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"long x = getInt(st.nextToken());",
"x",
"getInt(st.nextToken())",
"getInt",
"st.nextToken()",
"st.nextToken",
"st",
"long y = getInt(st.nextToken());",
"y",
"getInt(st.nextToken())",
"getInt",
"st.nextToken()",
"st.nextToken",
"st",
"if(x*x + y*y <= d){\n ans +=1;\n }",
"x*x + y*y <= d",
"x*x + y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"d",
"{\n ans +=1;\n }",
"ans +=1",
"ans",
"1",
"bw.write(ans+\"\")",
"bw.write",
"bw",
"ans+\"\"",
"ans",
"\"\"",
"bw.flush()",
"bw.flush",
"bw",
"bw.close()",
"bw.close",
"bw",
"br.close()",
"br.close",
"br",
"String [] args",
"args",
"public class Main {\n public static int getInt(String a){\n return Integer.parseInt(a);\n }\n public static void main(String [] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = getInt(st.nextToken());\n long d = getInt(st.nextToken());\n int ans = 0;\n d *= d;\n\n while(n-- != 0){\n st = new StringTokenizer(br.readLine());\n long x = getInt(st.nextToken());\n long y = getInt(st.nextToken());\n if(x*x + y*y <= d){\n ans +=1;\n }\n }\n bw.write(ans+\"\");\n\n bw.flush();\n bw.close();\n br.close();\n }\n}",
"public class Main {\n public static int getInt(String a){\n return Integer.parseInt(a);\n }\n public static void main(String [] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = getInt(st.nextToken());\n long d = getInt(st.nextToken());\n int ans = 0;\n d *= d;\n\n while(n-- != 0){\n st = new StringTokenizer(br.readLine());\n long x = getInt(st.nextToken());\n long y = getInt(st.nextToken());\n if(x*x + y*y <= d){\n ans +=1;\n }\n }\n bw.write(ans+\"\");\n\n bw.flush();\n bw.close();\n br.close();\n }\n}",
"Main"
]
| import java.io.*;
import java.util.StringTokenizer;
public class Main {
public static int getInt(String a){
return Integer.parseInt(a);
}
public static void main(String [] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
StringTokenizer st = new StringTokenizer(br.readLine());
int n = getInt(st.nextToken());
long d = getInt(st.nextToken());
int ans = 0;
d *= d;
while(n-- != 0){
st = new StringTokenizer(br.readLine());
long x = getInt(st.nextToken());
long y = getInt(st.nextToken());
if(x*x + y*y <= d){
ans +=1;
}
}
bw.write(ans+"");
bw.flush();
bw.close();
br.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
17,
4,
18,
13,
0,
18,
18,
13,
13,
17,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
0,
13,
8,
2,
13,
17,
40,
13,
13,
41,
13,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
0,
13,
8,
2,
13,
13,
40,
13,
13,
41,
13,
4,
18,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
14,
2,
2,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
285,
20
],
[
285,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
23,
37
],
[
37,
38
],
[
37,
39
],
[
23,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
23,
73
],
[
73,
74
],
[
73,
75
],
[
23,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
88,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
104,
110
],
[
88,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
113,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
88,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
126,
132
],
[
88,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
138,
139
],
[
138,
140
],
[
88,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
88,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
147,
153
],
[
153,
154
],
[
154,
155
],
[
23,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
21,
162
],
[
162,
163
],
[
285,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
170,
171
],
[
170,
172
],
[
170,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
174,
177
],
[
166,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
166,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
182,
192
],
[
192,
193
],
[
193,
194
],
[
182,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
200,
201
],
[
201,
202
],
[
200,
203
],
[
164,
204
],
[
204,
205
],
[
285,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
208,
210
],
[
206,
211
],
[
211,
212
],
[
211,
213
],
[
206,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
217,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
222,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
216,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
206,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
241,
244
],
[
244,
245
],
[
206,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
248,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
253,
258
],
[
258,
259
],
[
258,
260
],
[
253,
261
],
[
261,
262
],
[
262,
263
],
[
253,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
265,
269
],
[
269,
270
],
[
248,
271
],
[
271,
272
],
[
246,
273
],
[
273,
274
],
[
206,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
279,
282
],
[
282,
283
],
[
0,
284
],
[
284,
285
],
[
284,
286
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigInteger;\nimport java.util.*;\nimport java.util.Map.Entry;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t \n\t \tint n=fs.nextInt();\n\t long d=fs.nextLong();\n\t long a[][]=new long[n][2];\n\t for(int i=0;i<n;i++) {\n\t \ta[i][0]=fs.nextLong();\n\t \ta[i][1]=fs.nextLong();\n\t \t\n\t }\n\t int count=0;\n\t for(int i=0;i<n;i++) {\n\t \tlong t1=a[i][0]*a[i][0];\n\t \tt1=t1<0?-t1:t1;\n\t \tlong t2=a[i][1]*a[i][1];\n\t \tt2=t2<t2?-t2:t2;\n\t \tdouble temp=Math.sqrt(t1+t2);\n\t \ttemp=Math.ceil(temp);\n//\t \tSystem.out.println(temp);\n\t \tif( temp-d<=0) {\n\t \t\tcount++;\n\t \t}\n\t }\n\t System.out.println(count);\n\t }\n\t\n\t\n\tstatic void sort(int[] a ) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor(int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor(int i=0;i<l.size();i++) a[i]=l.get(i);\n\t}\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor(int i=0;i<n;i++)a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"import java.util.Map.Entry;",
"Entry",
"java.util.Map",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t \n\t \tint n=fs.nextInt();\n\t long d=fs.nextLong();\n\t long a[][]=new long[n][2];\n\t for(int i=0;i<n;i++) {\n\t \ta[i][0]=fs.nextLong();\n\t \ta[i][1]=fs.nextLong();\n\t \t\n\t }\n\t int count=0;\n\t for(int i=0;i<n;i++) {\n\t \tlong t1=a[i][0]*a[i][0];\n\t \tt1=t1<0?-t1:t1;\n\t \tlong t2=a[i][1]*a[i][1];\n\t \tt2=t2<t2?-t2:t2;\n\t \tdouble temp=Math.sqrt(t1+t2);\n\t \ttemp=Math.ceil(temp);\n//\t \tSystem.out.println(temp);\n\t \tif( temp-d<=0) {\n\t \t\tcount++;\n\t \t}\n\t }\n\t System.out.println(count);\n\t }\n\t\n\t\n\tstatic void sort(int[] a ) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor(int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor(int i=0;i<l.size();i++) a[i]=l.get(i);\n\t}\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor(int i=0;i<n;i++)a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t \n\t \tint n=fs.nextInt();\n\t long d=fs.nextLong();\n\t long a[][]=new long[n][2];\n\t for(int i=0;i<n;i++) {\n\t \ta[i][0]=fs.nextLong();\n\t \ta[i][1]=fs.nextLong();\n\t \t\n\t }\n\t int count=0;\n\t for(int i=0;i<n;i++) {\n\t \tlong t1=a[i][0]*a[i][0];\n\t \tt1=t1<0?-t1:t1;\n\t \tlong t2=a[i][1]*a[i][1];\n\t \tt2=t2<t2?-t2:t2;\n\t \tdouble temp=Math.sqrt(t1+t2);\n\t \ttemp=Math.ceil(temp);\n//\t \tSystem.out.println(temp);\n\t \tif( temp-d<=0) {\n\t \t\tcount++;\n\t \t}\n\t }\n\t System.out.println(count);\n\t }",
"main",
"{\n\t\tFastScanner fs = new FastScanner();\n\t \n\t \tint n=fs.nextInt();\n\t long d=fs.nextLong();\n\t long a[][]=new long[n][2];\n\t for(int i=0;i<n;i++) {\n\t \ta[i][0]=fs.nextLong();\n\t \ta[i][1]=fs.nextLong();\n\t \t\n\t }\n\t int count=0;\n\t for(int i=0;i<n;i++) {\n\t \tlong t1=a[i][0]*a[i][0];\n\t \tt1=t1<0?-t1:t1;\n\t \tlong t2=a[i][1]*a[i][1];\n\t \tt2=t2<t2?-t2:t2;\n\t \tdouble temp=Math.sqrt(t1+t2);\n\t \ttemp=Math.ceil(temp);\n//\t \tSystem.out.println(temp);\n\t \tif( temp-d<=0) {\n\t \t\tcount++;\n\t \t}\n\t }\n\t System.out.println(count);\n\t }",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"int n=fs.nextInt();",
"n",
"fs.nextInt()",
"fs.nextInt",
"fs",
"long d=fs.nextLong();",
"d",
"fs.nextLong()",
"fs.nextLong",
"fs",
"long a[][]=new long[n][2];",
"a",
"new long[n][2]",
"n",
"2",
"for(int i=0;i<n;i++) {\n\t \ta[i][0]=fs.nextLong();\n\t \ta[i][1]=fs.nextLong();\n\t \t\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t \ta[i][0]=fs.nextLong();\n\t \ta[i][1]=fs.nextLong();\n\t \t\n\t }",
"{\n\t \ta[i][0]=fs.nextLong();\n\t \ta[i][1]=fs.nextLong();\n\t \t\n\t }",
"a[i][0]=fs.nextLong()",
"a[i][0]",
"a[i]",
"a",
"i",
"0",
"fs.nextLong()",
"fs.nextLong",
"fs",
"a[i][1]=fs.nextLong()",
"a[i][1]",
"a[i]",
"a",
"i",
"1",
"fs.nextLong()",
"fs.nextLong",
"fs",
"int count=0;",
"count",
"0",
"for(int i=0;i<n;i++) {\n\t \tlong t1=a[i][0]*a[i][0];\n\t \tt1=t1<0?-t1:t1;\n\t \tlong t2=a[i][1]*a[i][1];\n\t \tt2=t2<t2?-t2:t2;\n\t \tdouble temp=Math.sqrt(t1+t2);\n\t \ttemp=Math.ceil(temp);\n//\t \tSystem.out.println(temp);\n\t \tif( temp-d<=0) {\n\t \t\tcount++;\n\t \t}\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t \tlong t1=a[i][0]*a[i][0];\n\t \tt1=t1<0?-t1:t1;\n\t \tlong t2=a[i][1]*a[i][1];\n\t \tt2=t2<t2?-t2:t2;\n\t \tdouble temp=Math.sqrt(t1+t2);\n\t \ttemp=Math.ceil(temp);\n//\t \tSystem.out.println(temp);\n\t \tif( temp-d<=0) {\n\t \t\tcount++;\n\t \t}\n\t }",
"{\n\t \tlong t1=a[i][0]*a[i][0];\n\t \tt1=t1<0?-t1:t1;\n\t \tlong t2=a[i][1]*a[i][1];\n\t \tt2=t2<t2?-t2:t2;\n\t \tdouble temp=Math.sqrt(t1+t2);\n\t \ttemp=Math.ceil(temp);\n//\t \tSystem.out.println(temp);\n\t \tif( temp-d<=0) {\n\t \t\tcount++;\n\t \t}\n\t }",
"long t1=a[i][0]*a[i][0];",
"t1",
"a[i][0]*a[i][0]",
"a[i][0]",
"a[i]",
"a",
"i",
"0",
"a[i][0]",
"a[i]",
"a",
"i",
"0",
"t1=t1<0?-t1:t1",
"t1",
"t1<0?-t1:t1",
"t1<0",
"t1",
"0",
"-t1",
"t1",
"t1",
"long t2=a[i][1]*a[i][1];",
"t2",
"a[i][1]*a[i][1]",
"a[i][1]",
"a[i]",
"a",
"i",
"1",
"a[i][1]",
"a[i]",
"a",
"i",
"1",
"t2=t2<t2?-t2:t2",
"t2",
"t2<t2?-t2:t2",
"t2<t2",
"t2",
"t2",
"-t2",
"t2",
"t2",
"double temp=Math.sqrt(t1+t2);",
"temp",
"Math.sqrt(t1+t2)",
"Math.sqrt",
"Math",
"t1+t2",
"t1",
"t2",
"temp=Math.ceil(temp)",
"temp",
"Math.ceil(temp)",
"Math.ceil",
"Math",
"temp",
"if( temp-d<=0) {\n\t \t\tcount++;\n\t \t}",
"temp-d<=0",
"temp-d",
"temp",
"d",
"0",
"{\n\t \t\tcount++;\n\t \t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"static void sort(int[] a ) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor(int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor(int i=0;i<l.size();i++) a[i]=l.get(i);\n\t}",
"sort",
"{\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor(int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor(int i=0;i<l.size();i++) a[i]=l.get(i);\n\t}",
"ArrayList<Integer> l = new ArrayList<>();",
"l",
"new ArrayList<>()",
"for(int i:a) l.add(i);",
"int i",
"a",
"l.add(i);",
"l.add(i)",
"l.add",
"l",
"i",
"Collections.sort(l)",
"Collections.sort",
"Collections",
"l",
"for(int i=0;i<l.size();i++) a[i]=l.get(i);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<l.size()",
"i",
"l.size()",
"l.size",
"l",
"i++",
"i++",
"i",
"a[i]=l.get(i);",
"a[i]=l.get(i)",
"a[i]",
"a",
"i",
"l.get(i)",
"l.get",
"l",
"i",
"int[] a",
"a",
"static class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor(int i=0;i<n;i++)a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}",
"FastScanner",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n\t\t\twhile(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor(int i=0;i<n;i++)a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"readArray",
"{\n\t\t\tint[] a = new int[n];\n\t\t\tfor(int i=0;i<n;i++)a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for(int i=0;i<n;i++)a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t \n\t \tint n=fs.nextInt();\n\t long d=fs.nextLong();\n\t long a[][]=new long[n][2];\n\t for(int i=0;i<n;i++) {\n\t \ta[i][0]=fs.nextLong();\n\t \ta[i][1]=fs.nextLong();\n\t \t\n\t }\n\t int count=0;\n\t for(int i=0;i<n;i++) {\n\t \tlong t1=a[i][0]*a[i][0];\n\t \tt1=t1<0?-t1:t1;\n\t \tlong t2=a[i][1]*a[i][1];\n\t \tt2=t2<t2?-t2:t2;\n\t \tdouble temp=Math.sqrt(t1+t2);\n\t \ttemp=Math.ceil(temp);\n//\t \tSystem.out.println(temp);\n\t \tif( temp-d<=0) {\n\t \t\tcount++;\n\t \t}\n\t }\n\t System.out.println(count);\n\t }\n\t\n\t\n\tstatic void sort(int[] a ) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor(int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor(int i=0;i<l.size();i++) a[i]=l.get(i);\n\t}\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor(int i=0;i<n;i++)a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t \n\t \tint n=fs.nextInt();\n\t long d=fs.nextLong();\n\t long a[][]=new long[n][2];\n\t for(int i=0;i<n;i++) {\n\t \ta[i][0]=fs.nextLong();\n\t \ta[i][1]=fs.nextLong();\n\t \t\n\t }\n\t int count=0;\n\t for(int i=0;i<n;i++) {\n\t \tlong t1=a[i][0]*a[i][0];\n\t \tt1=t1<0?-t1:t1;\n\t \tlong t2=a[i][1]*a[i][1];\n\t \tt2=t2<t2?-t2:t2;\n\t \tdouble temp=Math.sqrt(t1+t2);\n\t \ttemp=Math.ceil(temp);\n//\t \tSystem.out.println(temp);\n\t \tif( temp-d<=0) {\n\t \t\tcount++;\n\t \t}\n\t }\n\t System.out.println(count);\n\t }\n\t\n\t\n\tstatic void sort(int[] a ) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor(int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor(int i=0;i<l.size();i++) a[i]=l.get(i);\n\t}\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor(int i=0;i<n;i++)a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.*;
import java.util.Map.Entry;
public class Main {
public static void main(String[] args) {
FastScanner fs = new FastScanner();
int n=fs.nextInt();
long d=fs.nextLong();
long a[][]=new long[n][2];
for(int i=0;i<n;i++) {
a[i][0]=fs.nextLong();
a[i][1]=fs.nextLong();
}
int count=0;
for(int i=0;i<n;i++) {
long t1=a[i][0]*a[i][0];
t1=t1<0?-t1:t1;
long t2=a[i][1]*a[i][1];
t2=t2<t2?-t2:t2;
double temp=Math.sqrt(t1+t2);
temp=Math.ceil(temp);
// System.out.println(temp);
if( temp-d<=0) {
count++;
}
}
System.out.println(count);
}
static void sort(int[] a ) {
ArrayList<Integer> l = new ArrayList<>();
for(int i:a) l.add(i);
Collections.sort(l);
for(int i=0;i<l.size();i++) a[i]=l.get(i);
}
static class FastScanner {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer("");
String next() {
while(!st.hasMoreTokens())
try {
st = new StringTokenizer(br.readLine());
}catch(IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
int[] readArray(int n) {
int[] a = new int[n];
for(int i=0;i<n;i++)a[i]=nextInt();
return a;
}
long nextLong() {
return Long.parseLong(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
75,
5
],
[
75,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
25,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
30,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
30,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
6,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
]
| [
"import java.util.*;\npublic class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n long d = sc.nextInt();\n long res=0;\n while(n-->0) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n //int res =0;\n double dis = Math.sqrt(x*x+y*y);\n \n int dis1 = (int)Math.ceil(dis);\n if(d>=dis)\n res += 1;\n }\n System.out.println(res);\n \n // System.out.println(\"Hello World\");\n}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n long d = sc.nextInt();\n long res=0;\n while(n-->0) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n //int res =0;\n double dis = Math.sqrt(x*x+y*y);\n \n int dis1 = (int)Math.ceil(dis);\n if(d>=dis)\n res += 1;\n }\n System.out.println(res);\n \n // System.out.println(\"Hello World\");\n}\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n long d = sc.nextInt();\n long res=0;\n while(n-->0) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n //int res =0;\n double dis = Math.sqrt(x*x+y*y);\n \n int dis1 = (int)Math.ceil(dis);\n if(d>=dis)\n res += 1;\n }\n System.out.println(res);\n \n // System.out.println(\"Hello World\");\n}",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n long d = sc.nextInt();\n long res=0;\n while(n-->0) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n //int res =0;\n double dis = Math.sqrt(x*x+y*y);\n \n int dis1 = (int)Math.ceil(dis);\n if(d>=dis)\n res += 1;\n }\n System.out.println(res);\n \n // System.out.println(\"Hello World\");\n}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long res=0;",
"res",
"0",
"while(n-->0) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n //int res =0;\n double dis = Math.sqrt(x*x+y*y);\n \n int dis1 = (int)Math.ceil(dis);\n if(d>=dis)\n res += 1;\n }",
"n-->0",
"n--",
"n",
"0",
"{\n long x = sc.nextInt();\n long y = sc.nextInt();\n //int res =0;\n double dis = Math.sqrt(x*x+y*y);\n \n int dis1 = (int)Math.ceil(dis);\n if(d>=dis)\n res += 1;\n }",
"long x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double dis = Math.sqrt(x*x+y*y);",
"dis",
"Math.sqrt(x*x+y*y)",
"Math.sqrt",
"Math",
"x*x+y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"int dis1 = (int)Math.ceil(dis);",
"dis1",
"(int)Math.ceil(dis)",
"Math.ceil",
"Math",
"dis",
"if(d>=dis)\n res += 1;",
"d>=dis",
"d",
"dis",
"res += 1",
"res",
"1",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"String args[]",
"args",
"public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n long d = sc.nextInt();\n long res=0;\n while(n-->0) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n //int res =0;\n double dis = Math.sqrt(x*x+y*y);\n \n int dis1 = (int)Math.ceil(dis);\n if(d>=dis)\n res += 1;\n }\n System.out.println(res);\n \n // System.out.println(\"Hello World\");\n}\n}",
"public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n long d = sc.nextInt();\n long res=0;\n while(n-->0) {\n long x = sc.nextInt();\n long y = sc.nextInt();\n //int res =0;\n double dis = Math.sqrt(x*x+y*y);\n \n int dis1 = (int)Math.ceil(dis);\n if(d>=dis)\n res += 1;\n }\n System.out.println(res);\n \n // System.out.println(\"Hello World\");\n}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long n = sc.nextInt();
long d = sc.nextInt();
long res=0;
while(n-->0) {
long x = sc.nextInt();
long y = sc.nextInt();
//int res =0;
double dis = Math.sqrt(x*x+y*y);
int dis1 = (int)Math.ceil(dis);
if(d>=dis)
res += 1;
}
System.out.println(res);
// System.out.println("Hello World");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
41,
13,
20,
12,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
42,
2,
40,
13,
17,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
40,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
0,
13,
17,
0,
13,
4,
18,
13,
13,
14,
2,
13,
40,
17,
29,
13,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
17,
42,
4,
13,
13,
0,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
17,
42,
4,
13,
13,
0,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
2,
40,
4,
13,
13,
2,
13,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
29,
2,
13,
4,
18,
13,
17,
4,
13,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
29,
2,
13,
4,
18,
13,
17,
4,
13,
0,
13,
17,
0,
13,
2,
2,
13,
17,
13,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
17,
42,
4,
13,
13,
0,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
17,
41,
13,
18,
13,
13,
41,
13,
40,
17,
42,
2,
13,
13,
30,
0,
13,
2,
2,
13,
13,
17,
14,
2,
18,
13,
13,
13,
0,
13,
13,
0,
13,
2,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
18,
13,
13,
41,
13,
40,
17,
42,
2,
13,
13,
30,
0,
13,
2,
2,
13,
13,
17,
14,
2,
18,
13,
13,
13,
0,
13,
13,
0,
13,
2,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
13,
4,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
13,
17,
29,
13,
14,
2,
2,
13,
17,
17,
29,
2,
4,
13,
2,
2,
13,
13,
13,
2,
13,
17,
13,
13,
29,
2,
2,
13,
4,
13,
2,
2,
13,
13,
13,
2,
13,
17,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
13,
17,
29,
13,
14,
2,
2,
13,
17,
17,
29,
4,
13,
2,
13,
13,
2,
13,
17,
29,
2,
13,
4,
13,
2,
13,
13,
2,
13,
17,
23,
13,
23,
13,
12,
13,
30,
0,
13,
4,
18,
13,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
2,
2,
13,
2,
13,
13,
2,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
13,
29,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
2,
13,
2,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
769,
8
],
[
769,
9
],
[
9,
10
],
[
769,
11
],
[
11,
12
],
[
769,
13
],
[
13,
14
],
[
769,
15
],
[
15,
16
],
[
769,
17
],
[
17,
18
],
[
17,
19
],
[
769,
20
],
[
20,
21
],
[
20,
22
],
[
769,
23
],
[
23,
24
],
[
23,
25
],
[
769,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
64,
66
],
[
55,
67
],
[
67,
68
],
[
28,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
28,
73
],
[
73,
74
],
[
74,
75
],
[
26,
76
],
[
76,
77
],
[
769,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
78,
86
],
[
86,
87
],
[
78,
88
],
[
88,
89
],
[
78,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
90,
98
],
[
98,
99
],
[
78,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
100,
108
],
[
108,
109
],
[
78,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
112,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
127,
132
],
[
132,
133
],
[
112,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
78,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
141,
146
],
[
146,
147
],
[
146,
148
],
[
141,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
141,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
141,
170
],
[
170,
171
],
[
170,
172
],
[
141,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
185,
187
],
[
178,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
190,
192
],
[
178,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
141,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
78,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
203,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
203,
216
],
[
216,
217
],
[
216,
218
],
[
203,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
225,
228
],
[
224,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
203,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
78,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
242,
243
],
[
239,
244
],
[
244,
245
],
[
244,
246
],
[
239,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
247,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
239,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
259,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
239,
268
],
[
268,
269
],
[
268,
270
],
[
239,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
272,
277
],
[
277,
278
],
[
277,
279
],
[
271,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
286,
287
],
[
286,
288
],
[
281,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
293,
294
],
[
292,
295
],
[
292,
296
],
[
296,
297
],
[
280,
298
],
[
298,
299
],
[
298,
300
],
[
280,
301
],
[
301,
302
],
[
301,
303
],
[
303,
304
],
[
303,
305
],
[
280,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
239,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
314,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
314,
319
],
[
319,
320
],
[
319,
321
],
[
314,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
322,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
329,
333
],
[
333,
334
],
[
333,
335
],
[
328,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
340,
341
],
[
339,
342
],
[
339,
343
],
[
343,
344
],
[
327,
345
],
[
345,
346
],
[
345,
347
],
[
327,
348
],
[
348,
349
],
[
348,
350
],
[
350,
351
],
[
351,
352
],
[
351,
353
],
[
350,
354
],
[
327,
355
],
[
355,
356
],
[
355,
357
],
[
357,
358
],
[
239,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
78,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
368,
369
],
[
365,
370
],
[
370,
371
],
[
370,
372
],
[
365,
373
],
[
373,
374
],
[
374,
375
],
[
374,
376
],
[
373,
377
],
[
377,
378
],
[
377,
379
],
[
379,
380
],
[
365,
381
],
[
381,
382
],
[
382,
383
],
[
382,
384
],
[
381,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
388,
389
],
[
385,
390
],
[
390,
391
],
[
390,
392
],
[
392,
393
],
[
365,
394
],
[
394,
395
],
[
394,
396
],
[
365,
397
],
[
397,
398
],
[
398,
399
],
[
399,
400
],
[
399,
401
],
[
397,
402
],
[
402,
403
],
[
403,
404
],
[
403,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
405,
409
],
[
409,
410
],
[
409,
411
],
[
402,
412
],
[
412,
413
],
[
412,
414
],
[
414,
415
],
[
414,
416
],
[
402,
417
],
[
417,
418
],
[
417,
419
],
[
419,
420
],
[
365,
421
],
[
421,
422
],
[
422,
423
],
[
422,
424
],
[
78,
425
],
[
425,
426
],
[
425,
427
],
[
427,
428
],
[
428,
429
],
[
432,
430
],
[
442,
431
],
[
439,
432
],
[
432,
433
],
[
433,
434
],
[
433,
435
],
[
432,
436
],
[
436,
437
],
[
436,
438
],
[
439,
439
],
[
439,
440
],
[
439,
441
],
[
442,
442
],
[
442,
443
],
[
442,
444
],
[
432,
445
],
[
445,
446
],
[
445,
447
],
[
447,
448
],
[
425,
449
],
[
449,
450
],
[
769,
451
],
[
451,
452
],
[
451,
453
],
[
453,
454
],
[
453,
455
],
[
451,
456
],
[
456,
457
],
[
456,
458
],
[
458,
459
],
[
459,
460
],
[
459,
461
],
[
458,
462
],
[
462,
463
],
[
462,
464
],
[
464,
465
],
[
464,
466
],
[
458,
467
],
[
467,
468
],
[
467,
469
],
[
469,
470
],
[
458,
471
],
[
471,
472
],
[
472,
473
],
[
472,
474
],
[
471,
475
],
[
475,
476
],
[
476,
477
],
[
476,
478
],
[
478,
479
],
[
479,
480
],
[
479,
481
],
[
478,
482
],
[
475,
483
],
[
483,
484
],
[
484,
485
],
[
485,
486
],
[
485,
487
],
[
484,
488
],
[
483,
489
],
[
489,
490
],
[
489,
491
],
[
483,
492
],
[
492,
493
],
[
492,
494
],
[
494,
495
],
[
494,
496
],
[
458,
497
],
[
497,
498
],
[
456,
499
],
[
499,
500
],
[
456,
501
],
[
501,
502
],
[
451,
503
],
[
503,
504
],
[
503,
505
],
[
505,
506
],
[
506,
507
],
[
506,
508
],
[
505,
509
],
[
509,
510
],
[
509,
511
],
[
511,
512
],
[
511,
513
],
[
505,
514
],
[
514,
515
],
[
514,
516
],
[
516,
517
],
[
505,
518
],
[
518,
519
],
[
519,
520
],
[
519,
521
],
[
518,
522
],
[
522,
523
],
[
523,
524
],
[
523,
525
],
[
525,
526
],
[
526,
527
],
[
526,
528
],
[
525,
529
],
[
522,
530
],
[
530,
531
],
[
531,
532
],
[
532,
533
],
[
532,
534
],
[
531,
535
],
[
530,
536
],
[
536,
537
],
[
536,
538
],
[
530,
539
],
[
539,
540
],
[
539,
541
],
[
541,
542
],
[
541,
543
],
[
505,
544
],
[
544,
545
],
[
503,
546
],
[
546,
547
],
[
503,
548
],
[
548,
549
],
[
451,
550
],
[
550,
551
],
[
550,
552
],
[
552,
553
],
[
553,
554
],
[
554,
555
],
[
555,
556
],
[
555,
557
],
[
554,
558
],
[
554,
559
],
[
559,
560
],
[
559,
561
],
[
559,
562
],
[
562,
563
],
[
562,
564
],
[
550,
565
],
[
565,
566
],
[
550,
567
],
[
567,
568
],
[
451,
569
],
[
569,
570
],
[
569,
571
],
[
571,
572
],
[
572,
573
],
[
573,
574
],
[
574,
575
],
[
574,
576
],
[
573,
577
],
[
577,
578
],
[
577,
579
],
[
577,
580
],
[
569,
581
],
[
581,
582
],
[
569,
583
],
[
583,
584
],
[
451,
585
],
[
585,
586
],
[
585,
587
],
[
587,
588
],
[
588,
589
],
[
589,
590
],
[
589,
591
],
[
588,
592
],
[
592,
593
],
[
587,
594
],
[
594,
595
],
[
595,
596
],
[
595,
597
],
[
594,
598
],
[
598,
599
],
[
587,
600
],
[
600,
601
],
[
601,
602
],
[
602,
603
],
[
602,
604
],
[
601,
605
],
[
600,
606
],
[
606,
607
],
[
607,
608
],
[
608,
609
],
[
608,
610
],
[
610,
611
],
[
611,
612
],
[
611,
613
],
[
610,
614
],
[
608,
615
],
[
615,
616
],
[
615,
617
],
[
608,
618
],
[
607,
619
],
[
587,
620
],
[
620,
621
],
[
621,
622
],
[
622,
623
],
[
622,
624
],
[
624,
625
],
[
624,
626
],
[
626,
627
],
[
627,
628
],
[
627,
629
],
[
626,
630
],
[
624,
631
],
[
631,
632
],
[
631,
633
],
[
624,
634
],
[
621,
635
],
[
585,
636
],
[
636,
637
],
[
585,
638
],
[
638,
639
],
[
585,
640
],
[
640,
641
],
[
451,
642
],
[
642,
643
],
[
642,
644
],
[
644,
645
],
[
645,
646
],
[
646,
647
],
[
646,
648
],
[
645,
649
],
[
649,
650
],
[
644,
651
],
[
651,
652
],
[
652,
653
],
[
652,
654
],
[
651,
655
],
[
655,
656
],
[
644,
657
],
[
657,
658
],
[
658,
659
],
[
659,
660
],
[
659,
661
],
[
658,
662
],
[
657,
663
],
[
663,
664
],
[
664,
665
],
[
664,
666
],
[
666,
667
],
[
666,
668
],
[
664,
669
],
[
669,
670
],
[
669,
671
],
[
644,
672
],
[
672,
673
],
[
673,
674
],
[
673,
675
],
[
675,
676
],
[
675,
677
],
[
677,
678
],
[
677,
679
],
[
675,
680
],
[
680,
681
],
[
680,
682
],
[
642,
683
],
[
683,
684
],
[
642,
685
],
[
685,
686
],
[
451,
687
],
[
687,
688
],
[
687,
689
],
[
689,
690
],
[
690,
691
],
[
690,
692
],
[
692,
693
],
[
693,
694
],
[
692,
695
],
[
692,
696
],
[
696,
697
],
[
696,
698
],
[
689,
699
],
[
699,
700
],
[
699,
701
],
[
689,
702
],
[
702,
703
],
[
703,
704
],
[
704,
705
],
[
704,
706
],
[
702,
707
],
[
707,
708
],
[
707,
709
],
[
702,
710
],
[
710,
711
],
[
711,
712
],
[
702,
713
],
[
713,
714
],
[
714,
715
],
[
714,
716
],
[
716,
717
],
[
717,
718
],
[
717,
719
],
[
719,
720
],
[
719,
721
],
[
716,
722
],
[
722,
723
],
[
722,
724
],
[
689,
725
],
[
725,
726
],
[
687,
727
],
[
727,
728
],
[
687,
729
],
[
729,
730
],
[
451,
731
],
[
731,
732
],
[
731,
733
],
[
733,
734
],
[
734,
735
],
[
735,
736
],
[
735,
737
],
[
734,
738
],
[
738,
739
],
[
733,
740
],
[
740,
741
],
[
740,
742
],
[
733,
743
],
[
743,
744
],
[
744,
745
],
[
745,
746
],
[
745,
747
],
[
743,
748
],
[
748,
749
],
[
748,
750
],
[
743,
751
],
[
751,
752
],
[
752,
753
],
[
743,
754
],
[
754,
755
],
[
755,
756
],
[
755,
757
],
[
757,
758
],
[
757,
759
],
[
759,
760
],
[
759,
761
],
[
733,
762
],
[
762,
763
],
[
731,
764
],
[
764,
765
],
[
731,
766
],
[
766,
767
],
[
0,
768
],
[
768,
769
],
[
768,
770
]
]
| [
"// Utilities\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n\tstatic int N;\n\tstatic long D, P, Q;\n\tstatic int res = 0;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tN = in.iscan(); D = in.lscan();\n\t\twhile (N-- > 0) {\n\t\t\tP = in.lscan(); Q = in.lscan();\n\t\t\tif (P*P + Q*Q <= D*D) res++;\n\t\t}\n\t\tout.println(res);\n\t\tout.close();\n\t} \n\t\n\tstatic INPUT in = new INPUT(System.in);\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tprivate static class INPUT {\n\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar, numChars;\n\n\t\tpublic INPUT (InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic INPUT (String file) throws IOException {\n\t\t\tthis.stream = new FileInputStream (file);\n\t\t}\n\n\t\tpublic int cscan () throws IOException {\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\tnumChars = stream.read (buf);\n\t\t\t}\n\t\t\t\n\t\t\tif (numChars == -1)\n\t\t\t\treturn numChars;\n\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic int iscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tint res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String sscan () throws IOException {\n\t\t\tint c = cscan ();\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tStringBuilder res = new StringBuilder ();\n\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint (c);\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res.toString ();\n\t\t}\n\n\t\tpublic double dscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tdouble res = 0;\n\n\t\t\twhile (!space (c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\t\t\t\t\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tif (c == '.') {\n\t\t\t\tc = cscan ();\n\t\t\t\tdouble m = 1;\n\n\t\t\t\twhile (!space (c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = cscan ();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long lscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean space (int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\t}\n\n\tpublic static class UTILITIES {\n\n\t\tstatic final double EPS = 10e-6;\n\n\t\tpublic static int lower_bound (int[] arr, int x) {\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] >= x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}\n\n\t\tpublic static int upper_bound (int[] arr, int x) {\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] > x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}\n\n\t\tpublic static int gcd (int a, int b) {\n\t\t\treturn b == 0 ? a : gcd (b, a % b);\n\t\t}\n\n\t\tpublic static int lcm (int a, int b) {\n\t\t\treturn a * b / gcd (a, b);\n\t\t}\n\n\t\tpublic static long fast_pow_mod (long b, long x, int mod) {\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\n\t\t\treturn b * fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\t\t}\n\n\t\tpublic static int fast_pow (int b, int x) {\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow (b * b, x / 2);\n\n\t\t\treturn b * fast_pow (b * b, x / 2);\n\t\t}\n\n\t\tpublic static long choose (long n, long k) {\n\t\t\tk = Math.min (k, n - k);\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = val * (n - i) / (i + 1);\n\n\t\t\treturn val;\n\t\t}\n\n\t\tpublic static long permute (int n, int k) {\n\t\t\tif (n < k) return 0;\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = (val * (n - i));\n\n\t\t\treturn val;\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tstatic int N;\n\tstatic long D, P, Q;\n\tstatic int res = 0;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tN = in.iscan(); D = in.lscan();\n\t\twhile (N-- > 0) {\n\t\t\tP = in.lscan(); Q = in.lscan();\n\t\t\tif (P*P + Q*Q <= D*D) res++;\n\t\t}\n\t\tout.println(res);\n\t\tout.close();\n\t} \n\t\n\tstatic INPUT in = new INPUT(System.in);\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tprivate static class INPUT {\n\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar, numChars;\n\n\t\tpublic INPUT (InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic INPUT (String file) throws IOException {\n\t\t\tthis.stream = new FileInputStream (file);\n\t\t}\n\n\t\tpublic int cscan () throws IOException {\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\tnumChars = stream.read (buf);\n\t\t\t}\n\t\t\t\n\t\t\tif (numChars == -1)\n\t\t\t\treturn numChars;\n\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic int iscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tint res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String sscan () throws IOException {\n\t\t\tint c = cscan ();\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tStringBuilder res = new StringBuilder ();\n\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint (c);\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res.toString ();\n\t\t}\n\n\t\tpublic double dscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tdouble res = 0;\n\n\t\t\twhile (!space (c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\t\t\t\t\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tif (c == '.') {\n\t\t\t\tc = cscan ();\n\t\t\t\tdouble m = 1;\n\n\t\t\t\twhile (!space (c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = cscan ();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long lscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean space (int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\t}\n\n\tpublic static class UTILITIES {\n\n\t\tstatic final double EPS = 10e-6;\n\n\t\tpublic static int lower_bound (int[] arr, int x) {\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] >= x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}\n\n\t\tpublic static int upper_bound (int[] arr, int x) {\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] > x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}\n\n\t\tpublic static int gcd (int a, int b) {\n\t\t\treturn b == 0 ? a : gcd (b, a % b);\n\t\t}\n\n\t\tpublic static int lcm (int a, int b) {\n\t\t\treturn a * b / gcd (a, b);\n\t\t}\n\n\t\tpublic static long fast_pow_mod (long b, long x, int mod) {\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\n\t\t\treturn b * fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\t\t}\n\n\t\tpublic static int fast_pow (int b, int x) {\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow (b * b, x / 2);\n\n\t\t\treturn b * fast_pow (b * b, x / 2);\n\t\t}\n\n\t\tpublic static long choose (long n, long k) {\n\t\t\tk = Math.min (k, n - k);\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = val * (n - i) / (i + 1);\n\n\t\t\treturn val;\n\t\t}\n\n\t\tpublic static long permute (int n, int k) {\n\t\t\tif (n < k) return 0;\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = (val * (n - i));\n\n\t\t\treturn val;\n\t\t}\n\t}\n}",
"Main",
"static int N;",
"N",
"static long D",
"D",
"P",
"P",
"Q;",
"Q",
"static int res = 0;",
"res",
"0",
"static INPUT in = new INPUT(System.in);",
"in",
"new INPUT(System.in)",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public static void main(String[] args) throws IOException {\n\t\tN = in.iscan(); D = in.lscan();\n\t\twhile (N-- > 0) {\n\t\t\tP = in.lscan(); Q = in.lscan();\n\t\t\tif (P*P + Q*Q <= D*D) res++;\n\t\t}\n\t\tout.println(res);\n\t\tout.close();\n\t}",
"main",
"{\n\t\tN = in.iscan(); D = in.lscan();\n\t\twhile (N-- > 0) {\n\t\t\tP = in.lscan(); Q = in.lscan();\n\t\t\tif (P*P + Q*Q <= D*D) res++;\n\t\t}\n\t\tout.println(res);\n\t\tout.close();\n\t}",
"N = in.iscan()",
"N",
"in.iscan()",
"in.iscan",
"in",
"D = in.lscan()",
"D",
"in.lscan()",
"in.lscan",
"in",
"while (N-- > 0) {\n\t\t\tP = in.lscan(); Q = in.lscan();\n\t\t\tif (P*P + Q*Q <= D*D) res++;\n\t\t}",
"N-- > 0",
"N--",
"N",
"0",
"{\n\t\t\tP = in.lscan(); Q = in.lscan();\n\t\t\tif (P*P + Q*Q <= D*D) res++;\n\t\t}",
"P = in.lscan()",
"P",
"in.lscan()",
"in.lscan",
"in",
"Q = in.lscan()",
"Q",
"in.lscan()",
"in.lscan",
"in",
"if (P*P + Q*Q <= D*D) res++;",
"P*P + Q*Q <= D*D",
"P*P + Q*Q",
"P*P",
"P",
"P",
"Q*Q",
"Q",
"Q",
"D*D",
"D",
"D",
"res++",
"res",
"out.println(res)",
"out.println",
"out",
"res",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"private static class INPUT {\n\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar, numChars;\n\n\t\tpublic INPUT (InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic INPUT (String file) throws IOException {\n\t\t\tthis.stream = new FileInputStream (file);\n\t\t}\n\n\t\tpublic int cscan () throws IOException {\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\tnumChars = stream.read (buf);\n\t\t\t}\n\t\t\t\n\t\t\tif (numChars == -1)\n\t\t\t\treturn numChars;\n\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic int iscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tint res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String sscan () throws IOException {\n\t\t\tint c = cscan ();\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tStringBuilder res = new StringBuilder ();\n\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint (c);\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res.toString ();\n\t\t}\n\n\t\tpublic double dscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tdouble res = 0;\n\n\t\t\twhile (!space (c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\t\t\t\t\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tif (c == '.') {\n\t\t\t\tc = cscan ();\n\t\t\t\tdouble m = 1;\n\n\t\t\t\twhile (!space (c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = cscan ();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long lscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean space (int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\t}",
"INPUT",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar",
"curChar",
"numChars;",
"numChars",
"public INPUT (InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}",
"INPUT",
"{\n\t\t\tthis.stream = stream;\n\t\t}",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public INPUT (String file) throws IOException {\n\t\t\tthis.stream = new FileInputStream (file);\n\t\t}",
"INPUT",
"{\n\t\t\tthis.stream = new FileInputStream (file);\n\t\t}",
"this.stream = new FileInputStream (file)",
"this.stream",
"this",
"this.stream",
"new FileInputStream (file)",
"String file",
"file",
"public int cscan () throws IOException {\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\tnumChars = stream.read (buf);\n\t\t\t}\n\t\t\t\n\t\t\tif (numChars == -1)\n\t\t\t\treturn numChars;\n\n\t\t\treturn buf[curChar++];\n\t\t}",
"cscan",
"{\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\tnumChars = stream.read (buf);\n\t\t\t}\n\t\t\t\n\t\t\tif (numChars == -1)\n\t\t\t\treturn numChars;\n\n\t\t\treturn buf[curChar++];\n\t\t}",
"if (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\tnumChars = stream.read (buf);\n\t\t\t}",
"curChar >= numChars",
"curChar",
"numChars",
"{\n\t\t\t\tcurChar = 0;\n\t\t\t\tnumChars = stream.read (buf);\n\t\t\t}",
"curChar = 0",
"curChar",
"0",
"numChars = stream.read (buf)",
"numChars",
"stream.read (buf)",
"stream.read",
"stream",
"buf",
"if (numChars == -1)\n\t\t\t\treturn numChars;",
"numChars == -1",
"numChars",
"-1",
"1",
"return numChars;",
"numChars",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int iscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tint res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}",
"iscan",
"{\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tint res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}",
"int c = cscan ()",
"c",
"cscan ()",
"cscan",
"sgn = 1;",
"sgn",
"1",
"while (space (c))\n\t\t\t\tc = cscan ();",
"space (c)",
"space",
"c",
"c = cscan ()",
"c",
"cscan ()",
"cscan",
"if (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}",
"c == '-'",
"c",
"'-'",
"{\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}",
"sgn = -1",
"sgn",
"-1",
"1",
"c = cscan ()",
"c",
"cscan ()",
"cscan",
"int res = 0;",
"res",
"0",
"do {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));",
"!space (c)",
"space (c)",
"space",
"c",
"{\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}",
"res = (res << 1) + (res << 3)",
"res",
"(res << 1) + (res << 3)",
"(res << 1)",
"res",
"1",
"(res << 3)",
"res",
"3",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = cscan ()",
"c",
"cscan ()",
"cscan",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public String sscan () throws IOException {\n\t\t\tint c = cscan ();\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tStringBuilder res = new StringBuilder ();\n\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint (c);\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res.toString ();\n\t\t}",
"sscan",
"{\n\t\t\tint c = cscan ();\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tStringBuilder res = new StringBuilder ();\n\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint (c);\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res.toString ();\n\t\t}",
"int c = cscan ();",
"c",
"cscan ()",
"cscan",
"while (space (c))\n\t\t\t\tc = cscan ();",
"space (c)",
"space",
"c",
"c = cscan ()",
"c",
"cscan ()",
"cscan",
"StringBuilder res = new StringBuilder ();",
"res",
"new StringBuilder ()",
"do {\n\t\t\t\tres.appendCodePoint (c);\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));",
"!space (c)",
"space (c)",
"space",
"c",
"{\n\t\t\t\tres.appendCodePoint (c);\n\t\t\t\tc = cscan ();\n\t\t\t}",
"res.appendCodePoint (c)",
"res.appendCodePoint",
"res",
"c",
"c = cscan ()",
"c",
"cscan ()",
"cscan",
"return res.toString ();",
"res.toString ()",
"res.toString",
"res",
"public double dscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tdouble res = 0;\n\n\t\t\twhile (!space (c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\t\t\t\t\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tif (c == '.') {\n\t\t\t\tc = cscan ();\n\t\t\t\tdouble m = 1;\n\n\t\t\t\twhile (!space (c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = cscan ();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn res * sgn;\n\t\t}",
"dscan",
"{\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tdouble res = 0;\n\n\t\t\twhile (!space (c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\t\t\t\t\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tif (c == '.') {\n\t\t\t\tc = cscan ();\n\t\t\t\tdouble m = 1;\n\n\t\t\t\twhile (!space (c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = cscan ();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn res * sgn;\n\t\t}",
"int c = cscan ()",
"c",
"cscan ()",
"cscan",
"sgn = 1;",
"sgn",
"1",
"while (space (c))\n\t\t\t\tc = cscan ();",
"space (c)",
"space",
"c",
"c = cscan ()",
"c",
"cscan ()",
"cscan",
"if (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}",
"c == '-'",
"c",
"'-'",
"{\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}",
"sgn = -1",
"sgn",
"-1",
"1",
"c = cscan ()",
"c",
"cscan ()",
"cscan",
"double res = 0;",
"res",
"0",
"while (!space (c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\t\t\t\t\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}",
"!space (c) && c != '.'",
"!space (c)",
"space (c)",
"space",
"c",
"c != '.'",
"c",
"'.'",
"{\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\t\t\t\t\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}",
"if (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());",
"c == 'e' || c == 'E'",
"c == 'e'",
"c",
"'e'",
"c == 'E'",
"c",
"'E'",
"return res * UTILITIES.fast_pow (10, iscan ());",
"res * UTILITIES.fast_pow (10, iscan ())",
"res",
"UTILITIES.fast_pow (10, iscan ())",
"UTILITIES.fast_pow",
"UTILITIES",
"10",
"iscan ()",
"iscan",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = cscan ()",
"c",
"cscan ()",
"cscan",
"if (c == '.') {\n\t\t\t\tc = cscan ();\n\t\t\t\tdouble m = 1;\n\n\t\t\t\twhile (!space (c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = cscan ();\n\t\t\t\t}\n\t\t\t}",
"c == '.'",
"c",
"'.'",
"{\n\t\t\t\tc = cscan ();\n\t\t\t\tdouble m = 1;\n\n\t\t\t\twhile (!space (c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = cscan ();\n\t\t\t\t}\n\t\t\t}",
"c = cscan ()",
"c",
"cscan ()",
"cscan",
"double m = 1;",
"m",
"1",
"while (!space (c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = cscan ();\n\t\t\t\t}",
"!space (c)",
"space (c)",
"space",
"c",
"{\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = cscan ();\n\t\t\t\t}",
"if (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());",
"c == 'e' || c == 'E'",
"c == 'e'",
"c",
"'e'",
"c == 'E'",
"c",
"'E'",
"return res * UTILITIES.fast_pow (10, iscan ());",
"res * UTILITIES.fast_pow (10, iscan ())",
"res",
"UTILITIES.fast_pow (10, iscan ())",
"UTILITIES.fast_pow",
"UTILITIES",
"10",
"iscan ()",
"iscan",
"m /= 10",
"m",
"10",
"res += (c - '0') * m",
"res",
"(c - '0') * m",
"(c - '0')",
"c",
"'0'",
"m",
"c = cscan ()",
"c",
"cscan ()",
"cscan",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public long lscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}",
"lscan",
"{\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}",
"int c = cscan ()",
"c",
"cscan ()",
"cscan",
"sgn = 1;",
"sgn",
"1",
"while (space (c))\n\t\t\t\tc = cscan ();",
"space (c)",
"space",
"c",
"c = cscan ()",
"c",
"cscan ()",
"cscan",
"if (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}",
"c == '-'",
"c",
"'-'",
"{\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}",
"sgn = -1",
"sgn",
"-1",
"1",
"c = cscan ()",
"c",
"cscan ()",
"cscan",
"long res = 0;",
"res",
"0",
"do {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));",
"!space (c)",
"space (c)",
"space",
"c",
"{\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}",
"res = (res << 1) + (res << 3)",
"res",
"(res << 1) + (res << 3)",
"(res << 1)",
"res",
"1",
"(res << 3)",
"res",
"3",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = cscan ()",
"c",
"cscan ()",
"cscan",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public boolean space (int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}",
"space",
"{\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public static class UTILITIES {\n\n\t\tstatic final double EPS = 10e-6;\n\n\t\tpublic static int lower_bound (int[] arr, int x) {\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] >= x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}\n\n\t\tpublic static int upper_bound (int[] arr, int x) {\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] > x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}\n\n\t\tpublic static int gcd (int a, int b) {\n\t\t\treturn b == 0 ? a : gcd (b, a % b);\n\t\t}\n\n\t\tpublic static int lcm (int a, int b) {\n\t\t\treturn a * b / gcd (a, b);\n\t\t}\n\n\t\tpublic static long fast_pow_mod (long b, long x, int mod) {\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\n\t\t\treturn b * fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\t\t}\n\n\t\tpublic static int fast_pow (int b, int x) {\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow (b * b, x / 2);\n\n\t\t\treturn b * fast_pow (b * b, x / 2);\n\t\t}\n\n\t\tpublic static long choose (long n, long k) {\n\t\t\tk = Math.min (k, n - k);\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = val * (n - i) / (i + 1);\n\n\t\t\treturn val;\n\t\t}\n\n\t\tpublic static long permute (int n, int k) {\n\t\t\tif (n < k) return 0;\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = (val * (n - i));\n\n\t\t\treturn val;\n\t\t}\n\t}",
"UTILITIES",
"static final double EPS = 10e-6;",
"EPS",
"10e-6",
"public static int lower_bound (int[] arr, int x) {\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] >= x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}",
"lower_bound",
"{\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] >= x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}",
"int low = 0",
"low",
"0",
"high = arr.length",
"high",
"arr.length",
"arr",
"arr.length",
"mid = -1;",
"mid",
"-1",
"1",
"while (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] >= x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}",
"low < high",
"low",
"high",
"{\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] >= x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}",
"mid = (low + high) / 2",
"mid",
"(low + high) / 2",
"(low + high)",
"low",
"high",
"2",
"if (arr[mid] >= x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;",
"arr[mid] >= x",
"arr[mid]",
"arr",
"mid",
"x",
"high = mid",
"high",
"mid",
"low = mid + 1",
"low",
"mid + 1",
"mid",
"1",
"return low;",
"low",
"int[] arr",
"arr",
"int x",
"x",
"public static int upper_bound (int[] arr, int x) {\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] > x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}",
"upper_bound",
"{\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] > x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}",
"int low = 0",
"low",
"0",
"high = arr.length",
"high",
"arr.length",
"arr",
"arr.length",
"mid = -1;",
"mid",
"-1",
"1",
"while (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] > x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}",
"low < high",
"low",
"high",
"{\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] > x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}",
"mid = (low + high) / 2",
"mid",
"(low + high) / 2",
"(low + high)",
"low",
"high",
"2",
"if (arr[mid] > x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;",
"arr[mid] > x",
"arr[mid]",
"arr",
"mid",
"x",
"high = mid",
"high",
"mid",
"low = mid + 1",
"low",
"mid + 1",
"mid",
"1",
"return low;",
"low",
"int[] arr",
"arr",
"int x",
"x",
"public static int gcd (int a, int b) {\n\t\t\treturn b == 0 ? a : gcd (b, a % b);\n\t\t}",
"gcd",
"{\n\t\t\treturn b == 0 ? a : gcd (b, a % b);\n\t\t}",
"return b == 0 ? a : gcd (b, a % b);",
"b == 0 ? a : gcd (b, a % b)",
"b == 0",
"b",
"0",
"a",
"gcd (b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public static int lcm (int a, int b) {\n\t\t\treturn a * b / gcd (a, b);\n\t\t}",
"lcm",
"{\n\t\t\treturn a * b / gcd (a, b);\n\t\t}",
"return a * b / gcd (a, b);",
"a * b / gcd (a, b)",
"a * b",
"a",
"b",
"gcd (a, b)",
"gcd",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public static long fast_pow_mod (long b, long x, int mod) {\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\n\t\t\treturn b * fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\t\t}",
"fast_pow_mod",
"{\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\n\t\t\treturn b * fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\t\t}",
"if (x == 0) return 1;",
"x == 0",
"x",
"0",
"return 1;",
"1",
"if (x == 1) return b;",
"x == 1",
"x",
"1",
"return b;",
"b",
"if (x % 2 == 0) return fast_pow_mod (b * b % mod, x / 2, mod) % mod;",
"x % 2 == 0",
"x % 2",
"x",
"2",
"0",
"return fast_pow_mod (b * b % mod, x / 2, mod) % mod;",
"fast_pow_mod (b * b % mod, x / 2, mod) % mod",
"fast_pow_mod (b * b % mod, x / 2, mod)",
"fast_pow_mod",
"b * b % mod",
"b * b",
"b",
"b",
"mod",
"x / 2",
"x",
"2",
"mod",
"mod",
"return b * fast_pow_mod (b * b % mod, x / 2, mod) % mod;",
"b * fast_pow_mod (b * b % mod, x / 2, mod) % mod",
"b * fast_pow_mod (b * b % mod, x / 2, mod)",
"b",
"fast_pow_mod (b * b % mod, x / 2, mod)",
"fast_pow_mod",
"b * b % mod",
"b * b",
"b",
"b",
"mod",
"x / 2",
"x",
"2",
"mod",
"mod",
"long b",
"b",
"long x",
"x",
"int mod",
"mod",
"public static int fast_pow (int b, int x) {\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow (b * b, x / 2);\n\n\t\t\treturn b * fast_pow (b * b, x / 2);\n\t\t}",
"fast_pow",
"{\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow (b * b, x / 2);\n\n\t\t\treturn b * fast_pow (b * b, x / 2);\n\t\t}",
"if (x == 0) return 1;",
"x == 0",
"x",
"0",
"return 1;",
"1",
"if (x == 1) return b;",
"x == 1",
"x",
"1",
"return b;",
"b",
"if (x % 2 == 0) return fast_pow (b * b, x / 2);",
"x % 2 == 0",
"x % 2",
"x",
"2",
"0",
"return fast_pow (b * b, x / 2);",
"fast_pow (b * b, x / 2)",
"fast_pow",
"b * b",
"b",
"b",
"x / 2",
"x",
"2",
"return b * fast_pow (b * b, x / 2);",
"b * fast_pow (b * b, x / 2)",
"b",
"fast_pow (b * b, x / 2)",
"fast_pow",
"b * b",
"b",
"b",
"x / 2",
"x",
"2",
"int b",
"b",
"int x",
"x",
"public static long choose (long n, long k) {\n\t\t\tk = Math.min (k, n - k);\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = val * (n - i) / (i + 1);\n\n\t\t\treturn val;\n\t\t}",
"choose",
"{\n\t\t\tk = Math.min (k, n - k);\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = val * (n - i) / (i + 1);\n\n\t\t\treturn val;\n\t\t}",
"k = Math.min (k, n - k)",
"k",
"Math.min (k, n - k)",
"Math.min",
"Math",
"k",
"n - k",
"n",
"k",
"long val = 1;",
"val",
"1",
"for (int i = 0; i < k; ++i)\n\t\t\t\tval = val * (n - i) / (i + 1);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"++i",
"++i",
"i",
"val = val * (n - i) / (i + 1);",
"val = val * (n - i) / (i + 1)",
"val",
"val * (n - i) / (i + 1)",
"val * (n - i)",
"val",
"(n - i)",
"n",
"i",
"(i + 1)",
"i",
"1",
"return val;",
"val",
"long n",
"n",
"long k",
"k",
"public static long permute (int n, int k) {\n\t\t\tif (n < k) return 0;\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = (val * (n - i));\n\n\t\t\treturn val;\n\t\t}",
"permute",
"{\n\t\t\tif (n < k) return 0;\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = (val * (n - i));\n\n\t\t\treturn val;\n\t\t}",
"if (n < k) return 0;",
"n < k",
"n",
"k",
"return 0;",
"0",
"long val = 1;",
"val",
"1",
"for (int i = 0; i < k; ++i)\n\t\t\t\tval = (val * (n - i));",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"++i",
"++i",
"i",
"val = (val * (n - i));",
"val = (val * (n - i))",
"val",
"(val * (n - i))",
"val",
"(n - i)",
"n",
"i",
"return val;",
"val",
"int n",
"n",
"int k",
"k",
"public class Main {\n\tstatic int N;\n\tstatic long D, P, Q;\n\tstatic int res = 0;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tN = in.iscan(); D = in.lscan();\n\t\twhile (N-- > 0) {\n\t\t\tP = in.lscan(); Q = in.lscan();\n\t\t\tif (P*P + Q*Q <= D*D) res++;\n\t\t}\n\t\tout.println(res);\n\t\tout.close();\n\t} \n\t\n\tstatic INPUT in = new INPUT(System.in);\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tprivate static class INPUT {\n\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar, numChars;\n\n\t\tpublic INPUT (InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic INPUT (String file) throws IOException {\n\t\t\tthis.stream = new FileInputStream (file);\n\t\t}\n\n\t\tpublic int cscan () throws IOException {\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\tnumChars = stream.read (buf);\n\t\t\t}\n\t\t\t\n\t\t\tif (numChars == -1)\n\t\t\t\treturn numChars;\n\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic int iscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tint res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String sscan () throws IOException {\n\t\t\tint c = cscan ();\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tStringBuilder res = new StringBuilder ();\n\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint (c);\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res.toString ();\n\t\t}\n\n\t\tpublic double dscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tdouble res = 0;\n\n\t\t\twhile (!space (c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\t\t\t\t\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tif (c == '.') {\n\t\t\t\tc = cscan ();\n\t\t\t\tdouble m = 1;\n\n\t\t\t\twhile (!space (c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = cscan ();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long lscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean space (int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\t}\n\n\tpublic static class UTILITIES {\n\n\t\tstatic final double EPS = 10e-6;\n\n\t\tpublic static int lower_bound (int[] arr, int x) {\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] >= x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}\n\n\t\tpublic static int upper_bound (int[] arr, int x) {\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] > x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}\n\n\t\tpublic static int gcd (int a, int b) {\n\t\t\treturn b == 0 ? a : gcd (b, a % b);\n\t\t}\n\n\t\tpublic static int lcm (int a, int b) {\n\t\t\treturn a * b / gcd (a, b);\n\t\t}\n\n\t\tpublic static long fast_pow_mod (long b, long x, int mod) {\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\n\t\t\treturn b * fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\t\t}\n\n\t\tpublic static int fast_pow (int b, int x) {\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow (b * b, x / 2);\n\n\t\t\treturn b * fast_pow (b * b, x / 2);\n\t\t}\n\n\t\tpublic static long choose (long n, long k) {\n\t\t\tk = Math.min (k, n - k);\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = val * (n - i) / (i + 1);\n\n\t\t\treturn val;\n\t\t}\n\n\t\tpublic static long permute (int n, int k) {\n\t\t\tif (n < k) return 0;\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = (val * (n - i));\n\n\t\t\treturn val;\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic int N;\n\tstatic long D, P, Q;\n\tstatic int res = 0;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tN = in.iscan(); D = in.lscan();\n\t\twhile (N-- > 0) {\n\t\t\tP = in.lscan(); Q = in.lscan();\n\t\t\tif (P*P + Q*Q <= D*D) res++;\n\t\t}\n\t\tout.println(res);\n\t\tout.close();\n\t} \n\t\n\tstatic INPUT in = new INPUT(System.in);\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tprivate static class INPUT {\n\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar, numChars;\n\n\t\tpublic INPUT (InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic INPUT (String file) throws IOException {\n\t\t\tthis.stream = new FileInputStream (file);\n\t\t}\n\n\t\tpublic int cscan () throws IOException {\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\tnumChars = stream.read (buf);\n\t\t\t}\n\t\t\t\n\t\t\tif (numChars == -1)\n\t\t\t\treturn numChars;\n\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic int iscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tint res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String sscan () throws IOException {\n\t\t\tint c = cscan ();\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tStringBuilder res = new StringBuilder ();\n\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint (c);\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res.toString ();\n\t\t}\n\n\t\tpublic double dscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tdouble res = 0;\n\n\t\t\twhile (!space (c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\t\t\t\t\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tif (c == '.') {\n\t\t\t\tc = cscan ();\n\t\t\t\tdouble m = 1;\n\n\t\t\t\twhile (!space (c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * UTILITIES.fast_pow (10, iscan ());\n\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = cscan ();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long lscan () throws IOException {\n\t\t\tint c = cscan (), sgn = 1;\n\t\t\t\n\t\t\twhile (space (c))\n\t\t\t\tc = cscan ();\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = cscan ();\n\t\t\t}\n\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tres = (res << 1) + (res << 3);\n\t\t\t\tres += c - '0';\n\t\t\t\tc = cscan ();\n\t\t\t}\n\t\t\twhile (!space (c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean space (int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\t}\n\n\tpublic static class UTILITIES {\n\n\t\tstatic final double EPS = 10e-6;\n\n\t\tpublic static int lower_bound (int[] arr, int x) {\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] >= x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}\n\n\t\tpublic static int upper_bound (int[] arr, int x) {\n\t\t\tint low = 0, high = arr.length, mid = -1;\n\n\t\t\twhile (low < high) {\n\t\t\t\tmid = (low + high) / 2;\n\n\t\t\t\tif (arr[mid] > x)\n\t\t\t\t\thigh = mid;\n\t\t\t\telse\n\t\t\t\t\tlow = mid + 1;\n\t\t\t}\n\n\t\t\treturn low;\n\t\t}\n\n\t\tpublic static int gcd (int a, int b) {\n\t\t\treturn b == 0 ? a : gcd (b, a % b);\n\t\t}\n\n\t\tpublic static int lcm (int a, int b) {\n\t\t\treturn a * b / gcd (a, b);\n\t\t}\n\n\t\tpublic static long fast_pow_mod (long b, long x, int mod) {\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\n\t\t\treturn b * fast_pow_mod (b * b % mod, x / 2, mod) % mod;\n\t\t}\n\n\t\tpublic static int fast_pow (int b, int x) {\n\t\t\tif (x == 0) return 1;\n\t\t\tif (x == 1) return b;\n\t\t\tif (x % 2 == 0) return fast_pow (b * b, x / 2);\n\n\t\t\treturn b * fast_pow (b * b, x / 2);\n\t\t}\n\n\t\tpublic static long choose (long n, long k) {\n\t\t\tk = Math.min (k, n - k);\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = val * (n - i) / (i + 1);\n\n\t\t\treturn val;\n\t\t}\n\n\t\tpublic static long permute (int n, int k) {\n\t\t\tif (n < k) return 0;\n\t\t\tlong val = 1;\n\n\t\t\tfor (int i = 0; i < k; ++i)\n\t\t\t\tval = (val * (n - i));\n\n\t\t\treturn val;\n\t\t}\n\t}\n}",
"Main"
]
| // Utilities
import java.io.*;
import java.util.*;
public class Main {
static int N;
static long D, P, Q;
static int res = 0;
public static void main(String[] args) throws IOException {
N = in.iscan(); D = in.lscan();
while (N-- > 0) {
P = in.lscan(); Q = in.lscan();
if (P*P + Q*Q <= D*D) res++;
}
out.println(res);
out.close();
}
static INPUT in = new INPUT(System.in);
static PrintWriter out = new PrintWriter(System.out);
private static class INPUT {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar, numChars;
public INPUT (InputStream stream) {
this.stream = stream;
}
public INPUT (String file) throws IOException {
this.stream = new FileInputStream (file);
}
public int cscan () throws IOException {
if (curChar >= numChars) {
curChar = 0;
numChars = stream.read (buf);
}
if (numChars == -1)
return numChars;
return buf[curChar++];
}
public int iscan () throws IOException {
int c = cscan (), sgn = 1;
while (space (c))
c = cscan ();
if (c == '-') {
sgn = -1;
c = cscan ();
}
int res = 0;
do {
res = (res << 1) + (res << 3);
res += c - '0';
c = cscan ();
}
while (!space (c));
return res * sgn;
}
public String sscan () throws IOException {
int c = cscan ();
while (space (c))
c = cscan ();
StringBuilder res = new StringBuilder ();
do {
res.appendCodePoint (c);
c = cscan ();
}
while (!space (c));
return res.toString ();
}
public double dscan () throws IOException {
int c = cscan (), sgn = 1;
while (space (c))
c = cscan ();
if (c == '-') {
sgn = -1;
c = cscan ();
}
double res = 0;
while (!space (c) && c != '.') {
if (c == 'e' || c == 'E')
return res * UTILITIES.fast_pow (10, iscan ());
res *= 10;
res += c - '0';
c = cscan ();
}
if (c == '.') {
c = cscan ();
double m = 1;
while (!space (c)) {
if (c == 'e' || c == 'E')
return res * UTILITIES.fast_pow (10, iscan ());
m /= 10;
res += (c - '0') * m;
c = cscan ();
}
}
return res * sgn;
}
public long lscan () throws IOException {
int c = cscan (), sgn = 1;
while (space (c))
c = cscan ();
if (c == '-') {
sgn = -1;
c = cscan ();
}
long res = 0;
do {
res = (res << 1) + (res << 3);
res += c - '0';
c = cscan ();
}
while (!space (c));
return res * sgn;
}
public boolean space (int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
}
public static class UTILITIES {
static final double EPS = 10e-6;
public static int lower_bound (int[] arr, int x) {
int low = 0, high = arr.length, mid = -1;
while (low < high) {
mid = (low + high) / 2;
if (arr[mid] >= x)
high = mid;
else
low = mid + 1;
}
return low;
}
public static int upper_bound (int[] arr, int x) {
int low = 0, high = arr.length, mid = -1;
while (low < high) {
mid = (low + high) / 2;
if (arr[mid] > x)
high = mid;
else
low = mid + 1;
}
return low;
}
public static int gcd (int a, int b) {
return b == 0 ? a : gcd (b, a % b);
}
public static int lcm (int a, int b) {
return a * b / gcd (a, b);
}
public static long fast_pow_mod (long b, long x, int mod) {
if (x == 0) return 1;
if (x == 1) return b;
if (x % 2 == 0) return fast_pow_mod (b * b % mod, x / 2, mod) % mod;
return b * fast_pow_mod (b * b % mod, x / 2, mod) % mod;
}
public static int fast_pow (int b, int x) {
if (x == 0) return 1;
if (x == 1) return b;
if (x % 2 == 0) return fast_pow (b * b, x / 2);
return b * fast_pow (b * b, x / 2);
}
public static long choose (long n, long k) {
k = Math.min (k, n - k);
long val = 1;
for (int i = 0; i < k; ++i)
val = val * (n - i) / (i + 1);
return val;
}
public static long permute (int n, int k) {
if (n < k) return 0;
long val = 1;
for (int i = 0; i < k; ++i)
val = (val * (n - i));
return val;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
116,
8
],
[
116,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
11,
42
],
[
42,
43
],
[
42,
44
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
60,
65
],
[
57,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
57,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
57,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
91,
93
],
[
57,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
11,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
11,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
9,
113
],
[
113,
114
],
[
0,
115
],
[
115,
116
],
[
115,
117
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main{\n public static void main(String[] args) throws Exception {\n BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String [] inp = buffer.readLine().split(\" \");\n int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);\n int cnt = 0;\n for (int pos = 0; pos < n; pos++) {\n inp = buffer.readLine().split(\" \");\n long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);\n// if (x*x+y*y<0)continue;\n double value = Math.sqrt((x*x)+(y*y));\n if (value<=maxDis) {\n cnt++;\n }\n }\n sb.append(cnt+\"\\n\");\n System.out.println(sb);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args) throws Exception {\n BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String [] inp = buffer.readLine().split(\" \");\n int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);\n int cnt = 0;\n for (int pos = 0; pos < n; pos++) {\n inp = buffer.readLine().split(\" \");\n long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);\n// if (x*x+y*y<0)continue;\n double value = Math.sqrt((x*x)+(y*y));\n if (value<=maxDis) {\n cnt++;\n }\n }\n sb.append(cnt+\"\\n\");\n System.out.println(sb);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String [] inp = buffer.readLine().split(\" \");\n int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);\n int cnt = 0;\n for (int pos = 0; pos < n; pos++) {\n inp = buffer.readLine().split(\" \");\n long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);\n// if (x*x+y*y<0)continue;\n double value = Math.sqrt((x*x)+(y*y));\n if (value<=maxDis) {\n cnt++;\n }\n }\n sb.append(cnt+\"\\n\");\n System.out.println(sb);\n }",
"main",
"{\n BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String [] inp = buffer.readLine().split(\" \");\n int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);\n int cnt = 0;\n for (int pos = 0; pos < n; pos++) {\n inp = buffer.readLine().split(\" \");\n long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);\n// if (x*x+y*y<0)continue;\n double value = Math.sqrt((x*x)+(y*y));\n if (value<=maxDis) {\n cnt++;\n }\n }\n sb.append(cnt+\"\\n\");\n System.out.println(sb);\n }",
"BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));",
"buffer",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"String [] inp = buffer.readLine().split(\" \");",
"inp",
"buffer.readLine().split(\" \")",
"buffer.readLine().split",
"buffer.readLine()",
"buffer.readLine",
"buffer",
"\" \"",
"int n = Integer.parseInt(inp[0])",
"n",
"Integer.parseInt(inp[0])",
"Integer.parseInt",
"Integer",
"inp[0]",
"inp",
"0",
"maxDis = Integer.parseInt(inp[1]);",
"maxDis",
"Integer.parseInt(inp[1])",
"Integer.parseInt",
"Integer",
"inp[1]",
"inp",
"1",
"int cnt = 0;",
"cnt",
"0",
"for (int pos = 0; pos < n; pos++) {\n inp = buffer.readLine().split(\" \");\n long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);\n// if (x*x+y*y<0)continue;\n double value = Math.sqrt((x*x)+(y*y));\n if (value<=maxDis) {\n cnt++;\n }\n }",
"int pos = 0;",
"int pos = 0;",
"pos",
"0",
"pos < n",
"pos",
"n",
"pos++",
"pos++",
"pos",
"{\n inp = buffer.readLine().split(\" \");\n long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);\n// if (x*x+y*y<0)continue;\n double value = Math.sqrt((x*x)+(y*y));\n if (value<=maxDis) {\n cnt++;\n }\n }",
"{\n inp = buffer.readLine().split(\" \");\n long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);\n// if (x*x+y*y<0)continue;\n double value = Math.sqrt((x*x)+(y*y));\n if (value<=maxDis) {\n cnt++;\n }\n }",
"inp = buffer.readLine().split(\" \")",
"inp",
"buffer.readLine().split(\" \")",
"buffer.readLine().split",
"buffer.readLine()",
"buffer.readLine",
"buffer",
"\" \"",
"long x = Integer.parseInt(inp[0])",
"x",
"Integer.parseInt(inp[0])",
"Integer.parseInt",
"Integer",
"inp[0]",
"inp",
"0",
"y = Integer.parseInt(inp[1]);",
"y",
"Integer.parseInt(inp[1])",
"Integer.parseInt",
"Integer",
"inp[1]",
"inp",
"1",
"double value = Math.sqrt((x*x)+(y*y));",
"value",
"Math.sqrt((x*x)+(y*y))",
"Math.sqrt",
"Math",
"(x*x)+(y*y)",
"(x*x)",
"x",
"x",
"(y*y)",
"y",
"y",
"if (value<=maxDis) {\n cnt++;\n }",
"value<=maxDis",
"value",
"maxDis",
"{\n cnt++;\n }",
"cnt++",
"cnt",
"sb.append(cnt+\"\\n\")",
"sb.append",
"sb",
"cnt+\"\\n\"",
"cnt",
"\"\\n\"",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) throws Exception {\n BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String [] inp = buffer.readLine().split(\" \");\n int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);\n int cnt = 0;\n for (int pos = 0; pos < n; pos++) {\n inp = buffer.readLine().split(\" \");\n long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);\n// if (x*x+y*y<0)continue;\n double value = Math.sqrt((x*x)+(y*y));\n if (value<=maxDis) {\n cnt++;\n }\n }\n sb.append(cnt+\"\\n\");\n System.out.println(sb);\n }\n}",
"public class Main{\n public static void main(String[] args) throws Exception {\n BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String [] inp = buffer.readLine().split(\" \");\n int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);\n int cnt = 0;\n for (int pos = 0; pos < n; pos++) {\n inp = buffer.readLine().split(\" \");\n long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);\n// if (x*x+y*y<0)continue;\n double value = Math.sqrt((x*x)+(y*y));\n if (value<=maxDis) {\n cnt++;\n }\n }\n sb.append(cnt+\"\\n\");\n System.out.println(sb);\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args) throws Exception {
BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
String [] inp = buffer.readLine().split(" ");
int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);
int cnt = 0;
for (int pos = 0; pos < n; pos++) {
inp = buffer.readLine().split(" ");
long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);
// if (x*x+y*y<0)continue;
double value = Math.sqrt((x*x)+(y*y));
if (value<=maxDis) {
cnt++;
}
}
sb.append(cnt+"\n");
System.out.println(sb);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
0,
18,
18,
13,
13,
17,
4,
18,
13,
18,
13,
17,
0,
18,
18,
13,
13,
17,
4,
18,
13,
18,
13,
17,
14,
2,
4,
18,
13,
2,
4,
18,
13,
18,
18,
13,
13,
17,
17,
4,
18,
13,
18,
18,
13,
13,
17,
17,
13,
30,
40,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
133,
8
],
[
133,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
11,
42
],
[
42,
43
],
[
42,
44
],
[
11,
47
],
[
47,
48
],
[
47,
49
],
[
11,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
65,
70
],
[
62,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
80,
82
],
[
62,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
62,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
101,
109
],
[
100,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
110,
118
],
[
96,
119
],
[
95,
120
],
[
120,
121
],
[
121,
122
],
[
11,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
11,
127
],
[
127,
128
],
[
128,
129
],
[
9,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n String[] input1 = br.readLine().split(\" \");\n int n = Integer.parseInt(input1[0]);\n int d = Integer.parseInt(input1[1]);\n \n Integer[][] numbers = new Integer[n][2];\n int ans = 0;\n \n for(int i = 0; i < n; i++){\n String[] input2 = br.readLine().split(\" \");\n numbers[i][0] = Integer.parseInt(input2[0]);\n numbers[i][1] = Integer.parseInt(input2[1]);\n if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){\n ans++;\n }\n }\n \n out.println(ans);\n out.close();\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n String[] input1 = br.readLine().split(\" \");\n int n = Integer.parseInt(input1[0]);\n int d = Integer.parseInt(input1[1]);\n \n Integer[][] numbers = new Integer[n][2];\n int ans = 0;\n \n for(int i = 0; i < n; i++){\n String[] input2 = br.readLine().split(\" \");\n numbers[i][0] = Integer.parseInt(input2[0]);\n numbers[i][1] = Integer.parseInt(input2[1]);\n if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){\n ans++;\n }\n }\n \n out.println(ans);\n out.close();\n \n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n String[] input1 = br.readLine().split(\" \");\n int n = Integer.parseInt(input1[0]);\n int d = Integer.parseInt(input1[1]);\n \n Integer[][] numbers = new Integer[n][2];\n int ans = 0;\n \n for(int i = 0; i < n; i++){\n String[] input2 = br.readLine().split(\" \");\n numbers[i][0] = Integer.parseInt(input2[0]);\n numbers[i][1] = Integer.parseInt(input2[1]);\n if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){\n ans++;\n }\n }\n \n out.println(ans);\n out.close();\n \n }",
"main",
"{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n String[] input1 = br.readLine().split(\" \");\n int n = Integer.parseInt(input1[0]);\n int d = Integer.parseInt(input1[1]);\n \n Integer[][] numbers = new Integer[n][2];\n int ans = 0;\n \n for(int i = 0; i < n; i++){\n String[] input2 = br.readLine().split(\" \");\n numbers[i][0] = Integer.parseInt(input2[0]);\n numbers[i][1] = Integer.parseInt(input2[1]);\n if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){\n ans++;\n }\n }\n \n out.println(ans);\n out.close();\n \n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));",
"out",
"new PrintWriter(new OutputStreamWriter(System.out))",
"String[] input1 = br.readLine().split(\" \");",
"input1",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(input1[0]);",
"n",
"Integer.parseInt(input1[0])",
"Integer.parseInt",
"Integer",
"input1[0]",
"input1",
"0",
"int d = Integer.parseInt(input1[1]);",
"d",
"Integer.parseInt(input1[1])",
"Integer.parseInt",
"Integer",
"input1[1]",
"input1",
"1",
"Integer[][] numbers = new Integer[n][2];",
"numbers",
"new Integer[n][2]",
"n",
"2",
"int ans = 0;",
"ans",
"0",
"for(int i = 0; i < n; i++){\n String[] input2 = br.readLine().split(\" \");\n numbers[i][0] = Integer.parseInt(input2[0]);\n numbers[i][1] = Integer.parseInt(input2[1]);\n if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){\n ans++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] input2 = br.readLine().split(\" \");\n numbers[i][0] = Integer.parseInt(input2[0]);\n numbers[i][1] = Integer.parseInt(input2[1]);\n if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){\n ans++;\n }\n }",
"{\n String[] input2 = br.readLine().split(\" \");\n numbers[i][0] = Integer.parseInt(input2[0]);\n numbers[i][1] = Integer.parseInt(input2[1]);\n if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){\n ans++;\n }\n }",
"String[] input2 = br.readLine().split(\" \");",
"input2",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"numbers[i][0] = Integer.parseInt(input2[0])",
"numbers[i][0]",
"numbers[i]",
"numbers",
"i",
"0",
"Integer.parseInt(input2[0])",
"Integer.parseInt",
"Integer",
"input2[0]",
"input2",
"0",
"numbers[i][1] = Integer.parseInt(input2[1])",
"numbers[i][1]",
"numbers[i]",
"numbers",
"i",
"1",
"Integer.parseInt(input2[1])",
"Integer.parseInt",
"Integer",
"input2[1]",
"input2",
"1",
"if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){\n ans++;\n }",
"Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d",
"Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2))",
"Math.sqrt",
"Math",
"Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)",
"Math.pow(numbers[i][0], 2)",
"Math.pow",
"Math",
"numbers[i][0]",
"numbers[i]",
"numbers",
"i",
"0",
"2",
"Math.pow(numbers[i][1], 2)",
"Math.pow",
"Math",
"numbers[i][1]",
"numbers[i]",
"numbers",
"i",
"1",
"2",
"d",
"{\n ans++;\n }",
"ans++",
"ans",
"out.println(ans)",
"out.println",
"out",
"ans",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n String[] input1 = br.readLine().split(\" \");\n int n = Integer.parseInt(input1[0]);\n int d = Integer.parseInt(input1[1]);\n \n Integer[][] numbers = new Integer[n][2];\n int ans = 0;\n \n for(int i = 0; i < n; i++){\n String[] input2 = br.readLine().split(\" \");\n numbers[i][0] = Integer.parseInt(input2[0]);\n numbers[i][1] = Integer.parseInt(input2[1]);\n if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){\n ans++;\n }\n }\n \n out.println(ans);\n out.close();\n \n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n String[] input1 = br.readLine().split(\" \");\n int n = Integer.parseInt(input1[0]);\n int d = Integer.parseInt(input1[1]);\n \n Integer[][] numbers = new Integer[n][2];\n int ans = 0;\n \n for(int i = 0; i < n; i++){\n String[] input2 = br.readLine().split(\" \");\n numbers[i][0] = Integer.parseInt(input2[0]);\n numbers[i][1] = Integer.parseInt(input2[1]);\n if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){\n ans++;\n }\n }\n \n out.println(ans);\n out.close();\n \n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
String[] input1 = br.readLine().split(" ");
int n = Integer.parseInt(input1[0]);
int d = Integer.parseInt(input1[1]);
Integer[][] numbers = new Integer[n][2];
int ans = 0;
for(int i = 0; i < n; i++){
String[] input2 = br.readLine().split(" ");
numbers[i][0] = Integer.parseInt(input2[0]);
numbers[i][1] = Integer.parseInt(input2[1]);
if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){
ans++;
}
}
out.println(ans);
out.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
0,
13,
17,
30,
30,
41,
13,
18,
13,
2,
13,
17,
41,
13,
18,
13,
13,
41,
13,
2,
2,
13,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
112,
5
],
[
112,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
53,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
68,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
68,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
68,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
6,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
]
| [
"import java.util.*;\n\npublic class Main{\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n double D = sc.nextDouble();\n double[] list = new double[N*2];\n \n for(int i = 0; i < N*2; i++){\n list[i] = sc.nextDouble();\n }\n \n int count = 0;\n for(int i = 1; i < N*2; i+=2){\n double x = list[i-1];\n double y = list[i];\n double ans = x*x + y*y;\n double answer = Math.sqrt(ans);\n \n if(answer <= D){\n count++;\n }\n }\n \n System.out.println(count);\n \n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n double D = sc.nextDouble();\n double[] list = new double[N*2];\n \n for(int i = 0; i < N*2; i++){\n list[i] = sc.nextDouble();\n }\n \n int count = 0;\n for(int i = 1; i < N*2; i+=2){\n double x = list[i-1];\n double y = list[i];\n double ans = x*x + y*y;\n double answer = Math.sqrt(ans);\n \n if(answer <= D){\n count++;\n }\n }\n \n System.out.println(count);\n \n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n double D = sc.nextDouble();\n double[] list = new double[N*2];\n \n for(int i = 0; i < N*2; i++){\n list[i] = sc.nextDouble();\n }\n \n int count = 0;\n for(int i = 1; i < N*2; i+=2){\n double x = list[i-1];\n double y = list[i];\n double ans = x*x + y*y;\n double answer = Math.sqrt(ans);\n \n if(answer <= D){\n count++;\n }\n }\n \n System.out.println(count);\n \n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n double D = sc.nextDouble();\n double[] list = new double[N*2];\n \n for(int i = 0; i < N*2; i++){\n list[i] = sc.nextDouble();\n }\n \n int count = 0;\n for(int i = 1; i < N*2; i+=2){\n double x = list[i-1];\n double y = list[i];\n double ans = x*x + y*y;\n double answer = Math.sqrt(ans);\n \n if(answer <= D){\n count++;\n }\n }\n \n System.out.println(count);\n \n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double D = sc.nextDouble();",
"D",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double[] list = new double[N*2];",
"list",
"new double[N*2]",
"N*2",
"N",
"2",
"for(int i = 0; i < N*2; i++){\n list[i] = sc.nextDouble();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N*2",
"i",
"N*2",
"N",
"2",
"i++",
"i++",
"i",
"{\n list[i] = sc.nextDouble();\n }",
"{\n list[i] = sc.nextDouble();\n }",
"list[i] = sc.nextDouble()",
"list[i]",
"list",
"i",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"int count = 0;",
"count",
"0",
"for(int i = 1; i < N*2; i+=2){\n double x = list[i-1];\n double y = list[i];\n double ans = x*x + y*y;\n double answer = Math.sqrt(ans);\n \n if(answer <= D){\n count++;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < N*2",
"i",
"N*2",
"N",
"2",
"i+=2",
"i+=2",
"i",
"2",
"{\n double x = list[i-1];\n double y = list[i];\n double ans = x*x + y*y;\n double answer = Math.sqrt(ans);\n \n if(answer <= D){\n count++;\n }\n }",
"{\n double x = list[i-1];\n double y = list[i];\n double ans = x*x + y*y;\n double answer = Math.sqrt(ans);\n \n if(answer <= D){\n count++;\n }\n }",
"double x = list[i-1];",
"x",
"list[i-1]",
"list",
"i-1",
"i",
"1",
"double y = list[i];",
"y",
"list[i]",
"list",
"i",
"double ans = x*x + y*y;",
"ans",
"x*x + y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"double answer = Math.sqrt(ans);",
"answer",
"Math.sqrt(ans)",
"Math.sqrt",
"Math",
"ans",
"if(answer <= D){\n count++;\n }",
"answer <= D",
"answer",
"D",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n double D = sc.nextDouble();\n double[] list = new double[N*2];\n \n for(int i = 0; i < N*2; i++){\n list[i] = sc.nextDouble();\n }\n \n int count = 0;\n for(int i = 1; i < N*2; i+=2){\n double x = list[i-1];\n double y = list[i];\n double ans = x*x + y*y;\n double answer = Math.sqrt(ans);\n \n if(answer <= D){\n count++;\n }\n }\n \n System.out.println(count);\n \n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n double D = sc.nextDouble();\n double[] list = new double[N*2];\n \n for(int i = 0; i < N*2; i++){\n list[i] = sc.nextDouble();\n }\n \n int count = 0;\n for(int i = 1; i < N*2; i+=2){\n double x = list[i-1];\n double y = list[i];\n double ans = x*x + y*y;\n double answer = Math.sqrt(ans);\n \n if(answer <= D){\n count++;\n }\n }\n \n System.out.println(count);\n \n\t}\n\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
double D = sc.nextDouble();
double[] list = new double[N*2];
for(int i = 0; i < N*2; i++){
list[i] = sc.nextDouble();
}
int count = 0;
for(int i = 1; i < N*2; i+=2){
double x = list[i-1];
double y = list[i];
double ans = x*x + y*y;
double answer = Math.sqrt(ans);
if(answer <= D){
count++;
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
29,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
18,
18,
13,
13,
17,
17,
4,
18,
13,
18,
18,
13,
13,
17,
17,
41,
13,
4,
18,
13,
13,
14,
2,
13,
13,
40,
13,
4,
18,
13,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
246,
8
],
[
246,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
9,
39
],
[
39,
40
],
[
246,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
41,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
47,
56
],
[
56,
57
],
[
41,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
58,
67
],
[
67,
68
],
[
41,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
71,
87
],
[
87,
88
],
[
41,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
92,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
102,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
91,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
41,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
41,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
132,
133
],
[
246,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
138,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
138,
149
],
[
149,
150
],
[
149,
151
],
[
138,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
154,
165
],
[
166,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
179,
185
],
[
185,
186
],
[
186,
187
],
[
138,
188
],
[
188,
189
],
[
188,
190
],
[
138,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
191,
199
],
[
199,
200
],
[
200,
201
],
[
191,
202
],
[
203,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
207,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
207,
215
],
[
206,
216
],
[
216,
217
],
[
217,
218
],
[
216,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
216,
224
],
[
203,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
227,
230
],
[
203,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
138,
237
],
[
237,
238
],
[
238,
239
],
[
237,
240
],
[
136,
241
],
[
241,
242
],
[
136,
243
],
[
243,
244
],
[
0,
245
],
[
245,
246
],
[
245,
247
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int d=in.nextInt();\n int[][] points=new int[n][2];\n for(int i=0;i<n;i++){\n for(int j=0;j<2;j++)\n points[i][j]=in.nextInt();\n }\n int count=0;\n for(int i=0;i<n;i++){\n double squaredDistance=Math.pow(points[i][0], 2)+Math.pow(points[i][1], 2);\n double distance= Math.sqrt(squaredDistance);\n if(distance<=d) count++;\n }\n out.println(count);\n }\n }\n}\n \n ",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int d=in.nextInt();\n int[][] points=new int[n][2];\n for(int i=0;i<n;i++){\n for(int j=0;j<2;j++)\n points[i][j]=in.nextInt();\n }\n int count=0;\n for(int i=0;i<n;i++){\n double squaredDistance=Math.pow(points[i][0], 2)+Math.pow(points[i][1], 2);\n double distance= Math.sqrt(squaredDistance);\n if(distance<=d) count++;\n }\n out.println(count);\n }\n }\n}",
"Main",
"public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }",
"main",
"{\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }",
"InputStream inputstream = System.in;",
"inputstream",
"System.in",
"System",
"System.in",
"OutputStream outputstream = System.out;",
"outputstream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputstream);",
"in",
"new InputReader(inputstream)",
"PrintWriter out = new PrintWriter(outputstream);",
"out",
"new PrintWriter(outputstream)",
"Task solver = new Task();",
"solver",
"new Task()",
"solver.solve(in, out)",
"solver.solve",
"solver",
"in",
"out",
"out.flush()",
"out.flush",
"out",
"String args[]",
"args",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tok;",
"tok",
"public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }",
"reader = new BufferedReader(new InputStreamReader(inputStream))",
"reader",
"new BufferedReader(new InputStreamReader(inputStream))",
"tok = null",
"tok",
"null",
"InputStream inputStream",
"inputStream",
"public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }",
"reader = new BufferedReader(new FileReader(inputFile))",
"reader",
"new BufferedReader(new FileReader(inputFile))",
"tok = null",
"tok",
"null",
"String inputFile",
"inputFile",
"public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }",
"nextLine",
"{\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }",
"String c = \"\";",
"c",
"\"\"",
"try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n c = reader.readLine();\n }",
"c = reader.readLine()",
"c",
"reader.readLine()",
"reader.readLine",
"reader",
"return c;",
"c",
"public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }",
"next",
"{\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }",
"while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"tok == null || !tok.hasMoreTokens()",
"tok == null",
"tok",
"null",
"!tok.hasMoreTokens()",
"tok.hasMoreTokens()",
"tok.hasMoreTokens",
"tok",
"{\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }",
"catch (Exception e) {\n throw new RuntimeException(e);\n }",
"Exception e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tok = new StringTokenizer(nextLine());\n }",
"tok = new StringTokenizer(nextLine())",
"tok",
"new StringTokenizer(nextLine())",
"return tok.nextToken();",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"static class Task {\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int d=in.nextInt();\n int[][] points=new int[n][2];\n for(int i=0;i<n;i++){\n for(int j=0;j<2;j++)\n points[i][j]=in.nextInt();\n }\n int count=0;\n for(int i=0;i<n;i++){\n double squaredDistance=Math.pow(points[i][0], 2)+Math.pow(points[i][1], 2);\n double distance= Math.sqrt(squaredDistance);\n if(distance<=d) count++;\n }\n out.println(count);\n }\n }",
"Task",
"public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int d=in.nextInt();\n int[][] points=new int[n][2];\n for(int i=0;i<n;i++){\n for(int j=0;j<2;j++)\n points[i][j]=in.nextInt();\n }\n int count=0;\n for(int i=0;i<n;i++){\n double squaredDistance=Math.pow(points[i][0], 2)+Math.pow(points[i][1], 2);\n double distance= Math.sqrt(squaredDistance);\n if(distance<=d) count++;\n }\n out.println(count);\n }",
"solve",
"{\n int n = in.nextInt();\n int d=in.nextInt();\n int[][] points=new int[n][2];\n for(int i=0;i<n;i++){\n for(int j=0;j<2;j++)\n points[i][j]=in.nextInt();\n }\n int count=0;\n for(int i=0;i<n;i++){\n double squaredDistance=Math.pow(points[i][0], 2)+Math.pow(points[i][1], 2);\n double distance= Math.sqrt(squaredDistance);\n if(distance<=d) count++;\n }\n out.println(count);\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int d=in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"int[][] points=new int[n][2];",
"points",
"new int[n][2]",
"n",
"2",
"for(int i=0;i<n;i++){\n for(int j=0;j<2;j++)\n points[i][j]=in.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=0;j<2;j++)\n points[i][j]=in.nextInt();\n }",
"{\n for(int j=0;j<2;j++)\n points[i][j]=in.nextInt();\n }",
"for(int j=0;j<2;j++)\n points[i][j]=in.nextInt();",
"int j=0;",
"int j=0;",
"j",
"0",
"j<2",
"j",
"2",
"j++",
"j++",
"j",
"points[i][j]=in.nextInt();",
"points[i][j]=in.nextInt()",
"points[i][j]",
"points[i]",
"points",
"i",
"j",
"in.nextInt()",
"in.nextInt",
"in",
"int count=0;",
"count",
"0",
"for(int i=0;i<n;i++){\n double squaredDistance=Math.pow(points[i][0], 2)+Math.pow(points[i][1], 2);\n double distance= Math.sqrt(squaredDistance);\n if(distance<=d) count++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n double squaredDistance=Math.pow(points[i][0], 2)+Math.pow(points[i][1], 2);\n double distance= Math.sqrt(squaredDistance);\n if(distance<=d) count++;\n }",
"{\n double squaredDistance=Math.pow(points[i][0], 2)+Math.pow(points[i][1], 2);\n double distance= Math.sqrt(squaredDistance);\n if(distance<=d) count++;\n }",
"double squaredDistance=Math.pow(points[i][0], 2)+Math.pow(points[i][1], 2);",
"squaredDistance",
"Math.pow(points[i][0], 2)+Math.pow(points[i][1], 2)",
"Math.pow(points[i][0], 2)",
"Math.pow",
"Math",
"points[i][0]",
"points[i]",
"points",
"i",
"0",
"2",
"Math.pow(points[i][1], 2)",
"Math.pow",
"Math",
"points[i][1]",
"points[i]",
"points",
"i",
"1",
"2",
"double distance= Math.sqrt(squaredDistance);",
"distance",
"Math.sqrt(squaredDistance)",
"Math.sqrt",
"Math",
"squaredDistance",
"if(distance<=d) count++;",
"distance<=d",
"distance",
"d",
"count++",
"count",
"out.println(count)",
"out.println",
"out",
"count",
"InputReader in",
"in",
"PrintWriter out",
"out",
"public class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int d=in.nextInt();\n int[][] points=new int[n][2];\n for(int i=0;i<n;i++){\n for(int j=0;j<2;j++)\n points[i][j]=in.nextInt();\n }\n int count=0;\n for(int i=0;i<n;i++){\n double squaredDistance=Math.pow(points[i][0], 2)+Math.pow(points[i][1], 2);\n double distance= Math.sqrt(squaredDistance);\n if(distance<=d) count++;\n }\n out.println(count);\n }\n }\n}",
"public class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int d=in.nextInt();\n int[][] points=new int[n][2];\n for(int i=0;i<n;i++){\n for(int j=0;j<2;j++)\n points[i][j]=in.nextInt();\n }\n int count=0;\n for(int i=0;i<n;i++){\n double squaredDistance=Math.pow(points[i][0], 2)+Math.pow(points[i][1], 2);\n double distance= Math.sqrt(squaredDistance);\n if(distance<=d) count++;\n }\n out.println(count);\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
static class InputReader {
public BufferedReader reader;
public StringTokenizer tok;
public InputReader(InputStream inputStream) {
reader = new BufferedReader(new InputStreamReader(inputStream));
tok = null;
}
public InputReader(String inputFile) throws FileNotFoundException {
reader = new BufferedReader(new FileReader(inputFile));
tok = null;
}
public String nextLine() {
String c = "";
try {
c = reader.readLine();
} catch (IOException e) {
throw new RuntimeException(e);
}
return c;
}
public String next() {
while (tok == null || !tok.hasMoreTokens()) {
try {
tok = new StringTokenizer(nextLine());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
return tok.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public long nextLong() {
return Long.parseLong(next());
}
}
public static void main(String args[]) {
InputStream inputstream = System.in;
OutputStream outputstream = System.out;
InputReader in = new InputReader(inputstream);
PrintWriter out = new PrintWriter(outputstream);
Task solver = new Task();
solver.solve(in, out);
out.flush();
}
static class Task {
public void solve(InputReader in, PrintWriter out) {
int n = in.nextInt();
int d=in.nextInt();
int[][] points=new int[n][2];
for(int i=0;i<n;i++){
for(int j=0;j<2;j++)
points[i][j]=in.nextInt();
}
int count=0;
for(int i=0;i<n;i++){
double squaredDistance=Math.pow(points[i][0], 2)+Math.pow(points[i][1], 2);
double distance= Math.sqrt(squaredDistance);
if(distance<=d) count++;
}
out.println(count);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
77,
5
],
[
77,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
10,
29
],
[
29,
30
],
[
29,
31
],
[
10,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
10,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
6,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong d2 = d * d;\n\t\t\t\n\t\t\tint count = 0; \n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\t\n\t\t\t\tif ( x * x + y * y <= d2 ) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong d2 = d * d;\n\t\t\t\n\t\t\tint count = 0; \n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\t\n\t\t\t\tif ( x * x + y * y <= d2 ) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong d2 = d * d;\n\t\t\t\n\t\t\tint count = 0; \n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\t\n\t\t\t\tif ( x * x + y * y <= d2 ) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t}\n\t}",
"main",
"{\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong d2 = d * d;\n\t\t\t\n\t\t\tint count = 0; \n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\t\n\t\t\t\tif ( x * x + y * y <= d2 ) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t}\n\t}",
"try(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong d2 = d * d;\n\t\t\t\n\t\t\tint count = 0; \n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\t\n\t\t\t\tif ( x * x + y * y <= d2 ) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t}",
"{\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong d2 = d * d;\n\t\t\t\n\t\t\tint count = 0; \n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\t\n\t\t\t\tif ( x * x + y * y <= d2 ) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d2 = d * d;",
"d2",
"d * d",
"d",
"d",
"int count = 0;",
"count",
"0",
"for(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\t\n\t\t\t\tif ( x * x + y * y <= d2 ) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\t\n\t\t\t\tif ( x * x + y * y <= d2 ) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\t\n\t\t\t\tif ( x * x + y * y <= d2 ) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"long x = sc.nextLong();",
"x",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long y = sc.nextLong();",
"y",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if ( x * x + y * y <= d2 ) {\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"x * x + y * y <= d2",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"d2",
"{\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong d2 = d * d;\n\t\t\t\n\t\t\tint count = 0; \n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\t\n\t\t\t\tif ( x * x + y * y <= d2 ) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong d2 = d * d;\n\t\t\t\n\t\t\tint count = 0; \n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tlong x = sc.nextLong();\n\t\t\t\tlong y = sc.nextLong();\n\t\t\t\t\n\t\t\t\tif ( x * x + y * y <= d2 ) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
try(Scanner sc = new Scanner(System.in)) {
int n = sc.nextInt();
long d = sc.nextLong();
long d2 = d * d;
int count = 0;
for(int i = 0 ; i < n ; i++ ) {
long x = sc.nextLong();
long y = sc.nextLong();
if ( x * x + y * y <= d2 ) {
count++;
}
}
System.out.println(count);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
49,
60
],
[
48,
61
],
[
61,
62
],
[
62,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.*;\npublic class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt(),c=0;\n\t\tint d=in.nextInt();\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tlong a=in.nextLong();\n\t\t\tlong b=in.nextLong();\n\t\t\tif(Math.sqrt(a*a+b*b)<=d)\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(c);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt(),c=0;\n\t\tint d=in.nextInt();\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tlong a=in.nextLong();\n\t\t\tlong b=in.nextLong();\n\t\t\tif(Math.sqrt(a*a+b*b)<=d)\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(c);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt(),c=0;\n\t\tint d=in.nextInt();\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tlong a=in.nextLong();\n\t\t\tlong b=in.nextLong();\n\t\t\tif(Math.sqrt(a*a+b*b)<=d)\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(c);\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt(),c=0;\n\t\tint d=in.nextInt();\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tlong a=in.nextLong();\n\t\t\tlong b=in.nextLong();\n\t\t\tif(Math.sqrt(a*a+b*b)<=d)\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(c);\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n=in.nextInt()",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"c=0;",
"c",
"0",
"int d=in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i=1;i<=n;i++)\n\t\t{\n\t\t\tlong a=in.nextLong();\n\t\t\tlong b=in.nextLong();\n\t\t\tif(Math.sqrt(a*a+b*b)<=d)\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tlong a=in.nextLong();\n\t\t\tlong b=in.nextLong();\n\t\t\tif(Math.sqrt(a*a+b*b)<=d)\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tlong a=in.nextLong();\n\t\t\tlong b=in.nextLong();\n\t\t\tif(Math.sqrt(a*a+b*b)<=d)\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t}",
"long a=in.nextLong();",
"a",
"in.nextLong()",
"in.nextLong",
"in",
"long b=in.nextLong();",
"b",
"in.nextLong()",
"in.nextLong",
"in",
"if(Math.sqrt(a*a+b*b)<=d)\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}",
"Math.sqrt(a*a+b*b)<=d",
"Math.sqrt(a*a+b*b)",
"Math.sqrt",
"Math",
"a*a+b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"d",
"{\n\t\t\t\tc++;\n\t\t\t}",
"c++",
"c",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt(),c=0;\n\t\tint d=in.nextInt();\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tlong a=in.nextLong();\n\t\t\tlong b=in.nextLong();\n\t\t\tif(Math.sqrt(a*a+b*b)<=d)\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(c);\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt(),c=0;\n\t\tint d=in.nextInt();\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tlong a=in.nextLong();\n\t\t\tlong b=in.nextLong();\n\t\t\tif(Math.sqrt(a*a+b*b)<=d)\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(c);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main
{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n=in.nextInt(),c=0;
int d=in.nextInt();
for(int i=1;i<=n;i++)
{
long a=in.nextLong();
long b=in.nextLong();
if(Math.sqrt(a*a+b*b)<=d)
{
c++;
}
}
System.out.println(c);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
17,
41,
13,
20,
41,
13,
17,
41,
13,
2,
17,
17,
41,
13,
41,
13,
41,
13,
18,
13,
13,
41,
13,
17,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
39,
39,
40,
17,
17,
39,
17,
17,
39,
17,
17,
39,
17,
40,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
4,
18,
20,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
13,
0,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
17,
23,
13,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
2,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
2,
17,
17,
41,
13,
17,
41,
13,
42,
2,
0,
13,
4,
13,
40,
17,
30,
14,
2,
13,
17,
3,
0,
18,
13,
40,
13,
13,
29,
20,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
2,
13,
17,
30,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
0,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
13,
14,
2,
13,
40,
17,
0,
18,
13,
17,
40,
17,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
13,
29,
13,
23,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
10,
15
],
[
15,
16
],
[
15,
17
],
[
10,
18
],
[
18,
19
],
[
18,
20
],
[
10,
21
],
[
21,
22
],
[
10,
23
],
[
23,
24
],
[
10,
25
],
[
25,
26
],
[
10,
27
],
[
27,
28
],
[
10,
29
],
[
29,
30
],
[
10,
31
],
[
31,
32
],
[
10,
33
],
[
33,
34
],
[
33,
35
],
[
10,
36
],
[
36,
37
],
[
36,
38
],
[
10,
39
],
[
39,
40
],
[
39,
41
],
[
10,
43
],
[
43,
44
],
[
43,
45
],
[
10,
46
],
[
46,
47
],
[
46,
48
],
[
10,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
10,
54
],
[
54,
55
],
[
10,
56
],
[
56,
57
],
[
10,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
10,
63
],
[
63,
64
],
[
63,
65
],
[
10,
66
],
[
66,
67
],
[
66,
68
],
[
10,
70
],
[
70,
71
],
[
10,
72
],
[
72,
73
],
[
10,
74
],
[
74,
75
],
[
10,
76
],
[
76,
77
],
[
10,
78
],
[
78,
79
],
[
78,
80
],
[
10,
81
],
[
81,
82
],
[
10,
83
],
[
83,
84
],
[
10,
85
],
[
85,
86
],
[
10,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
97,
99
],
[
89,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
10,
104
],
[
104,
105
],
[
104,
106
],
[
10,
107
],
[
107,
108
],
[
107,
109
],
[
10,
110
],
[
110,
111
],
[
110,
112
],
[
10,
113
],
[
113,
114
],
[
10,
115
],
[
115,
116
],
[
10,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
119,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
119,
133
],
[
133,
134
],
[
133,
135
],
[
119,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
148,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
148,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
165,
166
],
[
165,
167
],
[
160,
168
],
[
168,
169
],
[
168,
170
],
[
159,
171
],
[
171,
172
],
[
119,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
117,
179
],
[
179,
180
],
[
10,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
181,
190
],
[
190,
191
],
[
10,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
192,
196
],
[
196,
197
],
[
192,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
204,
205
],
[
204,
206
],
[
198,
207
],
[
207,
208
],
[
198,
209
],
[
209,
210
],
[
192,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
211,
216
],
[
216,
217
],
[
192,
218
],
[
10,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
219,
223
],
[
223,
224
],
[
219,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
227,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
225,
238
],
[
238,
239
],
[
225,
240
],
[
240,
241
],
[
10,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
246,
248
],
[
242,
249
],
[
249,
250
],
[
242,
251
],
[
251,
252
],
[
242,
253
],
[
253,
254
],
[
242,
255
],
[
255,
256
],
[
242,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
263
],
[
263,
264
],
[
263,
265
],
[
259,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
269,
271
],
[
242,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
278,
279
],
[
278,
280
],
[
274,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
284,
286
],
[
272,
287
],
[
287,
288
],
[
242,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
295,
296
],
[
295,
297
],
[
291,
298
],
[
298,
299
],
[
298,
300
],
[
291,
301
],
[
301,
302
],
[
291,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
307,
308
],
[
304,
309
],
[
309,
310
],
[
303,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
312,
316
],
[
311,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
320,
321
],
[
317,
322
],
[
291,
323
],
[
323,
324
],
[
242,
325
],
[
325,
326
],
[
325,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
327,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
327,
335
],
[
335,
336
],
[
336,
337
],
[
336,
338
],
[
335,
339
],
[
339,
340
],
[
339,
341
],
[
341,
342
],
[
327,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
345,
347
],
[
327,
348
],
[
348,
349
],
[
348,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
327,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
356,
361
],
[
355,
362
],
[
362,
363
],
[
362,
364
],
[
354,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
368,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
369,
373
],
[
368,
374
],
[
327,
375
],
[
375,
376
],
[
375,
377
],
[
377,
378
],
[
378,
379
],
[
327,
380
],
[
380,
381
],
[
242,
382
],
[
382,
383
],
[
382,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
384,
388
],
[
388,
389
],
[
388,
390
],
[
390,
391
],
[
384,
392
],
[
392,
393
],
[
393,
394
],
[
393,
395
],
[
392,
396
],
[
396,
397
],
[
396,
398
],
[
398,
399
],
[
384,
400
],
[
400,
401
],
[
400,
402
],
[
402,
403
],
[
402,
404
],
[
384,
405
],
[
405,
406
],
[
405,
407
],
[
407,
408
],
[
407,
409
],
[
409,
410
],
[
384,
411
],
[
411,
412
],
[
412,
413
],
[
413,
414
],
[
414,
415
],
[
414,
416
],
[
416,
417
],
[
413,
418
],
[
412,
419
],
[
419,
420
],
[
419,
421
],
[
411,
422
],
[
422,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
426,
427
],
[
427,
428
],
[
427,
429
],
[
426,
430
],
[
425,
431
],
[
384,
432
],
[
432,
433
],
[
432,
434
],
[
434,
435
],
[
435,
436
],
[
384,
437
],
[
437,
438
],
[
242,
439
],
[
439,
440
],
[
439,
441
],
[
441,
442
],
[
442,
443
],
[
442,
444
],
[
441,
445
],
[
445,
446
],
[
445,
447
],
[
441,
448
],
[
448,
449
],
[
448,
450
],
[
450,
451
],
[
441,
452
],
[
452,
453
],
[
453,
454
],
[
453,
455
],
[
452,
456
],
[
456,
457
],
[
456,
458
],
[
458,
459
],
[
441,
460
],
[
460,
461
],
[
460,
462
],
[
462,
463
],
[
462,
464
],
[
441,
465
],
[
465,
466
],
[
465,
467
],
[
467,
468
],
[
467,
469
],
[
469,
470
],
[
441,
471
],
[
471,
472
],
[
472,
473
],
[
473,
474
],
[
474,
475
],
[
474,
476
],
[
476,
477
],
[
473,
478
],
[
472,
479
],
[
479,
480
],
[
479,
481
],
[
471,
482
],
[
482,
483
],
[
483,
484
],
[
483,
485
],
[
485,
486
],
[
486,
487
],
[
487,
488
],
[
487,
489
],
[
486,
490
],
[
485,
491
],
[
441,
492
],
[
492,
493
],
[
493,
494
],
[
493,
495
],
[
492,
496
],
[
496,
497
],
[
497,
498
],
[
498,
499
],
[
499,
500
],
[
500,
501
],
[
500,
502
],
[
502,
503
],
[
499,
504
],
[
498,
505
],
[
505,
506
],
[
505,
507
],
[
497,
508
],
[
508,
509
],
[
509,
510
],
[
509,
511
],
[
511,
512
],
[
512,
513
],
[
512,
514
],
[
511,
515
],
[
515,
516
],
[
515,
517
],
[
441,
518
],
[
518,
519
],
[
518,
520
],
[
520,
521
],
[
521,
522
],
[
441,
523
],
[
523,
524
],
[
242,
525
],
[
525,
526
],
[
525,
527
],
[
527,
528
],
[
528,
529
],
[
528,
530
],
[
530,
531
],
[
531,
532
],
[
530,
533
],
[
530,
534
],
[
534,
535
],
[
534,
536
],
[
530,
537
],
[
527,
538
],
[
538,
539
],
[
539,
540
],
[
539,
541
],
[
541,
542
],
[
538,
543
],
[
543,
544
],
[
544,
545
],
[
544,
546
],
[
543,
547
],
[
547,
548
],
[
242,
549
],
[
549,
550
],
[
549,
551
],
[
551,
552
],
[
552,
553
],
[
553,
554
],
[
553,
555
],
[
552,
556
],
[
556,
557
],
[
551,
558
],
[
558,
559
],
[
559,
560
],
[
559,
561
],
[
561,
562
],
[
242,
563
],
[
563,
564
],
[
563,
565
],
[
565,
566
],
[
566,
567
],
[
567,
568
],
[
567,
569
],
[
566,
570
],
[
565,
571
],
[
571,
572
],
[
572,
573
],
[
242,
574
],
[
574,
575
],
[
574,
576
],
[
576,
577
],
[
577,
578
],
[
577,
579
],
[
576,
581
],
[
581,
582
],
[
582,
583
],
[
583,
584
],
[
583,
585
],
[
581,
586
],
[
586,
587
],
[
586,
588
],
[
581,
589
],
[
589,
590
],
[
590,
591
],
[
581,
592
],
[
593,
593
],
[
593,
594
],
[
594,
595
],
[
595,
596
],
[
595,
597
],
[
594,
598
],
[
598,
599
],
[
576,
600
],
[
600,
601
],
[
574,
602
],
[
602,
603
],
[
242,
604
],
[
604,
605
],
[
604,
606
],
[
606,
607
],
[
607,
608
],
[
607,
609
],
[
606,
611
],
[
611,
612
],
[
612,
613
],
[
613,
614
],
[
613,
615
],
[
611,
616
],
[
616,
617
],
[
616,
618
],
[
611,
619
],
[
619,
620
],
[
620,
621
],
[
611,
622
],
[
623,
623
],
[
623,
624
],
[
624,
625
],
[
625,
626
],
[
625,
627
],
[
624,
628
],
[
628,
629
],
[
606,
630
],
[
630,
631
],
[
604,
632
],
[
632,
633
],
[
242,
634
],
[
634,
635
],
[
634,
636
],
[
636,
637
],
[
637,
638
],
[
637,
639
],
[
636,
642
],
[
642,
643
],
[
643,
644
],
[
644,
645
],
[
644,
646
],
[
642,
647
],
[
647,
648
],
[
647,
649
],
[
642,
650
],
[
650,
651
],
[
651,
652
],
[
642,
653
],
[
654,
654
],
[
654,
655
],
[
655,
656
],
[
656,
657
],
[
657,
658
],
[
657,
659
],
[
655,
660
],
[
660,
661
],
[
660,
662
],
[
655,
663
],
[
663,
664
],
[
664,
665
],
[
655,
666
],
[
666,
667
],
[
667,
668
],
[
668,
669
],
[
669,
670
],
[
669,
671
],
[
668,
672
],
[
667,
673
],
[
673,
674
],
[
636,
675
],
[
675,
676
],
[
634,
677
],
[
677,
678
],
[
634,
679
],
[
679,
680
],
[
242,
681
],
[
681,
682
],
[
681,
683
],
[
683,
684
],
[
684,
685
],
[
684,
686
],
[
683,
689
],
[
689,
690
],
[
690,
691
],
[
691,
692
],
[
691,
693
],
[
689,
694
],
[
694,
695
],
[
694,
696
],
[
689,
697
],
[
697,
698
],
[
698,
699
],
[
689,
700
],
[
701,
701
],
[
701,
702
],
[
702,
703
],
[
703,
704
],
[
704,
705
],
[
704,
706
],
[
702,
707
],
[
707,
708
],
[
707,
709
],
[
702,
710
],
[
710,
711
],
[
711,
712
],
[
702,
713
],
[
713,
714
],
[
714,
715
],
[
715,
716
],
[
716,
717
],
[
716,
718
],
[
715,
719
],
[
714,
720
],
[
720,
721
],
[
683,
722
],
[
722,
723
],
[
681,
724
],
[
724,
725
],
[
681,
726
],
[
726,
727
]
]
| [
"\nimport java.io.*;\nimport java.util.*;\n\nimport java.math.*;\n\n class Main {\n\n\tstatic long sx = 0, sy = 0, mod = (long) (998244353);\n\n\tstatic ArrayList<Integer>[] a;\n\t// static ArrayList<Long> p;\n\tstatic Long[][] dp;\n\t// static HashMap<ArrayList<Integer>, Long> hm = new HashMap<>();\n\tstatic HashMap<Character, Integer>[] hm;\n\tstatic boolean[][] vis;\n\tstatic int[] farr;\n\tstatic long[] far;\n\tpublic static PrintWriter out = new PrintWriter(System.out);\n\tstatic ArrayList<pair> pa = new ArrayList<>();\n\tstatic long[] fact = new long[(int) 1e6];\n\tstatic StringBuilder sb = new StringBuilder();\n\tstatic boolean cycle = false;\n\tstatic long mo = (long) (1e9 + 7);\n\tstatic int[] c, col;\n\t// static int n = 0, m, x, k;\n\tstatic int ans = Integer.MAX_VALUE;\n\tstatic boolean b = true;\n\tstatic boolean[] reach = new boolean[6000];\n\tstatic int[][] par;\n\tstatic int[] depth;\n\tstatic int[] size;\n\tstatic long[] pow;\n\tstatic int time = 0;\n\tstatic int[] disc;\n\tstatic int[] low;\n\tstatic char[][] ch;\n\t// static int cnt = 0;\n\tstatic int[][] dirs = { { -1, 0 }, { 0, 1 }, { 1, 0 }, { 0, -1 }, };\n\tstatic int n = 0, k = 0, z = 0;\n\tstatic long[] p;\n\tstatic long[] h;\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scn = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\n\t\t// Reader scn = new Reader();\n\t\tint n = scn.nextInt();\n\t\tlong d = scn.nextLong();\n\t\tint ans = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tlong x = scn.nextLong(), y = scn.nextLong();\n\n\t\t\tif (x * x + y * y <= d*d)\n\t\t\t\tans++;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\t// _________________________TEMPLATE_____________________________________________________________\n\n\t// public static long lcm(long x, long y) {\n\t//\n\t// return (x * y) / gcd(x, y);\n\t// }\n\t//\n\t// private static long gcd(long x, long y) {\n\t// if (x == 0)\n\t// return y;\n\t//\n\t// return gcd(y % x, x);\n\t// }\n\n\t//\n\t// static class comp implements Comparator<Integer> {\n\t//\n\t// @Override\n\t// public int compare(Integer p1, Integer p2) {\n\t//\n\t// return p2 - p1;\n\t//\n\t// }\n\t// }\n\t//\n\t// }\n\t//\n\t// public static long pow(long a, long b, long mod) {\n\t//\n\t// if (b < 0)\n\t// return 0;\n\t// if (b == 0 || b == 1)\n\t// return (long) Math.pow(a, b);\n\t//\n\t// if (b % 2 == 0) {\n\t//\n\t// long ret = pow(a, b / 2, mod);\n\t// ret = (ret % mod * ret % mod) % mod;\n\t// return ret;\n\t// }\n\t//\n\t// else {\n\t// return ((pow(a, b - 1, mod) % mod) * a % mod) % mod;\n\t// }\n\t// }\n\n\tprivate static class pair implements Comparable<pair> {\n\n\t\tlong a, b;\n\n\t\tpair(long c, long d) {\n\t\t\ta = c;\n\t\t\tb = d;\n\t\t}\n\n\t\t@Override\n\t\tpublic int compareTo(pair o) {\n\n\t\t\treturn 1;\n\n\t\t}\n\n\t\t// @Override\n\t\t//\n\t\t// public int hashCode() {\n\t\t// return i;\n\t\t// }\n\t\t//\n\t\t// @Override\n\t\t//\n\t\t// public boolean equals(Object o) {\n\t\t//\n\t\t// pair p = (pair) o;\n\t\t// return this.i == p.i;\n\t\t// }\n\n\t}\n\n\tprivate static class pair1 {\n\n\t\tint a, b;\n\n\t\tpair1(int a, int b) {\n\t\t\tthis.a = a;\n\t\t\tthis.b = b;\n\t\t}\n\n\t}\n\n\tprivate static String reverse(String s) {\n\n\t\treturn new StringBuilder(s).reverse().toString();\n\t}\n\n\tpublic static class Reader {\n\t\tfinal private int BUFFER_SIZE = 1 << 16;\n\t\tprivate DataInputStream din;\n\t\tprivate byte[] buffer;\n\t\tprivate int bufferPointer, bytesRead;\n\n\t\tpublic Reader() {\n\t\t\tdin = new DataInputStream(System.in);\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\n\t\tpublic Reader(String file_name) throws IOException {\n\t\t\tdin = new DataInputStream(new FileInputStream(file_name));\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\n\t\tpublic String readLine() throws IOException {\n\t\t\tbyte[] buf = new byte[1000000 + 1]; // line length\n\t\t\tint cnt = 0, c;\n\t\t\twhile ((c = read()) != -1) {\n\t\t\t\tif (c == '\\n')\n\t\t\t\t\tbreak;\n\t\t\t\tbuf[cnt++] = (byte) c;\n\t\t\t}\n\t\t\treturn new String(buf, 0, cnt);\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\tint ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\tlong ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\tdouble ret = 0, div = 1;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (c == '.') {\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') {\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\n\t\tprivate void fillBuffer() throws IOException {\n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\t\tif (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;\n\t\t}\n\n\t\tprivate byte read() throws IOException {\n\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\tfillBuffer();\n\t\t\treturn buffer[bufferPointer++];\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\tif (din == null)\n\t\t\t\treturn;\n\t\t\tdin.close();\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) throws IOException {\n\t\t\tint[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) throws IOException {\n\t\t\tlong[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = nextLong();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic int[][] nextInt2DArray(int m, int n) throws IOException {\n\t\t\tint[][] arr = new int[m][n];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic long[][] nextInt2DArrayL(int m, int n) throws IOException {\n\t\t\tlong[][] arr = new long[m][n];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\t\t// kickstart - Solution\n\t\t// atcoder - Main\n\t}\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"class Main {\n\n\tstatic long sx = 0, sy = 0, mod = (long) (998244353);\n\n\tstatic ArrayList<Integer>[] a;\n\t// static ArrayList<Long> p;\n\tstatic Long[][] dp;\n\t// static HashMap<ArrayList<Integer>, Long> hm = new HashMap<>();\n\tstatic HashMap<Character, Integer>[] hm;\n\tstatic boolean[][] vis;\n\tstatic int[] farr;\n\tstatic long[] far;\n\tpublic static PrintWriter out = new PrintWriter(System.out);\n\tstatic ArrayList<pair> pa = new ArrayList<>();\n\tstatic long[] fact = new long[(int) 1e6];\n\tstatic StringBuilder sb = new StringBuilder();\n\tstatic boolean cycle = false;\n\tstatic long mo = (long) (1e9 + 7);\n\tstatic int[] c, col;\n\t// static int n = 0, m, x, k;\n\tstatic int ans = Integer.MAX_VALUE;\n\tstatic boolean b = true;\n\tstatic boolean[] reach = new boolean[6000];\n\tstatic int[][] par;\n\tstatic int[] depth;\n\tstatic int[] size;\n\tstatic long[] pow;\n\tstatic int time = 0;\n\tstatic int[] disc;\n\tstatic int[] low;\n\tstatic char[][] ch;\n\t// static int cnt = 0;\n\tstatic int[][] dirs = { { -1, 0 }, { 0, 1 }, { 1, 0 }, { 0, -1 }, };\n\tstatic int n = 0, k = 0, z = 0;\n\tstatic long[] p;\n\tstatic long[] h;\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scn = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\n\t\t// Reader scn = new Reader();\n\t\tint n = scn.nextInt();\n\t\tlong d = scn.nextLong();\n\t\tint ans = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tlong x = scn.nextLong(), y = scn.nextLong();\n\n\t\t\tif (x * x + y * y <= d*d)\n\t\t\t\tans++;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\t// _________________________TEMPLATE_____________________________________________________________\n\n\t// public static long lcm(long x, long y) {\n\t//\n\t// return (x * y) / gcd(x, y);\n\t// }\n\t//\n\t// private static long gcd(long x, long y) {\n\t// if (x == 0)\n\t// return y;\n\t//\n\t// return gcd(y % x, x);\n\t// }\n\n\t//\n\t// static class comp implements Comparator<Integer> {\n\t//\n\t// @Override\n\t// public int compare(Integer p1, Integer p2) {\n\t//\n\t// return p2 - p1;\n\t//\n\t// }\n\t// }\n\t//\n\t// }\n\t//\n\t// public static long pow(long a, long b, long mod) {\n\t//\n\t// if (b < 0)\n\t// return 0;\n\t// if (b == 0 || b == 1)\n\t// return (long) Math.pow(a, b);\n\t//\n\t// if (b % 2 == 0) {\n\t//\n\t// long ret = pow(a, b / 2, mod);\n\t// ret = (ret % mod * ret % mod) % mod;\n\t// return ret;\n\t// }\n\t//\n\t// else {\n\t// return ((pow(a, b - 1, mod) % mod) * a % mod) % mod;\n\t// }\n\t// }\n\n\tprivate static class pair implements Comparable<pair> {\n\n\t\tlong a, b;\n\n\t\tpair(long c, long d) {\n\t\t\ta = c;\n\t\t\tb = d;\n\t\t}\n\n\t\t@Override\n\t\tpublic int compareTo(pair o) {\n\n\t\t\treturn 1;\n\n\t\t}\n\n\t\t// @Override\n\t\t//\n\t\t// public int hashCode() {\n\t\t// return i;\n\t\t// }\n\t\t//\n\t\t// @Override\n\t\t//\n\t\t// public boolean equals(Object o) {\n\t\t//\n\t\t// pair p = (pair) o;\n\t\t// return this.i == p.i;\n\t\t// }\n\n\t}\n\n\tprivate static class pair1 {\n\n\t\tint a, b;\n\n\t\tpair1(int a, int b) {\n\t\t\tthis.a = a;\n\t\t\tthis.b = b;\n\t\t}\n\n\t}\n\n\tprivate static String reverse(String s) {\n\n\t\treturn new StringBuilder(s).reverse().toString();\n\t}\n\n\tpublic static class Reader {\n\t\tfinal private int BUFFER_SIZE = 1 << 16;\n\t\tprivate DataInputStream din;\n\t\tprivate byte[] buffer;\n\t\tprivate int bufferPointer, bytesRead;\n\n\t\tpublic Reader() {\n\t\t\tdin = new DataInputStream(System.in);\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\n\t\tpublic Reader(String file_name) throws IOException {\n\t\t\tdin = new DataInputStream(new FileInputStream(file_name));\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\n\t\tpublic String readLine() throws IOException {\n\t\t\tbyte[] buf = new byte[1000000 + 1]; // line length\n\t\t\tint cnt = 0, c;\n\t\t\twhile ((c = read()) != -1) {\n\t\t\t\tif (c == '\\n')\n\t\t\t\t\tbreak;\n\t\t\t\tbuf[cnt++] = (byte) c;\n\t\t\t}\n\t\t\treturn new String(buf, 0, cnt);\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\tint ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\tlong ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\tdouble ret = 0, div = 1;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (c == '.') {\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') {\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\n\t\tprivate void fillBuffer() throws IOException {\n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\t\tif (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;\n\t\t}\n\n\t\tprivate byte read() throws IOException {\n\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\tfillBuffer();\n\t\t\treturn buffer[bufferPointer++];\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\tif (din == null)\n\t\t\t\treturn;\n\t\t\tdin.close();\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) throws IOException {\n\t\t\tint[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) throws IOException {\n\t\t\tlong[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = nextLong();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic int[][] nextInt2DArray(int m, int n) throws IOException {\n\t\t\tint[][] arr = new int[m][n];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic long[][] nextInt2DArrayL(int m, int n) throws IOException {\n\t\t\tlong[][] arr = new long[m][n];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\t\t// kickstart - Solution\n\t\t// atcoder - Main\n\t}\n\n}",
"Main",
"static long sx = 0",
"sx",
"0",
"sy = 0",
"sy",
"0",
"mod = (long) (998244353);",
"mod",
"(long) (998244353)",
"static ArrayList<Integer>[] a;",
"a",
"// static ArrayList<Long> p;\n\tstatic Long[][] dp;",
"dp",
"// static HashMap<ArrayList<Integer>, Long> hm = new HashMap<>();\n\tstatic HashMap<Character, Integer>[] hm;",
"hm",
"static boolean[][] vis;",
"vis",
"static int[] farr;",
"farr",
"static long[] far;",
"far",
"public static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"static ArrayList<pair> pa = new ArrayList<>();",
"pa",
"new ArrayList<>()",
"static long[] fact = new long[(int) 1e6];",
"fact",
"new long[(int) 1e6]",
"(int) 1e6",
"static StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"static boolean cycle = false;",
"cycle",
"false",
"static long mo = (long) (1e9 + 7);",
"mo",
"(long) (1e9 + 7)",
"1e9",
"7",
"static int[] c",
"c",
"col;",
"col",
"// static int n = 0, m, x, k;\n\tstatic int ans = Integer.MAX_VALUE;",
"ans",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"static boolean b = true;",
"b",
"true",
"static boolean[] reach = new boolean[6000];",
"reach",
"new boolean[6000]",
"6000",
"static int[][] par;",
"par",
"static int[] depth;",
"depth",
"static int[] size;",
"size",
"static long[] pow;",
"pow",
"static int time = 0;",
"time",
"0",
"static int[] disc;",
"disc",
"static int[] low;",
"low",
"static char[][] ch;",
"ch",
"// static int cnt = 0;\n\tstatic int[][] dirs = { { -1, 0 }, { 0, 1 }, { 1, 0 }, { 0, -1 }, };",
"dirs",
"{ { -1, 0 }, { 0, 1 }, { 1, 0 }, { 0, -1 }, }",
"{ -1, 0 }",
"-1",
"1",
"0",
"{ 0, 1 }",
"0",
"1",
"{ 1, 0 }",
"1",
"0",
"{ 0, -1 }",
"0",
"-1",
"1",
"static int n = 0",
"n",
"0",
"k = 0",
"k",
"0",
"z = 0;",
"z",
"0",
"static long[] p;",
"p",
"static long[] h;",
"h",
"public static void main(String[] args) throws IOException {\n\n\t\tScanner scn = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\n\t\t// Reader scn = new Reader();\n\t\tint n = scn.nextInt();\n\t\tlong d = scn.nextLong();\n\t\tint ans = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tlong x = scn.nextLong(), y = scn.nextLong();\n\n\t\t\tif (x * x + y * y <= d*d)\n\t\t\t\tans++;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}",
"main",
"{\n\n\t\tScanner scn = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\n\t\t// Reader scn = new Reader();\n\t\tint n = scn.nextInt();\n\t\tlong d = scn.nextLong();\n\t\tint ans = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tlong x = scn.nextLong(), y = scn.nextLong();\n\n\t\t\tif (x * x + y * y <= d*d)\n\t\t\t\tans++;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}",
"Scanner scn = new Scanner(new BufferedReader(new InputStreamReader(System.in)));",
"scn",
"new Scanner(new BufferedReader(new InputStreamReader(System.in)))",
"int n = scn.nextInt();",
"n",
"scn.nextInt()",
"scn.nextInt",
"scn",
"long d = scn.nextLong();",
"d",
"scn.nextLong()",
"scn.nextLong",
"scn",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < n; i++) {\n\n\t\t\tlong x = scn.nextLong(), y = scn.nextLong();\n\n\t\t\tif (x * x + y * y <= d*d)\n\t\t\t\tans++;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\tlong x = scn.nextLong(), y = scn.nextLong();\n\n\t\t\tif (x * x + y * y <= d*d)\n\t\t\t\tans++;\n\t\t}",
"{\n\n\t\t\tlong x = scn.nextLong(), y = scn.nextLong();\n\n\t\t\tif (x * x + y * y <= d*d)\n\t\t\t\tans++;\n\t\t}",
"long x = scn.nextLong()",
"x",
"scn.nextLong()",
"scn.nextLong",
"scn",
"y = scn.nextLong();",
"y",
"scn.nextLong()",
"scn.nextLong",
"scn",
"if (x * x + y * y <= d*d)\n\t\t\t\tans++;",
"x * x + y * y <= d*d",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"d*d",
"d",
"d",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"private static String reverse(String s) {\n\n\t\treturn new StringBuilder(s).reverse().toString();\n\t}",
"reverse",
"{\n\n\t\treturn new StringBuilder(s).reverse().toString();\n\t}",
"return new StringBuilder(s).reverse().toString();",
"new StringBuilder(s).reverse().toString()",
"new StringBuilder(s).reverse().toString",
"new StringBuilder(s).reverse()",
"new StringBuilder(s).reverse",
"new StringBuilder(s)",
"String s",
"s",
"private static class pair implements Comparable<pair> {\n\n\t\tlong a, b;\n\n\t\tpair(long c, long d) {\n\t\t\ta = c;\n\t\t\tb = d;\n\t\t}\n\n\t\t@Override\n\t\tpublic int compareTo(pair o) {\n\n\t\t\treturn 1;\n\n\t\t}\n\n\t\t// @Override\n\t\t//\n\t\t// public int hashCode() {\n\t\t// return i;\n\t\t// }\n\t\t//\n\t\t// @Override\n\t\t//\n\t\t// public boolean equals(Object o) {\n\t\t//\n\t\t// pair p = (pair) o;\n\t\t// return this.i == p.i;\n\t\t// }\n\n\t}",
"pair",
"long a",
"a",
"b;",
"b",
"pair(long c, long d) {\n\t\t\ta = c;\n\t\t\tb = d;\n\t\t}",
"pair",
"{\n\t\t\ta = c;\n\t\t\tb = d;\n\t\t}",
"a = c",
"a",
"c",
"b = d",
"b",
"d",
"long c",
"c",
"long d",
"d",
"@Override\n\t\tpublic int compareTo(pair o) {\n\n\t\t\treturn 1;\n\n\t\t}",
"compareTo",
"{\n\n\t\t\treturn 1;\n\n\t\t}",
"return 1;",
"1",
"pair o",
"o",
"Comparable",
"private static class pair1 {\n\n\t\tint a, b;\n\n\t\tpair1(int a, int b) {\n\t\t\tthis.a = a;\n\t\t\tthis.b = b;\n\t\t}\n\n\t}",
"pair1",
"int a",
"a",
"b;",
"b",
"pair1(int a, int b) {\n\t\t\tthis.a = a;\n\t\t\tthis.b = b;\n\t\t}",
"pair1",
"{\n\t\t\tthis.a = a;\n\t\t\tthis.b = b;\n\t\t}",
"this.a = a",
"this.a",
"this",
"this.a",
"a",
"this.b = b",
"this.b",
"this",
"this.b",
"b",
"int a",
"a",
"int b",
"b",
"public static class Reader {\n\t\tfinal private int BUFFER_SIZE = 1 << 16;\n\t\tprivate DataInputStream din;\n\t\tprivate byte[] buffer;\n\t\tprivate int bufferPointer, bytesRead;\n\n\t\tpublic Reader() {\n\t\t\tdin = new DataInputStream(System.in);\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\n\t\tpublic Reader(String file_name) throws IOException {\n\t\t\tdin = new DataInputStream(new FileInputStream(file_name));\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\n\t\tpublic String readLine() throws IOException {\n\t\t\tbyte[] buf = new byte[1000000 + 1]; // line length\n\t\t\tint cnt = 0, c;\n\t\t\twhile ((c = read()) != -1) {\n\t\t\t\tif (c == '\\n')\n\t\t\t\t\tbreak;\n\t\t\t\tbuf[cnt++] = (byte) c;\n\t\t\t}\n\t\t\treturn new String(buf, 0, cnt);\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\tint ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\tlong ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\tdouble ret = 0, div = 1;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (c == '.') {\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') {\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\n\t\tprivate void fillBuffer() throws IOException {\n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\t\tif (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;\n\t\t}\n\n\t\tprivate byte read() throws IOException {\n\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\tfillBuffer();\n\t\t\treturn buffer[bufferPointer++];\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\tif (din == null)\n\t\t\t\treturn;\n\t\t\tdin.close();\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) throws IOException {\n\t\t\tint[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) throws IOException {\n\t\t\tlong[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = nextLong();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic int[][] nextInt2DArray(int m, int n) throws IOException {\n\t\t\tint[][] arr = new int[m][n];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic long[][] nextInt2DArrayL(int m, int n) throws IOException {\n\t\t\tlong[][] arr = new long[m][n];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\t\t// kickstart - Solution\n\t\t// atcoder - Main\n\t}",
"Reader",
"final private int BUFFER_SIZE = 1 << 16;",
"BUFFER_SIZE",
"1 << 16",
"1",
"16",
"private DataInputStream din;",
"din",
"private byte[] buffer;",
"buffer",
"private int bufferPointer",
"bufferPointer",
"bytesRead;",
"bytesRead",
"public Reader() {\n\t\t\tdin = new DataInputStream(System.in);\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}",
"Reader",
"{\n\t\t\tdin = new DataInputStream(System.in);\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}",
"din = new DataInputStream(System.in)",
"din",
"new DataInputStream(System.in)",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"public Reader(String file_name) throws IOException {\n\t\t\tdin = new DataInputStream(new FileInputStream(file_name));\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}",
"Reader",
"{\n\t\t\tdin = new DataInputStream(new FileInputStream(file_name));\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}",
"din = new DataInputStream(new FileInputStream(file_name))",
"din",
"new DataInputStream(new FileInputStream(file_name))",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"String file_name",
"file_name",
"public String readLine() throws IOException {\n\t\t\tbyte[] buf = new byte[1000000 + 1]; // line length\n\t\t\tint cnt = 0, c;\n\t\t\twhile ((c = read()) != -1) {\n\t\t\t\tif (c == '\\n')\n\t\t\t\t\tbreak;\n\t\t\t\tbuf[cnt++] = (byte) c;\n\t\t\t}\n\t\t\treturn new String(buf, 0, cnt);\n\t\t}",
"readLine",
"{\n\t\t\tbyte[] buf = new byte[1000000 + 1]; // line length\n\t\t\tint cnt = 0, c;\n\t\t\twhile ((c = read()) != -1) {\n\t\t\t\tif (c == '\\n')\n\t\t\t\t\tbreak;\n\t\t\t\tbuf[cnt++] = (byte) c;\n\t\t\t}\n\t\t\treturn new String(buf, 0, cnt);\n\t\t}",
"byte[] buf = new byte[1000000 + 1];",
"buf",
"new byte[1000000 + 1]",
"1000000 + 1",
"1000000",
"1",
"int cnt = 0",
"cnt",
"0",
"c;",
"c",
"while ((c = read()) != -1) {\n\t\t\t\tif (c == '\\n')\n\t\t\t\t\tbreak;\n\t\t\t\tbuf[cnt++] = (byte) c;\n\t\t\t}",
"(c = read()) != -1",
"(c = read())",
"c",
"read()",
"read",
"-1",
"1",
"{\n\t\t\t\tif (c == '\\n')\n\t\t\t\t\tbreak;\n\t\t\t\tbuf[cnt++] = (byte) c;\n\t\t\t}",
"if (c == '\\n')\n\t\t\t\t\tbreak;",
"c == '\\n'",
"c",
"'\\n'",
"break;",
"buf[cnt++] = (byte) c",
"buf[cnt++]",
"buf",
"cnt++",
"cnt",
"(byte) c",
"return new String(buf, 0, cnt);",
"new String(buf, 0, cnt)",
"public int nextInt() throws IOException {\n\t\t\tint ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}",
"nextInt",
"{\n\t\t\tint ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}",
"int ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ')\n\t\t\t\tc = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg)\n\t\t\t\tc = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t}",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg)\n\t\t\t\treturn -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public long nextLong() throws IOException {\n\t\t\tlong ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}",
"nextLong",
"{\n\t\t\tlong ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}",
"long ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ')\n\t\t\t\tc = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg)\n\t\t\t\tc = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t}",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg)\n\t\t\t\treturn -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public double nextDouble() throws IOException {\n\t\t\tdouble ret = 0, div = 1;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (c == '.') {\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') {\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}",
"nextDouble",
"{\n\t\t\tdouble ret = 0, div = 1;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\n\t\t\tdo {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (c == '.') {\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') {\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}",
"double ret = 0",
"ret",
"0",
"div = 1;",
"div",
"1",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ')\n\t\t\t\tc = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg)\n\t\t\t\tc = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do {\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t} while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\t}",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (c == '.') {\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') {\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t\t}\n\t\t\t}",
"c == '.'",
"c",
"'.'",
"{\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') {\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t\t}\n\t\t\t}",
"while ((c = read()) >= '0' && c <= '9') {\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t\t}",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t\t}",
"ret += (c - '0') / (div *= 10)",
"ret",
"(c - '0') / (div *= 10)",
"(c - '0')",
"c",
"'0'",
"(div *= 10)",
"div",
"10",
"if (neg)\n\t\t\t\treturn -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"private void fillBuffer() throws IOException {\n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\t\tif (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;\n\t\t}",
"fillBuffer",
"{\n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\t\tif (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;\n\t\t}",
"bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"bytesRead",
"din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"din.read",
"din",
"buffer",
"bufferPointer = 0",
"bufferPointer",
"0",
"BUFFER_SIZE",
"if (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"private byte read() throws IOException {\n\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\tfillBuffer();\n\t\t\treturn buffer[bufferPointer++];\n\t\t}",
"read",
"{\n\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\tfillBuffer();\n\t\t\treturn buffer[bufferPointer++];\n\t\t}",
"if (bufferPointer == bytesRead)\n\t\t\t\tfillBuffer();",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public void close() throws IOException {\n\t\t\tif (din == null)\n\t\t\t\treturn;\n\t\t\tdin.close();\n\t\t}",
"close",
"{\n\t\t\tif (din == null)\n\t\t\t\treturn;\n\t\t\tdin.close();\n\t\t}",
"if (din == null)\n\t\t\t\treturn;",
"din == null",
"din",
"null",
"return;",
"din.close()",
"din.close",
"din",
"public int[] nextIntArray(int n) throws IOException {\n\t\t\tint[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}",
"nextIntArray",
"{\n\t\t\tint[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}",
"int[] arr = new int[n];",
"arr",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = nextInt();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tarr[i] = nextInt();\n\t\t\t}",
"{\n\t\t\t\tarr[i] = nextInt();\n\t\t\t}",
"arr[i] = nextInt()",
"arr[i]",
"arr",
"i",
"nextInt()",
"nextInt",
"return arr;",
"arr",
"int n",
"n",
"public long[] nextLongArray(int n) throws IOException {\n\t\t\tlong[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = nextLong();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}",
"nextLongArray",
"{\n\t\t\tlong[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = nextLong();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}",
"long[] arr = new long[n];",
"arr",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = nextLong();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tarr[i] = nextLong();\n\t\t\t}",
"{\n\t\t\t\tarr[i] = nextLong();\n\t\t\t}",
"arr[i] = nextLong()",
"arr[i]",
"arr",
"i",
"nextLong()",
"nextLong",
"return arr;",
"arr",
"int n",
"n",
"public int[][] nextInt2DArray(int m, int n) throws IOException {\n\t\t\tint[][] arr = new int[m][n];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}",
"nextInt2DArray",
"{\n\t\t\tint[][] arr = new int[m][n];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}",
"int[][] arr = new int[m][n];",
"arr",
"new int[m][n]",
"m",
"n",
"for (int i = 0; i < m; i++) {\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}",
"{\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}",
"for (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"arr[i][j] = nextInt();",
"arr[i][j] = nextInt()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"nextInt()",
"nextInt",
"return arr;",
"arr",
"int m",
"m",
"int n",
"n",
"public long[][] nextInt2DArrayL(int m, int n) throws IOException {\n\t\t\tlong[][] arr = new long[m][n];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}",
"nextInt2DArrayL",
"{\n\t\t\tlong[][] arr = new long[m][n];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}",
"long[][] arr = new long[m][n];",
"arr",
"new long[m][n]",
"m",
"n",
"for (int i = 0; i < m; i++) {\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}",
"{\n\t\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();\n\t\t\t}",
"for (int j = 0; j < n; j++)\n\t\t\t\t\tarr[i][j] = nextInt();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"arr[i][j] = nextInt();",
"arr[i][j] = nextInt()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"nextInt()",
"nextInt",
"return arr;",
"arr",
"int m",
"m",
"int n",
"n"
]
|
import java.io.*;
import java.util.*;
import java.math.*;
class Main {
static long sx = 0, sy = 0, mod = (long) (998244353);
static ArrayList<Integer>[] a;
// static ArrayList<Long> p;
static Long[][] dp;
// static HashMap<ArrayList<Integer>, Long> hm = new HashMap<>();
static HashMap<Character, Integer>[] hm;
static boolean[][] vis;
static int[] farr;
static long[] far;
public static PrintWriter out = new PrintWriter(System.out);
static ArrayList<pair> pa = new ArrayList<>();
static long[] fact = new long[(int) 1e6];
static StringBuilder sb = new StringBuilder();
static boolean cycle = false;
static long mo = (long) (1e9 + 7);
static int[] c, col;
// static int n = 0, m, x, k;
static int ans = Integer.MAX_VALUE;
static boolean b = true;
static boolean[] reach = new boolean[6000];
static int[][] par;
static int[] depth;
static int[] size;
static long[] pow;
static int time = 0;
static int[] disc;
static int[] low;
static char[][] ch;
// static int cnt = 0;
static int[][] dirs = { { -1, 0 }, { 0, 1 }, { 1, 0 }, { 0, -1 }, };
static int n = 0, k = 0, z = 0;
static long[] p;
static long[] h;
public static void main(String[] args) throws IOException {
Scanner scn = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
// Reader scn = new Reader();
int n = scn.nextInt();
long d = scn.nextLong();
int ans = 0;
for (int i = 0; i < n; i++) {
long x = scn.nextLong(), y = scn.nextLong();
if (x * x + y * y <= d*d)
ans++;
}
System.out.println(ans);
}
// _________________________TEMPLATE_____________________________________________________________
// public static long lcm(long x, long y) {
//
// return (x * y) / gcd(x, y);
// }
//
// private static long gcd(long x, long y) {
// if (x == 0)
// return y;
//
// return gcd(y % x, x);
// }
//
// static class comp implements Comparator<Integer> {
//
// @Override
// public int compare(Integer p1, Integer p2) {
//
// return p2 - p1;
//
// }
// }
//
// }
//
// public static long pow(long a, long b, long mod) {
//
// if (b < 0)
// return 0;
// if (b == 0 || b == 1)
// return (long) Math.pow(a, b);
//
// if (b % 2 == 0) {
//
// long ret = pow(a, b / 2, mod);
// ret = (ret % mod * ret % mod) % mod;
// return ret;
// }
//
// else {
// return ((pow(a, b - 1, mod) % mod) * a % mod) % mod;
// }
// }
private static class pair implements Comparable<pair> {
long a, b;
pair(long c, long d) {
a = c;
b = d;
}
@Override
public int compareTo(pair o) {
return 1;
}
// @Override
//
// public int hashCode() {
// return i;
// }
//
// @Override
//
// public boolean equals(Object o) {
//
// pair p = (pair) o;
// return this.i == p.i;
// }
}
private static class pair1 {
int a, b;
pair1(int a, int b) {
this.a = a;
this.b = b;
}
}
private static String reverse(String s) {
return new StringBuilder(s).reverse().toString();
}
public static class Reader {
final private int BUFFER_SIZE = 1 << 16;
private DataInputStream din;
private byte[] buffer;
private int bufferPointer, bytesRead;
public Reader() {
din = new DataInputStream(System.in);
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public Reader(String file_name) throws IOException {
din = new DataInputStream(new FileInputStream(file_name));
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public String readLine() throws IOException {
byte[] buf = new byte[1000000 + 1]; // line length
int cnt = 0, c;
while ((c = read()) != -1) {
if (c == '\n')
break;
buf[cnt++] = (byte) c;
}
return new String(buf, 0, cnt);
}
public int nextInt() throws IOException {
int ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public long nextLong() throws IOException {
long ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public double nextDouble() throws IOException {
double ret = 0, div = 1;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (c == '.') {
while ((c = read()) >= '0' && c <= '9') {
ret += (c - '0') / (div *= 10);
}
}
if (neg)
return -ret;
return ret;
}
private void fillBuffer() throws IOException {
bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
if (bytesRead == -1)
buffer[0] = -1;
}
private byte read() throws IOException {
if (bufferPointer == bytesRead)
fillBuffer();
return buffer[bufferPointer++];
}
public void close() throws IOException {
if (din == null)
return;
din.close();
}
public int[] nextIntArray(int n) throws IOException {
int[] arr = new int[n];
for (int i = 0; i < n; i++) {
arr[i] = nextInt();
}
return arr;
}
public long[] nextLongArray(int n) throws IOException {
long[] arr = new long[n];
for (int i = 0; i < n; i++) {
arr[i] = nextLong();
}
return arr;
}
public int[][] nextInt2DArray(int m, int n) throws IOException {
int[][] arr = new int[m][n];
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++)
arr[i][j] = nextInt();
}
return arr;
}
public long[][] nextInt2DArrayL(int m, int n) throws IOException {
long[][] arr = new long[m][n];
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++)
arr[i][j] = nextInt();
}
return arr;
}
// kickstart - Solution
// atcoder - Main
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
13,
17,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
104,
5
],
[
104,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
50,
53
],
[
37,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
104,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
74,
78
],
[
71,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
81,
85
],
[
71,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
71,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
71,
97
],
[
97,
98
],
[
69,
99
],
[
99,
100
],
[
69,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
]
| [
"\nimport java.util.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint count = 0;\n\t\tdouble d = scan.nextDouble();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tdouble x = scan.nextDouble();\n\t\t\tdouble y = scan.nextDouble();\n\t\t\tdouble res = solve(x,y);\n\t\t\tif(res <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n\t}\n\tpublic static double solve(double x,double y) {\n\t\tdouble a = Math.pow(x, 2);\n\t\tdouble b = Math.pow(y, 2);\n\t\tdouble c = a + b;\n\t\tdouble res = Math.sqrt(c);\n\t\treturn res;\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint count = 0;\n\t\tdouble d = scan.nextDouble();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tdouble x = scan.nextDouble();\n\t\t\tdouble y = scan.nextDouble();\n\t\t\tdouble res = solve(x,y);\n\t\t\tif(res <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n\t}\n\tpublic static double solve(double x,double y) {\n\t\tdouble a = Math.pow(x, 2);\n\t\tdouble b = Math.pow(y, 2);\n\t\tdouble c = a + b;\n\t\tdouble res = Math.sqrt(c);\n\t\treturn res;\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint count = 0;\n\t\tdouble d = scan.nextDouble();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tdouble x = scan.nextDouble();\n\t\t\tdouble y = scan.nextDouble();\n\t\t\tdouble res = solve(x,y);\n\t\t\tif(res <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint count = 0;\n\t\tdouble d = scan.nextDouble();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tdouble x = scan.nextDouble();\n\t\t\tdouble y = scan.nextDouble();\n\t\t\tdouble res = solve(x,y);\n\t\t\tif(res <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int count = 0;",
"count",
"0",
"double d = scan.nextDouble();",
"d",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"for(int i = 0; i < n; i++) {\n\t\t\tdouble x = scan.nextDouble();\n\t\t\tdouble y = scan.nextDouble();\n\t\t\tdouble res = solve(x,y);\n\t\t\tif(res <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tdouble x = scan.nextDouble();\n\t\t\tdouble y = scan.nextDouble();\n\t\t\tdouble res = solve(x,y);\n\t\t\tif(res <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tdouble x = scan.nextDouble();\n\t\t\tdouble y = scan.nextDouble();\n\t\t\tdouble res = solve(x,y);\n\t\t\tif(res <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"double x = scan.nextDouble();",
"x",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"double y = scan.nextDouble();",
"y",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"double res = solve(x,y);",
"res",
"solve(x,y)",
"solve",
"x",
"y",
"if(res <= d) {\n\t\t\t\tcount++;\n\t\t\t}",
"res <= d",
"res",
"d",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public static double solve(double x,double y) {\n\t\tdouble a = Math.pow(x, 2);\n\t\tdouble b = Math.pow(y, 2);\n\t\tdouble c = a + b;\n\t\tdouble res = Math.sqrt(c);\n\t\treturn res;\n\t}",
"solve",
"{\n\t\tdouble a = Math.pow(x, 2);\n\t\tdouble b = Math.pow(y, 2);\n\t\tdouble c = a + b;\n\t\tdouble res = Math.sqrt(c);\n\t\treturn res;\n\t}",
"double a = Math.pow(x, 2);",
"a",
"Math.pow(x, 2)",
"Math.pow",
"Math",
"x",
"2",
"double b = Math.pow(y, 2);",
"b",
"Math.pow(y, 2)",
"Math.pow",
"Math",
"y",
"2",
"double c = a + b;",
"c",
"a + b",
"a",
"b",
"double res = Math.sqrt(c);",
"res",
"Math.sqrt(c)",
"Math.sqrt",
"Math",
"c",
"return res;",
"res",
"double x",
"x",
"double y",
"y",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint count = 0;\n\t\tdouble d = scan.nextDouble();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tdouble x = scan.nextDouble();\n\t\t\tdouble y = scan.nextDouble();\n\t\t\tdouble res = solve(x,y);\n\t\t\tif(res <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n\t}\n\tpublic static double solve(double x,double y) {\n\t\tdouble a = Math.pow(x, 2);\n\t\tdouble b = Math.pow(y, 2);\n\t\tdouble c = a + b;\n\t\tdouble res = Math.sqrt(c);\n\t\treturn res;\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint count = 0;\n\t\tdouble d = scan.nextDouble();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tdouble x = scan.nextDouble();\n\t\t\tdouble y = scan.nextDouble();\n\t\t\tdouble res = solve(x,y);\n\t\t\tif(res <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n\t}\n\tpublic static double solve(double x,double y) {\n\t\tdouble a = Math.pow(x, 2);\n\t\tdouble b = Math.pow(y, 2);\n\t\tdouble c = a + b;\n\t\tdouble res = Math.sqrt(c);\n\t\treturn res;\n\t}\n\n}",
"Main"
]
|
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int count = 0;
double d = scan.nextDouble();
for(int i = 0; i < n; i++) {
double x = scan.nextDouble();
double y = scan.nextDouble();
double res = solve(x,y);
if(res <= d) {
count++;
}
}
System.out.println(count);
}
public static double solve(double x,double y) {
double a = Math.pow(x, 2);
double b = Math.pow(y, 2);
double c = a + b;
double res = Math.sqrt(c);
return res;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
20,
20,
4,
18,
20,
20,
41,
13,
4,
18,
20,
20,
14,
2,
4,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
88,
8
],
[
88,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
40,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
40,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
69,
76
],
[
76,
77
],
[
77,
78
],
[
11,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
9,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"import java.math.BigDecimal;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\n\t\tint cnt = 0;\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\n\t\t\tBigDecimal e = new BigDecimal(c).multiply(new BigDecimal(c)).add(new BigDecimal(d).multiply(new BigDecimal(d)));\n\t\t\tBigDecimal f = new BigDecimal(b).multiply(new BigDecimal(b));\n\n\t\t\tif (e.compareTo(f) <= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\n\t\tint cnt = 0;\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\n\t\t\tBigDecimal e = new BigDecimal(c).multiply(new BigDecimal(c)).add(new BigDecimal(d).multiply(new BigDecimal(d)));\n\t\t\tBigDecimal f = new BigDecimal(b).multiply(new BigDecimal(b));\n\n\t\t\tif (e.compareTo(f) <= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\n\t\tint cnt = 0;\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\n\t\t\tBigDecimal e = new BigDecimal(c).multiply(new BigDecimal(c)).add(new BigDecimal(d).multiply(new BigDecimal(d)));\n\t\t\tBigDecimal f = new BigDecimal(b).multiply(new BigDecimal(b));\n\n\t\t\tif (e.compareTo(f) <= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\n\t\tint cnt = 0;\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\n\t\t\tBigDecimal e = new BigDecimal(c).multiply(new BigDecimal(c)).add(new BigDecimal(d).multiply(new BigDecimal(d)));\n\t\t\tBigDecimal f = new BigDecimal(b).multiply(new BigDecimal(b));\n\n\t\t\tif (e.compareTo(f) <= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int cnt = 0;",
"cnt",
"0",
"for (int i = 0; i < a; i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\n\t\t\tBigDecimal e = new BigDecimal(c).multiply(new BigDecimal(c)).add(new BigDecimal(d).multiply(new BigDecimal(d)));\n\t\t\tBigDecimal f = new BigDecimal(b).multiply(new BigDecimal(b));\n\n\t\t\tif (e.compareTo(f) <= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\n\t\t\tBigDecimal e = new BigDecimal(c).multiply(new BigDecimal(c)).add(new BigDecimal(d).multiply(new BigDecimal(d)));\n\t\t\tBigDecimal f = new BigDecimal(b).multiply(new BigDecimal(b));\n\n\t\t\tif (e.compareTo(f) <= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\n\t\t\tBigDecimal e = new BigDecimal(c).multiply(new BigDecimal(c)).add(new BigDecimal(d).multiply(new BigDecimal(d)));\n\t\t\tBigDecimal f = new BigDecimal(b).multiply(new BigDecimal(b));\n\n\t\t\tif (e.compareTo(f) <= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"BigDecimal e = new BigDecimal(c).multiply(new BigDecimal(c)).add(new BigDecimal(d).multiply(new BigDecimal(d)));",
"e",
"new BigDecimal(c).multiply(new BigDecimal(c)).add(new BigDecimal(d).multiply(new BigDecimal(d)))",
"new BigDecimal(c).multiply(new BigDecimal(c)).add",
"new BigDecimal(c).multiply(new BigDecimal(c))",
"new BigDecimal(c).multiply",
"new BigDecimal(c)",
"new BigDecimal(c)",
"new BigDecimal(d).multiply(new BigDecimal(d))",
"new BigDecimal(d).multiply",
"new BigDecimal(d)",
"new BigDecimal(d)",
"BigDecimal f = new BigDecimal(b).multiply(new BigDecimal(b));",
"f",
"new BigDecimal(b).multiply(new BigDecimal(b))",
"new BigDecimal(b).multiply",
"new BigDecimal(b)",
"new BigDecimal(b)",
"if (e.compareTo(f) <= 0) {\n\t\t\t\tcnt++;\n\t\t\t}",
"e.compareTo(f) <= 0",
"e.compareTo(f)",
"e.compareTo",
"e",
"f",
"0",
"{\n\t\t\t\tcnt++;\n\t\t\t}",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\n\t\tint cnt = 0;\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\n\t\t\tBigDecimal e = new BigDecimal(c).multiply(new BigDecimal(c)).add(new BigDecimal(d).multiply(new BigDecimal(d)));\n\t\t\tBigDecimal f = new BigDecimal(b).multiply(new BigDecimal(b));\n\n\t\t\tif (e.compareTo(f) <= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\n\t\tint cnt = 0;\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\n\t\t\tBigDecimal e = new BigDecimal(c).multiply(new BigDecimal(c)).add(new BigDecimal(d).multiply(new BigDecimal(d)));\n\t\t\tBigDecimal f = new BigDecimal(b).multiply(new BigDecimal(b));\n\n\t\t\tif (e.compareTo(f) <= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"Main"
]
| import java.math.BigDecimal;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int cnt = 0;
for (int i = 0; i < a; i++) {
int c = sc.nextInt();
int d = sc.nextInt();
BigDecimal e = new BigDecimal(c).multiply(new BigDecimal(c)).add(new BigDecimal(d).multiply(new BigDecimal(d)));
BigDecimal f = new BigDecimal(b).multiply(new BigDecimal(b));
if (e.compareTo(f) <= 0) {
cnt++;
}
}
System.out.println(cnt);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
14,
2,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
97,
8
],
[
97,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
48,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
64,
80
],
[
80,
81
],
[
80,
82
],
[
63,
83
],
[
83,
84
],
[
11,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
11,
91
],
[
91,
92
],
[
92,
93
],
[
9,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
]
| [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextLong();\n int kaunto = 0;\n long[] a = new long[n];\n long[] b = new long[n];\n for(int i = 0; i < n; i++){\n a[i] = sc.nextLong();\n b[i] = sc.nextLong();\n if(a[i]*a[i] + b[i]*b[i] <= d*d) kaunto++;\n }\n System.out.println(kaunto);\n sc.close();\n }\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextLong();\n int kaunto = 0;\n long[] a = new long[n];\n long[] b = new long[n];\n for(int i = 0; i < n; i++){\n a[i] = sc.nextLong();\n b[i] = sc.nextLong();\n if(a[i]*a[i] + b[i]*b[i] <= d*d) kaunto++;\n }\n System.out.println(kaunto);\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextLong();\n int kaunto = 0;\n long[] a = new long[n];\n long[] b = new long[n];\n for(int i = 0; i < n; i++){\n a[i] = sc.nextLong();\n b[i] = sc.nextLong();\n if(a[i]*a[i] + b[i]*b[i] <= d*d) kaunto++;\n }\n System.out.println(kaunto);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextLong();\n int kaunto = 0;\n long[] a = new long[n];\n long[] b = new long[n];\n for(int i = 0; i < n; i++){\n a[i] = sc.nextLong();\n b[i] = sc.nextLong();\n if(a[i]*a[i] + b[i]*b[i] <= d*d) kaunto++;\n }\n System.out.println(kaunto);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"int kaunto = 0;",
"kaunto",
"0",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"long[] b = new long[n];",
"b",
"new long[n]",
"n",
"for(int i = 0; i < n; i++){\n a[i] = sc.nextLong();\n b[i] = sc.nextLong();\n if(a[i]*a[i] + b[i]*b[i] <= d*d) kaunto++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = sc.nextLong();\n b[i] = sc.nextLong();\n if(a[i]*a[i] + b[i]*b[i] <= d*d) kaunto++;\n }",
"{\n a[i] = sc.nextLong();\n b[i] = sc.nextLong();\n if(a[i]*a[i] + b[i]*b[i] <= d*d) kaunto++;\n }",
"a[i] = sc.nextLong()",
"a[i]",
"a",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"b[i] = sc.nextLong()",
"b[i]",
"b",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if(a[i]*a[i] + b[i]*b[i] <= d*d) kaunto++;",
"a[i]*a[i] + b[i]*b[i] <= d*d",
"a[i]*a[i] + b[i]*b[i]",
"a[i]*a[i]",
"a[i]",
"a",
"i",
"a[i]",
"a",
"i",
"b[i]*b[i]",
"b[i]",
"b",
"i",
"b[i]",
"b",
"i",
"d*d",
"d",
"d",
"kaunto++",
"kaunto",
"System.out.println(kaunto)",
"System.out.println",
"System.out",
"System",
"System.out",
"kaunto",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextLong();\n int kaunto = 0;\n long[] a = new long[n];\n long[] b = new long[n];\n for(int i = 0; i < n; i++){\n a[i] = sc.nextLong();\n b[i] = sc.nextLong();\n if(a[i]*a[i] + b[i]*b[i] <= d*d) kaunto++;\n }\n System.out.println(kaunto);\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextLong();\n int kaunto = 0;\n long[] a = new long[n];\n long[] b = new long[n];\n for(int i = 0; i < n; i++){\n a[i] = sc.nextLong();\n b[i] = sc.nextLong();\n if(a[i]*a[i] + b[i]*b[i] <= d*d) kaunto++;\n }\n System.out.println(kaunto);\n sc.close();\n }\n}",
"Main"
]
| import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long d = sc.nextLong();
int kaunto = 0;
long[] a = new long[n];
long[] b = new long[n];
for(int i = 0; i < n; i++){
a[i] = sc.nextLong();
b[i] = sc.nextLong();
if(a[i]*a[i] + b[i]*b[i] <= d*d) kaunto++;
}
System.out.println(kaunto);
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
18,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
14,
2,
4,
18,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
37,
50
],
[
50,
51
],
[
51,
52
],
[
37,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
57,
62
],
[
54,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
54,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
54,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
90,
94
],
[
80,
95
],
[
79,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
6,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t\tString[] x = sc.nextLine().split(\" \");\n\t\tint s,g,d;\n\t\tint answer = 0;\n\t\td = Integer.parseInt(x[1]);\n\t\tfor (int i =0;i < Integer.parseInt(x[0]);i++) {\n\t\t\tString[] y = sc.nextLine().split(\" \");\n\t\t\ts = Integer.parseInt(y[0]);\n\t\t\tg = Integer.parseInt(y[1]);\n\t\t\tif (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {\n\t\t\t\tanswer += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer);\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t\tString[] x = sc.nextLine().split(\" \");\n\t\tint s,g,d;\n\t\tint answer = 0;\n\t\td = Integer.parseInt(x[1]);\n\t\tfor (int i =0;i < Integer.parseInt(x[0]);i++) {\n\t\t\tString[] y = sc.nextLine().split(\" \");\n\t\t\ts = Integer.parseInt(y[0]);\n\t\t\tg = Integer.parseInt(y[1]);\n\t\t\tif (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {\n\t\t\t\tanswer += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t\tString[] x = sc.nextLine().split(\" \");\n\t\tint s,g,d;\n\t\tint answer = 0;\n\t\td = Integer.parseInt(x[1]);\n\t\tfor (int i =0;i < Integer.parseInt(x[0]);i++) {\n\t\t\tString[] y = sc.nextLine().split(\" \");\n\t\t\ts = Integer.parseInt(y[0]);\n\t\t\tg = Integer.parseInt(y[1]);\n\t\t\tif (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {\n\t\t\t\tanswer += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer);\n\t}",
"main",
"{\n\t Scanner sc = new Scanner(System.in);\n\t\tString[] x = sc.nextLine().split(\" \");\n\t\tint s,g,d;\n\t\tint answer = 0;\n\t\td = Integer.parseInt(x[1]);\n\t\tfor (int i =0;i < Integer.parseInt(x[0]);i++) {\n\t\t\tString[] y = sc.nextLine().split(\" \");\n\t\t\ts = Integer.parseInt(y[0]);\n\t\t\tg = Integer.parseInt(y[1]);\n\t\t\tif (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {\n\t\t\t\tanswer += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] x = sc.nextLine().split(\" \");",
"x",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"int s",
"s",
"g",
"g",
"d;",
"d",
"int answer = 0;",
"answer",
"0",
"d = Integer.parseInt(x[1])",
"d",
"Integer.parseInt(x[1])",
"Integer.parseInt",
"Integer",
"x[1]",
"x",
"1",
"for (int i =0;i < Integer.parseInt(x[0]);i++) {\n\t\t\tString[] y = sc.nextLine().split(\" \");\n\t\t\ts = Integer.parseInt(y[0]);\n\t\t\tg = Integer.parseInt(y[1]);\n\t\t\tif (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {\n\t\t\t\tanswer += 1;\n\t\t\t}\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i < Integer.parseInt(x[0])",
"i",
"Integer.parseInt(x[0])",
"Integer.parseInt",
"Integer",
"x[0]",
"x",
"0",
"i++",
"i++",
"i",
"{\n\t\t\tString[] y = sc.nextLine().split(\" \");\n\t\t\ts = Integer.parseInt(y[0]);\n\t\t\tg = Integer.parseInt(y[1]);\n\t\t\tif (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {\n\t\t\t\tanswer += 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] y = sc.nextLine().split(\" \");\n\t\t\ts = Integer.parseInt(y[0]);\n\t\t\tg = Integer.parseInt(y[1]);\n\t\t\tif (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {\n\t\t\t\tanswer += 1;\n\t\t\t}\n\t\t}",
"String[] y = sc.nextLine().split(\" \");",
"y",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"s = Integer.parseInt(y[0])",
"s",
"Integer.parseInt(y[0])",
"Integer.parseInt",
"Integer",
"y[0]",
"y",
"0",
"g = Integer.parseInt(y[1])",
"g",
"Integer.parseInt(y[1])",
"Integer.parseInt",
"Integer",
"y[1]",
"y",
"1",
"if (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {\n\t\t\t\tanswer += 1;\n\t\t\t}",
"Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d",
"Math.sqrt(Math.pow(s,2) + Math.pow(g,2))",
"Math.sqrt",
"Math",
"Math.pow(s,2) + Math.pow(g,2)",
"Math.pow(s,2)",
"Math.pow",
"Math",
"s",
"2",
"Math.pow(g,2)",
"Math.pow",
"Math",
"g",
"2",
"d",
"{\n\t\t\t\tanswer += 1;\n\t\t\t}",
"answer += 1",
"answer",
"1",
"System.out.print(answer)",
"System.out.print",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t\tString[] x = sc.nextLine().split(\" \");\n\t\tint s,g,d;\n\t\tint answer = 0;\n\t\td = Integer.parseInt(x[1]);\n\t\tfor (int i =0;i < Integer.parseInt(x[0]);i++) {\n\t\t\tString[] y = sc.nextLine().split(\" \");\n\t\t\ts = Integer.parseInt(y[0]);\n\t\t\tg = Integer.parseInt(y[1]);\n\t\t\tif (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {\n\t\t\t\tanswer += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer);\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t\tString[] x = sc.nextLine().split(\" \");\n\t\tint s,g,d;\n\t\tint answer = 0;\n\t\td = Integer.parseInt(x[1]);\n\t\tfor (int i =0;i < Integer.parseInt(x[0]);i++) {\n\t\t\tString[] y = sc.nextLine().split(\" \");\n\t\t\ts = Integer.parseInt(y[0]);\n\t\t\tg = Integer.parseInt(y[1]);\n\t\t\tif (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {\n\t\t\t\tanswer += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer);\n\t}\n\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] x = sc.nextLine().split(" ");
int s,g,d;
int answer = 0;
d = Integer.parseInt(x[1]);
for (int i =0;i < Integer.parseInt(x[0]);i++) {
String[] y = sc.nextLine().split(" ");
s = Integer.parseInt(y[0]);
g = Integer.parseInt(y[1]);
if (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {
answer += 1;
}
}
System.out.print(answer);
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.