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,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
18,
13,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
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,
13,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
96,
8
],
[
96,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
96,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
24,
25
],
[
19,
26
],
[
26,
27
],
[
27,
28
],
[
19,
29
],
[
29,
30
],
[
30,
31
],
[
17,
32
],
[
32,
33
],
[
96,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
36,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
36,
50
],
[
50,
51
],
[
50,
52
],
[
36,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
53,
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
],
[
71,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
80,
84
],
[
58,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
36,
91
],
[
91,
92
],
[
91,
93
],
[
96,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
]
| [
"import java.util.*;\nimport java.io.*;\npublic class Main extends PrintWriter {\n Main()\n {\n super(System.out);\n }\n public static void main(String args[]) {\n Main o=new Main();\n o.main();\n o.flush();\n o.close();\n }\n void main()\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int d=sc.nextInt();\n int c=0;\n while(n-->0)\n {\n int x=sc.nextInt();\n int y=sc.nextInt();\n double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(sp<=d)\n c++;\n }\n println(c);\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main extends PrintWriter {\n Main()\n {\n super(System.out);\n }\n public static void main(String args[]) {\n Main o=new Main();\n o.main();\n o.flush();\n o.close();\n }\n void main()\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int d=sc.nextInt();\n int c=0;\n while(n-->0)\n {\n int x=sc.nextInt();\n int y=sc.nextInt();\n double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(sp<=d)\n c++;\n }\n println(c);\n \n }\n}",
"Main",
"Main()\n {\n super(System.out);\n }",
"Main",
"{\n super(System.out);\n }",
"super(System.out)",
"super",
"System.out",
"System",
"System.out",
"public static void main(String args[]) {\n Main o=new Main();\n o.main();\n o.flush();\n o.close();\n }",
"main",
"{\n Main o=new Main();\n o.main();\n o.flush();\n o.close();\n }",
"Main o=new Main();",
"o",
"new Main()",
"o.main()",
"o.main",
"o",
"o.flush()",
"o.flush",
"o",
"o.close()",
"o.close",
"o",
"String args[]",
"args",
"void main()\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int d=sc.nextInt();\n int c=0;\n while(n-->0)\n {\n int x=sc.nextInt();\n int y=sc.nextInt();\n double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(sp<=d)\n c++;\n }\n println(c);\n \n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int d=sc.nextInt();\n int c=0;\n while(n-->0)\n {\n int x=sc.nextInt();\n int y=sc.nextInt();\n double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(sp<=d)\n c++;\n }\n println(c);\n \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 c=0;",
"c",
"0",
"while(n-->0)\n {\n int x=sc.nextInt();\n int y=sc.nextInt();\n double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(sp<=d)\n c++;\n }",
"n-->0",
"n--",
"n",
"0",
"{\n int x=sc.nextInt();\n int y=sc.nextInt();\n double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(sp<=d)\n c++;\n }",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y=sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));",
"sp",
"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(sp<=d)\n c++;",
"sp<=d",
"sp",
"d",
"c++",
"c",
"println(c)",
"println",
"c",
"PrintWriter",
"public class Main extends PrintWriter {\n Main()\n {\n super(System.out);\n }\n public static void main(String args[]) {\n Main o=new Main();\n o.main();\n o.flush();\n o.close();\n }\n void main()\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int d=sc.nextInt();\n int c=0;\n while(n-->0)\n {\n int x=sc.nextInt();\n int y=sc.nextInt();\n double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(sp<=d)\n c++;\n }\n println(c);\n \n }\n}",
"public class Main extends PrintWriter {\n Main()\n {\n super(System.out);\n }\n public static void main(String args[]) {\n Main o=new Main();\n o.main();\n o.flush();\n o.close();\n }\n void main()\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int d=sc.nextInt();\n int c=0;\n while(n-->0)\n {\n int x=sc.nextInt();\n int y=sc.nextInt();\n double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(sp<=d)\n c++;\n }\n println(c);\n \n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main extends PrintWriter {
Main()
{
super(System.out);
}
public static void main(String args[]) {
Main o=new Main();
o.main();
o.flush();
o.close();
}
void main()
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int d=sc.nextInt();
int c=0;
while(n-->0)
{
int x=sc.nextInt();
int y=sc.nextInt();
double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
if(sp<=d)
c++;
}
println(c);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
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,
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\n\n\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tlong num = scanner.nextInt();\n\t\t\t\n\t\t\tlong distance = scanner.nextInt();\n\t\t\tdistance = distance * distance;\n\t\t\t\n\t\t\t\n\t\t\tlong cnt = 0;\n\t\t\t\n\t\t\tfor(long i = 0; i < num; i++) {\n\t\t\t\tlong x = scanner.nextInt();\n\t\t\t\tlong y = scanner.nextInt();\n\t\t\t\t\n\t\t\t\tif (x * x + y * y <= distance) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\n\n\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tlong num = scanner.nextInt();\n\t\t\t\n\t\t\tlong distance = scanner.nextInt();\n\t\t\tdistance = distance * distance;\n\t\t\t\n\t\t\t\n\t\t\tlong cnt = 0;\n\t\t\t\n\t\t\tfor(long i = 0; i < num; i++) {\n\t\t\t\tlong x = scanner.nextInt();\n\t\t\t\tlong y = scanner.nextInt();\n\t\t\t\t\n\t\t\t\tif (x * x + y * y <= distance) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\n\n\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tlong num = scanner.nextInt();\n\t\t\t\n\t\t\tlong distance = scanner.nextInt();\n\t\t\tdistance = distance * distance;\n\t\t\t\n\t\t\t\n\t\t\tlong cnt = 0;\n\t\t\t\n\t\t\tfor(long i = 0; i < num; i++) {\n\t\t\t\tlong x = scanner.nextInt();\n\t\t\t\tlong y = scanner.nextInt();\n\t\t\t\t\n\t\t\t\tif (x * x + y * y <= distance) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}",
"main",
"{\n\n\n\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tlong num = scanner.nextInt();\n\t\t\t\n\t\t\tlong distance = scanner.nextInt();\n\t\t\tdistance = distance * distance;\n\t\t\t\n\t\t\t\n\t\t\tlong cnt = 0;\n\t\t\t\n\t\t\tfor(long i = 0; i < num; i++) {\n\t\t\t\tlong x = scanner.nextInt();\n\t\t\t\tlong y = scanner.nextInt();\n\t\t\t\t\n\t\t\t\tif (x * x + y * y <= distance) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}",
"try (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tlong num = scanner.nextInt();\n\t\t\t\n\t\t\tlong distance = scanner.nextInt();\n\t\t\tdistance = distance * distance;\n\t\t\t\n\t\t\t\n\t\t\tlong cnt = 0;\n\t\t\t\n\t\t\tfor(long i = 0; i < num; i++) {\n\t\t\t\tlong x = scanner.nextInt();\n\t\t\t\tlong y = scanner.nextInt();\n\t\t\t\t\n\t\t\t\tif (x * x + y * y <= distance) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}",
"{\n\n\t\t\tlong num = scanner.nextInt();\n\t\t\t\n\t\t\tlong distance = scanner.nextInt();\n\t\t\tdistance = distance * distance;\n\t\t\t\n\t\t\t\n\t\t\tlong cnt = 0;\n\t\t\t\n\t\t\tfor(long i = 0; i < num; i++) {\n\t\t\t\tlong x = scanner.nextInt();\n\t\t\t\tlong y = scanner.nextInt();\n\t\t\t\t\n\t\t\t\tif (x * x + y * y <= distance) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"long num = scanner.nextInt();",
"num",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long distance = scanner.nextInt();",
"distance",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"distance = distance * distance",
"distance",
"distance * distance",
"distance",
"distance",
"long cnt = 0;",
"cnt",
"0",
"for(long i = 0; i < num; i++) {\n\t\t\t\tlong x = scanner.nextInt();\n\t\t\t\tlong y = scanner.nextInt();\n\t\t\t\t\n\t\t\t\tif (x * x + y * y <= distance) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}",
"long i = 0;",
"long i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\t\tlong x = scanner.nextInt();\n\t\t\t\tlong y = scanner.nextInt();\n\t\t\t\t\n\t\t\t\tif (x * x + y * y <= distance) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tlong x = scanner.nextInt();\n\t\t\t\tlong y = scanner.nextInt();\n\t\t\t\t\n\t\t\t\tif (x * x + y * y <= distance) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}",
"long x = scanner.nextInt();",
"x",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long y = scanner.nextInt();",
"y",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if (x * x + y * y <= distance) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}",
"x * x + y * y <= distance",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"distance",
"{\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\n\n\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tlong num = scanner.nextInt();\n\t\t\t\n\t\t\tlong distance = scanner.nextInt();\n\t\t\tdistance = distance * distance;\n\t\t\t\n\t\t\t\n\t\t\tlong cnt = 0;\n\t\t\t\n\t\t\tfor(long i = 0; i < num; i++) {\n\t\t\t\tlong x = scanner.nextInt();\n\t\t\t\tlong y = scanner.nextInt();\n\t\t\t\t\n\t\t\t\tif (x * x + y * y <= distance) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\n\n\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tlong num = scanner.nextInt();\n\t\t\t\n\t\t\tlong distance = scanner.nextInt();\n\t\t\tdistance = distance * distance;\n\t\t\t\n\t\t\t\n\t\t\tlong cnt = 0;\n\t\t\t\n\t\t\tfor(long i = 0; i < num; i++) {\n\t\t\t\tlong x = scanner.nextInt();\n\t\t\t\tlong y = scanner.nextInt();\n\t\t\t\t\n\t\t\t\tif (x * x + y * y <= distance) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
try (Scanner scanner = new Scanner(System.in)) {
long num = scanner.nextInt();
long distance = scanner.nextInt();
distance = distance * distance;
long cnt = 0;
for(long i = 0; i < num; i++) {
long x = scanner.nextInt();
long y = scanner.nextInt();
if (x * x + y * y <= distance) {
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,
41,
13,
4,
18,
13,
2,
2,
4,
18,
13,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
91,
5
],
[
91,
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
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
37,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
6,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextLong();\n\t\tlong D = sc.nextLong();\n\t\tlong count = 0;\n\t\tfor(int i =0;i<N;i++) {\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tdouble value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );\n\t\t\tif(value<=D) {\n\t\t\t\tcount = count + 1;\n\t\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\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextLong();\n\t\tlong D = sc.nextLong();\n\t\tlong count = 0;\n\t\tfor(int i =0;i<N;i++) {\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tdouble value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );\n\t\t\tif(value<=D) {\n\t\t\t\tcount = count + 1;\n\t\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\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextLong();\n\t\tlong D = sc.nextLong();\n\t\tlong count = 0;\n\t\tfor(int i =0;i<N;i++) {\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tdouble value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );\n\t\t\tif(value<=D) {\n\t\t\t\tcount = count + 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextLong();\n\t\tlong D = sc.nextLong();\n\t\tlong count = 0;\n\t\tfor(int i =0;i<N;i++) {\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tdouble value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );\n\t\t\tif(value<=D) {\n\t\t\t\tcount = count + 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}",
"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 count = 0;",
"count",
"0",
"for(int i =0;i<N;i++) {\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tdouble value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );\n\t\t\tif(value<=D) {\n\t\t\t\tcount = count + 1;\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 a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tdouble value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );\n\t\t\tif(value<=D) {\n\t\t\t\tcount = count + 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tdouble value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );\n\t\t\tif(value<=D) {\n\t\t\t\tcount = count + 1;\n\t\t\t}\n\t\t}",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"double value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );",
"value",
"Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) )",
"Math.sqrt",
"Math",
"Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b)",
"Math.abs(a)*Math.abs(a)",
"Math.abs(a)",
"Math.abs",
"Math",
"a",
"Math.abs(a)",
"Math.abs",
"Math",
"a",
"Math.abs(b)*Math.abs(b)",
"Math.abs(b)",
"Math.abs",
"Math",
"b",
"Math.abs(b)",
"Math.abs",
"Math",
"b",
"if(value<=D) {\n\t\t\t\tcount = count + 1;\n\t\t\t}",
"value<=D",
"value",
"D",
"{\n\t\t\t\tcount = count + 1;\n\t\t\t}",
"count = count + 1",
"count",
"count + 1",
"count",
"1",
"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\t\tlong N = sc.nextLong();\n\t\tlong D = sc.nextLong();\n\t\tlong count = 0;\n\t\tfor(int i =0;i<N;i++) {\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tdouble value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );\n\t\t\tif(value<=D) {\n\t\t\t\tcount = count + 1;\n\t\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\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextLong();\n\t\tlong D = sc.nextLong();\n\t\tlong count = 0;\n\t\tfor(int i =0;i<N;i++) {\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tdouble value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );\n\t\t\tif(value<=D) {\n\t\t\t\tcount = count + 1;\n\t\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) {
Scanner sc = new Scanner(System.in);
long N = sc.nextLong();
long D = sc.nextLong();
long count = 0;
for(int i =0;i<N;i++) {
long a = sc.nextLong();
long b = sc.nextLong();
double value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );
if(value<=D) {
count = count + 1;
}
}
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,
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,
17,
0,
13,
4,
18,
13,
13,
17,
41,
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
]
| [
[
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
],
[
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
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
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
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
43,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
43,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
43,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
43,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
14,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
12,
92
],
[
92,
93
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.math.*;\nclass Main\n{\n public static void main(String[] args) throws Exception\n {\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 {\n double a = sc.nextInt();\n double b = sc.nextInt();\n a = Math.pow(a,2);\n b = Math.pow(b,2);\n double temp = a+b;\n double ans = Math.sqrt(temp);\n //System.out.println(\"\\n\\t i=\"+i+\" ans=\"+ans);\n if(ans <= D)\n {\n cnt++;\n //System.out.println(cnt);\n }\n \n }\n System.out.println(cnt);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"class Main\n{\n public static void main(String[] args) throws Exception\n {\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 {\n double a = sc.nextInt();\n double b = sc.nextInt();\n a = Math.pow(a,2);\n b = Math.pow(b,2);\n double temp = a+b;\n double ans = Math.sqrt(temp);\n //System.out.println(\"\\n\\t i=\"+i+\" ans=\"+ans);\n if(ans <= D)\n {\n cnt++;\n //System.out.println(cnt);\n }\n \n }\n System.out.println(cnt);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception\n {\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 {\n double a = sc.nextInt();\n double b = sc.nextInt();\n a = Math.pow(a,2);\n b = Math.pow(b,2);\n double temp = a+b;\n double ans = Math.sqrt(temp);\n //System.out.println(\"\\n\\t i=\"+i+\" ans=\"+ans);\n if(ans <= D)\n {\n cnt++;\n //System.out.println(cnt);\n }\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 {\n double a = sc.nextInt();\n double b = sc.nextInt();\n a = Math.pow(a,2);\n b = Math.pow(b,2);\n double temp = a+b;\n double ans = Math.sqrt(temp);\n //System.out.println(\"\\n\\t i=\"+i+\" ans=\"+ans);\n if(ans <= D)\n {\n cnt++;\n //System.out.println(cnt);\n }\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 {\n double a = sc.nextInt();\n double b = sc.nextInt();\n a = Math.pow(a,2);\n b = Math.pow(b,2);\n double temp = a+b;\n double ans = Math.sqrt(temp);\n //System.out.println(\"\\n\\t i=\"+i+\" ans=\"+ans);\n if(ans <= D)\n {\n cnt++;\n //System.out.println(cnt);\n }\n \n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n double a = sc.nextInt();\n double b = sc.nextInt();\n a = Math.pow(a,2);\n b = Math.pow(b,2);\n double temp = a+b;\n double ans = Math.sqrt(temp);\n //System.out.println(\"\\n\\t i=\"+i+\" ans=\"+ans);\n if(ans <= D)\n {\n cnt++;\n //System.out.println(cnt);\n }\n \n }",
"{\n double a = sc.nextInt();\n double b = sc.nextInt();\n a = Math.pow(a,2);\n b = Math.pow(b,2);\n double temp = a+b;\n double ans = Math.sqrt(temp);\n //System.out.println(\"\\n\\t i=\"+i+\" ans=\"+ans);\n if(ans <= D)\n {\n cnt++;\n //System.out.println(cnt);\n }\n \n }",
"double a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a = Math.pow(a,2)",
"a",
"Math.pow(a,2)",
"Math.pow",
"Math",
"a",
"2",
"b = Math.pow(b,2)",
"b",
"Math.pow(b,2)",
"Math.pow",
"Math",
"b",
"2",
"double temp = a+b;",
"temp",
"a+b",
"a",
"b",
"double ans = Math.sqrt(temp);",
"ans",
"Math.sqrt(temp)",
"Math.sqrt",
"Math",
"temp",
"if(ans <= D)\n {\n cnt++;\n //System.out.println(cnt);\n }",
"ans <= D",
"ans",
"D",
"{\n cnt++;\n //System.out.println(cnt);\n }",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args"
]
| import java.util.*;
import java.io.*;
import java.math.*;
class Main
{
public static void main(String[] args) throws Exception
{
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 a = sc.nextInt();
double b = sc.nextInt();
a = Math.pow(a,2);
b = Math.pow(b,2);
double temp = a+b;
double ans = Math.sqrt(temp);
//System.out.println("\n\t i="+i+" ans="+ans);
if(ans <= D)
{
cnt++;
//System.out.println(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,
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;\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 int ans = 0;\n for(int i = 0;i<n;i++){\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 }\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 long n = sc.nextInt();\n long d = sc.nextInt();\n int ans = 0;\n for(int i = 0;i<n;i++){\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 }\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 int ans = 0;\n for(int i = 0;i<n;i++){\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 }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n long d = sc.nextInt();\n int ans = 0;\n for(int i = 0;i<n;i++){\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 }",
"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",
"int ans = 0;",
"ans",
"0",
"for(int i = 0;i<n;i++){\n long x = sc.nextInt();\n long y = sc.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 = 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",
"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 int ans = 0;\n for(int i = 0;i<n;i++){\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 }\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 int ans = 0;\n for(int i = 0;i<n;i++){\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 }\n \n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextInt();
long d = sc.nextInt();
int ans = 0;
for(int i = 0;i<n;i++){
long x = sc.nextInt();
long y = sc.nextInt();
if((x*x+y*y)<=d*d){
ans++;
}
}
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,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
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,
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,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
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,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
157,
8
],
[
157,
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
],
[
36,
39
],
[
39,
40
],
[
40,
41
],
[
33,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
33,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
33,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
11,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
9,
74
],
[
74,
75
],
[
157,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
87,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
93,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
86,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
76,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
114,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
110,
127
],
[
127,
128
],
[
76,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
136,
137
],
[
76,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
145,
146
],
[
76,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
154,
155
],
[
0,
156
],
[
156,
157
],
[
156,
158
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n int t = sc.nextInt();\n int d = sc.nextInt();\n int ans = 0;\n while (t-- > 0) {\n double x = Double.valueOf(sc.nextInt());\n double y = Double.valueOf(sc.nextInt());\n double res = Math.sqrt(x * x + y * y);\n if (res <= d) ans++;\n }\n System.out.println(ans);\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 (Exception e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n String nextLine() {\n String s = \"\";\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return s;\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n int t = sc.nextInt();\n int d = sc.nextInt();\n int ans = 0;\n while (t-- > 0) {\n double x = Double.valueOf(sc.nextInt());\n double y = Double.valueOf(sc.nextInt());\n double res = Math.sqrt(x * x + y * y);\n if (res <= d) ans++;\n }\n System.out.println(ans);\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 (Exception e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n String nextLine() {\n String s = \"\";\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return s;\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n int t = sc.nextInt();\n int d = sc.nextInt();\n int ans = 0;\n while (t-- > 0) {\n double x = Double.valueOf(sc.nextInt());\n double y = Double.valueOf(sc.nextInt());\n double res = Math.sqrt(x * x + y * y);\n if (res <= d) ans++;\n }\n System.out.println(ans);\n }",
"main",
"{\n FastScanner sc = new FastScanner();\n int t = sc.nextInt();\n int d = sc.nextInt();\n int ans = 0;\n while (t-- > 0) {\n double x = Double.valueOf(sc.nextInt());\n double y = Double.valueOf(sc.nextInt());\n double res = Math.sqrt(x * x + y * y);\n if (res <= d) ans++;\n }\n System.out.println(ans);\n }",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = 0;",
"ans",
"0",
"while (t-- > 0) {\n double x = Double.valueOf(sc.nextInt());\n double y = Double.valueOf(sc.nextInt());\n double res = Math.sqrt(x * x + y * y);\n if (res <= d) ans++;\n }",
"t-- > 0",
"t--",
"t",
"0",
"{\n double x = Double.valueOf(sc.nextInt());\n double y = Double.valueOf(sc.nextInt());\n double res = Math.sqrt(x * x + y * y);\n if (res <= d) ans++;\n }",
"double x = Double.valueOf(sc.nextInt());",
"x",
"Double.valueOf(sc.nextInt())",
"Double.valueOf",
"Double",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double y = Double.valueOf(sc.nextInt());",
"y",
"Double.valueOf(sc.nextInt())",
"Double.valueOf",
"Double",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double res = Math.sqrt(x * x + y * y);",
"res",
"Math.sqrt(x * x + y * y)",
"Math.sqrt",
"Math",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"if (res <= d) ans++;",
"res <= d",
"res",
"d",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"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 (Exception e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n String nextLine() {\n String s = \"\";\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return s;\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\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 (Exception 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 (Exception e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.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 st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"String nextLine() {\n String s = \"\";\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return s;\n }",
"nextLine",
"{\n String s = \"\";\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return s;\n }",
"String s = \"\";",
"s",
"\"\"",
"try {\n s = 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 s = br.readLine();\n }",
"s = br.readLine()",
"s",
"br.readLine()",
"br.readLine",
"br",
"return s;",
"s",
"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",
"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",
"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 public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n int t = sc.nextInt();\n int d = sc.nextInt();\n int ans = 0;\n while (t-- > 0) {\n double x = Double.valueOf(sc.nextInt());\n double y = Double.valueOf(sc.nextInt());\n double res = Math.sqrt(x * x + y * y);\n if (res <= d) ans++;\n }\n System.out.println(ans);\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 (Exception e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n String nextLine() {\n String s = \"\";\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return s;\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n int t = sc.nextInt();\n int d = sc.nextInt();\n int ans = 0;\n while (t-- > 0) {\n double x = Double.valueOf(sc.nextInt());\n double y = Double.valueOf(sc.nextInt());\n double res = Math.sqrt(x * x + y * y);\n if (res <= d) ans++;\n }\n System.out.println(ans);\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 (Exception e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n String nextLine() {\n String s = \"\";\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return s;\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
FastScanner sc = new FastScanner();
int t = sc.nextInt();
int d = sc.nextInt();
int ans = 0;
while (t-- > 0) {
double x = Double.valueOf(sc.nextInt());
double y = Double.valueOf(sc.nextInt());
double res = Math.sqrt(x * x + y * y);
if (res <= d) ans++;
}
System.out.println(ans);
}
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 (Exception e) {
e.printStackTrace();
}
}
return st.nextToken();
}
String nextLine() {
String s = "";
try {
s = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return s;
}
int nextInt() {
return Integer.parseInt(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
long nextLong() {
return Long.parseLong(next());
}
}
} |
[
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
76,
8
],
[
76,
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
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
52,
63
],
[
51,
64
],
[
64,
65
],
[
65,
66
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
9,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"// package abc174;\nimport java.util.*;\nimport java.io.*;\npublic class Main {\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 count = 0;\n for(int i=0;i<n;i++){\n long x = sc.nextLong();\n long y = sc.nextLong();\n if(Math.sqrt(x*x + y*y)<=d){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\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 count = 0;\n for(int i=0;i<n;i++){\n long x = sc.nextLong();\n long y = sc.nextLong();\n if(Math.sqrt(x*x + y*y)<=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 = sc.nextInt();\n int d = sc.nextInt();\n int count = 0;\n for(int i=0;i<n;i++){\n long x = sc.nextLong();\n long y = sc.nextLong();\n if(Math.sqrt(x*x + y*y)<=d){\n count++;\n }\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int count = 0;\n for(int i=0;i<n;i++){\n long x = sc.nextLong();\n long y = sc.nextLong();\n if(Math.sqrt(x*x + y*y)<=d){\n count++;\n }\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",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 0;",
"count",
"0",
"for(int i=0;i<n;i++){\n long x = sc.nextLong();\n long y = sc.nextLong();\n if(Math.sqrt(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 = sc.nextLong();\n long y = sc.nextLong();\n if(Math.sqrt(x*x + y*y)<=d){\n count++;\n }\n }",
"{\n long x = sc.nextLong();\n long y = sc.nextLong();\n if(Math.sqrt(x*x + y*y)<=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",
"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",
"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 int d = sc.nextInt();\n int count = 0;\n for(int i=0;i<n;i++){\n long x = sc.nextLong();\n long y = sc.nextLong();\n if(Math.sqrt(x*x + y*y)<=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 = sc.nextInt();\n int d = sc.nextInt();\n int count = 0;\n for(int i=0;i<n;i++){\n long x = sc.nextLong();\n long y = sc.nextLong();\n if(Math.sqrt(x*x + y*y)<=d){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"Main"
]
| // package abc174;
import java.util.*;
import java.io.*;
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++){
long x = sc.nextLong();
long y = sc.nextLong();
if(Math.sqrt(x*x + y*y)<=d){
count++;
}
}
System.out.println(count);
}
}
|
[
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,
2,
13,
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,
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
],
[
81,
5
],
[
81,
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
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
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
],
[
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
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
45,
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.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint count = 0;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tlong d = sc.nextLong();\n\t\tlong dd = d * d;\n\n\t\tsc.nextLine();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tlong dist = p*p+q*q;\n\t\t\tif(dist <= dd){\n\t\t\t\tcount++;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\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\tint count = 0;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tlong d = sc.nextLong();\n\t\tlong dd = d * d;\n\n\t\tsc.nextLine();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tlong dist = p*p+q*q;\n\t\t\tif(dist <= dd){\n\t\t\t\tcount++;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tint count = 0;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tlong d = sc.nextLong();\n\t\tlong dd = d * d;\n\n\t\tsc.nextLine();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tlong dist = p*p+q*q;\n\t\t\tif(dist <= dd){\n\t\t\t\tcount++;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\n\t}",
"main",
"{\n\t\tint count = 0;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tlong d = sc.nextLong();\n\t\tlong dd = d * d;\n\n\t\tsc.nextLine();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tlong dist = p*p+q*q;\n\t\t\tif(dist <= dd){\n\t\t\t\tcount++;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\n\t}",
"int count = 0;",
"count",
"0",
"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 dd = d * d;",
"dd",
"d * d",
"d",
"d",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tlong dist = p*p+q*q;\n\t\t\tif(dist <= dd){\n\t\t\t\tcount++;\n\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\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tlong dist = p*p+q*q;\n\t\t\tif(dist <= dd){\n\t\t\t\tcount++;\n\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tlong dist = p*p+q*q;\n\t\t\tif(dist <= dd){\n\t\t\t\tcount++;\n\n\t\t\t}\n\n\t\t}",
"long p = sc.nextLong();",
"p",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long q = sc.nextLong();",
"q",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long dist = p*p+q*q;",
"dist",
"p*p+q*q",
"p*p",
"p",
"p",
"q*q",
"q",
"q",
"if(dist <= dd){\n\t\t\t\tcount++;\n\n\t\t\t}",
"dist <= dd",
"dist",
"dd",
"{\n\t\t\t\tcount++;\n\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\tint count = 0;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tlong d = sc.nextLong();\n\t\tlong dd = d * d;\n\n\t\tsc.nextLine();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tlong dist = p*p+q*q;\n\t\t\tif(dist <= dd){\n\t\t\t\tcount++;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint count = 0;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tlong d = sc.nextLong();\n\t\tlong dd = d * d;\n\n\t\tsc.nextLine();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tlong dist = p*p+q*q;\n\t\t\tif(dist <= dd){\n\t\t\t\tcount++;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int count = 0;
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long d = sc.nextLong();
long dd = d * d;
sc.nextLine();
for(int i=0;i<n;i++){
long p = sc.nextLong();
long q = sc.nextLong();
long dist = p*p+q*q;
if(dist <= dd){
count++;
}
}
System.out.println(count);
}
} |
[
7,
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,
2,
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,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
103,
5
],
[
103,
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
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
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
],
[
61,
62
],
[
62,
63
],
[
59,
64
],
[
56,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
70,
72
],
[
56,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
56,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
81,
91
],
[
91,
92
],
[
92,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
6,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] data = in.readLine().split(\" \");\n int n = Integer.parseInt(data[0]);\n long d = Integer.parseInt(data[1]);\n long dd = d * d;\n int ans = 0;\n for (int i = 0; i < n; i++) {\n data = in.readLine().split(\" \");\n long x = Integer.parseInt(data[0]);\n long y = Integer.parseInt(data[1]);\n if (x*x + y*y <= dd) {\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] data = in.readLine().split(\" \");\n int n = Integer.parseInt(data[0]);\n long d = Integer.parseInt(data[1]);\n long dd = d * d;\n int ans = 0;\n for (int i = 0; i < n; i++) {\n data = in.readLine().split(\" \");\n long x = Integer.parseInt(data[0]);\n long y = Integer.parseInt(data[1]);\n if (x*x + y*y <= dd) {\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] data = in.readLine().split(\" \");\n int n = Integer.parseInt(data[0]);\n long d = Integer.parseInt(data[1]);\n long dd = d * d;\n int ans = 0;\n for (int i = 0; i < n; i++) {\n data = in.readLine().split(\" \");\n long x = Integer.parseInt(data[0]);\n long y = Integer.parseInt(data[1]);\n if (x*x + y*y <= dd) {\n ans++;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] data = in.readLine().split(\" \");\n int n = Integer.parseInt(data[0]);\n long d = Integer.parseInt(data[1]);\n long dd = d * d;\n int ans = 0;\n for (int i = 0; i < n; i++) {\n data = in.readLine().split(\" \");\n long x = Integer.parseInt(data[0]);\n long y = Integer.parseInt(data[1]);\n if (x*x + y*y <= dd) {\n ans++;\n }\n }\n System.out.println(ans);\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] data = in.readLine().split(\" \");",
"data",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int n = Integer.parseInt(data[0]);",
"n",
"Integer.parseInt(data[0])",
"Integer.parseInt",
"Integer",
"data[0]",
"data",
"0",
"long d = Integer.parseInt(data[1]);",
"d",
"Integer.parseInt(data[1])",
"Integer.parseInt",
"Integer",
"data[1]",
"data",
"1",
"long dd = d * d;",
"dd",
"d * d",
"d",
"d",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < n; i++) {\n data = in.readLine().split(\" \");\n long x = Integer.parseInt(data[0]);\n long y = Integer.parseInt(data[1]);\n if (x*x + y*y <= dd) {\n ans++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n data = in.readLine().split(\" \");\n long x = Integer.parseInt(data[0]);\n long y = Integer.parseInt(data[1]);\n if (x*x + y*y <= dd) {\n ans++;\n }\n }",
"{\n data = in.readLine().split(\" \");\n long x = Integer.parseInt(data[0]);\n long y = Integer.parseInt(data[1]);\n if (x*x + y*y <= dd) {\n ans++;\n }\n }",
"data = in.readLine().split(\" \")",
"data",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"long x = Integer.parseInt(data[0]);",
"x",
"Integer.parseInt(data[0])",
"Integer.parseInt",
"Integer",
"data[0]",
"data",
"0",
"long y = Integer.parseInt(data[1]);",
"y",
"Integer.parseInt(data[1])",
"Integer.parseInt",
"Integer",
"data[1]",
"data",
"1",
"if (x*x + y*y <= dd) {\n ans++;\n }",
"x*x + y*y <= dd",
"x*x + y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"dd",
"{\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) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] data = in.readLine().split(\" \");\n int n = Integer.parseInt(data[0]);\n long d = Integer.parseInt(data[1]);\n long dd = d * d;\n int ans = 0;\n for (int i = 0; i < n; i++) {\n data = in.readLine().split(\" \");\n long x = Integer.parseInt(data[0]);\n long y = Integer.parseInt(data[1]);\n if (x*x + y*y <= dd) {\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] data = in.readLine().split(\" \");\n int n = Integer.parseInt(data[0]);\n long d = Integer.parseInt(data[1]);\n long dd = d * d;\n int ans = 0;\n for (int i = 0; i < n; i++) {\n data = in.readLine().split(\" \");\n long x = Integer.parseInt(data[0]);\n long y = Integer.parseInt(data[1]);\n if (x*x + y*y <= dd) {\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String[] data = in.readLine().split(" ");
int n = Integer.parseInt(data[0]);
long d = Integer.parseInt(data[1]);
long dd = d * d;
int ans = 0;
for (int i = 0; i < n; i++) {
data = in.readLine().split(" ");
long x = Integer.parseInt(data[0]);
long y = Integer.parseInt(data[1]);
if (x*x + y*y <= dd) {
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,
4,
18,
13,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
17,
14,
2,
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
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
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
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
44,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
6,
75
],
[
75,
76
]
]
| [
"import java.util.*;\nclass Main{\npublic static void main(String[]args){\nScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int d=sc.nextInt();\n double dd=Math.pow(d,2);\n int count=0;\n for(int i=0;i<n;i++){\n double a=Math.pow(sc.nextInt(),2)+Math.pow(sc.nextInt(),2);\n if(a<=dd){\n count++;\n }\n }\n System.out.println(count);\n}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\npublic static void main(String[]args){\nScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int d=sc.nextInt();\n double dd=Math.pow(d,2);\n int count=0;\n for(int i=0;i<n;i++){\n double a=Math.pow(sc.nextInt(),2)+Math.pow(sc.nextInt(),2);\n if(a<=dd){\n count++;\n }\n }\n System.out.println(count);\n}\n}",
"Main",
"public static void main(String[]args){\nScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int d=sc.nextInt();\n double dd=Math.pow(d,2);\n int count=0;\n for(int i=0;i<n;i++){\n double a=Math.pow(sc.nextInt(),2)+Math.pow(sc.nextInt(),2);\n if(a<=dd){\n count++;\n }\n }\n System.out.println(count);\n}",
"main",
"{\nScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int d=sc.nextInt();\n double dd=Math.pow(d,2);\n int count=0;\n for(int i=0;i<n;i++){\n double a=Math.pow(sc.nextInt(),2)+Math.pow(sc.nextInt(),2);\n if(a<=dd){\n count++;\n }\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",
"int d=sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double dd=Math.pow(d,2);",
"dd",
"Math.pow(d,2)",
"Math.pow",
"Math",
"d",
"2",
"int count=0;",
"count",
"0",
"for(int i=0;i<n;i++){\n double a=Math.pow(sc.nextInt(),2)+Math.pow(sc.nextInt(),2);\n if(a<=dd){\n count++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n double a=Math.pow(sc.nextInt(),2)+Math.pow(sc.nextInt(),2);\n if(a<=dd){\n count++;\n }\n }",
"{\n double a=Math.pow(sc.nextInt(),2)+Math.pow(sc.nextInt(),2);\n if(a<=dd){\n count++;\n }\n }",
"double a=Math.pow(sc.nextInt(),2)+Math.pow(sc.nextInt(),2);",
"a",
"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(a<=dd){\n count++;\n }",
"a<=dd",
"a",
"dd",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[]args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int d=sc.nextInt();
double dd=Math.pow(d,2);
int count=0;
for(int i=0;i<n;i++){
double a=Math.pow(sc.nextInt(),2)+Math.pow(sc.nextInt(),2);
if(a<=dd){
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,
41,
13,
17,
42,
2,
13,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
40,
13,
14,
2,
4,
18,
13,
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
],
[
69,
5
],
[
69,
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
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
43,
44
],
[
32,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
46,
57
],
[
45,
58
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
]
| [
"import java.util.Scanner;\n\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 m=0;\n int i=0;\n while(i < n){ \n long a = sc.nextLong();\n long b = sc.nextLong();\n i++;\n if(Math.sqrt(a*a + b*b)<=d) m++;\n \n }\n \n System.out.println(m);\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 m=0;\n int i=0;\n while(i < n){ \n long a = sc.nextLong();\n long b = sc.nextLong();\n i++;\n if(Math.sqrt(a*a + b*b)<=d) m++;\n \n }\n \n System.out.println(m);\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 m=0;\n int i=0;\n while(i < n){ \n long a = sc.nextLong();\n long b = sc.nextLong();\n i++;\n if(Math.sqrt(a*a + b*b)<=d) m++;\n \n }\n \n System.out.println(m);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int d = sc.nextInt();\n int m=0;\n int i=0;\n while(i < n){ \n long a = sc.nextLong();\n long b = sc.nextLong();\n i++;\n if(Math.sqrt(a*a + b*b)<=d) m++;\n \n }\n \n System.out.println(m);\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 m=0;",
"m",
"0",
"int i=0;",
"i",
"0",
"while(i < n){ \n long a = sc.nextLong();\n long b = sc.nextLong();\n i++;\n if(Math.sqrt(a*a + b*b)<=d) m++;\n \n }",
"i < n",
"i",
"n",
"{ \n long a = sc.nextLong();\n long b = sc.nextLong();\n i++;\n if(Math.sqrt(a*a + b*b)<=d) m++;\n \n }",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"i++",
"i",
"if(Math.sqrt(a*a + b*b)<=d) m++;",
"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",
"m++",
"m",
"System.out.println(m)",
"System.out.println",
"System.out",
"System",
"System.out",
"m",
"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 m=0;\n int i=0;\n while(i < n){ \n long a = sc.nextLong();\n long b = sc.nextLong();\n i++;\n if(Math.sqrt(a*a + b*b)<=d) m++;\n \n }\n \n System.out.println(m);\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 m=0;\n int i=0;\n while(i < n){ \n long a = sc.nextLong();\n long b = sc.nextLong();\n i++;\n if(Math.sqrt(a*a + b*b)<=d) m++;\n \n }\n \n System.out.println(m);\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 m=0;
int i=0;
while(i < n){
long a = sc.nextLong();
long b = sc.nextLong();
i++;
if(Math.sqrt(a*a + b*b)<=d) m++;
}
System.out.println(m);
}
} |
[
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,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
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
],
[
71,
5
],
[
71,
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
],
[
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
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
33,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tdouble k=scan.nextDouble();\n\t\tint cnt=0;\n\t\tdouble c=0;\n\t\twhile(n-->0) {\n\t\t\tdouble a=scan.nextDouble();\n\t\t\tdouble b=scan.nextDouble();\n\t\t\tc=Math.sqrt((a*a)+(b*b));\n\t\t\t//System.out.println(Math.sqrt(c));\n\t\t\tif(c<=k) cnt++;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tdouble k=scan.nextDouble();\n\t\tint cnt=0;\n\t\tdouble c=0;\n\t\twhile(n-->0) {\n\t\t\tdouble a=scan.nextDouble();\n\t\t\tdouble b=scan.nextDouble();\n\t\t\tc=Math.sqrt((a*a)+(b*b));\n\t\t\t//System.out.println(Math.sqrt(c));\n\t\t\tif(c<=k) cnt++;\n\t\t}\n\t\tSystem.out.println(cnt);\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\tdouble k=scan.nextDouble();\n\t\tint cnt=0;\n\t\tdouble c=0;\n\t\twhile(n-->0) {\n\t\t\tdouble a=scan.nextDouble();\n\t\t\tdouble b=scan.nextDouble();\n\t\t\tc=Math.sqrt((a*a)+(b*b));\n\t\t\t//System.out.println(Math.sqrt(c));\n\t\t\tif(c<=k) cnt++;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tdouble k=scan.nextDouble();\n\t\tint cnt=0;\n\t\tdouble c=0;\n\t\twhile(n-->0) {\n\t\t\tdouble a=scan.nextDouble();\n\t\t\tdouble b=scan.nextDouble();\n\t\t\tc=Math.sqrt((a*a)+(b*b));\n\t\t\t//System.out.println(Math.sqrt(c));\n\t\t\tif(c<=k) cnt++;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n=scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"double k=scan.nextDouble();",
"k",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"int cnt=0;",
"cnt",
"0",
"double c=0;",
"c",
"0",
"while(n-->0) {\n\t\t\tdouble a=scan.nextDouble();\n\t\t\tdouble b=scan.nextDouble();\n\t\t\tc=Math.sqrt((a*a)+(b*b));\n\t\t\t//System.out.println(Math.sqrt(c));\n\t\t\tif(c<=k) cnt++;\n\t\t}",
"n-->0",
"n--",
"n",
"0",
"{\n\t\t\tdouble a=scan.nextDouble();\n\t\t\tdouble b=scan.nextDouble();\n\t\t\tc=Math.sqrt((a*a)+(b*b));\n\t\t\t//System.out.println(Math.sqrt(c));\n\t\t\tif(c<=k) cnt++;\n\t\t}",
"double a=scan.nextDouble();",
"a",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"double b=scan.nextDouble();",
"b",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"c=Math.sqrt((a*a)+(b*b))",
"c",
"Math.sqrt((a*a)+(b*b))",
"Math.sqrt",
"Math",
"(a*a)+(b*b)",
"(a*a)",
"a",
"a",
"(b*b)",
"b",
"b",
"if(c<=k) cnt++;",
"c<=k",
"c",
"k",
"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\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tdouble k=scan.nextDouble();\n\t\tint cnt=0;\n\t\tdouble c=0;\n\t\twhile(n-->0) {\n\t\t\tdouble a=scan.nextDouble();\n\t\t\tdouble b=scan.nextDouble();\n\t\t\tc=Math.sqrt((a*a)+(b*b));\n\t\t\t//System.out.println(Math.sqrt(c));\n\t\t\tif(c<=k) cnt++;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tdouble k=scan.nextDouble();\n\t\tint cnt=0;\n\t\tdouble c=0;\n\t\twhile(n-->0) {\n\t\t\tdouble a=scan.nextDouble();\n\t\t\tdouble b=scan.nextDouble();\n\t\t\tc=Math.sqrt((a*a)+(b*b));\n\t\t\t//System.out.println(Math.sqrt(c));\n\t\t\tif(c<=k) cnt++;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n=scan.nextInt();
double k=scan.nextDouble();
int cnt=0;
double c=0;
while(n-->0) {
double a=scan.nextDouble();
double b=scan.nextDouble();
c=Math.sqrt((a*a)+(b*b));
//System.out.println(Math.sqrt(c));
if(c<=k) 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,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
4,
18,
20,
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
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
77,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
68,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
]
| [
"import java.util.*;\n\npublic class Main{\n void solve(){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n long d = scan.nextInt();\n int out = 0;\n for(int i = 0; i < n; i++){\n long x = scan.nextLong();\n long y = scan.nextLong();\n if(x * x + y * y <= d * d) out++;\n }\n System.out.println(out);\n }\n\n public static void main(String[] args){\n new Main().solve();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n void solve(){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n long d = scan.nextInt();\n int out = 0;\n for(int i = 0; i < n; i++){\n long x = scan.nextLong();\n long y = scan.nextLong();\n if(x * x + y * y <= d * d) out++;\n }\n System.out.println(out);\n }\n\n public static void main(String[] args){\n new Main().solve();\n }\n}",
"Main",
"void solve(){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n long d = scan.nextInt();\n int out = 0;\n for(int i = 0; i < n; i++){\n long x = scan.nextLong();\n long y = scan.nextLong();\n if(x * x + y * y <= d * d) out++;\n }\n System.out.println(out);\n }",
"solve",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n long d = scan.nextInt();\n int out = 0;\n for(int i = 0; i < n; i++){\n long x = scan.nextLong();\n long y = scan.nextLong();\n if(x * x + y * y <= d * d) out++;\n }\n System.out.println(out);\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 out = 0;",
"out",
"0",
"for(int i = 0; i < n; i++){\n long x = scan.nextLong();\n long y = scan.nextLong();\n if(x * x + y * y <= d * d) out++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long x = scan.nextLong();\n long y = scan.nextLong();\n if(x * x + y * y <= d * d) out++;\n }",
"{\n long x = scan.nextLong();\n long y = scan.nextLong();\n if(x * x + y * y <= d * d) out++;\n }",
"long x = scan.nextLong();",
"x",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long y = scan.nextLong();",
"y",
"scan.nextLong()",
"scan.nextLong",
"scan",
"if(x * x + y * y <= d * d) out++;",
"x * x + y * y <= d * d",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"d * d",
"d",
"d",
"out++",
"out",
"System.out.println(out)",
"System.out.println",
"System.out",
"System",
"System.out",
"out",
"public static void main(String[] args){\n new Main().solve();\n }",
"main",
"{\n new Main().solve();\n }",
"new Main().solve()",
"new Main().solve",
"new Main()",
"String[] args",
"args",
"public class Main{\n void solve(){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n long d = scan.nextInt();\n int out = 0;\n for(int i = 0; i < n; i++){\n long x = scan.nextLong();\n long y = scan.nextLong();\n if(x * x + y * y <= d * d) out++;\n }\n System.out.println(out);\n }\n\n public static void main(String[] args){\n new Main().solve();\n }\n}",
"public class Main{\n void solve(){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n long d = scan.nextInt();\n int out = 0;\n for(int i = 0; i < n; i++){\n long x = scan.nextLong();\n long y = scan.nextLong();\n if(x * x + y * y <= d * d) out++;\n }\n System.out.println(out);\n }\n\n public static void main(String[] args){\n new Main().solve();\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
void solve(){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
long d = scan.nextInt();
int out = 0;
for(int i = 0; i < n; i++){
long x = scan.nextLong();
long y = scan.nextLong();
if(x * x + y * y <= d * d) out++;
}
System.out.println(out);
}
public static void main(String[] args){
new Main().solve();
}
}
|
[
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,
14,
2,
4,
13,
4,
18,
13,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
23,
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
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
40,
45
],
[
45,
46
],
[
46,
47
],
[
39,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
6,
58
],
[
58,
59
],
[
79,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
60,
74
],
[
74,
75
],
[
60,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
]
| [
"import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint d = scan.nextInt();\n//\t\tint[][] xy = new int[n][2];\n\t\tint count = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(cal(scan.nextLong(), scan.nextLong()) <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\t\n\tprivate static double cal(long x, long y) {\n\t\treturn Math.sqrt(x*x + y*y);\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint d = scan.nextInt();\n//\t\tint[][] xy = new int[n][2];\n\t\tint count = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(cal(scan.nextLong(), scan.nextLong()) <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\t\n\tprivate static double cal(long x, long y) {\n\t\treturn Math.sqrt(x*x + y*y);\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 d = scan.nextInt();\n//\t\tint[][] xy = new int[n][2];\n\t\tint count = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(cal(scan.nextLong(), scan.nextLong()) <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint d = scan.nextInt();\n//\t\tint[][] xy = new int[n][2];\n\t\tint count = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(cal(scan.nextLong(), scan.nextLong()) <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"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 count = 0;",
"count",
"0",
"for(int i = 0; i < n; i++) {\n\t\t\tif(cal(scan.nextLong(), scan.nextLong()) <= 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\tif(cal(scan.nextLong(), scan.nextLong()) <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(cal(scan.nextLong(), scan.nextLong()) <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"if(cal(scan.nextLong(), scan.nextLong()) <= d) {\n\t\t\t\tcount++;\n\t\t\t}",
"cal(scan.nextLong(), scan.nextLong()) <= d",
"cal(scan.nextLong(), scan.nextLong())",
"cal",
"scan.nextLong()",
"scan.nextLong",
"scan",
"scan.nextLong()",
"scan.nextLong",
"scan",
"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",
"private static double cal(long x, long y) {\n\t\treturn Math.sqrt(x*x + y*y);\n\t}",
"cal",
"{\n\t\treturn Math.sqrt(x*x + y*y);\n\t}",
"return Math.sqrt(x*x + y*y);",
"Math.sqrt(x*x + y*y)",
"Math.sqrt",
"Math",
"x*x + y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"long x",
"x",
"long y",
"y",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint d = scan.nextInt();\n//\t\tint[][] xy = new int[n][2];\n\t\tint count = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(cal(scan.nextLong(), scan.nextLong()) <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\t\n\tprivate static double cal(long x, long y) {\n\t\treturn Math.sqrt(x*x + y*y);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint d = scan.nextInt();\n//\t\tint[][] xy = new int[n][2];\n\t\tint count = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(cal(scan.nextLong(), scan.nextLong()) <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\t\n\tprivate static double cal(long x, long y) {\n\t\treturn Math.sqrt(x*x + y*y);\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 d = scan.nextInt();
// int[][] xy = new int[n][2];
int count = 0;
for(int i = 0; i < n; i++) {
if(cal(scan.nextLong(), scan.nextLong()) <= d) {
count++;
}
}
System.out.println(count);
}
private static double cal(long x, long y) {
return Math.sqrt(x*x + y*y);
}
} |
[
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,
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,
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
],
[
85,
5
],
[
85,
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
],
[
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
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
43,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
43,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
61,
72
],
[
60,
73
],
[
73,
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.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n\n\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int d = Integer.parseInt(sc.next());\n\n int count = 0;\n\n for (int i = 0; i < n; i++) {\n double x1 = Double.parseDouble(sc.next());\n double x2 = Double.parseDouble(sc.next());\n\n if (Math.sqrt(x1 * x1 + x2 * x2) <= d) {\n count++;\n }\n }\n\n System.out.println(count);\n\n\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n\n\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int d = Integer.parseInt(sc.next());\n\n int count = 0;\n\n for (int i = 0; i < n; i++) {\n double x1 = Double.parseDouble(sc.next());\n double x2 = Double.parseDouble(sc.next());\n\n if (Math.sqrt(x1 * x1 + x2 * x2) <= d) {\n count++;\n }\n }\n\n System.out.println(count);\n\n\n }\n\n}",
"Main",
"public static void main(String[] args) {\n\n\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int d = Integer.parseInt(sc.next());\n\n int count = 0;\n\n for (int i = 0; i < n; i++) {\n double x1 = Double.parseDouble(sc.next());\n double x2 = Double.parseDouble(sc.next());\n\n if (Math.sqrt(x1 * x1 + x2 * x2) <= d) {\n count++;\n }\n }\n\n System.out.println(count);\n\n\n }",
"main",
"{\n\n\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int d = Integer.parseInt(sc.next());\n\n int count = 0;\n\n for (int i = 0; i < n; i++) {\n double x1 = Double.parseDouble(sc.next());\n double x2 = Double.parseDouble(sc.next());\n\n if (Math.sqrt(x1 * x1 + x2 * x2) <= d) {\n count++;\n }\n }\n\n System.out.println(count);\n\n\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",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < n; i++) {\n double x1 = Double.parseDouble(sc.next());\n double x2 = Double.parseDouble(sc.next());\n\n if (Math.sqrt(x1 * x1 + x2 * x2) <= d) {\n count++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n double x1 = Double.parseDouble(sc.next());\n double x2 = Double.parseDouble(sc.next());\n\n if (Math.sqrt(x1 * x1 + x2 * x2) <= d) {\n count++;\n }\n }",
"{\n double x1 = Double.parseDouble(sc.next());\n double x2 = Double.parseDouble(sc.next());\n\n if (Math.sqrt(x1 * x1 + x2 * x2) <= d) {\n count++;\n }\n }",
"double x1 = Double.parseDouble(sc.next());",
"x1",
"Double.parseDouble(sc.next())",
"Double.parseDouble",
"Double",
"sc.next()",
"sc.next",
"sc",
"double x2 = Double.parseDouble(sc.next());",
"x2",
"Double.parseDouble(sc.next())",
"Double.parseDouble",
"Double",
"sc.next()",
"sc.next",
"sc",
"if (Math.sqrt(x1 * x1 + x2 * x2) <= d) {\n count++;\n }",
"Math.sqrt(x1 * x1 + x2 * x2) <= d",
"Math.sqrt(x1 * x1 + x2 * x2)",
"Math.sqrt",
"Math",
"x1 * x1 + x2 * x2",
"x1 * x1",
"x1",
"x1",
"x2 * x2",
"x2",
"x2",
"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\n\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int d = Integer.parseInt(sc.next());\n\n int count = 0;\n\n for (int i = 0; i < n; i++) {\n double x1 = Double.parseDouble(sc.next());\n double x2 = Double.parseDouble(sc.next());\n\n if (Math.sqrt(x1 * x1 + x2 * x2) <= d) {\n count++;\n }\n }\n\n System.out.println(count);\n\n\n }\n\n}",
"public class Main {\n public static void main(String[] args) {\n\n\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int d = Integer.parseInt(sc.next());\n\n int count = 0;\n\n for (int i = 0; i < n; i++) {\n double x1 = Double.parseDouble(sc.next());\n double x2 = Double.parseDouble(sc.next());\n\n if (Math.sqrt(x1 * x1 + x2 * x2) <= d) {\n count++;\n }\n }\n\n System.out.println(count);\n\n\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 = Integer.parseInt(sc.next());
int d = Integer.parseInt(sc.next());
int count = 0;
for (int i = 0; i < n; i++) {
double x1 = Double.parseDouble(sc.next());
double x2 = Double.parseDouble(sc.next());
if (Math.sqrt(x1 * x1 + x2 * x2) <= 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,
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,
4,
18,
13,
13,
13,
14,
2,
13,
13,
40,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
82,
5
],
[
82,
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
],
[
31,
33
],
[
8,
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
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
46,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tlong x = 0;\n\t\tlong y = 0;\n\t\tint count = 0;\n\t\tdouble distance = 0;\n\n\t\tfor (int i = 0; i < N; i++ ) {\n\t\t\tx = sc.nextLong();\n\t\t\ty = sc.nextLong();\n\t\t\tdistance = Math.hypot(x, y);\n\t\t\tif (distance <= D) count++;\n\t\t}\n\n\t\tsc.close();\n\n\t\tSystem.out.println(count);\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\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tlong x = 0;\n\t\tlong y = 0;\n\t\tint count = 0;\n\t\tdouble distance = 0;\n\n\t\tfor (int i = 0; i < N; i++ ) {\n\t\t\tx = sc.nextLong();\n\t\t\ty = sc.nextLong();\n\t\t\tdistance = Math.hypot(x, y);\n\t\t\tif (distance <= D) count++;\n\t\t}\n\n\t\tsc.close();\n\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tlong x = 0;\n\t\tlong y = 0;\n\t\tint count = 0;\n\t\tdouble distance = 0;\n\n\t\tfor (int i = 0; i < N; i++ ) {\n\t\t\tx = sc.nextLong();\n\t\t\ty = sc.nextLong();\n\t\t\tdistance = Math.hypot(x, y);\n\t\t\tif (distance <= D) count++;\n\t\t}\n\n\t\tsc.close();\n\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tlong x = 0;\n\t\tlong y = 0;\n\t\tint count = 0;\n\t\tdouble distance = 0;\n\n\t\tfor (int i = 0; i < N; i++ ) {\n\t\t\tx = sc.nextLong();\n\t\t\ty = sc.nextLong();\n\t\t\tdistance = Math.hypot(x, y);\n\t\t\tif (distance <= D) count++;\n\t\t}\n\n\t\tsc.close();\n\n\t\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",
"long x = 0;",
"x",
"0",
"long y = 0;",
"y",
"0",
"int count = 0;",
"count",
"0",
"double distance = 0;",
"distance",
"0",
"for (int i = 0; i < N; i++ ) {\n\t\t\tx = sc.nextLong();\n\t\t\ty = sc.nextLong();\n\t\t\tdistance = Math.hypot(x, y);\n\t\t\tif (distance <= D) count++;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tx = sc.nextLong();\n\t\t\ty = sc.nextLong();\n\t\t\tdistance = Math.hypot(x, y);\n\t\t\tif (distance <= D) count++;\n\t\t}",
"{\n\t\t\tx = sc.nextLong();\n\t\t\ty = sc.nextLong();\n\t\t\tdistance = Math.hypot(x, y);\n\t\t\tif (distance <= D) count++;\n\t\t}",
"x = sc.nextLong()",
"x",
"sc.nextLong()",
"sc.nextLong",
"sc",
"y = sc.nextLong()",
"y",
"sc.nextLong()",
"sc.nextLong",
"sc",
"distance = Math.hypot(x, y)",
"distance",
"Math.hypot(x, y)",
"Math.hypot",
"Math",
"x",
"y",
"if (distance <= D) count++;",
"distance <= D",
"distance",
"D",
"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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tlong x = 0;\n\t\tlong y = 0;\n\t\tint count = 0;\n\t\tdouble distance = 0;\n\n\t\tfor (int i = 0; i < N; i++ ) {\n\t\t\tx = sc.nextLong();\n\t\t\ty = sc.nextLong();\n\t\t\tdistance = Math.hypot(x, y);\n\t\t\tif (distance <= D) count++;\n\t\t}\n\n\t\tsc.close();\n\n\t\tSystem.out.println(count);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tlong x = 0;\n\t\tlong y = 0;\n\t\tint count = 0;\n\t\tdouble distance = 0;\n\n\t\tfor (int i = 0; i < N; i++ ) {\n\t\t\tx = sc.nextLong();\n\t\t\ty = sc.nextLong();\n\t\t\tdistance = Math.hypot(x, y);\n\t\t\tif (distance <= D) count++;\n\t\t}\n\n\t\tsc.close();\n\n\t\tSystem.out.println(count);\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();
int D = sc.nextInt();
long x = 0;
long y = 0;
int count = 0;
double distance = 0;
for (int i = 0; i < N; i++ ) {
x = sc.nextLong();
y = sc.nextLong();
distance = Math.hypot(x, y);
if (distance <= 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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
107,
5
],
[
107,
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
],
[
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
],
[
75,
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
],
[
74,
93
],
[
73,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
6,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
]
| [
"import java.util.Scanner;\n \npublic class Main {\n \n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();//点の数\n \tint d = sc.nextInt();//距離\n long x[] =new long[n];\n long y[] =new long[n];\n \tint count=0;\n \n for(int i=0;i<n;i++){\n x[i]=sc.nextLong(); \n y[i]=sc.nextLong(); \n }\n \n for(int i=0;i<n;i++){\n \tif(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){\n\t\t\tcount+=1;\n }\n }\n \n System.out.println(count); \n } \n}\n\n\n\n\n\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n \n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();//点の数\n \tint d = sc.nextInt();//距離\n long x[] =new long[n];\n long y[] =new long[n];\n \tint count=0;\n \n for(int i=0;i<n;i++){\n x[i]=sc.nextLong(); \n y[i]=sc.nextLong(); \n }\n \n for(int i=0;i<n;i++){\n \tif(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){\n\t\t\tcount+=1;\n }\n }\n \n System.out.println(count); \n } \n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();//点の数\n \tint d = sc.nextInt();//距離\n long x[] =new long[n];\n long y[] =new long[n];\n \tint count=0;\n \n for(int i=0;i<n;i++){\n x[i]=sc.nextLong(); \n y[i]=sc.nextLong(); \n }\n \n for(int i=0;i<n;i++){\n \tif(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){\n\t\t\tcount+=1;\n }\n }\n \n System.out.println(count); \n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();//点の数\n \tint d = sc.nextInt();//距離\n long x[] =new long[n];\n long y[] =new long[n];\n \tint count=0;\n \n for(int i=0;i<n;i++){\n x[i]=sc.nextLong(); \n y[i]=sc.nextLong(); \n }\n \n for(int i=0;i<n;i++){\n \tif(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){\n\t\t\tcount+=1;\n }\n }\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",
"int 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 count=0;",
"count",
"0",
"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",
"for(int i=0;i<n;i++){\n \tif(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){\n\t\t\tcount+=1;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tif(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){\n\t\t\tcount+=1;\n }\n }",
"{\n \tif(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){\n\t\t\tcount+=1;\n }\n }",
"if(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){\n\t\t\tcount+=1;\n }",
"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",
"d",
"{\n\t\t\tcount+=1;\n }",
"count+=1",
"count",
"1",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n \n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();//点の数\n \tint d = sc.nextInt();//距離\n long x[] =new long[n];\n long y[] =new long[n];\n \tint count=0;\n \n for(int i=0;i<n;i++){\n x[i]=sc.nextLong(); \n y[i]=sc.nextLong(); \n }\n \n for(int i=0;i<n;i++){\n \tif(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){\n\t\t\tcount+=1;\n }\n }\n \n System.out.println(count); \n } \n}",
"public class Main {\n \n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();//点の数\n \tint d = sc.nextInt();//距離\n long x[] =new long[n];\n long y[] =new long[n];\n \tint count=0;\n \n for(int i=0;i<n;i++){\n x[i]=sc.nextLong(); \n y[i]=sc.nextLong(); \n }\n \n for(int i=0;i<n;i++){\n \tif(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){\n\t\t\tcount+=1;\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 sc = new Scanner(System.in);
int n = sc.nextInt();//点の数
int d = sc.nextInt();//距離
long x[] =new long[n];
long y[] =new long[n];
int count=0;
for(int i=0;i<n;i++){
x[i]=sc.nextLong();
y[i]=sc.nextLong();
}
for(int i=0;i<n;i++){
if(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){
count+=1;
}
}
System.out.println(count);
}
}
|
[
7,
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,
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,
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
126,
17
],
[
126,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
20,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
40,
42
],
[
20,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
48,
50
],
[
20,
51
],
[
51,
52
],
[
51,
53
],
[
20,
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
],
[
66,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
66,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
83,
85
],
[
66,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
91,
93
],
[
66,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
105,
109
],
[
66,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
20,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
18,
123
],
[
123,
124
],
[
0,
125
],
[
125,
126
],
[
125,
127
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.LinkedHashSet;\nimport java.util.Random;\n\npublic class Main {\n\n\n public static void main(String[] args) throws IOException {\n BufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n//\n String s=read.readLine();\n String ss[]=s.split(\" \");\n int n=Integer.parseInt(ss[0]);\n int d=Integer.parseInt(ss[1]);\n int c=0;\n for(int i=0;i<n;i++){\n String co=read.readLine();\n String ss2[]=co.split(\" \");\n int x=Integer.parseInt(ss2[0]);\n int y=Integer.parseInt(ss2[1]);\n double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(dist<=d){\n c++;\n }\n }\n System.out.println(c);\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.LinkedHashSet;",
"LinkedHashSet",
"java.util",
"import java.util.Random;",
"Random",
"java.util",
"public class Main {\n\n\n public static void main(String[] args) throws IOException {\n BufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n//\n String s=read.readLine();\n String ss[]=s.split(\" \");\n int n=Integer.parseInt(ss[0]);\n int d=Integer.parseInt(ss[1]);\n int c=0;\n for(int i=0;i<n;i++){\n String co=read.readLine();\n String ss2[]=co.split(\" \");\n int x=Integer.parseInt(ss2[0]);\n int y=Integer.parseInt(ss2[1]);\n double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(dist<=d){\n c++;\n }\n }\n System.out.println(c);\n\n }\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n//\n String s=read.readLine();\n String ss[]=s.split(\" \");\n int n=Integer.parseInt(ss[0]);\n int d=Integer.parseInt(ss[1]);\n int c=0;\n for(int i=0;i<n;i++){\n String co=read.readLine();\n String ss2[]=co.split(\" \");\n int x=Integer.parseInt(ss2[0]);\n int y=Integer.parseInt(ss2[1]);\n double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(dist<=d){\n c++;\n }\n }\n System.out.println(c);\n\n }",
"main",
"{\n BufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n//\n String s=read.readLine();\n String ss[]=s.split(\" \");\n int n=Integer.parseInt(ss[0]);\n int d=Integer.parseInt(ss[1]);\n int c=0;\n for(int i=0;i<n;i++){\n String co=read.readLine();\n String ss2[]=co.split(\" \");\n int x=Integer.parseInt(ss2[0]);\n int y=Integer.parseInt(ss2[1]);\n double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(dist<=d){\n c++;\n }\n }\n System.out.println(c);\n\n }",
"BufferedReader read = new BufferedReader(new InputStreamReader(System.in));",
"read",
"new BufferedReader(new InputStreamReader(System.in))",
"String s=read.readLine();",
"s",
"read.readLine()",
"read.readLine",
"read",
"String ss[]=s.split(\" \");",
"ss",
"s.split(\" \")",
"s.split",
"s",
"\" \"",
"int n=Integer.parseInt(ss[0]);",
"n",
"Integer.parseInt(ss[0])",
"Integer.parseInt",
"Integer",
"ss[0]",
"ss",
"0",
"int d=Integer.parseInt(ss[1]);",
"d",
"Integer.parseInt(ss[1])",
"Integer.parseInt",
"Integer",
"ss[1]",
"ss",
"1",
"int c=0;",
"c",
"0",
"for(int i=0;i<n;i++){\n String co=read.readLine();\n String ss2[]=co.split(\" \");\n int x=Integer.parseInt(ss2[0]);\n int y=Integer.parseInt(ss2[1]);\n double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(dist<=d){\n c++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String co=read.readLine();\n String ss2[]=co.split(\" \");\n int x=Integer.parseInt(ss2[0]);\n int y=Integer.parseInt(ss2[1]);\n double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(dist<=d){\n c++;\n }\n }",
"{\n String co=read.readLine();\n String ss2[]=co.split(\" \");\n int x=Integer.parseInt(ss2[0]);\n int y=Integer.parseInt(ss2[1]);\n double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(dist<=d){\n c++;\n }\n }",
"String co=read.readLine();",
"co",
"read.readLine()",
"read.readLine",
"read",
"String ss2[]=co.split(\" \");",
"ss2",
"co.split(\" \")",
"co.split",
"co",
"\" \"",
"int x=Integer.parseInt(ss2[0]);",
"x",
"Integer.parseInt(ss2[0])",
"Integer.parseInt",
"Integer",
"ss2[0]",
"ss2",
"0",
"int y=Integer.parseInt(ss2[1]);",
"y",
"Integer.parseInt(ss2[1])",
"Integer.parseInt",
"Integer",
"ss2[1]",
"ss2",
"1",
"double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));",
"dist",
"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(dist<=d){\n c++;\n }",
"dist<=d",
"dist",
"d",
"{\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\n\n public static void main(String[] args) throws IOException {\n BufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n//\n String s=read.readLine();\n String ss[]=s.split(\" \");\n int n=Integer.parseInt(ss[0]);\n int d=Integer.parseInt(ss[1]);\n int c=0;\n for(int i=0;i<n;i++){\n String co=read.readLine();\n String ss2[]=co.split(\" \");\n int x=Integer.parseInt(ss2[0]);\n int y=Integer.parseInt(ss2[1]);\n double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(dist<=d){\n c++;\n }\n }\n System.out.println(c);\n\n }\n\n}",
"public class Main {\n\n\n public static void main(String[] args) throws IOException {\n BufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n//\n String s=read.readLine();\n String ss[]=s.split(\" \");\n int n=Integer.parseInt(ss[0]);\n int d=Integer.parseInt(ss[1]);\n int c=0;\n for(int i=0;i<n;i++){\n String co=read.readLine();\n String ss2[]=co.split(\" \");\n int x=Integer.parseInt(ss2[0]);\n int y=Integer.parseInt(ss2[1]);\n double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));\n if(dist<=d){\n c++;\n }\n }\n System.out.println(c);\n\n }\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.LinkedHashSet;
import java.util.Random;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
//
String s=read.readLine();
String ss[]=s.split(" ");
int n=Integer.parseInt(ss[0]);
int d=Integer.parseInt(ss[1]);
int c=0;
for(int i=0;i<n;i++){
String co=read.readLine();
String ss2[]=co.split(" ");
int x=Integer.parseInt(ss2[0]);
int y=Integer.parseInt(ss2[1]);
double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
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,
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,
40,
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
],
[
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
],
[
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) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b=sc.nextInt();\n int temp=0;\n for(int i=0;i<a;i++){\n int c=sc.nextInt();\n int d=sc.nextInt();\n double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));\n if(b>=e){\n temp++;\n }\n }\n System.out.println(temp);\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 a = sc.nextInt();\n int b=sc.nextInt();\n int temp=0;\n for(int i=0;i<a;i++){\n int c=sc.nextInt();\n int d=sc.nextInt();\n double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));\n if(b>=e){\n temp++;\n }\n }\n System.out.println(temp);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b=sc.nextInt();\n int temp=0;\n for(int i=0;i<a;i++){\n int c=sc.nextInt();\n int d=sc.nextInt();\n double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));\n if(b>=e){\n temp++;\n }\n }\n System.out.println(temp);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b=sc.nextInt();\n int temp=0;\n for(int i=0;i<a;i++){\n int c=sc.nextInt();\n int d=sc.nextInt();\n double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));\n if(b>=e){\n temp++;\n }\n }\n System.out.println(temp);\n }",
"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 temp=0;",
"temp",
"0",
"for(int i=0;i<a;i++){\n int c=sc.nextInt();\n int d=sc.nextInt();\n double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));\n if(b>=e){\n temp++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\n int c=sc.nextInt();\n int d=sc.nextInt();\n double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));\n if(b>=e){\n temp++;\n }\n }",
"{\n int c=sc.nextInt();\n int d=sc.nextInt();\n double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));\n if(b>=e){\n temp++;\n }\n }",
"int c=sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d=sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));",
"e",
"Math.sqrt(Math.pow(c,2)+Math.pow(d,2))",
"Math.sqrt",
"Math",
"Math.pow(c,2)+Math.pow(d,2)",
"Math.pow(c,2)",
"Math.pow",
"Math",
"c",
"2",
"Math.pow(d,2)",
"Math.pow",
"Math",
"d",
"2",
"if(b>=e){\n temp++;\n }",
"b>=e",
"b",
"e",
"{\n temp++;\n }",
"temp++",
"temp",
"System.out.println(temp)",
"System.out.println",
"System.out",
"System",
"System.out",
"temp",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b=sc.nextInt();\n int temp=0;\n for(int i=0;i<a;i++){\n int c=sc.nextInt();\n int d=sc.nextInt();\n double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));\n if(b>=e){\n temp++;\n }\n }\n System.out.println(temp);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b=sc.nextInt();\n int temp=0;\n for(int i=0;i<a;i++){\n int c=sc.nextInt();\n int d=sc.nextInt();\n double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));\n if(b>=e){\n temp++;\n }\n }\n System.out.println(temp);\n }\n}",
"Main"
]
| 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 temp=0;
for(int i=0;i<a;i++){
int c=sc.nextInt();
int d=sc.nextInt();
double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));
if(b>=e){
temp++;
}
}
System.out.println(temp);
}
}
|
[
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,
41,
13,
41,
13,
17,
41,
13,
4,
18,
13,
13,
0,
13,
4,
18,
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,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
13,
17,
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
],
[
115,
8
],
[
115,
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
],
[
11,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
11,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
11,
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
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
56,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
56,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
56,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
56,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
56,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
98,
103
],
[
97,
104
],
[
104,
105
],
[
11,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
9,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
]
]
| [
"import java.util.*;\nimport java.math.BigInteger;\n \npublic class Main{\n public static void main(String args[]){\n \tScanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int x, y, p=0;\n BigInteger p1 = BigInteger.valueOf(d);\n p1 = p1.multiply(p1);\n for(int i = 0; i < n ; i++){\n \tx = sc.nextInt();\n \ty = sc.nextInt();\n \tBigInteger r = BigInteger.valueOf(x);\n \tr = r.multiply(r);\n \tBigInteger s = BigInteger.valueOf(y);\n \ts = s.multiply(s);\n \tr = r.add(s);\n \tif(r.compareTo(p1) <= 0)\n \tp++;\n }\n System.out.println(p);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main{\n public static void main(String args[]){\n \tScanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int x, y, p=0;\n BigInteger p1 = BigInteger.valueOf(d);\n p1 = p1.multiply(p1);\n for(int i = 0; i < n ; i++){\n \tx = sc.nextInt();\n \ty = sc.nextInt();\n \tBigInteger r = BigInteger.valueOf(x);\n \tr = r.multiply(r);\n \tBigInteger s = BigInteger.valueOf(y);\n \ts = s.multiply(s);\n \tr = r.add(s);\n \tif(r.compareTo(p1) <= 0)\n \tp++;\n }\n System.out.println(p);\n }\n}",
"Main",
"public static void main(String args[]){\n \tScanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int x, y, p=0;\n BigInteger p1 = BigInteger.valueOf(d);\n p1 = p1.multiply(p1);\n for(int i = 0; i < n ; i++){\n \tx = sc.nextInt();\n \ty = sc.nextInt();\n \tBigInteger r = BigInteger.valueOf(x);\n \tr = r.multiply(r);\n \tBigInteger s = BigInteger.valueOf(y);\n \ts = s.multiply(s);\n \tr = r.add(s);\n \tif(r.compareTo(p1) <= 0)\n \tp++;\n }\n System.out.println(p);\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int x, y, p=0;\n BigInteger p1 = BigInteger.valueOf(d);\n p1 = p1.multiply(p1);\n for(int i = 0; i < n ; i++){\n \tx = sc.nextInt();\n \ty = sc.nextInt();\n \tBigInteger r = BigInteger.valueOf(x);\n \tr = r.multiply(r);\n \tBigInteger s = BigInteger.valueOf(y);\n \ts = s.multiply(s);\n \tr = r.add(s);\n \tif(r.compareTo(p1) <= 0)\n \tp++;\n }\n System.out.println(p);\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",
"x",
"y",
"y",
"p=0;",
"p",
"0",
"BigInteger p1 = BigInteger.valueOf(d);",
"p1",
"BigInteger.valueOf(d)",
"BigInteger.valueOf",
"BigInteger",
"d",
"p1 = p1.multiply(p1)",
"p1",
"p1.multiply(p1)",
"p1.multiply",
"p1",
"p1",
"for(int i = 0; i < n ; i++){\n \tx = sc.nextInt();\n \ty = sc.nextInt();\n \tBigInteger r = BigInteger.valueOf(x);\n \tr = r.multiply(r);\n \tBigInteger s = BigInteger.valueOf(y);\n \ts = s.multiply(s);\n \tr = r.add(s);\n \tif(r.compareTo(p1) <= 0)\n \tp++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tx = sc.nextInt();\n \ty = sc.nextInt();\n \tBigInteger r = BigInteger.valueOf(x);\n \tr = r.multiply(r);\n \tBigInteger s = BigInteger.valueOf(y);\n \ts = s.multiply(s);\n \tr = r.add(s);\n \tif(r.compareTo(p1) <= 0)\n \tp++;\n }",
"{\n \tx = sc.nextInt();\n \ty = sc.nextInt();\n \tBigInteger r = BigInteger.valueOf(x);\n \tr = r.multiply(r);\n \tBigInteger s = BigInteger.valueOf(y);\n \ts = s.multiply(s);\n \tr = r.add(s);\n \tif(r.compareTo(p1) <= 0)\n \tp++;\n }",
"x = sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"y = sc.nextInt()",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"BigInteger r = BigInteger.valueOf(x);",
"r",
"BigInteger.valueOf(x)",
"BigInteger.valueOf",
"BigInteger",
"x",
"r = r.multiply(r)",
"r",
"r.multiply(r)",
"r.multiply",
"r",
"r",
"BigInteger s = BigInteger.valueOf(y);",
"s",
"BigInteger.valueOf(y)",
"BigInteger.valueOf",
"BigInteger",
"y",
"s = s.multiply(s)",
"s",
"s.multiply(s)",
"s.multiply",
"s",
"s",
"r = r.add(s)",
"r",
"r.add(s)",
"r.add",
"r",
"s",
"if(r.compareTo(p1) <= 0)\n \tp++;",
"r.compareTo(p1) <= 0",
"r.compareTo(p1)",
"r.compareTo",
"r",
"p1",
"0",
"p++",
"p",
"System.out.println(p)",
"System.out.println",
"System.out",
"System",
"System.out",
"p",
"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 int d = sc.nextInt();\n int x, y, p=0;\n BigInteger p1 = BigInteger.valueOf(d);\n p1 = p1.multiply(p1);\n for(int i = 0; i < n ; i++){\n \tx = sc.nextInt();\n \ty = sc.nextInt();\n \tBigInteger r = BigInteger.valueOf(x);\n \tr = r.multiply(r);\n \tBigInteger s = BigInteger.valueOf(y);\n \ts = s.multiply(s);\n \tr = r.add(s);\n \tif(r.compareTo(p1) <= 0)\n \tp++;\n }\n System.out.println(p);\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 int d = sc.nextInt();\n int x, y, p=0;\n BigInteger p1 = BigInteger.valueOf(d);\n p1 = p1.multiply(p1);\n for(int i = 0; i < n ; i++){\n \tx = sc.nextInt();\n \ty = sc.nextInt();\n \tBigInteger r = BigInteger.valueOf(x);\n \tr = r.multiply(r);\n \tBigInteger s = BigInteger.valueOf(y);\n \ts = s.multiply(s);\n \tr = r.add(s);\n \tif(r.compareTo(p1) <= 0)\n \tp++;\n }\n System.out.println(p);\n }\n}",
"Main"
]
| import java.util.*;
import java.math.BigInteger;
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, y, p=0;
BigInteger p1 = BigInteger.valueOf(d);
p1 = p1.multiply(p1);
for(int i = 0; i < n ; i++){
x = sc.nextInt();
y = sc.nextInt();
BigInteger r = BigInteger.valueOf(x);
r = r.multiply(r);
BigInteger s = BigInteger.valueOf(y);
s = s.multiply(s);
r = r.add(s);
if(r.compareTo(p1) <= 0)
p++;
}
System.out.println(p);
}
} |
[
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,
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
],
[
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
],
[
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
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
93,
95
],
[
75,
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.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\t\n\t\tint[] x = new int[n];\n\t\tint[] y = new int[n];\n\t\tfor(int i=0; i < n;i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint count=0;\n\t\tdouble dis = 0;\n\t\t\n\t\tfor(int i=0; i < n; i++) {\n\t\t\tdis = Math.sqrt((long)x[i]*x[i] + (long)y[i]*y[i]);\n\t\t\tif(dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t\t\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\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\t\n\t\tint[] x = new int[n];\n\t\tint[] y = new int[n];\n\t\tfor(int i=0; i < n;i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint count=0;\n\t\tdouble dis = 0;\n\t\t\n\t\tfor(int i=0; i < n; i++) {\n\t\t\tdis = Math.sqrt((long)x[i]*x[i] + (long)y[i]*y[i]);\n\t\t\tif(dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\t\n\t\tint[] x = new int[n];\n\t\tint[] y = new int[n];\n\t\tfor(int i=0; i < n;i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint count=0;\n\t\tdouble dis = 0;\n\t\t\n\t\tfor(int i=0; i < n; i++) {\n\t\t\tdis = Math.sqrt((long)x[i]*x[i] + (long)y[i]*y[i]);\n\t\t\tif(dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\t\n\t\tint[] x = new int[n];\n\t\tint[] y = new int[n];\n\t\tfor(int i=0; i < n;i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint count=0;\n\t\tdouble dis = 0;\n\t\t\n\t\tfor(int i=0; i < n; i++) {\n\t\t\tdis = Math.sqrt((long)x[i]*x[i] + (long)y[i]*y[i]);\n\t\t\tif(dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t\t\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[] 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\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}",
"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 count=0;",
"count",
"0",
"double dis = 0;",
"dis",
"0",
"for(int i=0; i < n; i++) {\n\t\t\tdis = Math.sqrt((long)x[i]*x[i] + (long)y[i]*y[i]);\n\t\t\tif(dis <= 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\tdis = Math.sqrt((long)x[i]*x[i] + (long)y[i]*y[i]);\n\t\t\tif(dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tdis = Math.sqrt((long)x[i]*x[i] + (long)y[i]*y[i]);\n\t\t\tif(dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"dis = Math.sqrt((long)x[i]*x[i] + (long)y[i]*y[i])",
"dis",
"Math.sqrt((long)x[i]*x[i] + (long)y[i]*y[i])",
"Math.sqrt",
"Math",
"(long)x[i]*x[i] + (long)y[i]*y[i]",
"(long)x[i]*x[i]",
"(long)x[i]",
"x",
"i",
"x[i]",
"x",
"i",
"(long)y[i]*y[i]",
"(long)y[i]",
"y",
"i",
"y[i]",
"y",
"i",
"if(dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}",
"dis <= d",
"dis",
"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\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\t\n\t\tint[] x = new int[n];\n\t\tint[] y = new int[n];\n\t\tfor(int i=0; i < n;i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint count=0;\n\t\tdouble dis = 0;\n\t\t\n\t\tfor(int i=0; i < n; i++) {\n\t\t\tdis = Math.sqrt((long)x[i]*x[i] + (long)y[i]*y[i]);\n\t\t\tif(dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\t\n\t\tint[] x = new int[n];\n\t\tint[] y = new int[n];\n\t\tfor(int i=0; i < n;i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint count=0;\n\t\tdouble dis = 0;\n\t\t\n\t\tfor(int i=0; i < n; i++) {\n\t\t\tdis = Math.sqrt((long)x[i]*x[i] + (long)y[i]*y[i]);\n\t\t\tif(dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\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) {
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 count=0;
double dis = 0;
for(int i=0; i < n; i++) {
dis = Math.sqrt((long)x[i]*x[i] + (long)y[i]*y[i]);
if(dis <= d) {
count++;
}
}
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,
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,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
41,
13,
4,
18,
13,
13,
14,
2,
2,
4,
18,
13,
13,
17,
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
],
[
140,
8
],
[
140,
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
],
[
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
],
[
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
],
[
11,
69
],
[
69,
70
],
[
70,
71
],
[
11,
72
],
[
72,
73
],
[
72,
74
],
[
11,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
75,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
90,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
87,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
87,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
116,
121
],
[
115,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
122,
127
],
[
114,
128
],
[
128,
129
],
[
129,
130
],
[
11,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
9,
137
],
[
137,
138
],
[
0,
139
],
[
139,
140
],
[
139,
141
]
]
| [
"import java.math.BigDecimal;\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\tint n = sc.nextInt();\n\t\tBigDecimal d = BigDecimal.valueOf(sc.nextInt());\n\n\t\tBigDecimal[] x = new BigDecimal[n];\n\t\tBigDecimal[] y = new BigDecimal[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tx[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t\ty[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t}\n\t\tsc.close();\n\n\t\tint ans = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tBigDecimal tmp = x[i].multiply(x[i]).add(y[i].multiply(y[i]));\n\t\t\tBigDecimal dd = d.multiply(d);\n\t\t\tif(dd.compareTo(tmp)==1||dd.compareTo(tmp)==0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"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\tint n = sc.nextInt();\n\t\tBigDecimal d = BigDecimal.valueOf(sc.nextInt());\n\n\t\tBigDecimal[] x = new BigDecimal[n];\n\t\tBigDecimal[] y = new BigDecimal[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tx[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t\ty[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t}\n\t\tsc.close();\n\n\t\tint ans = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tBigDecimal tmp = x[i].multiply(x[i]).add(y[i].multiply(y[i]));\n\t\t\tBigDecimal dd = d.multiply(d);\n\t\t\tif(dd.compareTo(tmp)==1||dd.compareTo(tmp)==0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\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\tBigDecimal d = BigDecimal.valueOf(sc.nextInt());\n\n\t\tBigDecimal[] x = new BigDecimal[n];\n\t\tBigDecimal[] y = new BigDecimal[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tx[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t\ty[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t}\n\t\tsc.close();\n\n\t\tint ans = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tBigDecimal tmp = x[i].multiply(x[i]).add(y[i].multiply(y[i]));\n\t\t\tBigDecimal dd = d.multiply(d);\n\t\t\tif(dd.compareTo(tmp)==1||dd.compareTo(tmp)==0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tBigDecimal d = BigDecimal.valueOf(sc.nextInt());\n\n\t\tBigDecimal[] x = new BigDecimal[n];\n\t\tBigDecimal[] y = new BigDecimal[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tx[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t\ty[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t}\n\t\tsc.close();\n\n\t\tint ans = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tBigDecimal tmp = x[i].multiply(x[i]).add(y[i].multiply(y[i]));\n\t\t\tBigDecimal dd = d.multiply(d);\n\t\t\tif(dd.compareTo(tmp)==1||dd.compareTo(tmp)==0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"BigDecimal d = BigDecimal.valueOf(sc.nextInt());",
"d",
"BigDecimal.valueOf(sc.nextInt())",
"BigDecimal.valueOf",
"BigDecimal",
"sc.nextInt()",
"sc.nextInt",
"sc",
"BigDecimal[] x = new BigDecimal[n];",
"x",
"new BigDecimal[n]",
"n",
"BigDecimal[] y = new BigDecimal[n];",
"y",
"new BigDecimal[n]",
"n",
"for(int i = 0;i<n;i++) {\n\t\t\tx[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t\ty[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tx[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t\ty[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t}",
"{\n\t\t\tx[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t\ty[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t}",
"x[i]=BigDecimal.valueOf(sc.nextInt())",
"x[i]",
"x",
"i",
"BigDecimal.valueOf(sc.nextInt())",
"BigDecimal.valueOf",
"BigDecimal",
"sc.nextInt()",
"sc.nextInt",
"sc",
"y[i]=BigDecimal.valueOf(sc.nextInt())",
"y[i]",
"y",
"i",
"BigDecimal.valueOf(sc.nextInt())",
"BigDecimal.valueOf",
"BigDecimal",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"int ans = 0;",
"ans",
"0",
"for(int i = 0;i<n;i++) {\n\t\t\tBigDecimal tmp = x[i].multiply(x[i]).add(y[i].multiply(y[i]));\n\t\t\tBigDecimal dd = d.multiply(d);\n\t\t\tif(dd.compareTo(tmp)==1||dd.compareTo(tmp)==0) {\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\tBigDecimal tmp = x[i].multiply(x[i]).add(y[i].multiply(y[i]));\n\t\t\tBigDecimal dd = d.multiply(d);\n\t\t\tif(dd.compareTo(tmp)==1||dd.compareTo(tmp)==0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tBigDecimal tmp = x[i].multiply(x[i]).add(y[i].multiply(y[i]));\n\t\t\tBigDecimal dd = d.multiply(d);\n\t\t\tif(dd.compareTo(tmp)==1||dd.compareTo(tmp)==0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"BigDecimal tmp = x[i].multiply(x[i]).add(y[i].multiply(y[i]));",
"tmp",
"x[i].multiply(x[i]).add(y[i].multiply(y[i]))",
"x[i].multiply(x[i]).add",
"x[i].multiply(x[i])",
"x[i].multiply",
"x[i]",
"x",
"i",
"x[i]",
"x",
"i",
"y[i].multiply(y[i])",
"y[i].multiply",
"y[i]",
"y",
"i",
"y[i]",
"y",
"i",
"BigDecimal dd = d.multiply(d);",
"dd",
"d.multiply(d)",
"d.multiply",
"d",
"d",
"if(dd.compareTo(tmp)==1||dd.compareTo(tmp)==0) {\n\t\t\t\tans++;\n\t\t\t}",
"dd.compareTo(tmp)==1||dd.compareTo(tmp)==0",
"dd.compareTo(tmp)==1",
"dd.compareTo(tmp)",
"dd.compareTo",
"dd",
"tmp",
"1",
"dd.compareTo(tmp)==0",
"dd.compareTo(tmp)",
"dd.compareTo",
"dd",
"tmp",
"0",
"{\n\t\t\t\tans++;\n\t\t\t}",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"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\tint n = sc.nextInt();\n\t\tBigDecimal d = BigDecimal.valueOf(sc.nextInt());\n\n\t\tBigDecimal[] x = new BigDecimal[n];\n\t\tBigDecimal[] y = new BigDecimal[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tx[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t\ty[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t}\n\t\tsc.close();\n\n\t\tint ans = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tBigDecimal tmp = x[i].multiply(x[i]).add(y[i].multiply(y[i]));\n\t\t\tBigDecimal dd = d.multiply(d);\n\t\t\tif(dd.compareTo(tmp)==1||dd.compareTo(tmp)==0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\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\tint n = sc.nextInt();\n\t\tBigDecimal d = BigDecimal.valueOf(sc.nextInt());\n\n\t\tBigDecimal[] x = new BigDecimal[n];\n\t\tBigDecimal[] y = new BigDecimal[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tx[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t\ty[i]=BigDecimal.valueOf(sc.nextInt());\n\t\t}\n\t\tsc.close();\n\n\t\tint ans = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tBigDecimal tmp = x[i].multiply(x[i]).add(y[i].multiply(y[i]));\n\t\t\tBigDecimal dd = d.multiply(d);\n\t\t\tif(dd.compareTo(tmp)==1||dd.compareTo(tmp)==0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\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();
BigDecimal d = BigDecimal.valueOf(sc.nextInt());
BigDecimal[] x = new BigDecimal[n];
BigDecimal[] y = new BigDecimal[n];
for(int i = 0;i<n;i++) {
x[i]=BigDecimal.valueOf(sc.nextInt());
y[i]=BigDecimal.valueOf(sc.nextInt());
}
sc.close();
int ans = 0;
for(int i = 0;i<n;i++) {
BigDecimal tmp = x[i].multiply(x[i]).add(y[i].multiply(y[i]));
BigDecimal dd = d.multiply(d);
if(dd.compareTo(tmp)==1||dd.compareTo(tmp)==0) {
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,
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,
4,
18,
13,
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
],
[
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,
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
],
[
75,
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
],
[
74,
93
],
[
73,
94
],
[
94,
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.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint a = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tlong b = sc.nextLong();\n\t\t// 文字列の入力\n\t\tlong[] d = new long[a];\n\t\tlong[] e = new long[a];\n\t\tfor(int i = 0; i < a; i++){\n\t\t\td[i] = sc.nextLong();\n\t\t\te[i] = sc.nextLong();\n\t\t} \n\t\tint f = 0;\n\t\t\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tif(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){\n\t\t\t\tf++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(f);\n\t\t\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\t// 整数の入力\n\t\tint a = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tlong b = sc.nextLong();\n\t\t// 文字列の入力\n\t\tlong[] d = new long[a];\n\t\tlong[] e = new long[a];\n\t\tfor(int i = 0; i < a; i++){\n\t\t\td[i] = sc.nextLong();\n\t\t\te[i] = sc.nextLong();\n\t\t} \n\t\tint f = 0;\n\t\t\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tif(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){\n\t\t\t\tf++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(f);\n\t\t\n\t\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 a = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tlong b = sc.nextLong();\n\t\t// 文字列の入力\n\t\tlong[] d = new long[a];\n\t\tlong[] e = new long[a];\n\t\tfor(int i = 0; i < a; i++){\n\t\t\td[i] = sc.nextLong();\n\t\t\te[i] = sc.nextLong();\n\t\t} \n\t\tint f = 0;\n\t\t\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tif(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){\n\t\t\t\tf++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(f);\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint a = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tlong b = sc.nextLong();\n\t\t// 文字列の入力\n\t\tlong[] d = new long[a];\n\t\tlong[] e = new long[a];\n\t\tfor(int i = 0; i < a; i++){\n\t\t\td[i] = sc.nextLong();\n\t\t\te[i] = sc.nextLong();\n\t\t} \n\t\tint f = 0;\n\t\t\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tif(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){\n\t\t\t\tf++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(f);\n\t\t\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long[] d = new long[a];",
"d",
"new long[a]",
"a",
"long[] e = new long[a];",
"e",
"new long[a]",
"a",
"for(int i = 0; i < a; i++){\n\t\t\td[i] = sc.nextLong();\n\t\t\te[i] = sc.nextLong();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\td[i] = sc.nextLong();\n\t\t\te[i] = sc.nextLong();\n\t\t}",
"{\n\t\t\td[i] = sc.nextLong();\n\t\t\te[i] = sc.nextLong();\n\t\t}",
"d[i] = sc.nextLong()",
"d[i]",
"d",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"e[i] = sc.nextLong()",
"e[i]",
"e",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"int f = 0;",
"f",
"0",
"for(int i = 0; i < a; i++){\n\t\t\tif(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){\n\t\t\t\tf++;\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\tif(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){\n\t\t\t\tf++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){\n\t\t\t\tf++;\n\t\t\t}\n\t\t}",
"if(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){\n\t\t\t\tf++;\n\t\t\t}",
"Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b",
"Math.sqrt(d[i] * d[i] + e[i] * e[i])",
"Math.sqrt",
"Math",
"d[i] * d[i] + e[i] * e[i]",
"d[i] * d[i]",
"d[i]",
"d",
"i",
"d[i]",
"d",
"i",
"e[i] * e[i]",
"e[i]",
"e",
"i",
"e[i]",
"e",
"i",
"b",
"{\n\t\t\t\tf++;\n\t\t\t}",
"f++",
"f",
"System.out.println(f)",
"System.out.println",
"System.out",
"System",
"System.out",
"f",
"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 a = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tlong b = sc.nextLong();\n\t\t// 文字列の入力\n\t\tlong[] d = new long[a];\n\t\tlong[] e = new long[a];\n\t\tfor(int i = 0; i < a; i++){\n\t\t\td[i] = sc.nextLong();\n\t\t\te[i] = sc.nextLong();\n\t\t} \n\t\tint f = 0;\n\t\t\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tif(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){\n\t\t\t\tf++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(f);\n\t\t\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\t// 整数の入力\n\t\tint a = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tlong b = sc.nextLong();\n\t\t// 文字列の入力\n\t\tlong[] d = new long[a];\n\t\tlong[] e = new long[a];\n\t\tfor(int i = 0; i < a; i++){\n\t\t\td[i] = sc.nextLong();\n\t\t\te[i] = sc.nextLong();\n\t\t} \n\t\tint f = 0;\n\t\t\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tif(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){\n\t\t\t\tf++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(f);\n\t\t\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);
// 整数の入力
int a = sc.nextInt();
// スペース区切りの整数の入力
long b = sc.nextLong();
// 文字列の入力
long[] d = new long[a];
long[] e = new long[a];
for(int i = 0; i < a; i++){
d[i] = sc.nextLong();
e[i] = sc.nextLong();
}
int f = 0;
for(int i = 0; i < a; i++){
if(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){
f++;
}
}
System.out.println(f);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
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,
13,
4,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
0,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
0,
13,
4,
18,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
103,
5
],
[
103,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
13,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
13,
27
],
[
27,
28
],
[
27,
29
],
[
13,
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
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
56,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
13,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
6,
69
],
[
69,
70
],
[
103,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
85,
89
],
[
73,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
73,
96
],
[
96,
97
],
[
71,
98
],
[
98,
99
],
[
71,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble d = sc.nextInt();\n\n\t\t\tint count = 0;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble x = sc.nextDouble();\n\t\t\t\tdouble y = sc.nextDouble();\n\n\t\t\t\tif (d >= calDist(x, y)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(count);\n\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}\n\n\tpublic static double calDist (double x, double y) {\n\t\tdouble ans = 0;\n\n\t\tans = Math.pow(x, 2) + Math.pow(y, 2);\n\t\tans = Math.sqrt(ans);\n\n\t\treturn ans;\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble d = sc.nextInt();\n\n\t\t\tint count = 0;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble x = sc.nextDouble();\n\t\t\t\tdouble y = sc.nextDouble();\n\n\t\t\t\tif (d >= calDist(x, y)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(count);\n\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}\n\n\tpublic static double calDist (double x, double y) {\n\t\tdouble ans = 0;\n\n\t\tans = Math.pow(x, 2) + Math.pow(y, 2);\n\t\tans = Math.sqrt(ans);\n\n\t\treturn ans;\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble d = sc.nextInt();\n\n\t\t\tint count = 0;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble x = sc.nextDouble();\n\t\t\t\tdouble y = sc.nextDouble();\n\n\t\t\t\tif (d >= calDist(x, y)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(count);\n\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble d = sc.nextInt();\n\n\t\t\tint count = 0;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble x = sc.nextDouble();\n\t\t\t\tdouble y = sc.nextDouble();\n\n\t\t\t\tif (d >= calDist(x, y)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(count);\n\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}",
"try (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble d = sc.nextInt();\n\n\t\t\tint count = 0;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble x = sc.nextDouble();\n\t\t\t\tdouble y = sc.nextDouble();\n\n\t\t\t\tif (d >= calDist(x, y)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(count);\n\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}",
"catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}",
"Exception e",
"{\n\t\t\t// TODO: handle exception\n\t\t}",
"{\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble d = sc.nextInt();\n\n\t\t\tint count = 0;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble x = sc.nextDouble();\n\t\t\t\tdouble y = sc.nextDouble();\n\n\t\t\t\tif (d >= calDist(x, y)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(count);\n\n\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",
"double d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\t\tdouble x = sc.nextDouble();\n\t\t\t\tdouble y = sc.nextDouble();\n\n\t\t\t\tif (d >= calDist(x, y)) {\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\tdouble x = sc.nextDouble();\n\t\t\t\tdouble y = sc.nextDouble();\n\n\t\t\t\tif (d >= calDist(x, y)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tdouble x = sc.nextDouble();\n\t\t\t\tdouble y = sc.nextDouble();\n\n\t\t\t\tif (d >= calDist(x, y)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"double x = sc.nextDouble();",
"x",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double y = sc.nextDouble();",
"y",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"if (d >= calDist(x, y)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"d >= calDist(x, y)",
"d",
"calDist(x, y)",
"calDist",
"x",
"y",
"{\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 static double calDist (double x, double y) {\n\t\tdouble ans = 0;\n\n\t\tans = Math.pow(x, 2) + Math.pow(y, 2);\n\t\tans = Math.sqrt(ans);\n\n\t\treturn ans;\n\t}",
"calDist",
"{\n\t\tdouble ans = 0;\n\n\t\tans = Math.pow(x, 2) + Math.pow(y, 2);\n\t\tans = Math.sqrt(ans);\n\n\t\treturn ans;\n\t}",
"double ans = 0;",
"ans",
"0",
"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",
"ans = Math.sqrt(ans)",
"ans",
"Math.sqrt(ans)",
"Math.sqrt",
"Math",
"ans",
"return ans;",
"ans",
"double x",
"x",
"double y",
"y",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble d = sc.nextInt();\n\n\t\t\tint count = 0;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble x = sc.nextDouble();\n\t\t\t\tdouble y = sc.nextDouble();\n\n\t\t\t\tif (d >= calDist(x, y)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(count);\n\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}\n\n\tpublic static double calDist (double x, double y) {\n\t\tdouble ans = 0;\n\n\t\tans = Math.pow(x, 2) + Math.pow(y, 2);\n\t\tans = Math.sqrt(ans);\n\n\t\treturn ans;\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble d = sc.nextInt();\n\n\t\t\tint count = 0;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble x = sc.nextDouble();\n\t\t\t\tdouble y = sc.nextDouble();\n\n\t\t\t\tif (d >= calDist(x, y)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(count);\n\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}\n\n\tpublic static double calDist (double x, double y) {\n\t\tdouble ans = 0;\n\n\t\tans = Math.pow(x, 2) + Math.pow(y, 2);\n\t\tans = Math.sqrt(ans);\n\n\t\treturn ans;\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
try (Scanner sc = new Scanner(System.in)) {
int n = sc.nextInt();
double d = sc.nextInt();
int count = 0;
for (int i = 0; i < n; i++) {
double x = sc.nextDouble();
double y = sc.nextDouble();
if (d >= calDist(x, y)) {
count++;
}
}
System.out.println(count);
} catch (Exception e) {
// TODO: handle exception
}
}
public static double calDist (double x, double y) {
double ans = 0;
ans = Math.pow(x, 2) + Math.pow(y, 2);
ans = Math.sqrt(ans);
return ans;
}
}
|
[
7,
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,
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,
6,
13,
41,
13,
17,
41,
13,
17,
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,
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
],
[
149,
17
],
[
149,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
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
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
61,
72
],
[
60,
73
],
[
73,
74
],
[
74,
75
],
[
20,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
18,
82
],
[
82,
83
],
[
149,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
92,
101
],
[
101,
102
],
[
84,
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
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
116,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
105,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
84,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
137,
138
],
[
84,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\n\t\tlong N = sc.nextLong();\n\t\tlong D = sc.nextLong();\n\n\n\t\tlong ans = 0;\n\t\tfor (long i=0; i < N; i++) {\n\t\t\tlong x = sc.nextLong();\n\t\t\tlong y = sc.nextLong();\n\n\t\t\tif (Math.sqrt((x * x) + (y * y)) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\tprivate static class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t\tprivate StringTokenizer tokenizer = null;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\n\t\tlong N = sc.nextLong();\n\t\tlong D = sc.nextLong();\n\n\n\t\tlong ans = 0;\n\t\tfor (long i=0; i < N; i++) {\n\t\t\tlong x = sc.nextLong();\n\t\t\tlong y = sc.nextLong();\n\n\t\t\tif (Math.sqrt((x * x) + (y * y)) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\tprivate static class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t\tprivate StringTokenizer tokenizer = null;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\n\t\tlong N = sc.nextLong();\n\t\tlong D = sc.nextLong();\n\n\n\t\tlong ans = 0;\n\t\tfor (long i=0; i < N; i++) {\n\t\t\tlong x = sc.nextLong();\n\t\t\tlong y = sc.nextLong();\n\n\t\t\tif (Math.sqrt((x * x) + (y * y)) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}",
"main",
"{\n\t\tFastScanner sc = new FastScanner(System.in);\n\n\t\tlong N = sc.nextLong();\n\t\tlong D = sc.nextLong();\n\n\n\t\tlong ans = 0;\n\t\tfor (long i=0; i < N; i++) {\n\t\t\tlong x = sc.nextLong();\n\t\t\tlong y = sc.nextLong();\n\n\t\t\tif (Math.sqrt((x * x) + (y * y)) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}",
"FastScanner sc = new FastScanner(System.in);",
"sc",
"new FastScanner(System.in)",
"long N = sc.nextLong();",
"N",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long D = sc.nextLong();",
"D",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long ans = 0;",
"ans",
"0",
"for (long i=0; i < N; i++) {\n\t\t\tlong x = sc.nextLong();\n\t\t\tlong y = sc.nextLong();\n\n\t\t\tif (Math.sqrt((x * x) + (y * y)) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"long i=0;",
"long i=0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tlong x = sc.nextLong();\n\t\t\tlong y = sc.nextLong();\n\n\t\t\tif (Math.sqrt((x * x) + (y * y)) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tlong x = sc.nextLong();\n\t\t\tlong y = sc.nextLong();\n\n\t\t\tif (Math.sqrt((x * x) + (y * y)) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"long x = sc.nextLong();",
"x",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long y = sc.nextLong();",
"y",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if (Math.sqrt((x * x) + (y * y)) <= D) {\n\t\t\t\tans++;\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\tans++;\n\t\t\t}",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"private static class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t\tprivate StringTokenizer tokenizer = null;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t}",
"FastScanner",
"private BufferedReader reader = null;",
"reader",
"null",
"private StringTokenizer tokenizer = null;",
"tokenizer",
"null",
"public FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}",
"FastScanner",
"{\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}",
"reader = new BufferedReader(new InputStreamReader(in))",
"reader",
"new BufferedReader(new InputStreamReader(in))",
"tokenizer = null",
"tokenizer",
"null",
"InputStream in",
"in",
"public String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}",
"next",
"{\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}",
"if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}",
"try {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t}",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public 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",
"public 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 sc = new FastScanner(System.in);\n\n\t\tlong N = sc.nextLong();\n\t\tlong D = sc.nextLong();\n\n\n\t\tlong ans = 0;\n\t\tfor (long i=0; i < N; i++) {\n\t\t\tlong x = sc.nextLong();\n\t\t\tlong y = sc.nextLong();\n\n\t\t\tif (Math.sqrt((x * x) + (y * y)) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\tprivate static class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t\tprivate StringTokenizer tokenizer = null;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\n\t\tlong N = sc.nextLong();\n\t\tlong D = sc.nextLong();\n\n\n\t\tlong ans = 0;\n\t\tfor (long i=0; i < N; i++) {\n\t\t\tlong x = sc.nextLong();\n\t\t\tlong y = sc.nextLong();\n\n\t\t\tif (Math.sqrt((x * x) + (y * y)) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\tprivate static class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t\tprivate StringTokenizer tokenizer = null;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
FastScanner sc = new FastScanner(System.in);
long N = sc.nextLong();
long D = sc.nextLong();
long ans = 0;
for (long i=0; i < N; i++) {
long x = sc.nextLong();
long y = sc.nextLong();
if (Math.sqrt((x * x) + (y * y)) <= D) {
ans++;
}
}
System.out.println(ans);
}
private static class FastScanner {
private BufferedReader reader = null;
private StringTokenizer tokenizer = null;
public FastScanner(InputStream in) {
reader = new BufferedReader(new InputStreamReader(in));
tokenizer = null;
}
public String next() {
if (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());
}
}
}
|
[
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,
41,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
41,
13,
4,
18,
13,
18,
13,
13,
41,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
122,
8
],
[
122,
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
],
[
11,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
11,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
80,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
80,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
80,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
11,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
9,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\tint ans = 0;\n\t\tint[] x = new int[n];\n\t\tint[] y = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\tlong dsq = (long) d*d;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint dx = Math.abs(x[i]);\n\t\t\tint dy = Math.abs(y[i]);\n\t\t\tlong distance = (long)dx*dx + (long)dy*dy;\n\t\t\tif(distance <= dsq) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\tint ans = 0;\n\t\tint[] x = new int[n];\n\t\tint[] y = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\tlong dsq = (long) d*d;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint dx = Math.abs(x[i]);\n\t\t\tint dy = Math.abs(y[i]);\n\t\t\tlong distance = (long)dx*dx + (long)dy*dy;\n\t\t\tif(distance <= dsq) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\tint ans = 0;\n\t\tint[] x = new int[n];\n\t\tint[] y = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\tlong dsq = (long) d*d;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint dx = Math.abs(x[i]);\n\t\t\tint dy = Math.abs(y[i]);\n\t\t\tlong distance = (long)dx*dx + (long)dy*dy;\n\t\t\tif(distance <= dsq) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\tint ans = 0;\n\t\tint[] x = new int[n];\n\t\tint[] y = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\tlong dsq = (long) d*d;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint dx = Math.abs(x[i]);\n\t\t\tint dy = Math.abs(y[i]);\n\t\t\tlong distance = (long)dx*dx + (long)dy*dy;\n\t\t\tif(distance <= dsq) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\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 ans = 0;",
"ans",
"0",
"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\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}",
"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",
"long dsq = (long) d*d;",
"dsq",
"(long) d*d",
"(long) d",
"d",
"for(int i = 0; i < n; i++) {\n\t\t\tint dx = Math.abs(x[i]);\n\t\t\tint dy = Math.abs(y[i]);\n\t\t\tlong distance = (long)dx*dx + (long)dy*dy;\n\t\t\tif(distance <= dsq) {\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\tint dx = Math.abs(x[i]);\n\t\t\tint dy = Math.abs(y[i]);\n\t\t\tlong distance = (long)dx*dx + (long)dy*dy;\n\t\t\tif(distance <= dsq) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint dx = Math.abs(x[i]);\n\t\t\tint dy = Math.abs(y[i]);\n\t\t\tlong distance = (long)dx*dx + (long)dy*dy;\n\t\t\tif(distance <= dsq) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"int dx = Math.abs(x[i]);",
"dx",
"Math.abs(x[i])",
"Math.abs",
"Math",
"x[i]",
"x",
"i",
"int dy = Math.abs(y[i]);",
"dy",
"Math.abs(y[i])",
"Math.abs",
"Math",
"y[i]",
"y",
"i",
"long distance = (long)dx*dx + (long)dy*dy;",
"distance",
"(long)dx*dx + (long)dy*dy",
"(long)dx*dx",
"(long)dx",
"dx",
"(long)dy*dy",
"(long)dy",
"dy",
"if(distance <= dsq) {\n\t\t\t\tans++;\n\t\t\t}",
"distance <= dsq",
"distance",
"dsq",
"{\n\t\t\t\tans++;\n\t\t\t}",
"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) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\tint ans = 0;\n\t\tint[] x = new int[n];\n\t\tint[] y = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\tlong dsq = (long) d*d;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint dx = Math.abs(x[i]);\n\t\t\tint dy = Math.abs(y[i]);\n\t\t\tlong distance = (long)dx*dx + (long)dy*dy;\n\t\t\tif(distance <= dsq) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\tint ans = 0;\n\t\tint[] x = new int[n];\n\t\tint[] y = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\tlong dsq = (long) d*d;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint dx = Math.abs(x[i]);\n\t\t\tint dy = Math.abs(y[i]);\n\t\t\tlong distance = (long)dx*dx + (long)dy*dy;\n\t\t\tif(distance <= dsq) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int d = sc.nextInt();
int ans = 0;
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();
}
long dsq = (long) d*d;
for(int i = 0; i < n; i++) {
int dx = Math.abs(x[i]);
int dy = Math.abs(y[i]);
long distance = (long)dx*dx + (long)dy*dy;
if(distance <= dsq) {
ans++;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
113,
14
],
[
113,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
26,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
37,
39
],
[
17,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
45,
47
],
[
17,
48
],
[
48,
49
],
[
48,
50
],
[
17,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
66,
71
],
[
63,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
63,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
63,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
89,
100
],
[
88,
101
],
[
101,
102
],
[
102,
103
],
[
17,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
15,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.nio.charset.StandardCharsets;\n\npublic class Main {\n\tpublic static void main (String[] args) throws IOException{\n\t InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\tString[] str = in.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tdouble d = Integer.parseInt(str[1]);\n\t\tint cnt = 0;\n\n\t\tfor(int i=0; i < n; i++) {\n\t\t\tstr = in.readLine().split(\" \");\n\t\t\tdouble x = Integer.parseInt(str[0]);\n\t\t\tdouble y = Integer.parseInt(str[1]);\n\t\t\tif(Math.sqrt(x*x+y*y)<=d) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.nio.charset.StandardCharsets;",
"StandardCharsets",
"java.nio.charset",
"public class Main {\n\tpublic static void main (String[] args) throws IOException{\n\t InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\tString[] str = in.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tdouble d = Integer.parseInt(str[1]);\n\t\tint cnt = 0;\n\n\t\tfor(int i=0; i < n; i++) {\n\t\t\tstr = in.readLine().split(\" \");\n\t\t\tdouble x = Integer.parseInt(str[0]);\n\t\t\tdouble y = Integer.parseInt(str[1]);\n\t\t\tif(Math.sqrt(x*x+y*y)<=d) {\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) throws IOException{\n\t InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\tString[] str = in.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tdouble d = Integer.parseInt(str[1]);\n\t\tint cnt = 0;\n\n\t\tfor(int i=0; i < n; i++) {\n\t\t\tstr = in.readLine().split(\" \");\n\t\t\tdouble x = Integer.parseInt(str[0]);\n\t\t\tdouble y = Integer.parseInt(str[1]);\n\t\t\tif(Math.sqrt(x*x+y*y)<=d) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"main",
"{\n\t InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\tString[] str = in.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tdouble d = Integer.parseInt(str[1]);\n\t\tint cnt = 0;\n\n\t\tfor(int i=0; i < n; i++) {\n\t\t\tstr = in.readLine().split(\" \");\n\t\t\tdouble x = Integer.parseInt(str[0]);\n\t\t\tdouble y = Integer.parseInt(str[1]);\n\t\t\tif(Math.sqrt(x*x+y*y)<=d) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);",
"reader",
"new InputStreamReader(System.in, StandardCharsets.UTF_8)",
"BufferedReader in = new BufferedReader(reader);",
"in",
"new BufferedReader(reader)",
"String[] str = in.readLine().split(\" \");",
"str",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int n = Integer.parseInt(str[0]);",
"n",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"double d = Integer.parseInt(str[1]);",
"d",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"int cnt = 0;",
"cnt",
"0",
"for(int i=0; i < n; i++) {\n\t\t\tstr = in.readLine().split(\" \");\n\t\t\tdouble x = Integer.parseInt(str[0]);\n\t\t\tdouble y = Integer.parseInt(str[1]);\n\t\t\tif(Math.sqrt(x*x+y*y)<=d) {\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\tstr = in.readLine().split(\" \");\n\t\t\tdouble x = Integer.parseInt(str[0]);\n\t\t\tdouble y = Integer.parseInt(str[1]);\n\t\t\tif(Math.sqrt(x*x+y*y)<=d) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tstr = in.readLine().split(\" \");\n\t\t\tdouble x = Integer.parseInt(str[0]);\n\t\t\tdouble y = Integer.parseInt(str[1]);\n\t\t\tif(Math.sqrt(x*x+y*y)<=d) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"str = in.readLine().split(\" \")",
"str",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"double x = Integer.parseInt(str[0]);",
"x",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"double y = Integer.parseInt(str[1]);",
"y",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"if(Math.sqrt(x*x+y*y)<=d) {\n\t\t\t\tcnt++;\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\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) throws IOException{\n\t InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\tString[] str = in.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tdouble d = Integer.parseInt(str[1]);\n\t\tint cnt = 0;\n\n\t\tfor(int i=0; i < n; i++) {\n\t\t\tstr = in.readLine().split(\" \");\n\t\t\tdouble x = Integer.parseInt(str[0]);\n\t\t\tdouble y = Integer.parseInt(str[1]);\n\t\t\tif(Math.sqrt(x*x+y*y)<=d) {\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) throws IOException{\n\t InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\tString[] str = in.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tdouble d = Integer.parseInt(str[1]);\n\t\tint cnt = 0;\n\n\t\tfor(int i=0; i < n; i++) {\n\t\t\tstr = in.readLine().split(\" \");\n\t\t\tdouble x = Integer.parseInt(str[0]);\n\t\t\tdouble y = Integer.parseInt(str[1]);\n\t\t\tif(Math.sqrt(x*x+y*y)<=d) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
public class Main {
public static void main (String[] args) throws IOException{
InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
BufferedReader in = new BufferedReader(reader);
String[] str = in.readLine().split(" ");
int n = Integer.parseInt(str[0]);
double d = Integer.parseInt(str[1]);
int cnt = 0;
for(int i=0; i < n; i++) {
str = in.readLine().split(" ");
double x = Integer.parseInt(str[0]);
double y = Integer.parseInt(str[1]);
if(Math.sqrt(x*x+y*y)<=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,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
18,
13,
17,
41,
13,
2,
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,
4,
18,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
18,
13,
17,
14,
4,
13,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
30,
29,
17,
29,
17,
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
],
[
140,
11
],
[
140,
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
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
14,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
14,
51
],
[
51,
52
],
[
51,
53
],
[
14,
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
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
66,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
66,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
96,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
14,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
12,
110
],
[
110,
111
],
[
140,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
121,
123
],
[
114,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
129,
130
],
[
114,
131
],
[
131,
132
],
[
112,
133
],
[
133,
134
],
[
112,
135
],
[
135,
136
],
[
112,
137
],
[
137,
138
],
[
0,
139
],
[
139,
140
],
[
139,
141
]
]
| [
"\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.HashSet;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] s=br.readLine().split(\" \");\n int n=Integer.parseInt(s[0].trim());\n long d=Long.parseLong(s[1].trim());\n long r=(d*d);\n long res=0;\n\n for(int i=0;i<n;i++){\n s=br.readLine().split(\" \");\n long x=Long.parseLong(s[0].trim());\n long y=Long.parseLong(s[1].trim());\n if(is_path(x,y,r)){\n res++;\n }\n\n }\nSystem.out.println(res);\n// int t = Integer.parseInt(br.readLine().trim());\n\n }\n\n public static boolean is_path(long x,long y,long d){\n long r=(x*x)+(y*y);\n// r=Math.sqrt(r);\n if(r<=d){\n return true;\n }\n return false;\n }\n\n\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.HashSet;",
"HashSet",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] s=br.readLine().split(\" \");\n int n=Integer.parseInt(s[0].trim());\n long d=Long.parseLong(s[1].trim());\n long r=(d*d);\n long res=0;\n\n for(int i=0;i<n;i++){\n s=br.readLine().split(\" \");\n long x=Long.parseLong(s[0].trim());\n long y=Long.parseLong(s[1].trim());\n if(is_path(x,y,r)){\n res++;\n }\n\n }\nSystem.out.println(res);\n// int t = Integer.parseInt(br.readLine().trim());\n\n }\n\n public static boolean is_path(long x,long y,long d){\n long r=(x*x)+(y*y);\n// r=Math.sqrt(r);\n if(r<=d){\n return true;\n }\n return false;\n }\n\n\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] s=br.readLine().split(\" \");\n int n=Integer.parseInt(s[0].trim());\n long d=Long.parseLong(s[1].trim());\n long r=(d*d);\n long res=0;\n\n for(int i=0;i<n;i++){\n s=br.readLine().split(\" \");\n long x=Long.parseLong(s[0].trim());\n long y=Long.parseLong(s[1].trim());\n if(is_path(x,y,r)){\n res++;\n }\n\n }\nSystem.out.println(res);\n// int t = Integer.parseInt(br.readLine().trim());\n\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] s=br.readLine().split(\" \");\n int n=Integer.parseInt(s[0].trim());\n long d=Long.parseLong(s[1].trim());\n long r=(d*d);\n long res=0;\n\n for(int i=0;i<n;i++){\n s=br.readLine().split(\" \");\n long x=Long.parseLong(s[0].trim());\n long y=Long.parseLong(s[1].trim());\n if(is_path(x,y,r)){\n res++;\n }\n\n }\nSystem.out.println(res);\n// int t = Integer.parseInt(br.readLine().trim());\n\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].trim());",
"n",
"Integer.parseInt(s[0].trim())",
"Integer.parseInt",
"Integer",
"s[0].trim()",
"s[0].trim",
"s[0]",
"s",
"0",
"long d=Long.parseLong(s[1].trim());",
"d",
"Long.parseLong(s[1].trim())",
"Long.parseLong",
"Long",
"s[1].trim()",
"s[1].trim",
"s[1]",
"s",
"1",
"long r=(d*d);",
"r",
"(d*d)",
"d",
"d",
"long res=0;",
"res",
"0",
"for(int i=0;i<n;i++){\n s=br.readLine().split(\" \");\n long x=Long.parseLong(s[0].trim());\n long y=Long.parseLong(s[1].trim());\n if(is_path(x,y,r)){\n res++;\n }\n\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].trim());\n long y=Long.parseLong(s[1].trim());\n if(is_path(x,y,r)){\n res++;\n }\n\n }",
"{\n s=br.readLine().split(\" \");\n long x=Long.parseLong(s[0].trim());\n long y=Long.parseLong(s[1].trim());\n if(is_path(x,y,r)){\n res++;\n }\n\n }",
"s=br.readLine().split(\" \")",
"s",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"long x=Long.parseLong(s[0].trim());",
"x",
"Long.parseLong(s[0].trim())",
"Long.parseLong",
"Long",
"s[0].trim()",
"s[0].trim",
"s[0]",
"s",
"0",
"long y=Long.parseLong(s[1].trim());",
"y",
"Long.parseLong(s[1].trim())",
"Long.parseLong",
"Long",
"s[1].trim()",
"s[1].trim",
"s[1]",
"s",
"1",
"if(is_path(x,y,r)){\n res++;\n }",
"is_path(x,y,r)",
"is_path",
"x",
"y",
"r",
"{\n res++;\n }",
"res++",
"res",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"String[] args",
"args",
"public static boolean is_path(long x,long y,long d){\n long r=(x*x)+(y*y);\n// r=Math.sqrt(r);\n if(r<=d){\n return true;\n }\n return false;\n }",
"is_path",
"{\n long r=(x*x)+(y*y);\n// r=Math.sqrt(r);\n if(r<=d){\n return true;\n }\n return false;\n }",
"long r=(x*x)+(y*y);",
"r",
"(x*x)+(y*y)",
"(x*x)",
"x",
"x",
"(y*y)",
"y",
"y",
"if(r<=d){\n return true;\n }",
"r<=d",
"r",
"d",
"{\n return true;\n }",
"return true;",
"true",
"return false;",
"false",
"long x",
"x",
"long y",
"y",
"long d",
"d",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] s=br.readLine().split(\" \");\n int n=Integer.parseInt(s[0].trim());\n long d=Long.parseLong(s[1].trim());\n long r=(d*d);\n long res=0;\n\n for(int i=0;i<n;i++){\n s=br.readLine().split(\" \");\n long x=Long.parseLong(s[0].trim());\n long y=Long.parseLong(s[1].trim());\n if(is_path(x,y,r)){\n res++;\n }\n\n }\nSystem.out.println(res);\n// int t = Integer.parseInt(br.readLine().trim());\n\n }\n\n public static boolean is_path(long x,long y,long d){\n long r=(x*x)+(y*y);\n// r=Math.sqrt(r);\n if(r<=d){\n return true;\n }\n return false;\n }\n\n\n\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] s=br.readLine().split(\" \");\n int n=Integer.parseInt(s[0].trim());\n long d=Long.parseLong(s[1].trim());\n long r=(d*d);\n long res=0;\n\n for(int i=0;i<n;i++){\n s=br.readLine().split(\" \");\n long x=Long.parseLong(s[0].trim());\n long y=Long.parseLong(s[1].trim());\n if(is_path(x,y,r)){\n res++;\n }\n\n }\nSystem.out.println(res);\n// int t = Integer.parseInt(br.readLine().trim());\n\n }\n\n public static boolean is_path(long x,long y,long d){\n long r=(x*x)+(y*y);\n// r=Math.sqrt(r);\n if(r<=d){\n return true;\n }\n return false;\n }\n\n\n\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashSet;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] s=br.readLine().split(" ");
int n=Integer.parseInt(s[0].trim());
long d=Long.parseLong(s[1].trim());
long r=(d*d);
long res=0;
for(int i=0;i<n;i++){
s=br.readLine().split(" ");
long x=Long.parseLong(s[0].trim());
long y=Long.parseLong(s[1].trim());
if(is_path(x,y,r)){
res++;
}
}
System.out.println(res);
// int t = Integer.parseInt(br.readLine().trim());
}
public static boolean is_path(long x,long y,long d){
long r=(x*x)+(y*y);
// r=Math.sqrt(r);
if(r<=d){
return true;
}
return false;
}
}
|
[
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,
20,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
13,
30,
4,
18,
13,
4,
18,
13,
40,
13,
28,
13,
13,
30,
30,
41,
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,
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
],
[
111,
8
],
[
111,
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
],
[
33,
34
],
[
34,
35
],
[
11,
36
],
[
36,
37
],
[
36,
38
],
[
11,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
43,
50
],
[
50,
51
],
[
11,
52
],
[
52,
53
],
[
52,
54
],
[
52,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
56,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
56,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
56,
79
],
[
79,
80
],
[
79,
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
],
[
56,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
100,
101
],
[
11,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
9,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
]
| [
"import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint point_num = sc.nextInt();\n\t\tint dis = sc.nextInt();\n\t\tArrayList<String> ar = new ArrayList<>();\n\t\tint ans = 0;\n\t\tString v = sc.nextLine();\n\n\t\tint count = 0;\n\t\twhile(count < point_num) {\n\t\t\tar.add(sc.nextLine());\n\t\t\tcount++;\n\t\t}\n\n\n\n\t\tfor(String b : ar) {\n\t\t\tString bb[] = b.split(\" \");\n\t\t\tint x = Integer.parseInt(bb[0]);\n\t\t\tint y = Integer.parseInt(bb[1]);\n\n\t\t\tdouble dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\n\t\t\tif (dist <= dis) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n//\t\tScanner sc = new Scanner(System.in);\n//\n//\t\tint num = sc.nextInt();\n//\t\tint cut_num = sc.nextInt();\n//\t\tString v = sc.nextLine();\n//\t\tString l = sc.nextLine();\n//\t\tString len[] = l.split(\" \");\n//\t\tArrayList<String> ar = new ArrayList<>();\n//\t\tArrayList<Double> ar2 = new ArrayList<>();\n//\n//\t\tlong ans = Long.MAX_VALUE;\n//\n//\t\tfor (int j = 0; j<1000; j++) {\n//\n//\t\t\tfor (int i = 0; i<len.length; i++) {\n//\t\t\t\tar2.add((double)Integer.parseInt(len[i]));\n//\t\t\t}\n//\n//\t\t\tlong ret = cut(num, cut_num, ar2);\n//\n//\t\t\tif (ans > ret) {\n//\t\t\t\tans = ret;\n//\t\t\t}\n//\t\t}\n//\n//\t\tSystem.out.println(ans);\n//\n//\t\t}\n//\n//\tstatic ArrayList<Double> sort(ArrayList<Double> ar2){\n//\t\tCollections.sort(ar2);\n//\t\tCollections.reverse(ar2);\n//\n//\t\treturn ar2;\n//\t}\n//\n//\n//\tstatic long cut(int num, int cut_num, ArrayList<Double> ar2) {\n//\t\tRandom r = new Random();\n//\n//\t\tfor (int i=0; i<cut_num; i++) {\n//\n//\t\t\tsort(ar2);\n//\t\t\tdouble result = ar2.get(0) / r.nextGaussian() * ar2.get(0);\n//\t\t\tar2.set(0, result);\n//\n//\t\t}\n//\n//\t\tsort(ar2);\n//\n//\t\treturn Math.round(ar2.get(0));\n\t}\n\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\n\t\tScanner sc = new Scanner(System.in);\n\t\tint point_num = sc.nextInt();\n\t\tint dis = sc.nextInt();\n\t\tArrayList<String> ar = new ArrayList<>();\n\t\tint ans = 0;\n\t\tString v = sc.nextLine();\n\n\t\tint count = 0;\n\t\twhile(count < point_num) {\n\t\t\tar.add(sc.nextLine());\n\t\t\tcount++;\n\t\t}\n\n\n\n\t\tfor(String b : ar) {\n\t\t\tString bb[] = b.split(\" \");\n\t\t\tint x = Integer.parseInt(bb[0]);\n\t\t\tint y = Integer.parseInt(bb[1]);\n\n\t\t\tdouble dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\n\t\t\tif (dist <= dis) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n//\t\tScanner sc = new Scanner(System.in);\n//\n//\t\tint num = sc.nextInt();\n//\t\tint cut_num = sc.nextInt();\n//\t\tString v = sc.nextLine();\n//\t\tString l = sc.nextLine();\n//\t\tString len[] = l.split(\" \");\n//\t\tArrayList<String> ar = new ArrayList<>();\n//\t\tArrayList<Double> ar2 = new ArrayList<>();\n//\n//\t\tlong ans = Long.MAX_VALUE;\n//\n//\t\tfor (int j = 0; j<1000; j++) {\n//\n//\t\t\tfor (int i = 0; i<len.length; i++) {\n//\t\t\t\tar2.add((double)Integer.parseInt(len[i]));\n//\t\t\t}\n//\n//\t\t\tlong ret = cut(num, cut_num, ar2);\n//\n//\t\t\tif (ans > ret) {\n//\t\t\t\tans = ret;\n//\t\t\t}\n//\t\t}\n//\n//\t\tSystem.out.println(ans);\n//\n//\t\t}\n//\n//\tstatic ArrayList<Double> sort(ArrayList<Double> ar2){\n//\t\tCollections.sort(ar2);\n//\t\tCollections.reverse(ar2);\n//\n//\t\treturn ar2;\n//\t}\n//\n//\n//\tstatic long cut(int num, int cut_num, ArrayList<Double> ar2) {\n//\t\tRandom r = new Random();\n//\n//\t\tfor (int i=0; i<cut_num; i++) {\n//\n//\t\t\tsort(ar2);\n//\t\t\tdouble result = ar2.get(0) / r.nextGaussian() * ar2.get(0);\n//\t\t\tar2.set(0, result);\n//\n//\t\t}\n//\n//\t\tsort(ar2);\n//\n//\t\treturn Math.round(ar2.get(0));\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint point_num = sc.nextInt();\n\t\tint dis = sc.nextInt();\n\t\tArrayList<String> ar = new ArrayList<>();\n\t\tint ans = 0;\n\t\tString v = sc.nextLine();\n\n\t\tint count = 0;\n\t\twhile(count < point_num) {\n\t\t\tar.add(sc.nextLine());\n\t\t\tcount++;\n\t\t}\n\n\n\n\t\tfor(String b : ar) {\n\t\t\tString bb[] = b.split(\" \");\n\t\t\tint x = Integer.parseInt(bb[0]);\n\t\t\tint y = Integer.parseInt(bb[1]);\n\n\t\t\tdouble dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\n\t\t\tif (dist <= dis) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n//\t\tScanner sc = new Scanner(System.in);\n//\n//\t\tint num = sc.nextInt();\n//\t\tint cut_num = sc.nextInt();\n//\t\tString v = sc.nextLine();\n//\t\tString l = sc.nextLine();\n//\t\tString len[] = l.split(\" \");\n//\t\tArrayList<String> ar = new ArrayList<>();\n//\t\tArrayList<Double> ar2 = new ArrayList<>();\n//\n//\t\tlong ans = Long.MAX_VALUE;\n//\n//\t\tfor (int j = 0; j<1000; j++) {\n//\n//\t\t\tfor (int i = 0; i<len.length; i++) {\n//\t\t\t\tar2.add((double)Integer.parseInt(len[i]));\n//\t\t\t}\n//\n//\t\t\tlong ret = cut(num, cut_num, ar2);\n//\n//\t\t\tif (ans > ret) {\n//\t\t\t\tans = ret;\n//\t\t\t}\n//\t\t}\n//\n//\t\tSystem.out.println(ans);\n//\n//\t\t}\n//\n//\tstatic ArrayList<Double> sort(ArrayList<Double> ar2){\n//\t\tCollections.sort(ar2);\n//\t\tCollections.reverse(ar2);\n//\n//\t\treturn ar2;\n//\t}\n//\n//\n//\tstatic long cut(int num, int cut_num, ArrayList<Double> ar2) {\n//\t\tRandom r = new Random();\n//\n//\t\tfor (int i=0; i<cut_num; i++) {\n//\n//\t\t\tsort(ar2);\n//\t\t\tdouble result = ar2.get(0) / r.nextGaussian() * ar2.get(0);\n//\t\t\tar2.set(0, result);\n//\n//\t\t}\n//\n//\t\tsort(ar2);\n//\n//\t\treturn Math.round(ar2.get(0));\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint point_num = sc.nextInt();\n\t\tint dis = sc.nextInt();\n\t\tArrayList<String> ar = new ArrayList<>();\n\t\tint ans = 0;\n\t\tString v = sc.nextLine();\n\n\t\tint count = 0;\n\t\twhile(count < point_num) {\n\t\t\tar.add(sc.nextLine());\n\t\t\tcount++;\n\t\t}\n\n\n\n\t\tfor(String b : ar) {\n\t\t\tString bb[] = b.split(\" \");\n\t\t\tint x = Integer.parseInt(bb[0]);\n\t\t\tint y = Integer.parseInt(bb[1]);\n\n\t\t\tdouble dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\n\t\t\tif (dist <= dis) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n//\t\tScanner sc = new Scanner(System.in);\n//\n//\t\tint num = sc.nextInt();\n//\t\tint cut_num = sc.nextInt();\n//\t\tString v = sc.nextLine();\n//\t\tString l = sc.nextLine();\n//\t\tString len[] = l.split(\" \");\n//\t\tArrayList<String> ar = new ArrayList<>();\n//\t\tArrayList<Double> ar2 = new ArrayList<>();\n//\n//\t\tlong ans = Long.MAX_VALUE;\n//\n//\t\tfor (int j = 0; j<1000; j++) {\n//\n//\t\t\tfor (int i = 0; i<len.length; i++) {\n//\t\t\t\tar2.add((double)Integer.parseInt(len[i]));\n//\t\t\t}\n//\n//\t\t\tlong ret = cut(num, cut_num, ar2);\n//\n//\t\t\tif (ans > ret) {\n//\t\t\t\tans = ret;\n//\t\t\t}\n//\t\t}\n//\n//\t\tSystem.out.println(ans);\n//\n//\t\t}\n//\n//\tstatic ArrayList<Double> sort(ArrayList<Double> ar2){\n//\t\tCollections.sort(ar2);\n//\t\tCollections.reverse(ar2);\n//\n//\t\treturn ar2;\n//\t}\n//\n//\n//\tstatic long cut(int num, int cut_num, ArrayList<Double> ar2) {\n//\t\tRandom r = new Random();\n//\n//\t\tfor (int i=0; i<cut_num; i++) {\n//\n//\t\t\tsort(ar2);\n//\t\t\tdouble result = ar2.get(0) / r.nextGaussian() * ar2.get(0);\n//\t\t\tar2.set(0, result);\n//\n//\t\t}\n//\n//\t\tsort(ar2);\n//\n//\t\treturn Math.round(ar2.get(0));\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int point_num = sc.nextInt();",
"point_num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int dis = sc.nextInt();",
"dis",
"sc.nextInt()",
"sc.nextInt",
"sc",
"ArrayList<String> ar = new ArrayList<>();",
"ar",
"new ArrayList<>()",
"int ans = 0;",
"ans",
"0",
"String v = sc.nextLine();",
"v",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int count = 0;",
"count",
"0",
"while(count < point_num) {\n\t\t\tar.add(sc.nextLine());\n\t\t\tcount++;\n\t\t}",
"count < point_num",
"count",
"point_num",
"{\n\t\t\tar.add(sc.nextLine());\n\t\t\tcount++;\n\t\t}",
"ar.add(sc.nextLine())",
"ar.add",
"ar",
"sc.nextLine()",
"sc.nextLine",
"sc",
"count++",
"count",
"for(String b : ar) {\n\t\t\tString bb[] = b.split(\" \");\n\t\t\tint x = Integer.parseInt(bb[0]);\n\t\t\tint y = Integer.parseInt(bb[1]);\n\n\t\t\tdouble dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\n\t\t\tif (dist <= dis) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"String b",
"ar",
"{\n\t\t\tString bb[] = b.split(\" \");\n\t\t\tint x = Integer.parseInt(bb[0]);\n\t\t\tint y = Integer.parseInt(bb[1]);\n\n\t\t\tdouble dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\n\t\t\tif (dist <= dis) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString bb[] = b.split(\" \");\n\t\t\tint x = Integer.parseInt(bb[0]);\n\t\t\tint y = Integer.parseInt(bb[1]);\n\n\t\t\tdouble dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\n\t\t\tif (dist <= dis) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"String bb[] = b.split(\" \");",
"bb",
"b.split(\" \")",
"b.split",
"b",
"\" \"",
"int x = Integer.parseInt(bb[0]);",
"x",
"Integer.parseInt(bb[0])",
"Integer.parseInt",
"Integer",
"bb[0]",
"bb",
"0",
"int y = Integer.parseInt(bb[1]);",
"y",
"Integer.parseInt(bb[1])",
"Integer.parseInt",
"Integer",
"bb[1]",
"bb",
"1",
"double dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));",
"dist",
"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 (dist <= dis) {\n\t\t\t\tans++;\n\t\t\t}",
"dist <= dis",
"dist",
"dis",
"{\n\t\t\t\tans++;\n\t\t\t}",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint point_num = sc.nextInt();\n\t\tint dis = sc.nextInt();\n\t\tArrayList<String> ar = new ArrayList<>();\n\t\tint ans = 0;\n\t\tString v = sc.nextLine();\n\n\t\tint count = 0;\n\t\twhile(count < point_num) {\n\t\t\tar.add(sc.nextLine());\n\t\t\tcount++;\n\t\t}\n\n\n\n\t\tfor(String b : ar) {\n\t\t\tString bb[] = b.split(\" \");\n\t\t\tint x = Integer.parseInt(bb[0]);\n\t\t\tint y = Integer.parseInt(bb[1]);\n\n\t\t\tdouble dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\n\t\t\tif (dist <= dis) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n//\t\tScanner sc = new Scanner(System.in);\n//\n//\t\tint num = sc.nextInt();\n//\t\tint cut_num = sc.nextInt();\n//\t\tString v = sc.nextLine();\n//\t\tString l = sc.nextLine();\n//\t\tString len[] = l.split(\" \");\n//\t\tArrayList<String> ar = new ArrayList<>();\n//\t\tArrayList<Double> ar2 = new ArrayList<>();\n//\n//\t\tlong ans = Long.MAX_VALUE;\n//\n//\t\tfor (int j = 0; j<1000; j++) {\n//\n//\t\t\tfor (int i = 0; i<len.length; i++) {\n//\t\t\t\tar2.add((double)Integer.parseInt(len[i]));\n//\t\t\t}\n//\n//\t\t\tlong ret = cut(num, cut_num, ar2);\n//\n//\t\t\tif (ans > ret) {\n//\t\t\t\tans = ret;\n//\t\t\t}\n//\t\t}\n//\n//\t\tSystem.out.println(ans);\n//\n//\t\t}\n//\n//\tstatic ArrayList<Double> sort(ArrayList<Double> ar2){\n//\t\tCollections.sort(ar2);\n//\t\tCollections.reverse(ar2);\n//\n//\t\treturn ar2;\n//\t}\n//\n//\n//\tstatic long cut(int num, int cut_num, ArrayList<Double> ar2) {\n//\t\tRandom r = new Random();\n//\n//\t\tfor (int i=0; i<cut_num; i++) {\n//\n//\t\t\tsort(ar2);\n//\t\t\tdouble result = ar2.get(0) / r.nextGaussian() * ar2.get(0);\n//\t\t\tar2.set(0, result);\n//\n//\t\t}\n//\n//\t\tsort(ar2);\n//\n//\t\treturn Math.round(ar2.get(0));\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\t\tint point_num = sc.nextInt();\n\t\tint dis = sc.nextInt();\n\t\tArrayList<String> ar = new ArrayList<>();\n\t\tint ans = 0;\n\t\tString v = sc.nextLine();\n\n\t\tint count = 0;\n\t\twhile(count < point_num) {\n\t\t\tar.add(sc.nextLine());\n\t\t\tcount++;\n\t\t}\n\n\n\n\t\tfor(String b : ar) {\n\t\t\tString bb[] = b.split(\" \");\n\t\t\tint x = Integer.parseInt(bb[0]);\n\t\t\tint y = Integer.parseInt(bb[1]);\n\n\t\t\tdouble dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\n\t\t\tif (dist <= dis) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n//\t\tScanner sc = new Scanner(System.in);\n//\n//\t\tint num = sc.nextInt();\n//\t\tint cut_num = sc.nextInt();\n//\t\tString v = sc.nextLine();\n//\t\tString l = sc.nextLine();\n//\t\tString len[] = l.split(\" \");\n//\t\tArrayList<String> ar = new ArrayList<>();\n//\t\tArrayList<Double> ar2 = new ArrayList<>();\n//\n//\t\tlong ans = Long.MAX_VALUE;\n//\n//\t\tfor (int j = 0; j<1000; j++) {\n//\n//\t\t\tfor (int i = 0; i<len.length; i++) {\n//\t\t\t\tar2.add((double)Integer.parseInt(len[i]));\n//\t\t\t}\n//\n//\t\t\tlong ret = cut(num, cut_num, ar2);\n//\n//\t\t\tif (ans > ret) {\n//\t\t\t\tans = ret;\n//\t\t\t}\n//\t\t}\n//\n//\t\tSystem.out.println(ans);\n//\n//\t\t}\n//\n//\tstatic ArrayList<Double> sort(ArrayList<Double> ar2){\n//\t\tCollections.sort(ar2);\n//\t\tCollections.reverse(ar2);\n//\n//\t\treturn ar2;\n//\t}\n//\n//\n//\tstatic long cut(int num, int cut_num, ArrayList<Double> ar2) {\n//\t\tRandom r = new Random();\n//\n//\t\tfor (int i=0; i<cut_num; i++) {\n//\n//\t\t\tsort(ar2);\n//\t\t\tdouble result = ar2.get(0) / r.nextGaussian() * ar2.get(0);\n//\t\t\tar2.set(0, result);\n//\n//\t\t}\n//\n//\t\tsort(ar2);\n//\n//\t\treturn Math.round(ar2.get(0));\n\t}\n\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int point_num = sc.nextInt();
int dis = sc.nextInt();
ArrayList<String> ar = new ArrayList<>();
int ans = 0;
String v = sc.nextLine();
int count = 0;
while(count < point_num) {
ar.add(sc.nextLine());
count++;
}
for(String b : ar) {
String bb[] = b.split(" ");
int x = Integer.parseInt(bb[0]);
int y = Integer.parseInt(bb[1]);
double dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
if (dist <= dis) {
ans++;
}
}
System.out.println(ans);
// Scanner sc = new Scanner(System.in);
//
// int num = sc.nextInt();
// int cut_num = sc.nextInt();
// String v = sc.nextLine();
// String l = sc.nextLine();
// String len[] = l.split(" ");
// ArrayList<String> ar = new ArrayList<>();
// ArrayList<Double> ar2 = new ArrayList<>();
//
// long ans = Long.MAX_VALUE;
//
// for (int j = 0; j<1000; j++) {
//
// for (int i = 0; i<len.length; i++) {
// ar2.add((double)Integer.parseInt(len[i]));
// }
//
// long ret = cut(num, cut_num, ar2);
//
// if (ans > ret) {
// ans = ret;
// }
// }
//
// System.out.println(ans);
//
// }
//
// static ArrayList<Double> sort(ArrayList<Double> ar2){
// Collections.sort(ar2);
// Collections.reverse(ar2);
//
// return ar2;
// }
//
//
// static long cut(int num, int cut_num, ArrayList<Double> ar2) {
// Random r = new Random();
//
// for (int i=0; i<cut_num; i++) {
//
// sort(ar2);
// double result = ar2.get(0) / r.nextGaussian() * ar2.get(0);
// ar2.set(0, result);
//
// }
//
// sort(ar2);
//
// return Math.round(ar2.get(0));
}
}
|
[
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,
14,
2,
4,
18,
13,
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
],
[
93,
5
],
[
93,
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
],
[
61,
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
],
[
61,
80
],
[
60,
81
],
[
81,
82
],
[
82,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
]
| [
"import java.util.*;\n \npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tdouble[] X = new double[N];\n\t\tdouble[] Y = new double[N];\n\t\tint count = 0;\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tX[i] = sc.nextInt();\n\t\t\tY[i] = sc.nextInt();\n\t\t\tif(Math.sqrt(X[i] * X[i] + Y[i] * Y[i]) <= D){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\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\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tdouble[] X = new double[N];\n\t\tdouble[] Y = new double[N];\n\t\tint count = 0;\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tX[i] = sc.nextInt();\n\t\t\tY[i] = sc.nextInt();\n\t\t\tif(Math.sqrt(X[i] * X[i] + Y[i] * Y[i]) <= D){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tdouble[] X = new double[N];\n\t\tdouble[] Y = new double[N];\n\t\tint count = 0;\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tX[i] = sc.nextInt();\n\t\t\tY[i] = sc.nextInt();\n\t\t\tif(Math.sqrt(X[i] * X[i] + Y[i] * Y[i]) <= D){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tdouble[] X = new double[N];\n\t\tdouble[] Y = new double[N];\n\t\tint count = 0;\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tX[i] = sc.nextInt();\n\t\t\tY[i] = sc.nextInt();\n\t\t\tif(Math.sqrt(X[i] * X[i] + Y[i] * Y[i]) <= D){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.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",
"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",
"int count = 0;",
"count",
"0",
"for(int i = 0; i < N; i ++){\n\t\t\tX[i] = sc.nextInt();\n\t\t\tY[i] = sc.nextInt();\n\t\t\tif(Math.sqrt(X[i] * X[i] + Y[i] * Y[i]) <= 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\tX[i] = sc.nextInt();\n\t\t\tY[i] = sc.nextInt();\n\t\t\tif(Math.sqrt(X[i] * X[i] + Y[i] * Y[i]) <= D){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tX[i] = sc.nextInt();\n\t\t\tY[i] = sc.nextInt();\n\t\t\tif(Math.sqrt(X[i] * X[i] + Y[i] * Y[i]) <= D){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"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",
"if(Math.sqrt(X[i] * X[i] + Y[i] * Y[i]) <= D){\n\t\t\t\tcount ++;\n\t\t\t}",
"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",
"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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tdouble[] X = new double[N];\n\t\tdouble[] Y = new double[N];\n\t\tint count = 0;\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tX[i] = sc.nextInt();\n\t\t\tY[i] = sc.nextInt();\n\t\t\tif(Math.sqrt(X[i] * X[i] + Y[i] * Y[i]) <= D){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tdouble[] X = new double[N];\n\t\tdouble[] Y = new double[N];\n\t\tint count = 0;\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tX[i] = sc.nextInt();\n\t\t\tY[i] = sc.nextInt();\n\t\t\tif(Math.sqrt(X[i] * X[i] + Y[i] * Y[i]) <= D){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\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();
int D = sc.nextInt();
double[] X = new double[N];
double[] Y = new double[N];
int count = 0;
for(int i = 0; i < N; i ++){
X[i] = sc.nextInt();
Y[i] = sc.nextInt();
if(Math.sqrt(X[i] * X[i] + Y[i] * Y[i]) <= 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,
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
],
[
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
],
[
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
],
[
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\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\tint D = sc.nextInt();\n\n\t\tint answer = 0;\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tdouble distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\t\t\t//System.out.println(distance);\n\n\t\t\tif(distance <= D) {\n\t\t\t\tanswer++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(answer);\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\tScanner sc = new Scanner(System.in);\n\t\t//数取得\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\n\t\tint answer = 0;\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tdouble distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\t\t\t//System.out.println(distance);\n\n\t\t\tif(distance <= D) {\n\t\t\t\tanswer++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(answer);\n\t}\n\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\tint D = sc.nextInt();\n\n\t\tint answer = 0;\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tdouble distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\t\t\t//System.out.println(distance);\n\n\t\t\tif(distance <= D) {\n\t\t\t\tanswer++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(answer);\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\tint D = sc.nextInt();\n\n\t\tint answer = 0;\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tdouble distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\t\t\t//System.out.println(distance);\n\n\t\t\tif(distance <= D) {\n\t\t\t\tanswer++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(answer);\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 answer = 0;",
"answer",
"0",
"for(int i = 0; i < N; i++) {\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tdouble distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\t\t\t//System.out.println(distance);\n\n\t\t\tif(distance <= D) {\n\t\t\t\tanswer++;\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\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tdouble distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\t\t\t//System.out.println(distance);\n\n\t\t\tif(distance <= D) {\n\t\t\t\tanswer++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tdouble distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\t\t\t//System.out.println(distance);\n\n\t\t\tif(distance <= D) {\n\t\t\t\tanswer++;\n\t\t\t}\n\t\t}",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"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) {\n\t\t\t\tanswer++;\n\t\t\t}",
"distance <= D",
"distance",
"D",
"{\n\t\t\t\tanswer++;\n\t\t\t}",
"answer++",
"answer",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"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\tint D = sc.nextInt();\n\n\t\tint answer = 0;\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tdouble distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\t\t\t//System.out.println(distance);\n\n\t\t\tif(distance <= D) {\n\t\t\t\tanswer++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(answer);\n\t}\n\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\tint D = sc.nextInt();\n\n\t\tint answer = 0;\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tdouble distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\t\t\t//System.out.println(distance);\n\n\t\t\tif(distance <= D) {\n\t\t\t\tanswer++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(answer);\n\t}\n\n}",
"Main"
]
| 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();
int answer = 0;
for(int i = 0; i < N; i++) {
int x = sc.nextInt();
int y = sc.nextInt();
double distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
//System.out.println(distance);
if(distance <= D) {
answer++;
}
}
System.out.println(answer);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
29,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
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,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
41,
13,
2,
13,
17,
14,
2,
13,
17,
29,
17,
14,
2,
13,
17,
40,
13,
0,
13,
17,
14,
2,
13,
17,
30,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
2,
13,
17,
0,
13,
17,
29,
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,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
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,
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
],
[
240,
17
],
[
240,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
21,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
26,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
43
],
[
43,
44
],
[
43,
45
],
[
26,
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
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
69,
79
],
[
79,
80
],
[
80,
81
],
[
26,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
18,
88
],
[
88,
89
],
[
240,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
103,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
100,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
100,
118
],
[
118,
119
],
[
118,
120
],
[
92,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
92,
128
],
[
128,
129
],
[
90,
130
],
[
130,
131
],
[
240,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
142,
150
],
[
150,
151
],
[
150,
152
],
[
134,
153
],
[
153,
154
],
[
132,
155
],
[
155,
156
],
[
240,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
165,
166
],
[
165,
167
],
[
165,
168
],
[
157,
169
],
[
169,
170
],
[
157,
171
],
[
171,
172
],
[
240,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
180,
181
],
[
175,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
183,
186
],
[
186,
187
],
[
186,
188
],
[
173,
189
],
[
189,
190
],
[
173,
191
],
[
191,
192
],
[
240,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
195,
197
],
[
193,
198
],
[
198,
199
],
[
198,
200
],
[
193,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
204,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
203,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
193,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
225,
228
],
[
228,
229
],
[
193,
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.*;\nimport java.math.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException,NumberFormatException{\n\t\ttry {\n\t\t FastScanner sc=new FastScanner();\n\t\t long n=sc.nextLong(),d=sc.nextLong();\n\t\t d*=d;\n\t\t int count=0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t long x=sc.nextLong(),y=sc.nextLong();\n\t\t\t if((x*x)+(y*y)<=d) {\n\t\t\t\t count++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(count);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\treturn ;\n\t\t}\n\n\t}\n\tpublic static boolean isDigit(long n) {\n\t\tint count9=0;\n\t\twhile(n!=0) {\n\t\t\tlong temp=n%10;\n\t\t\tif(temp==0)\n\t\t\t\treturn false;\n\t\t\tif(temp==9)\n\t\t\t\tcount9++;\n\t\t\tn/=10;\n\t\t}\n\t\tif(count9>=1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\tpublic static long prod(long n) {\n\t\tlong prod=1;\n\t\twhile(n!=0) {\n\t\t\tprod=prod*(n%10);\n\t\t\tn/=10;\n\t\t}\n\t\treturn prod;\n\t}\n\t\n\tpublic static long LCM(long a,long b) {\n\t\t\treturn (a*b)/GCD(a,b);\n\t}\n\tpublic static long GCD(long a,long b) {\n\t\tif(b==0)\n\t\t\treturn a;\n\t\treturn GCD(b,a%b);\n\t}\n \n\tpublic 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 st=new StringTokenizer(br.readLine());\t\t\t\t \n } catch (IOException e) {}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t}\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",
"import java.math.*;",
"math.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException,NumberFormatException{\n\t\ttry {\n\t\t FastScanner sc=new FastScanner();\n\t\t long n=sc.nextLong(),d=sc.nextLong();\n\t\t d*=d;\n\t\t int count=0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t long x=sc.nextLong(),y=sc.nextLong();\n\t\t\t if((x*x)+(y*y)<=d) {\n\t\t\t\t count++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(count);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\treturn ;\n\t\t}\n\n\t}\n\tpublic static boolean isDigit(long n) {\n\t\tint count9=0;\n\t\twhile(n!=0) {\n\t\t\tlong temp=n%10;\n\t\t\tif(temp==0)\n\t\t\t\treturn false;\n\t\t\tif(temp==9)\n\t\t\t\tcount9++;\n\t\t\tn/=10;\n\t\t}\n\t\tif(count9>=1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\tpublic static long prod(long n) {\n\t\tlong prod=1;\n\t\twhile(n!=0) {\n\t\t\tprod=prod*(n%10);\n\t\t\tn/=10;\n\t\t}\n\t\treturn prod;\n\t}\n\t\n\tpublic static long LCM(long a,long b) {\n\t\t\treturn (a*b)/GCD(a,b);\n\t}\n\tpublic static long GCD(long a,long b) {\n\t\tif(b==0)\n\t\t\treturn a;\n\t\treturn GCD(b,a%b);\n\t}\n \n\tpublic 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 st=new StringTokenizer(br.readLine());\t\t\t\t \n } catch (IOException e) {}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException,NumberFormatException{\n\t\ttry {\n\t\t FastScanner sc=new FastScanner();\n\t\t long n=sc.nextLong(),d=sc.nextLong();\n\t\t d*=d;\n\t\t int count=0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t long x=sc.nextLong(),y=sc.nextLong();\n\t\t\t if((x*x)+(y*y)<=d) {\n\t\t\t\t count++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(count);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\treturn ;\n\t\t}\n\n\t}",
"main",
"{\n\t\ttry {\n\t\t FastScanner sc=new FastScanner();\n\t\t long n=sc.nextLong(),d=sc.nextLong();\n\t\t d*=d;\n\t\t int count=0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t long x=sc.nextLong(),y=sc.nextLong();\n\t\t\t if((x*x)+(y*y)<=d) {\n\t\t\t\t count++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(count);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\treturn ;\n\t\t}\n\n\t}",
"try {\n\t\t FastScanner sc=new FastScanner();\n\t\t long n=sc.nextLong(),d=sc.nextLong();\n\t\t d*=d;\n\t\t int count=0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t long x=sc.nextLong(),y=sc.nextLong();\n\t\t\t if((x*x)+(y*y)<=d) {\n\t\t\t\t count++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(count);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\treturn ;\n\t\t}",
"catch(Exception e) {\n\t\t\treturn ;\n\t\t}",
"Exception e",
"{\n\t\t\treturn ;\n\t\t}",
"return ;",
"{\n\t\t FastScanner sc=new FastScanner();\n\t\t long n=sc.nextLong(),d=sc.nextLong();\n\t\t d*=d;\n\t\t int count=0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t long x=sc.nextLong(),y=sc.nextLong();\n\t\t\t if((x*x)+(y*y)<=d) {\n\t\t\t\t count++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(count);\n\t\t}",
"FastScanner sc=new FastScanner();",
"sc",
"new FastScanner()",
"long n=sc.nextLong()",
"n",
"sc.nextLong()",
"sc.nextLong",
"sc",
"d=sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"d*=d",
"d",
"d",
"int count=0;",
"count",
"0",
"for(int i=0;i<n;i++) {\n\t\t\t long x=sc.nextLong(),y=sc.nextLong();\n\t\t\t if((x*x)+(y*y)<=d) {\n\t\t\t\t count++;\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\t long x=sc.nextLong(),y=sc.nextLong();\n\t\t\t if((x*x)+(y*y)<=d) {\n\t\t\t\t count++;\n\t\t\t }\n\t\t }",
"{\n\t\t\t long x=sc.nextLong(),y=sc.nextLong();\n\t\t\t if((x*x)+(y*y)<=d) {\n\t\t\t\t count++;\n\t\t\t }\n\t\t }",
"long x=sc.nextLong()",
"x",
"sc.nextLong()",
"sc.nextLong",
"sc",
"y=sc.nextLong();",
"y",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if((x*x)+(y*y)<=d) {\n\t\t\t\t count++;\n\t\t\t }",
"(x*x)+(y*y)<=d",
"(x*x)+(y*y)",
"(x*x)",
"x",
"x",
"(y*y)",
"y",
"y",
"d",
"{\n\t\t\t\t count++;\n\t\t\t }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public static boolean isDigit(long n) {\n\t\tint count9=0;\n\t\twhile(n!=0) {\n\t\t\tlong temp=n%10;\n\t\t\tif(temp==0)\n\t\t\t\treturn false;\n\t\t\tif(temp==9)\n\t\t\t\tcount9++;\n\t\t\tn/=10;\n\t\t}\n\t\tif(count9>=1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"isDigit",
"{\n\t\tint count9=0;\n\t\twhile(n!=0) {\n\t\t\tlong temp=n%10;\n\t\t\tif(temp==0)\n\t\t\t\treturn false;\n\t\t\tif(temp==9)\n\t\t\t\tcount9++;\n\t\t\tn/=10;\n\t\t}\n\t\tif(count9>=1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"int count9=0;",
"count9",
"0",
"while(n!=0) {\n\t\t\tlong temp=n%10;\n\t\t\tif(temp==0)\n\t\t\t\treturn false;\n\t\t\tif(temp==9)\n\t\t\t\tcount9++;\n\t\t\tn/=10;\n\t\t}",
"n!=0",
"n",
"0",
"{\n\t\t\tlong temp=n%10;\n\t\t\tif(temp==0)\n\t\t\t\treturn false;\n\t\t\tif(temp==9)\n\t\t\t\tcount9++;\n\t\t\tn/=10;\n\t\t}",
"long temp=n%10;",
"temp",
"n%10",
"n",
"10",
"if(temp==0)\n\t\t\t\treturn false;",
"temp==0",
"temp",
"0",
"return false;",
"false",
"if(temp==9)\n\t\t\t\tcount9++;",
"temp==9",
"temp",
"9",
"count9++",
"count9",
"n/=10",
"n",
"10",
"if(count9>=1) {\n\t\t\treturn true;\n\t\t}",
"count9>=1",
"count9",
"1",
"{\n\t\t\treturn true;\n\t\t}",
"return true;",
"true",
"return false;",
"false",
"long n",
"n",
"public static long prod(long n) {\n\t\tlong prod=1;\n\t\twhile(n!=0) {\n\t\t\tprod=prod*(n%10);\n\t\t\tn/=10;\n\t\t}\n\t\treturn prod;\n\t}",
"prod",
"{\n\t\tlong prod=1;\n\t\twhile(n!=0) {\n\t\t\tprod=prod*(n%10);\n\t\t\tn/=10;\n\t\t}\n\t\treturn prod;\n\t}",
"long prod=1;",
"prod",
"1",
"while(n!=0) {\n\t\t\tprod=prod*(n%10);\n\t\t\tn/=10;\n\t\t}",
"n!=0",
"n",
"0",
"{\n\t\t\tprod=prod*(n%10);\n\t\t\tn/=10;\n\t\t}",
"prod=prod*(n%10)",
"prod",
"prod*(n%10)",
"prod",
"(n%10)",
"n",
"10",
"n/=10",
"n",
"10",
"return prod;",
"prod",
"long n",
"n",
"public static long LCM(long a,long b) {\n\t\t\treturn (a*b)/GCD(a,b);\n\t}",
"LCM",
"{\n\t\t\treturn (a*b)/GCD(a,b);\n\t}",
"return (a*b)/GCD(a,b);",
"(a*b)/GCD(a,b)",
"(a*b)",
"a",
"b",
"GCD(a,b)",
"GCD",
"a",
"b",
"long a",
"a",
"long b",
"b",
"public static long GCD(long a,long b) {\n\t\tif(b==0)\n\t\t\treturn a;\n\t\treturn GCD(b,a%b);\n\t}",
"GCD",
"{\n\t\tif(b==0)\n\t\t\treturn a;\n\t\treturn GCD(b,a%b);\n\t}",
"if(b==0)\n\t\t\treturn a;",
"b==0",
"b",
"0",
"return a;",
"a",
"return GCD(b,a%b);",
"GCD(b,a%b)",
"GCD",
"b",
"a%b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"public 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 st=new StringTokenizer(br.readLine());\t\t\t\t \n } catch (IOException e) {}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\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 st=new StringTokenizer(br.readLine());\t\t\t\t \n } catch (IOException e) {}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry { \n st=new StringTokenizer(br.readLine());\t\t\t\t \n } catch (IOException e) {}\n\t\t\treturn st.nextToken();\n\t\t}",
"while (!st.hasMoreTokens())\n\t\t\t\ttry { \n st=new StringTokenizer(br.readLine());\t\t\t\t \n } catch (IOException e) {}",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try { \n st=new StringTokenizer(br.readLine());\t\t\t\t \n } catch (IOException e) {}",
"catch (IOException e) {}",
"IOException e",
"{}",
"{ \n st=new StringTokenizer(br.readLine());\t\t\t\t \n }",
"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",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException,NumberFormatException{\n\t\ttry {\n\t\t FastScanner sc=new FastScanner();\n\t\t long n=sc.nextLong(),d=sc.nextLong();\n\t\t d*=d;\n\t\t int count=0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t long x=sc.nextLong(),y=sc.nextLong();\n\t\t\t if((x*x)+(y*y)<=d) {\n\t\t\t\t count++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(count);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\treturn ;\n\t\t}\n\n\t}\n\tpublic static boolean isDigit(long n) {\n\t\tint count9=0;\n\t\twhile(n!=0) {\n\t\t\tlong temp=n%10;\n\t\t\tif(temp==0)\n\t\t\t\treturn false;\n\t\t\tif(temp==9)\n\t\t\t\tcount9++;\n\t\t\tn/=10;\n\t\t}\n\t\tif(count9>=1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\tpublic static long prod(long n) {\n\t\tlong prod=1;\n\t\twhile(n!=0) {\n\t\t\tprod=prod*(n%10);\n\t\t\tn/=10;\n\t\t}\n\t\treturn prod;\n\t}\n\t\n\tpublic static long LCM(long a,long b) {\n\t\t\treturn (a*b)/GCD(a,b);\n\t}\n\tpublic static long GCD(long a,long b) {\n\t\tif(b==0)\n\t\t\treturn a;\n\t\treturn GCD(b,a%b);\n\t}\n \n\tpublic 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 st=new StringTokenizer(br.readLine());\t\t\t\t \n } catch (IOException e) {}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException,NumberFormatException{\n\t\ttry {\n\t\t FastScanner sc=new FastScanner();\n\t\t long n=sc.nextLong(),d=sc.nextLong();\n\t\t d*=d;\n\t\t int count=0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t long x=sc.nextLong(),y=sc.nextLong();\n\t\t\t if((x*x)+(y*y)<=d) {\n\t\t\t\t count++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(count);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\treturn ;\n\t\t}\n\n\t}\n\tpublic static boolean isDigit(long n) {\n\t\tint count9=0;\n\t\twhile(n!=0) {\n\t\t\tlong temp=n%10;\n\t\t\tif(temp==0)\n\t\t\t\treturn false;\n\t\t\tif(temp==9)\n\t\t\t\tcount9++;\n\t\t\tn/=10;\n\t\t}\n\t\tif(count9>=1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\tpublic static long prod(long n) {\n\t\tlong prod=1;\n\t\twhile(n!=0) {\n\t\t\tprod=prod*(n%10);\n\t\t\tn/=10;\n\t\t}\n\t\treturn prod;\n\t}\n\t\n\tpublic static long LCM(long a,long b) {\n\t\t\treturn (a*b)/GCD(a,b);\n\t}\n\tpublic static long GCD(long a,long b) {\n\t\tif(b==0)\n\t\t\treturn a;\n\t\treturn GCD(b,a%b);\n\t}\n \n\tpublic 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 st=new StringTokenizer(br.readLine());\t\t\t\t \n } catch (IOException e) {}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args) throws IOException,NumberFormatException{
try {
FastScanner sc=new FastScanner();
long n=sc.nextLong(),d=sc.nextLong();
d*=d;
int count=0;
for(int i=0;i<n;i++) {
long x=sc.nextLong(),y=sc.nextLong();
if((x*x)+(y*y)<=d) {
count++;
}
}
System.out.println(count);
}
catch(Exception e) {
return ;
}
}
public static boolean isDigit(long n) {
int count9=0;
while(n!=0) {
long temp=n%10;
if(temp==0)
return false;
if(temp==9)
count9++;
n/=10;
}
if(count9>=1) {
return true;
}
return false;
}
public static long prod(long n) {
long prod=1;
while(n!=0) {
prod=prod*(n%10);
n/=10;
}
return prod;
}
public static long LCM(long a,long b) {
return (a*b)/GCD(a,b);
}
public static long GCD(long a,long b) {
if(b==0)
return a;
return GCD(b,a%b);
}
public 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) {}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
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,
20,
13,
41,
13,
20,
13,
41,
13,
4,
18,
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,
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,
30,
40,
13,
30,
9,
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
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
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
],
[
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
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
72,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
93,
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;\n \npublic class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n\t double[] X = new double[N];\n double[] Y = new double[N];\n double D = sc.nextDouble();\n int cnt = 0;\n \n for(int i=0; i<N; i++) {\n X[i]=sc.nextDouble();\n Y[i]=sc.nextDouble();\n }\n \n for(int i=0; i<N; i++) {\n double dis = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(dis <= D) {\n cnt ++;\n } else {\n //cnt += 0;\n continue;\n }\n }\n System.out.println(cnt);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n\t double[] X = new double[N];\n double[] Y = new double[N];\n double D = sc.nextDouble();\n int cnt = 0;\n \n for(int i=0; i<N; i++) {\n X[i]=sc.nextDouble();\n Y[i]=sc.nextDouble();\n }\n \n for(int i=0; i<N; i++) {\n double dis = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(dis <= D) {\n cnt ++;\n } else {\n //cnt += 0;\n continue;\n }\n }\n System.out.println(cnt);\n }\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n\t double[] X = new double[N];\n double[] Y = new double[N];\n double D = sc.nextDouble();\n int cnt = 0;\n \n for(int i=0; i<N; i++) {\n X[i]=sc.nextDouble();\n Y[i]=sc.nextDouble();\n }\n \n for(int i=0; i<N; i++) {\n double dis = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(dis <= D) {\n cnt ++;\n } else {\n //cnt += 0;\n continue;\n }\n }\n System.out.println(cnt);\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n\t double[] X = new double[N];\n double[] Y = new double[N];\n double D = sc.nextDouble();\n int cnt = 0;\n \n for(int i=0; i<N; i++) {\n X[i]=sc.nextDouble();\n Y[i]=sc.nextDouble();\n }\n \n for(int i=0; i<N; i++) {\n double dis = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(dis <= D) {\n cnt ++;\n } else {\n //cnt += 0;\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[] X = new double[N];",
"X",
"new double[N]",
"N",
"double[] Y = new double[N];",
"Y",
"new double[N]",
"N",
"double D = sc.nextDouble();",
"D",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"int cnt = 0;",
"cnt",
"0",
"for(int i=0; i<N; i++) {\n X[i]=sc.nextDouble();\n Y[i]=sc.nextDouble();\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 }",
"{\n X[i]=sc.nextDouble();\n Y[i]=sc.nextDouble();\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",
"for(int i=0; i<N; i++) {\n double dis = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(dis <= D) {\n cnt ++;\n } else {\n //cnt += 0;\n continue;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n double dis = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(dis <= D) {\n cnt ++;\n } else {\n //cnt += 0;\n continue;\n }\n }",
"{\n double dis = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(dis <= D) {\n cnt ++;\n } else {\n //cnt += 0;\n continue;\n }\n }",
"double 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) {\n cnt ++;\n } else {\n //cnt += 0;\n continue;\n }",
"dis <= D",
"dis",
"D",
"{\n cnt ++;\n }",
"cnt ++",
"cnt",
"{\n //cnt += 0;\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\t\tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n\t double[] X = new double[N];\n double[] Y = new double[N];\n double D = sc.nextDouble();\n int cnt = 0;\n \n for(int i=0; i<N; i++) {\n X[i]=sc.nextDouble();\n Y[i]=sc.nextDouble();\n }\n \n for(int i=0; i<N; i++) {\n double dis = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(dis <= D) {\n cnt ++;\n } else {\n //cnt += 0;\n continue;\n }\n }\n System.out.println(cnt);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n\t double[] X = new double[N];\n double[] Y = new double[N];\n double D = sc.nextDouble();\n int cnt = 0;\n \n for(int i=0; i<N; i++) {\n X[i]=sc.nextDouble();\n Y[i]=sc.nextDouble();\n }\n \n for(int i=0; i<N; i++) {\n double dis = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n if(dis <= D) {\n cnt ++;\n } else {\n //cnt += 0;\n continue;\n }\n }\n System.out.println(cnt);\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();
double[] X = new double[N];
double[] Y = new double[N];
double D = sc.nextDouble();
int cnt = 0;
for(int i=0; i<N; i++) {
X[i]=sc.nextDouble();
Y[i]=sc.nextDouble();
}
for(int i=0; i<N; i++) {
double dis = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);
if(dis <= D) {
cnt ++;
} else {
//cnt += 0;
continue;
}
}
System.out.println(cnt);
}
} |
[
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,
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,
4,
18,
13,
18,
13,
13,
17,
4,
18,
13,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
189,
11
],
[
189,
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
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
14,
36
],
[
36,
37
],
[
36,
38
],
[
14,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
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
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
51,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
79,
85
],
[
51,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
14,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
12,
98
],
[
98,
99
],
[
189,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
100,
104
],
[
104,
105
],
[
100,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
100,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
115,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
125,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
114,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
100,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
147,
148
],
[
100,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
156,
157
],
[
100,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
165,
166
],
[
100,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
173,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
169,
186
],
[
186,
187
],
[
0,
188
],
[
188,
189
],
[
188,
190
]
]
| [
"/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n\npublic class Main {\n\tstatic class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n\tpublic static void main (String[] args) {\n\t\tFastReader sc = new FastReader();\n\t\tint n = sc.nextInt();\n\t\tdouble d = sc.nextInt();\n\t\t\n\t\tint[] x = new int[n];\n\t\t\tint[] y = new int[n];\n\t\tint count=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextInt();\n\t\t\t\ty[i]=sc.nextInt();\n\t\t\t\tdouble dis = Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2));\n\t\t\t\tif(dis<=d) count++;\n\t\t}\n\t\tSystem.out.println(count);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\tstatic class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n\tpublic static void main (String[] args) {\n\t\tFastReader sc = new FastReader();\n\t\tint n = sc.nextInt();\n\t\tdouble d = sc.nextInt();\n\t\t\n\t\tint[] x = new int[n];\n\t\t\tint[] y = new int[n];\n\t\tint count=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextInt();\n\t\t\t\ty[i]=sc.nextInt();\n\t\t\t\tdouble dis = Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2));\n\t\t\t\tif(dis<=d) count++;\n\t\t}\n\t\tSystem.out.println(count);\n }\n}",
"Main",
"public static void main (String[] args) {\n\t\tFastReader sc = new FastReader();\n\t\tint n = sc.nextInt();\n\t\tdouble d = sc.nextInt();\n\t\t\n\t\tint[] x = new int[n];\n\t\t\tint[] y = new int[n];\n\t\tint count=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextInt();\n\t\t\t\ty[i]=sc.nextInt();\n\t\t\t\tdouble dis = Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2));\n\t\t\t\tif(dis<=d) count++;\n\t\t}\n\t\tSystem.out.println(count);\n }",
"main",
"{\n\t\tFastReader sc = new FastReader();\n\t\tint n = sc.nextInt();\n\t\tdouble d = sc.nextInt();\n\t\t\n\t\tint[] x = new int[n];\n\t\t\tint[] y = new int[n];\n\t\tint count=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextInt();\n\t\t\t\ty[i]=sc.nextInt();\n\t\t\t\tdouble dis = Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2));\n\t\t\t\tif(dis<=d) count++;\n\t\t}\n\t\tSystem.out.println(count);\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double 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",
"int count=0;",
"count",
"0",
"for(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextInt();\n\t\t\t\ty[i]=sc.nextInt();\n\t\t\t\tdouble dis = Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2));\n\t\t\t\tif(dis<=d) count++;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tx[i]=sc.nextInt();\n\t\t\t\ty[i]=sc.nextInt();\n\t\t\t\tdouble dis = Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2));\n\t\t\t\tif(dis<=d) count++;\n\t\t}",
"{\n\t\t\tx[i]=sc.nextInt();\n\t\t\t\ty[i]=sc.nextInt();\n\t\t\t\tdouble dis = Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2));\n\t\t\t\tif(dis<=d) count++;\n\t\t}",
"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",
"double dis = Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2));",
"dis",
"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(dis<=d) count++;",
"dis<=d",
"dis",
"d",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() \n { \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 { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"next",
"{ \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{ \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }",
"try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }",
"catch (IOException e) \n { \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 { \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 { \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 { \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 { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }",
"nextLine",
"{ \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }",
"String str = \"\";",
"str",
"\"\"",
"try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }",
"catch (IOException e) \n { \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\tstatic class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n\tpublic static void main (String[] args) {\n\t\tFastReader sc = new FastReader();\n\t\tint n = sc.nextInt();\n\t\tdouble d = sc.nextInt();\n\t\t\n\t\tint[] x = new int[n];\n\t\t\tint[] y = new int[n];\n\t\tint count=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextInt();\n\t\t\t\ty[i]=sc.nextInt();\n\t\t\t\tdouble dis = Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2));\n\t\t\t\tif(dis<=d) count++;\n\t\t}\n\t\tSystem.out.println(count);\n }\n}",
"public class Main {\n\tstatic class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n\tpublic static void main (String[] args) {\n\t\tFastReader sc = new FastReader();\n\t\tint n = sc.nextInt();\n\t\tdouble d = sc.nextInt();\n\t\t\n\t\tint[] x = new int[n];\n\t\t\tint[] y = new int[n];\n\t\tint count=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextInt();\n\t\t\t\ty[i]=sc.nextInt();\n\t\t\t\tdouble dis = Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2));\n\t\t\t\tif(dis<=d) count++;\n\t\t}\n\t\tSystem.out.println(count);\n }\n}",
"Main"
]
| /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
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;
}
}
public static void main (String[] args) {
FastReader sc = new FastReader();
int n = sc.nextInt();
double d = sc.nextInt();
int[] x = new int[n];
int[] y = new int[n];
int count=0;
for(int i=0;i<n;i++){
x[i]=sc.nextInt();
y[i]=sc.nextInt();
double dis = Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2));
if(dis<=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,
42,
2,
40,
13,
17,
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
],
[
65,
5
],
[
65,
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
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
50,
52
],
[
41,
53
],
[
53,
54
],
[
54,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
6,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextLong();\n\t\tint r = 0;\n\t\twhile(n-->0) {\n\t\t\tlong x = sc.nextLong(), y = sc.nextLong();\n\t\t\tif (x*x+y*y <= d*d) {\n\t\t\t\tr++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(r);\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextLong();\n\t\tint r = 0;\n\t\twhile(n-->0) {\n\t\t\tlong x = sc.nextLong(), y = sc.nextLong();\n\t\t\tif (x*x+y*y <= d*d) {\n\t\t\t\tr++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(r);\n\n\t}\n}",
"Main",
"public static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextLong();\n\t\tint r = 0;\n\t\twhile(n-->0) {\n\t\t\tlong x = sc.nextLong(), y = sc.nextLong();\n\t\t\tif (x*x+y*y <= d*d) {\n\t\t\t\tr++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(r);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextLong();\n\t\tint r = 0;\n\t\twhile(n-->0) {\n\t\t\tlong x = sc.nextLong(), y = sc.nextLong();\n\t\t\tif (x*x+y*y <= d*d) {\n\t\t\t\tr++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(r);\n\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.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"int r = 0;",
"r",
"0",
"while(n-->0) {\n\t\t\tlong x = sc.nextLong(), y = sc.nextLong();\n\t\t\tif (x*x+y*y <= d*d) {\n\t\t\t\tr++;\n\t\t\t}\n\t\t}",
"n-->0",
"n--",
"n",
"0",
"{\n\t\t\tlong x = sc.nextLong(), y = sc.nextLong();\n\t\t\tif (x*x+y*y <= d*d) {\n\t\t\t\tr++;\n\t\t\t}\n\t\t}",
"long 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\t\t\t\tr++;\n\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\tr++;\n\t\t\t}",
"r++",
"r",
"System.out.println(r)",
"System.out.println",
"System.out",
"System",
"System.out",
"r",
"final String[] args",
"args",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextLong();\n\t\tint r = 0;\n\t\twhile(n-->0) {\n\t\t\tlong x = sc.nextLong(), y = sc.nextLong();\n\t\t\tif (x*x+y*y <= d*d) {\n\t\t\t\tr++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(r);\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextLong();\n\t\tint r = 0;\n\t\twhile(n-->0) {\n\t\t\tlong x = sc.nextLong(), y = sc.nextLong();\n\t\t\tif (x*x+y*y <= d*d) {\n\t\t\t\tr++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(r);\n\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(final String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long d = sc.nextLong();
int r = 0;
while(n-->0) {
long x = sc.nextLong(), y = sc.nextLong();
if (x*x+y*y <= d*d) {
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,
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,
12,
13,
30,
4,
18,
20,
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
],
[
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
],
[
81,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
72,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
]
| [
"import java.util.*;\n\npublic class Main{\n void solve(){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int d = scan.nextInt();\n int out = 0;\n for(int i = 0; i < n; i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n double distance = Math.sqrt(x * x + y * y);\n if(distance <= d) out++;\n }\n System.out.println(out);\n }\n \n public static void main(String[] args){\n new Main().solve();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n void solve(){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int d = scan.nextInt();\n int out = 0;\n for(int i = 0; i < n; i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n double distance = Math.sqrt(x * x + y * y);\n if(distance <= d) out++;\n }\n System.out.println(out);\n }\n \n public static void main(String[] args){\n new Main().solve();\n }\n}",
"Main",
"void solve(){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int d = scan.nextInt();\n int out = 0;\n for(int i = 0; i < n; i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n double distance = Math.sqrt(x * x + y * y);\n if(distance <= d) out++;\n }\n System.out.println(out);\n }",
"solve",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int d = scan.nextInt();\n int out = 0;\n for(int i = 0; i < n; i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n double distance = Math.sqrt(x * x + y * y);\n if(distance <= d) out++;\n }\n System.out.println(out);\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 out = 0;",
"out",
"0",
"for(int i = 0; i < n; i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n double distance = Math.sqrt(x * x + y * y);\n if(distance <= d) out++;\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 double distance = Math.sqrt(x * x + y * y);\n if(distance <= d) out++;\n }",
"{\n long x = scan.nextInt();\n long y = scan.nextInt();\n double distance = Math.sqrt(x * x + y * y);\n if(distance <= d) out++;\n }",
"long x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long y = scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"double distance = 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",
"if(distance <= d) out++;",
"distance <= d",
"distance",
"d",
"out++",
"out",
"System.out.println(out)",
"System.out.println",
"System.out",
"System",
"System.out",
"out",
"public static void main(String[] args){\n new Main().solve();\n }",
"main",
"{\n new Main().solve();\n }",
"new Main().solve()",
"new Main().solve",
"new Main()",
"String[] args",
"args",
"public class Main{\n void solve(){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int d = scan.nextInt();\n int out = 0;\n for(int i = 0; i < n; i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n double distance = Math.sqrt(x * x + y * y);\n if(distance <= d) out++;\n }\n System.out.println(out);\n }\n \n public static void main(String[] args){\n new Main().solve();\n }\n}",
"public class Main{\n void solve(){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int d = scan.nextInt();\n int out = 0;\n for(int i = 0; i < n; i++){\n long x = scan.nextInt();\n long y = scan.nextInt();\n double distance = Math.sqrt(x * x + y * y);\n if(distance <= d) out++;\n }\n System.out.println(out);\n }\n \n public static void main(String[] args){\n new Main().solve();\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
void solve(){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int d = scan.nextInt();
int out = 0;
for(int i = 0; i < n; i++){
long x = scan.nextInt();
long y = scan.nextInt();
double distance = Math.sqrt(x * x + y * y);
if(distance <= d) out++;
}
System.out.println(out);
}
public static void main(String[] args){
new Main().solve();
}
} |
[
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,
4,
13,
23,
13,
12,
13,
30,
38,
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,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
13,
30,
40,
13,
4,
18,
18,
13,
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
],
[
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
],
[
117,
38
],
[
117,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
39,
44
],
[
44,
45
],
[
117,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
50,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
50,
64
],
[
64,
65
],
[
64,
66
],
[
50,
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
],
[
92,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
96,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
101,
105
],
[
91,
106
],
[
90,
107
],
[
107,
108
],
[
108,
109
],
[
50,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"\timport java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Comparator;\nimport java.util.Deque;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Queue;\nimport java.util.Scanner;\nimport java.util.Set;\n\t\n\tpublic class Main {\n\t\n\t\tpublic static void main(String[] args) {\n\t\t\texecute17_3();\n\t\t}\n\t\t\n\t\tprivate static void execute17_3() {\n\t\t\ttry \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tint d = sc.nextInt();\n\t\t\t\t\n\t\t\t\tint ans=0;\n\t\t\t\tfor(int i=0; i<n;i++) {\n\t\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\tint b = sc.nextInt();\n\t\t\t\t\tif(Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d) {\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(ans);\n\t\t\t}\n\t\t}\n }",
"import java.util.ArrayDeque;",
"ArrayDeque",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"import java.util.Deque;",
"Deque",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Queue;",
"Queue",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n\t\n\t\tpublic static void main(String[] args) {\n\t\t\texecute17_3();\n\t\t}\n\t\t\n\t\tprivate static void execute17_3() {\n\t\t\ttry \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tint d = sc.nextInt();\n\t\t\t\t\n\t\t\t\tint ans=0;\n\t\t\t\tfor(int i=0; i<n;i++) {\n\t\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\tint b = sc.nextInt();\n\t\t\t\t\tif(Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d) {\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(ans);\n\t\t\t}\n\t\t}\n }",
"Main",
"public static void main(String[] args) {\n\t\t\texecute17_3();\n\t\t}",
"main",
"{\n\t\t\texecute17_3();\n\t\t}",
"execute17_3()",
"execute17_3",
"String[] args",
"args",
"private static void execute17_3() {\n\t\t\ttry \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tint d = sc.nextInt();\n\t\t\t\t\n\t\t\t\tint ans=0;\n\t\t\t\tfor(int i=0; i<n;i++) {\n\t\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\tint b = sc.nextInt();\n\t\t\t\t\tif(Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d) {\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(ans);\n\t\t\t}\n\t\t}",
"execute17_3",
"{\n\t\t\ttry \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tint d = sc.nextInt();\n\t\t\t\t\n\t\t\t\tint ans=0;\n\t\t\t\tfor(int i=0; i<n;i++) {\n\t\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\tint b = sc.nextInt();\n\t\t\t\t\tif(Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d) {\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(ans);\n\t\t\t}\n\t\t}",
"try \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tint d = sc.nextInt();\n\t\t\t\t\n\t\t\t\tint ans=0;\n\t\t\t\tfor(int i=0; i<n;i++) {\n\t\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\tint b = sc.nextInt();\n\t\t\t\t\tif(Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d) {\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(ans);\n\t\t\t}",
"{\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tint d = sc.nextInt();\n\t\t\t\t\n\t\t\t\tint ans=0;\n\t\t\t\tfor(int i=0; i<n;i++) {\n\t\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\tint b = sc.nextInt();\n\t\t\t\t\tif(Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d) {\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(ans);\n\t\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",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans=0;",
"ans",
"0",
"for(int i=0; i<n;i++) {\n\t\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\tint b = sc.nextInt();\n\t\t\t\t\tif(Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d) {\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}\n\t\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\tint b = sc.nextInt();\n\t\t\t\t\tif(Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d) {\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\tint b = sc.nextInt();\n\t\t\t\t\tif(Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d) {\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}\n\t\t\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d) {\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}",
"Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d",
"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",
"d",
"{\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"public class Main {\n\t\n\t\tpublic static void main(String[] args) {\n\t\t\texecute17_3();\n\t\t}\n\t\t\n\t\tprivate static void execute17_3() {\n\t\t\ttry \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tint d = sc.nextInt();\n\t\t\t\t\n\t\t\t\tint ans=0;\n\t\t\t\tfor(int i=0; i<n;i++) {\n\t\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\tint b = sc.nextInt();\n\t\t\t\t\tif(Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d) {\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(ans);\n\t\t\t}\n\t\t}\n }",
"public class Main {\n\t\n\t\tpublic static void main(String[] args) {\n\t\t\texecute17_3();\n\t\t}\n\t\t\n\t\tprivate static void execute17_3() {\n\t\t\ttry \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tint d = sc.nextInt();\n\t\t\t\t\n\t\t\t\tint ans=0;\n\t\t\t\tfor(int i=0; i<n;i++) {\n\t\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\tint b = sc.nextInt();\n\t\t\t\t\tif(Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d) {\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(ans);\n\t\t\t}\n\t\t}\n }",
"Main"
]
| import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Deque;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
execute17_3();
}
private static void execute17_3() {
try
(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 a = sc.nextInt();
int b = sc.nextInt();
if(Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) <= d) {
ans++;
}
}
System.out.println(ans);
}
}
} |
[
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,
41,
13,
17,
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,
4,
18,
13,
18,
13,
13,
17,
41,
13,
4,
18,
13,
18,
13,
13,
17,
14,
2,
4,
18,
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
],
[
114,
5
],
[
114,
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
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
70,
71
],
[
51,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
74,
80
],
[
51,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
51,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
95,
97
],
[
91,
98
],
[
90,
99
],
[
99,
100
],
[
100,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
6,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint D = Integer.parseInt(scan.next());\n\t\tint[] X = new int[N];\n\t\tint[] Y = new int[N];\n\t\tint ans = 0;\n\t\tfor (int n = 0;n < N ;n++ ) {\n\t\t\tX[n] = Integer.parseInt(scan.next());\n\t\t\tY[n] = Integer.parseInt(scan.next());\n\t\t\tlong xx = (long)Math.pow(X[n], 2);\n\t\t\tlong yy = (long)Math.pow(Y[n], 2);\n\t\t\tif (Math.sqrt(xx + yy) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint D = Integer.parseInt(scan.next());\n\t\tint[] X = new int[N];\n\t\tint[] Y = new int[N];\n\t\tint ans = 0;\n\t\tfor (int n = 0;n < N ;n++ ) {\n\t\t\tX[n] = Integer.parseInt(scan.next());\n\t\t\tY[n] = Integer.parseInt(scan.next());\n\t\t\tlong xx = (long)Math.pow(X[n], 2);\n\t\t\tlong yy = (long)Math.pow(Y[n], 2);\n\t\t\tif (Math.sqrt(xx + yy) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint D = Integer.parseInt(scan.next());\n\t\tint[] X = new int[N];\n\t\tint[] Y = new int[N];\n\t\tint ans = 0;\n\t\tfor (int n = 0;n < N ;n++ ) {\n\t\t\tX[n] = Integer.parseInt(scan.next());\n\t\t\tY[n] = Integer.parseInt(scan.next());\n\t\t\tlong xx = (long)Math.pow(X[n], 2);\n\t\t\tlong yy = (long)Math.pow(Y[n], 2);\n\t\t\tif (Math.sqrt(xx + yy) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint D = Integer.parseInt(scan.next());\n\t\tint[] X = new int[N];\n\t\tint[] Y = new int[N];\n\t\tint ans = 0;\n\t\tfor (int n = 0;n < N ;n++ ) {\n\t\t\tX[n] = Integer.parseInt(scan.next());\n\t\t\tY[n] = Integer.parseInt(scan.next());\n\t\t\tlong xx = (long)Math.pow(X[n], 2);\n\t\t\tlong yy = (long)Math.pow(Y[n], 2);\n\t\t\tif (Math.sqrt(xx + yy) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(ans);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = Integer.parseInt(scan.next());",
"N",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"int D = Integer.parseInt(scan.next());",
"D",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"int[] X = new int[N];",
"X",
"new int[N]",
"N",
"int[] Y = new int[N];",
"Y",
"new int[N]",
"N",
"int ans = 0;",
"ans",
"0",
"for (int n = 0;n < N ;n++ ) {\n\t\t\tX[n] = Integer.parseInt(scan.next());\n\t\t\tY[n] = Integer.parseInt(scan.next());\n\t\t\tlong xx = (long)Math.pow(X[n], 2);\n\t\t\tlong yy = (long)Math.pow(Y[n], 2);\n\t\t\tif (Math.sqrt(xx + yy) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"int n = 0;",
"int n = 0;",
"n",
"0",
"n < N",
"n",
"N",
"n++",
"n++",
"n",
"{\n\t\t\tX[n] = Integer.parseInt(scan.next());\n\t\t\tY[n] = Integer.parseInt(scan.next());\n\t\t\tlong xx = (long)Math.pow(X[n], 2);\n\t\t\tlong yy = (long)Math.pow(Y[n], 2);\n\t\t\tif (Math.sqrt(xx + yy) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tX[n] = Integer.parseInt(scan.next());\n\t\t\tY[n] = Integer.parseInt(scan.next());\n\t\t\tlong xx = (long)Math.pow(X[n], 2);\n\t\t\tlong yy = (long)Math.pow(Y[n], 2);\n\t\t\tif (Math.sqrt(xx + yy) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"X[n] = Integer.parseInt(scan.next())",
"X[n]",
"X",
"n",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"Y[n] = Integer.parseInt(scan.next())",
"Y[n]",
"Y",
"n",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"long xx = (long)Math.pow(X[n], 2);",
"xx",
"(long)Math.pow(X[n], 2)",
"Math.pow",
"Math",
"X[n]",
"X",
"n",
"2",
"long yy = (long)Math.pow(Y[n], 2);",
"yy",
"(long)Math.pow(Y[n], 2)",
"Math.pow",
"Math",
"Y[n]",
"Y",
"n",
"2",
"if (Math.sqrt(xx + yy) <= D) {\n\t\t\t\tans++;\n\t\t\t}",
"Math.sqrt(xx + yy) <= D",
"Math.sqrt(xx + yy)",
"Math.sqrt",
"Math",
"xx + yy",
"xx",
"yy",
"D",
"{\n\t\t\t\tans++;\n\t\t\t}",
"ans++",
"ans",
"scan.close()",
"scan.close",
"scan",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint D = Integer.parseInt(scan.next());\n\t\tint[] X = new int[N];\n\t\tint[] Y = new int[N];\n\t\tint ans = 0;\n\t\tfor (int n = 0;n < N ;n++ ) {\n\t\t\tX[n] = Integer.parseInt(scan.next());\n\t\t\tY[n] = Integer.parseInt(scan.next());\n\t\t\tlong xx = (long)Math.pow(X[n], 2);\n\t\t\tlong yy = (long)Math.pow(Y[n], 2);\n\t\t\tif (Math.sqrt(xx + yy) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint D = Integer.parseInt(scan.next());\n\t\tint[] X = new int[N];\n\t\tint[] Y = new int[N];\n\t\tint ans = 0;\n\t\tfor (int n = 0;n < N ;n++ ) {\n\t\t\tX[n] = Integer.parseInt(scan.next());\n\t\t\tY[n] = Integer.parseInt(scan.next());\n\t\t\tlong xx = (long)Math.pow(X[n], 2);\n\t\t\tlong yy = (long)Math.pow(Y[n], 2);\n\t\t\tif (Math.sqrt(xx + yy) <= D) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = Integer.parseInt(scan.next());
int D = Integer.parseInt(scan.next());
int[] X = new int[N];
int[] Y = new int[N];
int ans = 0;
for (int n = 0;n < N ;n++ ) {
X[n] = Integer.parseInt(scan.next());
Y[n] = Integer.parseInt(scan.next());
long xx = (long)Math.pow(X[n], 2);
long yy = (long)Math.pow(Y[n], 2);
if (Math.sqrt(xx + yy) <= D) {
ans++;
}
}
scan.close();
System.out.println(ans);
}
}
|
[
7,
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,
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,
40,
13,
4,
18,
18,
13,
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
],
[
158,
14
],
[
158,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
17,
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
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
57,
69
],
[
69,
70
],
[
17,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
15,
77
],
[
77,
78
],
[
158,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
90,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
95,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
89,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
79,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
79,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
121,
144
],
[
144,
145
],
[
119,
146
],
[
146,
147
],
[
79,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
155,
156
],
[
0,
157
],
[
157,
158
],
[
157,
159
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t FastScanner scanner =new FastScanner();\n\t\t\n\t\t\tint n=scanner.nextInt();\n\t\t\tlong d=scanner.nextLong();\n\t\tint c=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong x=scanner.nextLong(),y=scanner.nextLong();\n\t\t\tif(d*d>=(x*x+y*y))c++;\n\t\t}\n\t\tSystem.out.println(c);\n\t\t \t\n\t\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\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}\n\n\t\t \n\t\t}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t FastScanner scanner =new FastScanner();\n\t\t\n\t\t\tint n=scanner.nextInt();\n\t\t\tlong d=scanner.nextLong();\n\t\tint c=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong x=scanner.nextLong(),y=scanner.nextLong();\n\t\t\tif(d*d>=(x*x+y*y))c++;\n\t\t}\n\t\tSystem.out.println(c);\n\t\t \t\n\t\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\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}\n\n\t\t \n\t\t}",
"Main",
"public static void main(String[] args) {\n\t\t FastScanner scanner =new FastScanner();\n\t\t\n\t\t\tint n=scanner.nextInt();\n\t\t\tlong d=scanner.nextLong();\n\t\tint c=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong x=scanner.nextLong(),y=scanner.nextLong();\n\t\t\tif(d*d>=(x*x+y*y))c++;\n\t\t}\n\t\tSystem.out.println(c);\n\t\t \t\n\t\t }",
"main",
"{\n\t\t FastScanner scanner =new FastScanner();\n\t\t\n\t\t\tint n=scanner.nextInt();\n\t\t\tlong d=scanner.nextLong();\n\t\tint c=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong x=scanner.nextLong(),y=scanner.nextLong();\n\t\t\tif(d*d>=(x*x+y*y))c++;\n\t\t}\n\t\tSystem.out.println(c);\n\t\t \t\n\t\t }",
"FastScanner scanner =new FastScanner();",
"scanner",
"new FastScanner()",
"int n=scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long d=scanner.nextLong();",
"d",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"int c=0;",
"c",
"0",
"for(int i=0;i<n;i++) {\n\t\t\tlong x=scanner.nextLong(),y=scanner.nextLong();\n\t\t\tif(d*d>=(x*x+y*y))c++;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tlong x=scanner.nextLong(),y=scanner.nextLong();\n\t\t\tif(d*d>=(x*x+y*y))c++;\n\t\t}",
"{\n\t\t\tlong x=scanner.nextLong(),y=scanner.nextLong();\n\t\t\tif(d*d>=(x*x+y*y))c++;\n\t\t}",
"long x=scanner.nextLong()",
"x",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"y=scanner.nextLong();",
"y",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"if(d*d>=(x*x+y*y))c++;",
"d*d>=(x*x+y*y)",
"d*d",
"d",
"d",
"(x*x+y*y)",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"c++",
"c",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"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\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}",
"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\t FastScanner scanner =new FastScanner();\n\t\t\n\t\t\tint n=scanner.nextInt();\n\t\t\tlong d=scanner.nextLong();\n\t\tint c=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong x=scanner.nextLong(),y=scanner.nextLong();\n\t\t\tif(d*d>=(x*x+y*y))c++;\n\t\t}\n\t\tSystem.out.println(c);\n\t\t \t\n\t\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\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}\n\n\t\t \n\t\t}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t FastScanner scanner =new FastScanner();\n\t\t\n\t\t\tint n=scanner.nextInt();\n\t\t\tlong d=scanner.nextLong();\n\t\tint c=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong x=scanner.nextLong(),y=scanner.nextLong();\n\t\t\tif(d*d>=(x*x+y*y))c++;\n\t\t}\n\t\tSystem.out.println(c);\n\t\t \t\n\t\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\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}\n\n\t\t \n\t\t}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
FastScanner scanner =new FastScanner();
int n=scanner.nextInt();
long d=scanner.nextLong();
int c=0;
for(int i=0;i<n;i++) {
long x=scanner.nextLong(),y=scanner.nextLong();
if(d*d>=(x*x+y*y))c++;
}
System.out.println(c);
}
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,
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\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int n = sc.nextInt();\n\t\t int d = sc.nextInt();\n\t\t int ans = 0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t double a = sc.nextInt();\n\t\t\t double b = sc.nextInt();\n\t\t\t if(Math.sqrt(a*a+b*b)<=d) {\n\t\t\t\t ans++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(ans);\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 Scanner sc = new Scanner(System.in);\n\t\t int n = sc.nextInt();\n\t\t int d = sc.nextInt();\n\t\t int ans = 0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t double a = sc.nextInt();\n\t\t\t double b = sc.nextInt();\n\t\t\t if(Math.sqrt(a*a+b*b)<=d) {\n\t\t\t\t ans++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(ans);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int n = sc.nextInt();\n\t\t int d = sc.nextInt();\n\t\t int ans = 0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t double a = sc.nextInt();\n\t\t\t double b = sc.nextInt();\n\t\t\t if(Math.sqrt(a*a+b*b)<=d) {\n\t\t\t\t ans++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(ans);\n\t}",
"main",
"{\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int n = sc.nextInt();\n\t\t int d = sc.nextInt();\n\t\t int ans = 0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t double a = sc.nextInt();\n\t\t\t double b = sc.nextInt();\n\t\t\t if(Math.sqrt(a*a+b*b)<=d) {\n\t\t\t\t ans++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(ans);\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 ans = 0;",
"ans",
"0",
"for(int i=0;i<n;i++) {\n\t\t\t double a = sc.nextInt();\n\t\t\t double b = sc.nextInt();\n\t\t\t if(Math.sqrt(a*a+b*b)<=d) {\n\t\t\t\t ans++;\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\t double a = sc.nextInt();\n\t\t\t double b = sc.nextInt();\n\t\t\t if(Math.sqrt(a*a+b*b)<=d) {\n\t\t\t\t ans++;\n\t\t\t }\n\t\t }",
"{\n\t\t\t double a = sc.nextInt();\n\t\t\t double b = sc.nextInt();\n\t\t\t if(Math.sqrt(a*a+b*b)<=d) {\n\t\t\t\t ans++;\n\t\t\t }\n\t\t }",
"double a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(Math.sqrt(a*a+b*b)<=d) {\n\t\t\t\t ans++;\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\t ans++;\n\t\t\t }",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int n = sc.nextInt();\n\t\t int d = sc.nextInt();\n\t\t int ans = 0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t double a = sc.nextInt();\n\t\t\t double b = sc.nextInt();\n\t\t\t if(Math.sqrt(a*a+b*b)<=d) {\n\t\t\t\t ans++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(ans);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int n = sc.nextInt();\n\t\t int d = sc.nextInt();\n\t\t int ans = 0;\n\t\t for(int i=0;i<n;i++) {\n\t\t\t double a = sc.nextInt();\n\t\t\t double b = sc.nextInt();\n\t\t\t if(Math.sqrt(a*a+b*b)<=d) {\n\t\t\t\t ans++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(ans);\n\t}\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++) {
double a = sc.nextInt();
double b = sc.nextInt();
if(Math.sqrt(a*a+b*b)<=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,
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,
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
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
37,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
57,
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 num = sc.nextInt();\n long d = sc.nextLong();\n long count = 0;\n for(int i = 0;i < num;i++){\n long p = sc.nextLong();\n long q = sc.nextLong();\n long dis = p * p + q * q;\n if(dis <= d * 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 num = sc.nextInt();\n long d = sc.nextLong();\n long count = 0;\n for(int i = 0;i < num;i++){\n long p = sc.nextLong();\n long q = sc.nextLong();\n long dis = p * p + q * q;\n if(dis <= d * 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 num = sc.nextInt();\n long d = sc.nextLong();\n long count = 0;\n for(int i = 0;i < num;i++){\n long p = sc.nextLong();\n long q = sc.nextLong();\n long dis = p * p + q * q;\n if(dis <= d * d){\n count++;\n }\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n long d = sc.nextLong();\n long count = 0;\n for(int i = 0;i < num;i++){\n long p = sc.nextLong();\n long q = sc.nextLong();\n long dis = p * p + q * q;\n if(dis <= d * d){\n count++;\n }\n }\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",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long count = 0;",
"count",
"0",
"for(int i = 0;i < num;i++){\n long p = sc.nextLong();\n long q = sc.nextLong();\n long dis = p * p + q * q;\n if(dis <= d * d){\n count++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n long p = sc.nextLong();\n long q = sc.nextLong();\n long dis = p * p + q * q;\n if(dis <= d * d){\n count++;\n }\n }",
"{\n long p = sc.nextLong();\n long q = sc.nextLong();\n long dis = p * p + q * q;\n if(dis <= d * d){\n count++;\n }\n }",
"long p = sc.nextLong();",
"p",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long q = sc.nextLong();",
"q",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long dis = p * p + q * q;",
"dis",
"p * p + q * q",
"p * p",
"p",
"p",
"q * q",
"q",
"q",
"if(dis <= d * d){\n count++;\n }",
"dis <= d * d",
"dis",
"d * d",
"d",
"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 num = sc.nextInt();\n long d = sc.nextLong();\n long count = 0;\n for(int i = 0;i < num;i++){\n long p = sc.nextLong();\n long q = sc.nextLong();\n long dis = p * p + q * q;\n if(dis <= d * 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 num = sc.nextInt();\n long d = sc.nextLong();\n long count = 0;\n for(int i = 0;i < num;i++){\n long p = sc.nextLong();\n long q = sc.nextLong();\n long dis = p * p + q * q;\n if(dis <= d * 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 num = sc.nextInt();
long d = sc.nextLong();
long count = 0;
for(int i = 0;i < num;i++){
long p = sc.nextLong();
long q = sc.nextLong();
long dis = p * p + q * q;
if(dis <= d * d){
count++;
}
}
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,
42,
2,
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,
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
],
[
73,
8
],
[
73,
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
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
32,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
32,
62
],
[
62,
63
],
[
11,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
9,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.Scanner;\nimport java.util.*;\npublic class Main{\npublic static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\t long N=sc.nextLong();\n\t long D=sc.nextLong();\n\t int count=0;\n\t while(N>0){\n\t long X1=sc.nextLong();\n\t long Y1=sc.nextLong();\n\t double distance=Math.sqrt(X1*X1+Y1*Y1);\n\t if(distance<=D){\n\t count++;\n\t }\n\t N--;\n\t }\n\t System.out.println(count);\n\t }\n\t \n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main{\npublic static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\t long N=sc.nextLong();\n\t long D=sc.nextLong();\n\t int count=0;\n\t while(N>0){\n\t long X1=sc.nextLong();\n\t long Y1=sc.nextLong();\n\t double distance=Math.sqrt(X1*X1+Y1*Y1);\n\t if(distance<=D){\n\t count++;\n\t }\n\t N--;\n\t }\n\t System.out.println(count);\n\t }\n\t \n}",
"Main",
"public static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\t long N=sc.nextLong();\n\t long D=sc.nextLong();\n\t int count=0;\n\t while(N>0){\n\t long X1=sc.nextLong();\n\t long Y1=sc.nextLong();\n\t double distance=Math.sqrt(X1*X1+Y1*Y1);\n\t if(distance<=D){\n\t count++;\n\t }\n\t N--;\n\t }\n\t System.out.println(count);\n\t }",
"main",
"{\n\tScanner sc=new Scanner(System.in);\n\t long N=sc.nextLong();\n\t long D=sc.nextLong();\n\t int count=0;\n\t while(N>0){\n\t long X1=sc.nextLong();\n\t long Y1=sc.nextLong();\n\t double distance=Math.sqrt(X1*X1+Y1*Y1);\n\t if(distance<=D){\n\t count++;\n\t }\n\t N--;\n\t }\n\t System.out.println(count);\n\t }",
"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 count=0;",
"count",
"0",
"while(N>0){\n\t long X1=sc.nextLong();\n\t long Y1=sc.nextLong();\n\t double distance=Math.sqrt(X1*X1+Y1*Y1);\n\t if(distance<=D){\n\t count++;\n\t }\n\t N--;\n\t }",
"N>0",
"N",
"0",
"{\n\t long X1=sc.nextLong();\n\t long Y1=sc.nextLong();\n\t double distance=Math.sqrt(X1*X1+Y1*Y1);\n\t if(distance<=D){\n\t count++;\n\t }\n\t N--;\n\t }",
"long X1=sc.nextLong();",
"X1",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long Y1=sc.nextLong();",
"Y1",
"sc.nextLong()",
"sc.nextLong",
"sc",
"double distance=Math.sqrt(X1*X1+Y1*Y1);",
"distance",
"Math.sqrt(X1*X1+Y1*Y1)",
"Math.sqrt",
"Math",
"X1*X1+Y1*Y1",
"X1*X1",
"X1",
"X1",
"Y1*Y1",
"Y1",
"Y1",
"if(distance<=D){\n\t count++;\n\t }",
"distance<=D",
"distance",
"D",
"{\n\t count++;\n\t }",
"count++",
"count",
"N--",
"N",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main{\npublic static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\t long N=sc.nextLong();\n\t long D=sc.nextLong();\n\t int count=0;\n\t while(N>0){\n\t long X1=sc.nextLong();\n\t long Y1=sc.nextLong();\n\t double distance=Math.sqrt(X1*X1+Y1*Y1);\n\t if(distance<=D){\n\t count++;\n\t }\n\t N--;\n\t }\n\t System.out.println(count);\n\t }\n\t \n}",
"public class Main{\npublic static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\t long N=sc.nextLong();\n\t long D=sc.nextLong();\n\t int count=0;\n\t while(N>0){\n\t long X1=sc.nextLong();\n\t long Y1=sc.nextLong();\n\t double distance=Math.sqrt(X1*X1+Y1*Y1);\n\t if(distance<=D){\n\t count++;\n\t }\n\t N--;\n\t }\n\t System.out.println(count);\n\t }\n\t \n}",
"Main"
]
| import java.util.Scanner;
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
long N=sc.nextLong();
long D=sc.nextLong();
int count=0;
while(N>0){
long X1=sc.nextLong();
long Y1=sc.nextLong();
double distance=Math.sqrt(X1*X1+Y1*Y1);
if(distance<=D){
count++;
}
N--;
}
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,
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
],
[
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
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
]
| [
"\nimport java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tlong a,b,count=0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(Math.sqrt((a*a)+(b*b))<=m) \n\t\t\t\t{\n\t\t\t\t \tcount++;\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\t\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tlong a,b,count=0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(Math.sqrt((a*a)+(b*b))<=m) \n\t\t\t\t{\n\t\t\t\t \tcount++;\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\t\n}",
"Main",
"public static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tlong a,b,count=0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(Math.sqrt((a*a)+(b*b))<=m) \n\t\t\t\t{\n\t\t\t\t \tcount++;\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tlong a,b,count=0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(Math.sqrt((a*a)+(b*b))<=m) \n\t\t\t\t{\n\t\t\t\t \tcount++;\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t\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 m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long a",
"a",
"b",
"b",
"count=0;",
"count",
"0",
"for(int i=0;i<n;i++)\n\t\t{\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(Math.sqrt((a*a)+(b*b))<=m) \n\t\t\t\t{\n\t\t\t\t \tcount++;\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\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(Math.sqrt((a*a)+(b*b))<=m) \n\t\t\t\t{\n\t\t\t\t \tcount++;\n\t\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(Math.sqrt((a*a)+(b*b))<=m) \n\t\t\t\t{\n\t\t\t\t \tcount++;\n\t\t\t\t}\n\t\t\t\n\t\t}",
"a=sc.nextLong()",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"b=sc.nextLong()",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if(Math.sqrt((a*a)+(b*b))<=m) \n\t\t\t\t{\n\t\t\t\t \tcount++;\n\t\t\t\t}",
"Math.sqrt((a*a)+(b*b))<=m",
"Math.sqrt((a*a)+(b*b))",
"Math.sqrt",
"Math",
"(a*a)+(b*b)",
"(a*a)",
"a",
"a",
"(b*b)",
"b",
"b",
"m",
"{\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\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tlong a,b,count=0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(Math.sqrt((a*a)+(b*b))<=m) \n\t\t\t\t{\n\t\t\t\t \tcount++;\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\t\n}",
"public class Main {\n\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tlong a,b,count=0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(Math.sqrt((a*a)+(b*b))<=m) \n\t\t\t\t{\n\t\t\t\t \tcount++;\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\t}\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();
int m=sc.nextInt();
long a,b,count=0;
for(int i=0;i<n;i++)
{
a=sc.nextLong();
b=sc.nextLong();
if(Math.sqrt((a*a)+(b*b))<=m)
{
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,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
14,
2,
4,
18,
13,
13,
17,
13,
40,
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
],
[
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
],
[
52,
53
],
[
51,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
37,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
62,
68
],
[
61,
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.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n int D = scan.nextInt();\n int count = 0;\n for(int i = 0; i < N; i++){\n int x = scan.nextInt();\n int y = scan.nextInt();\n double d = (Math.pow(x, 2) + Math.pow(y, 2));\n if(Math.pow(D, 2) >= 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) throws Exception {\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n int D = scan.nextInt();\n int count = 0;\n for(int i = 0; i < N; i++){\n int x = scan.nextInt();\n int y = scan.nextInt();\n double d = (Math.pow(x, 2) + Math.pow(y, 2));\n if(Math.pow(D, 2) >= d) count++;\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n int D = scan.nextInt();\n int count = 0;\n for(int i = 0; i < N; i++){\n int x = scan.nextInt();\n int y = scan.nextInt();\n double d = (Math.pow(x, 2) + Math.pow(y, 2));\n if(Math.pow(D, 2) >= d) count++;\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n int D = scan.nextInt();\n int count = 0;\n for(int i = 0; i < N; i++){\n int x = scan.nextInt();\n int y = scan.nextInt();\n double d = (Math.pow(x, 2) + Math.pow(y, 2));\n if(Math.pow(D, 2) >= d) count++;\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",
"int D = scan.nextInt();",
"D",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int count = 0;",
"count",
"0",
"for(int i = 0; i < N; i++){\n int x = scan.nextInt();\n int y = scan.nextInt();\n double d = (Math.pow(x, 2) + Math.pow(y, 2));\n if(Math.pow(D, 2) >= d) count++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n int x = scan.nextInt();\n int y = scan.nextInt();\n double d = (Math.pow(x, 2) + Math.pow(y, 2));\n if(Math.pow(D, 2) >= d) count++;\n }",
"{\n int x = scan.nextInt();\n int y = scan.nextInt();\n double d = (Math.pow(x, 2) + Math.pow(y, 2));\n if(Math.pow(D, 2) >= d) count++;\n }",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int y = scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"double d = (Math.pow(x, 2) + Math.pow(y, 2));",
"d",
"(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(Math.pow(D, 2) >= d) count++;",
"Math.pow(D, 2) >= d",
"Math.pow(D, 2)",
"Math.pow",
"Math",
"D",
"2",
"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) throws Exception {\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n int D = scan.nextInt();\n int count = 0;\n for(int i = 0; i < N; i++){\n int x = scan.nextInt();\n int y = scan.nextInt();\n double d = (Math.pow(x, 2) + Math.pow(y, 2));\n if(Math.pow(D, 2) >= d) count++;\n }\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n int D = scan.nextInt();\n int count = 0;\n for(int i = 0; i < N; i++){\n int x = scan.nextInt();\n int y = scan.nextInt();\n double d = (Math.pow(x, 2) + Math.pow(y, 2));\n if(Math.pow(D, 2) >= d) count++;\n }\n System.out.println(count);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
int D = scan.nextInt();
int count = 0;
for(int i = 0; i < N; i++){
int x = scan.nextInt();
int y = scan.nextInt();
double d = (Math.pow(x, 2) + Math.pow(y, 2));
if(Math.pow(D, 2) >= d) count++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
4,
18,
13,
4,
18,
2,
13,
17,
23,
13,
12,
13,
30,
4,
18,
13,
4,
18,
2,
13,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
4,
18,
13,
4,
18,
2,
18,
13,
13,
17,
4,
18,
13,
4,
18,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
4,
18,
13,
4,
18,
2,
18,
13,
13,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
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,
18,
13,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
18,
13,
13,
13,
40,
13,
4,
13,
13,
4,
18,
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,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
335,
11
],
[
335,
12
],
[
12,
13
],
[
12,
14
],
[
335,
15
],
[
15,
16
],
[
15,
17
],
[
335,
18
],
[
18,
19
],
[
18,
20
],
[
335,
21
],
[
21,
22
],
[
21,
23
],
[
335,
24
],
[
24,
25
],
[
335,
26
],
[
26,
27
],
[
335,
28
],
[
28,
29
],
[
335,
30
],
[
30,
31
],
[
335,
32
],
[
32,
33
],
[
335,
34
],
[
34,
35
],
[
335,
36
],
[
36,
37
],
[
335,
38
],
[
38,
39
],
[
335,
40
],
[
40,
41
],
[
335,
42
],
[
42,
43
],
[
335,
44
],
[
44,
45
],
[
335,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
46,
57
],
[
57,
58
],
[
335,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
59,
70
],
[
70,
71
],
[
335,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
75,
85
],
[
85,
86
],
[
86,
87
],
[
75,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
74,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
103,
104
],
[
72,
105
],
[
105,
106
],
[
335,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
110,
120
],
[
120,
121
],
[
121,
122
],
[
110,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
107,
134
],
[
134,
135
],
[
335,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
139,
147
],
[
147,
148
],
[
148,
149
],
[
139,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
156,
157
],
[
136,
158
],
[
158,
159
],
[
136,
160
],
[
160,
161
],
[
335,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
170,
171
],
[
170,
172
],
[
165,
173
],
[
173,
174
],
[
174,
175
],
[
165,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
182,
183
],
[
162,
184
],
[
184,
185
],
[
162,
186
],
[
186,
187
],
[
335,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
191,
199
],
[
199,
200
],
[
200,
201
],
[
191,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
203,
208
],
[
208,
209
],
[
208,
210
],
[
203,
211
],
[
211,
212
],
[
212,
213
],
[
203,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
216,
220
],
[
215,
221
],
[
221,
222
],
[
222,
223
],
[
188,
224
],
[
224,
225
],
[
188,
226
],
[
226,
227
],
[
188,
228
],
[
228,
229
],
[
335,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
232,
238
],
[
238,
239
],
[
238,
240
],
[
232,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
244,
245
],
[
232,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
232,
251
],
[
251,
252
],
[
251,
253
],
[
232,
255
],
[
255,
256
],
[
255,
257
],
[
232,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
258,
263
],
[
263,
264
],
[
263,
265
],
[
258,
266
],
[
266,
267
],
[
267,
268
],
[
258,
269
],
[
270,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
274,
275
],
[
270,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
279,
280
],
[
270,
281
],
[
281,
282
],
[
282,
283
],
[
282,
284
],
[
281,
285
],
[
285,
286
],
[
286,
287
],
[
285,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
288,
292
],
[
292,
293
],
[
292,
294
],
[
270,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
296,
300
],
[
295,
301
],
[
301,
302
],
[
232,
303
],
[
303,
304
],
[
303,
305
],
[
232,
306
],
[
306,
307
],
[
307,
308
],
[
230,
309
],
[
309,
310
],
[
0,
311
],
[
311,
312
],
[
311,
313
],
[
313,
314
],
[
311,
315
],
[
315,
316
],
[
311,
317
],
[
317,
318
],
[
317,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
320,
324
],
[
319,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
317,
330
],
[
330,
331
],
[
317,
332
],
[
332,
333
],
[
0,
334
],
[
334,
335
],
[
334,
336
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.math.*;\n\npublic class Main{\n public static OutputStream out=new BufferedOutputStream(System.out);\n static Scanner sc=new Scanner(System.in);\n static long mod=1000000007l;\n static int INF=1000000;\n\n //nl-->neew line; //l-->line; //arp-->array print; //arpnl-->array print new line\n public static void nl(Object o) throws IOException{out.write((o+\"\\n\").getBytes()); }\n public static void l(Object o) throws IOException{out.write((o+\"\").getBytes());}\n public static void arp(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+\" \").getBytes()); out.write((\"\\n\").getBytes());}\n public static void arpnl(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+\"\\n\").getBytes());}\n public static void scanl(long[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextLong();}\n public static void scani(int[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextInt();}\n public static void scan2D(int[][] a,int n,int m) {for(int i=0;i<n;i++) for(int j=0;j<m;j++) a[i][j]=sc.nextInt();}\n //\n static long cnt;\n static TreeSet<Integer> ans;\n static int n,m;\n static boolean[][] dp,vis;\n static HashMap<Pair,Boolean> arrl;\n static Stack<Integer> stk;\n static Queue<Integer> queue;\n static HashSet<Integer> mtrnode;\n static ArrayList<Integer> arrlans;\n\n\n public static void main(String[] args) throws IOException{\n long sttm=System.currentTimeMillis();\n long mod=1000000007l;\n\n int n=sc.nextInt();\n double d=sc.nextDouble();\n double[] xy=new double[n];\n int cnt=0;\n for(int i=0;i<n;i++){\n double x=sc.nextDouble();\n double y=sc.nextDouble();\n xy[i]=Math.sqrt(x*x+y*y);\n if(xy[i]<=d) cnt++;\n }\n nl(cnt);\n\n\n out.flush();\n }\n\n}\n\nclass Pair{\n int x,y;\n Pair(int x,int y){\n this.x=x;\n this.y=y;\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main{\n public static OutputStream out=new BufferedOutputStream(System.out);\n static Scanner sc=new Scanner(System.in);\n static long mod=1000000007l;\n static int INF=1000000;\n\n //nl-->neew line; //l-->line; //arp-->array print; //arpnl-->array print new line\n public static void nl(Object o) throws IOException{out.write((o+\"\\n\").getBytes()); }\n public static void l(Object o) throws IOException{out.write((o+\"\").getBytes());}\n public static void arp(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+\" \").getBytes()); out.write((\"\\n\").getBytes());}\n public static void arpnl(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+\"\\n\").getBytes());}\n public static void scanl(long[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextLong();}\n public static void scani(int[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextInt();}\n public static void scan2D(int[][] a,int n,int m) {for(int i=0;i<n;i++) for(int j=0;j<m;j++) a[i][j]=sc.nextInt();}\n //\n static long cnt;\n static TreeSet<Integer> ans;\n static int n,m;\n static boolean[][] dp,vis;\n static HashMap<Pair,Boolean> arrl;\n static Stack<Integer> stk;\n static Queue<Integer> queue;\n static HashSet<Integer> mtrnode;\n static ArrayList<Integer> arrlans;\n\n\n public static void main(String[] args) throws IOException{\n long sttm=System.currentTimeMillis();\n long mod=1000000007l;\n\n int n=sc.nextInt();\n double d=sc.nextDouble();\n double[] xy=new double[n];\n int cnt=0;\n for(int i=0;i<n;i++){\n double x=sc.nextDouble();\n double y=sc.nextDouble();\n xy[i]=Math.sqrt(x*x+y*y);\n if(xy[i]<=d) cnt++;\n }\n nl(cnt);\n\n\n out.flush();\n }\n\n}",
"Main",
"public static OutputStream out=new BufferedOutputStream(System.out);",
"out",
"new BufferedOutputStream(System.out)",
"static Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"static long mod=1000000007l;",
"mod",
"1000000007l",
"static int INF=1000000;",
"INF",
"1000000",
"//\n static long cnt;",
"cnt",
"static TreeSet<Integer> ans;",
"ans",
"static int n",
"n",
"m;",
"m",
"static boolean[][] dp",
"dp",
"vis;",
"vis",
"static HashMap<Pair,Boolean> arrl;",
"arrl",
"static Stack<Integer> stk;",
"stk",
"static Queue<Integer> queue;",
"queue",
"static HashSet<Integer> mtrnode;",
"mtrnode",
"static ArrayList<Integer> arrlans;",
"arrlans",
"//nl-->neew line; //l-->line; //arp-->array print; //arpnl-->array print new line\n public static void nl(Object o) throws IOException{out.write((o+\"\\n\").getBytes()); }",
"nl",
"{out.write((o+\"\\n\").getBytes()); }",
"out.write((o+\"\\n\").getBytes())",
"out.write",
"out",
"(o+\"\\n\").getBytes()",
"(o+\"\\n\").getBytes",
"(o+\"\\n\")",
"o",
"\"\\n\"",
"Object o",
"o",
"public static void l(Object o) throws IOException{out.write((o+\"\").getBytes());}",
"l",
"{out.write((o+\"\").getBytes());}",
"out.write((o+\"\").getBytes())",
"out.write",
"out",
"(o+\"\").getBytes()",
"(o+\"\").getBytes",
"(o+\"\")",
"o",
"\"\"",
"Object o",
"o",
"public static void arp(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+\" \").getBytes()); out.write((\"\\n\").getBytes());}",
"arp",
"{for(int i=0;i<o.length;i++) out.write((o[i]+\" \").getBytes()); out.write((\"\\n\").getBytes());}",
"for(int i=0;i<o.length;i++) out.write((o[i]+\" \").getBytes());",
"int i=0;",
"int i=0;",
"i",
"0",
"i<o.length",
"i",
"o.length",
"o",
"o.length",
"i++",
"i++",
"i",
"out.write((o[i]+\" \").getBytes());",
"out.write((o[i]+\" \").getBytes())",
"out.write",
"out",
"(o[i]+\" \").getBytes()",
"(o[i]+\" \").getBytes",
"(o[i]+\" \")",
"o[i]",
"o",
"i",
"\" \"",
"out.write((\"\\n\").getBytes())",
"out.write",
"out",
"(\"\\n\").getBytes()",
"(\"\\n\").getBytes",
"(\"\\n\")",
"int[] o",
"o",
"public static void arpnl(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+\"\\n\").getBytes());}",
"arpnl",
"{for(int i=0;i<o.length;i++) out.write((o[i]+\"\\n\").getBytes());}",
"for(int i=0;i<o.length;i++) out.write((o[i]+\"\\n\").getBytes());",
"int i=0;",
"int i=0;",
"i",
"0",
"i<o.length",
"i",
"o.length",
"o",
"o.length",
"i++",
"i++",
"i",
"out.write((o[i]+\"\\n\").getBytes());",
"out.write((o[i]+\"\\n\").getBytes())",
"out.write",
"out",
"(o[i]+\"\\n\").getBytes()",
"(o[i]+\"\\n\").getBytes",
"(o[i]+\"\\n\")",
"o[i]",
"o",
"i",
"\"\\n\"",
"int[] o",
"o",
"public static void scanl(long[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextLong();}",
"scanl",
"{for(int i=0;i<n;i++) a[i]=sc.nextLong();}",
"for(int i=0;i<n;i++) a[i]=sc.nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=sc.nextLong();",
"a[i]=sc.nextLong()",
"a[i]",
"a",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long[] a",
"a",
"int n",
"n",
"public static void scani(int[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextInt();}",
"scani",
"{for(int i=0;i<n;i++) a[i]=sc.nextInt();}",
"for(int i=0;i<n;i++) a[i]=sc.nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=sc.nextInt();",
"a[i]=sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] a",
"a",
"int n",
"n",
"public static void scan2D(int[][] a,int n,int m) {for(int i=0;i<n;i++) for(int j=0;j<m;j++) a[i][j]=sc.nextInt();}",
"scan2D",
"{for(int i=0;i<n;i++) for(int j=0;j<m;j++) a[i][j]=sc.nextInt();}",
"for(int i=0;i<n;i++) for(int j=0;j<m;j++) a[i][j]=sc.nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"for(int j=0;j<m;j++) a[i][j]=sc.nextInt();",
"for(int j=0;j<m;j++) a[i][j]=sc.nextInt();",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"a[i][j]=sc.nextInt();",
"a[i][j]=sc.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] a",
"a",
"int n",
"n",
"int m",
"m",
"public static void main(String[] args) throws IOException{\n long sttm=System.currentTimeMillis();\n long mod=1000000007l;\n\n int n=sc.nextInt();\n double d=sc.nextDouble();\n double[] xy=new double[n];\n int cnt=0;\n for(int i=0;i<n;i++){\n double x=sc.nextDouble();\n double y=sc.nextDouble();\n xy[i]=Math.sqrt(x*x+y*y);\n if(xy[i]<=d) cnt++;\n }\n nl(cnt);\n\n\n out.flush();\n }",
"main",
"{\n long sttm=System.currentTimeMillis();\n long mod=1000000007l;\n\n int n=sc.nextInt();\n double d=sc.nextDouble();\n double[] xy=new double[n];\n int cnt=0;\n for(int i=0;i<n;i++){\n double x=sc.nextDouble();\n double y=sc.nextDouble();\n xy[i]=Math.sqrt(x*x+y*y);\n if(xy[i]<=d) cnt++;\n }\n nl(cnt);\n\n\n out.flush();\n }",
"long sttm=System.currentTimeMillis();",
"sttm",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"long mod=1000000007l;",
"mod",
"1000000007l",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double d=sc.nextDouble();",
"d",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double[] xy=new double[n];",
"xy",
"new double[n]",
"n",
"int cnt=0;",
"cnt",
"0",
"for(int i=0;i<n;i++){\n double x=sc.nextDouble();\n double y=sc.nextDouble();\n xy[i]=Math.sqrt(x*x+y*y);\n if(xy[i]<=d) cnt++;\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 xy[i]=Math.sqrt(x*x+y*y);\n if(xy[i]<=d) cnt++;\n }",
"{\n double x=sc.nextDouble();\n double y=sc.nextDouble();\n xy[i]=Math.sqrt(x*x+y*y);\n if(xy[i]<=d) cnt++;\n }",
"double x=sc.nextDouble();",
"x",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double y=sc.nextDouble();",
"y",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"xy[i]=Math.sqrt(x*x+y*y)",
"xy[i]",
"xy",
"i",
"Math.sqrt(x*x+y*y)",
"Math.sqrt",
"Math",
"x*x+y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"if(xy[i]<=d) cnt++;",
"xy[i]<=d",
"xy[i]",
"xy",
"i",
"d",
"cnt++",
"cnt",
"nl(cnt)",
"nl",
"cnt",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"class Pair{\n int x,y;\n Pair(int x,int y){\n this.x=x;\n this.y=y;\n }\n}",
"Pair",
"int x",
"x",
"y;",
"y",
"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 class Main{\n public static OutputStream out=new BufferedOutputStream(System.out);\n static Scanner sc=new Scanner(System.in);\n static long mod=1000000007l;\n static int INF=1000000;\n\n //nl-->neew line; //l-->line; //arp-->array print; //arpnl-->array print new line\n public static void nl(Object o) throws IOException{out.write((o+\"\\n\").getBytes()); }\n public static void l(Object o) throws IOException{out.write((o+\"\").getBytes());}\n public static void arp(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+\" \").getBytes()); out.write((\"\\n\").getBytes());}\n public static void arpnl(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+\"\\n\").getBytes());}\n public static void scanl(long[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextLong();}\n public static void scani(int[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextInt();}\n public static void scan2D(int[][] a,int n,int m) {for(int i=0;i<n;i++) for(int j=0;j<m;j++) a[i][j]=sc.nextInt();}\n //\n static long cnt;\n static TreeSet<Integer> ans;\n static int n,m;\n static boolean[][] dp,vis;\n static HashMap<Pair,Boolean> arrl;\n static Stack<Integer> stk;\n static Queue<Integer> queue;\n static HashSet<Integer> mtrnode;\n static ArrayList<Integer> arrlans;\n\n\n public static void main(String[] args) throws IOException{\n long sttm=System.currentTimeMillis();\n long mod=1000000007l;\n\n int n=sc.nextInt();\n double d=sc.nextDouble();\n double[] xy=new double[n];\n int cnt=0;\n for(int i=0;i<n;i++){\n double x=sc.nextDouble();\n double y=sc.nextDouble();\n xy[i]=Math.sqrt(x*x+y*y);\n if(xy[i]<=d) cnt++;\n }\n nl(cnt);\n\n\n out.flush();\n }\n\n}",
"public class Main{\n public static OutputStream out=new BufferedOutputStream(System.out);\n static Scanner sc=new Scanner(System.in);\n static long mod=1000000007l;\n static int INF=1000000;\n\n //nl-->neew line; //l-->line; //arp-->array print; //arpnl-->array print new line\n public static void nl(Object o) throws IOException{out.write((o+\"\\n\").getBytes()); }\n public static void l(Object o) throws IOException{out.write((o+\"\").getBytes());}\n public static void arp(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+\" \").getBytes()); out.write((\"\\n\").getBytes());}\n public static void arpnl(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+\"\\n\").getBytes());}\n public static void scanl(long[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextLong();}\n public static void scani(int[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextInt();}\n public static void scan2D(int[][] a,int n,int m) {for(int i=0;i<n;i++) for(int j=0;j<m;j++) a[i][j]=sc.nextInt();}\n //\n static long cnt;\n static TreeSet<Integer> ans;\n static int n,m;\n static boolean[][] dp,vis;\n static HashMap<Pair,Boolean> arrl;\n static Stack<Integer> stk;\n static Queue<Integer> queue;\n static HashSet<Integer> mtrnode;\n static ArrayList<Integer> arrlans;\n\n\n public static void main(String[] args) throws IOException{\n long sttm=System.currentTimeMillis();\n long mod=1000000007l;\n\n int n=sc.nextInt();\n double d=sc.nextDouble();\n double[] xy=new double[n];\n int cnt=0;\n for(int i=0;i<n;i++){\n double x=sc.nextDouble();\n double y=sc.nextDouble();\n xy[i]=Math.sqrt(x*x+y*y);\n if(xy[i]<=d) cnt++;\n }\n nl(cnt);\n\n\n out.flush();\n }\n\n}",
"Main"
]
| import java.util.*;
import java.io.*;
import java.math.*;
public class Main{
public static OutputStream out=new BufferedOutputStream(System.out);
static Scanner sc=new Scanner(System.in);
static long mod=1000000007l;
static int INF=1000000;
//nl-->neew line; //l-->line; //arp-->array print; //arpnl-->array print new line
public static void nl(Object o) throws IOException{out.write((o+"\n").getBytes()); }
public static void l(Object o) throws IOException{out.write((o+"").getBytes());}
public static void arp(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+" ").getBytes()); out.write(("\n").getBytes());}
public static void arpnl(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+"\n").getBytes());}
public static void scanl(long[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextLong();}
public static void scani(int[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextInt();}
public static void scan2D(int[][] a,int n,int m) {for(int i=0;i<n;i++) for(int j=0;j<m;j++) a[i][j]=sc.nextInt();}
//
static long cnt;
static TreeSet<Integer> ans;
static int n,m;
static boolean[][] dp,vis;
static HashMap<Pair,Boolean> arrl;
static Stack<Integer> stk;
static Queue<Integer> queue;
static HashSet<Integer> mtrnode;
static ArrayList<Integer> arrlans;
public static void main(String[] args) throws IOException{
long sttm=System.currentTimeMillis();
long mod=1000000007l;
int n=sc.nextInt();
double d=sc.nextDouble();
double[] xy=new double[n];
int cnt=0;
for(int i=0;i<n;i++){
double x=sc.nextDouble();
double y=sc.nextDouble();
xy[i]=Math.sqrt(x*x+y*y);
if(xy[i]<=d) cnt++;
}
nl(cnt);
out.flush();
}
}
class Pair{
int x,y;
Pair(int x,int y){
this.x=x;
this.y=y;
}
}
|
[
7,
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,
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,
13,
13,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
23,
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,
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,
41,
13,
4,
13,
42,
4,
13,
13,
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,
0,
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,
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
],
[
276,
14
],
[
276,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
20,
22
],
[
17,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
17,
28
],
[
28,
29
],
[
28,
30
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
17,
34
],
[
34,
35
],
[
34,
36
],
[
17,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
37,
42
],
[
17,
43
],
[
43,
44
],
[
44,
45
],
[
15,
46
],
[
46,
47
],
[
276,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
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
],
[
52,
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
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
78,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
91,
94
],
[
90,
95
],
[
89,
96
],
[
96,
97
],
[
52,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
50,
104
],
[
104,
105
],
[
50,
106
],
[
106,
107
],
[
50,
108
],
[
108,
109
],
[
48,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
121,
123
],
[
110,
124
],
[
124,
125
],
[
110,
126
],
[
126,
127
],
[
276,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
128,
132
],
[
132,
133
],
[
132,
134
],
[
128,
136
],
[
136,
137
],
[
128,
138
],
[
138,
139
],
[
128,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
140,
148
],
[
148,
149
],
[
128,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
153,
158
],
[
158,
159
],
[
152,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
168,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
177,
180
],
[
164,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
186,
187
],
[
152,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
128,
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
],
[
204,
206
],
[
206,
207
],
[
195,
208
],
[
208,
209
],
[
208,
210
],
[
195,
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
],
[
195,
224
],
[
224,
225
],
[
224,
226
],
[
195,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
227,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
232,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
238,
240
],
[
232,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
195,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
128,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
252,
253
],
[
256,
254
],
[
266,
255
],
[
263,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
256,
260
],
[
260,
261
],
[
260,
262
],
[
263,
263
],
[
263,
264
],
[
263,
265
],
[
266,
266
],
[
266,
267
],
[
266,
268
],
[
256,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
249,
273
],
[
273,
274
],
[
0,
275
],
[
275,
276
],
[
275,
277
]
]
| [
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Spandan Mishra\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 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, InputReader in, PrintWriter out) {\n int n = in.readInt(), d = in.readInt();\n int ans = 0;\n for (int i = 0; i < n; i++) {\n int x = in.readInt(), y = in.readInt();\n if (distFromOrigin(x, y) <= d)\n ans++;\n }\n\n System.out.println(ans);\n }\n\n double distFromOrigin(int x, int y) {\n return Math.sqrt((long) x * x + (long) y * y);\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\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\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 return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }\n}\n",
"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",
"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 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, InputReader in, PrintWriter out) {\n int n = in.readInt(), d = in.readInt();\n int ans = 0;\n for (int i = 0; i < n; i++) {\n int x = in.readInt(), y = in.readInt();\n if (distFromOrigin(x, y) <= d)\n ans++;\n }\n\n System.out.println(ans);\n }\n\n double distFromOrigin(int x, int y) {\n return Math.sqrt((long) x * x + (long) y * y);\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\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\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 return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\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 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 InputReader in = new InputReader(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",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(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, InputReader in, PrintWriter out) {\n int n = in.readInt(), d = in.readInt();\n int ans = 0;\n for (int i = 0; i < n; i++) {\n int x = in.readInt(), y = in.readInt();\n if (distFromOrigin(x, y) <= d)\n ans++;\n }\n\n System.out.println(ans);\n }\n\n double distFromOrigin(int x, int y) {\n return Math.sqrt((long) x * x + (long) y * y);\n }\n\n }",
"BDistance",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.readInt(), d = in.readInt();\n int ans = 0;\n for (int i = 0; i < n; i++) {\n int x = in.readInt(), y = in.readInt();\n if (distFromOrigin(x, y) <= d)\n ans++;\n }\n\n System.out.println(ans);\n }",
"solve",
"{\n int n = in.readInt(), d = in.readInt();\n int ans = 0;\n for (int i = 0; i < n; i++) {\n int x = in.readInt(), y = in.readInt();\n if (distFromOrigin(x, y) <= d)\n ans++;\n }\n\n System.out.println(ans);\n }",
"int n = in.readInt()",
"n",
"in.readInt()",
"in.readInt",
"in",
"d = in.readInt();",
"d",
"in.readInt()",
"in.readInt",
"in",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < n; i++) {\n int x = in.readInt(), y = in.readInt();\n if (distFromOrigin(x, y) <= d)\n ans++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int x = in.readInt(), y = in.readInt();\n if (distFromOrigin(x, y) <= d)\n ans++;\n }",
"{\n int x = in.readInt(), y = in.readInt();\n if (distFromOrigin(x, y) <= d)\n ans++;\n }",
"int x = in.readInt()",
"x",
"in.readInt()",
"in.readInt",
"in",
"y = in.readInt();",
"y",
"in.readInt()",
"in.readInt",
"in",
"if (distFromOrigin(x, y) <= d)\n ans++;",
"distFromOrigin(x, y) <= d",
"distFromOrigin(x, y)",
"distFromOrigin",
"x",
"y",
"d",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"double distFromOrigin(int x, int y) {\n return Math.sqrt((long) x * x + (long) y * y);\n }",
"distFromOrigin",
"{\n return Math.sqrt((long) x * x + (long) y * y);\n }",
"return Math.sqrt((long) x * x + (long) y * y);",
"Math.sqrt((long) x * x + (long) y * y)",
"Math.sqrt",
"Math",
"(long) x * x + (long) y * y",
"(long) x * x",
"(long) x",
"x",
"(long) y * y",
"(long) y",
"y",
"int x",
"x",
"int y",
"y",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\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 return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\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",
"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 RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"if (numChars == -1)\n throw new RuntimeException();",
"numChars == -1",
"numChars",
"-1",
"1",
"throw new RuntimeException();",
"new RuntimeException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\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 RuntimeException();\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 RuntimeException();\n }",
"catch (IOException e) {\n throw new RuntimeException();\n }",
"IOException e",
"{\n throw new RuntimeException();\n }",
"throw new RuntimeException();",
"new RuntimeException()",
"{\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 int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"readInt",
"{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\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();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"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 res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res *= 10;\n res += c - '0';\n c = read();\n }",
"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 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 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 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, InputReader in, PrintWriter out) {\n int n = in.readInt(), d = in.readInt();\n int ans = 0;\n for (int i = 0; i < n; i++) {\n int x = in.readInt(), y = in.readInt();\n if (distFromOrigin(x, y) <= d)\n ans++;\n }\n\n System.out.println(ans);\n }\n\n double distFromOrigin(int x, int y) {\n return Math.sqrt((long) x * x + (long) y * y);\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\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\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 return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\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 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, InputReader in, PrintWriter out) {\n int n = in.readInt(), d = in.readInt();\n int ans = 0;\n for (int i = 0; i < n; i++) {\n int x = in.readInt(), y = in.readInt();\n if (distFromOrigin(x, y) <= d)\n ans++;\n }\n\n System.out.println(ans);\n }\n\n double distFromOrigin(int x, int y) {\n return Math.sqrt((long) x * x + (long) y * y);\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\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\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 return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }\n}",
"Main"
]
| import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Spandan Mishra
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(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, InputReader in, PrintWriter out) {
int n = in.readInt(), d = in.readInt();
int ans = 0;
for (int i = 0; i < n; i++) {
int x = in.readInt(), y = in.readInt();
if (distFromOrigin(x, y) <= d)
ans++;
}
System.out.println(ans);
}
double distFromOrigin(int x, int y) {
return Math.sqrt((long) x * x + (long) y * y);
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1)
throw new RuntimeException();
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new RuntimeException();
}
if (numChars <= 0)
return -1;
}
return buf[curChar++];
}
public int readInt() {
int c = read();
while (isSpaceChar(c))
c = read();
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
}
}
|
[
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,
17,
41,
13,
41,
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,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
0,
13,
4,
18,
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
],
[
95,
5
],
[
95,
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
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
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
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
6,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner scanner =new Scanner(System.in);\n int N=scanner.nextInt();\n int D=scanner.nextInt();\n double A,K=0;\n long X,Y,XX,YY;\n int count=0;\n for(int i=0;i<N;i++){\n X=scanner.nextLong();\n Y=scanner.nextLong();\n XX=X*X;\n YY=Y*Y;\n A=Math.sqrt(XX+YY);\n if(A<=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) throws Exception {\n Scanner scanner =new Scanner(System.in);\n int N=scanner.nextInt();\n int D=scanner.nextInt();\n double A,K=0;\n long X,Y,XX,YY;\n int count=0;\n for(int i=0;i<N;i++){\n X=scanner.nextLong();\n Y=scanner.nextLong();\n XX=X*X;\n YY=Y*Y;\n A=Math.sqrt(XX+YY);\n if(A<=D){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner scanner =new Scanner(System.in);\n int N=scanner.nextInt();\n int D=scanner.nextInt();\n double A,K=0;\n long X,Y,XX,YY;\n int count=0;\n for(int i=0;i<N;i++){\n X=scanner.nextLong();\n Y=scanner.nextLong();\n XX=X*X;\n YY=Y*Y;\n A=Math.sqrt(XX+YY);\n if(A<=D){\n count++;\n }\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner scanner =new Scanner(System.in);\n int N=scanner.nextInt();\n int D=scanner.nextInt();\n double A,K=0;\n long X,Y,XX,YY;\n int count=0;\n for(int i=0;i<N;i++){\n X=scanner.nextLong();\n Y=scanner.nextLong();\n XX=X*X;\n YY=Y*Y;\n A=Math.sqrt(XX+YY);\n if(A<=D){\n count++;\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",
"double A",
"A",
"K=0;",
"K",
"0",
"long X",
"X",
"Y",
"Y",
"XX",
"XX",
"YY;",
"YY",
"int count=0;",
"count",
"0",
"for(int i=0;i<N;i++){\n X=scanner.nextLong();\n Y=scanner.nextLong();\n XX=X*X;\n YY=Y*Y;\n A=Math.sqrt(XX+YY);\n if(A<=D){\n count++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n X=scanner.nextLong();\n Y=scanner.nextLong();\n XX=X*X;\n YY=Y*Y;\n A=Math.sqrt(XX+YY);\n if(A<=D){\n count++;\n }\n }",
"{\n X=scanner.nextLong();\n Y=scanner.nextLong();\n XX=X*X;\n YY=Y*Y;\n A=Math.sqrt(XX+YY);\n if(A<=D){\n count++;\n }\n }",
"X=scanner.nextLong()",
"X",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"Y=scanner.nextLong()",
"Y",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"XX=X*X",
"XX",
"X*X",
"X",
"X",
"YY=Y*Y",
"YY",
"Y*Y",
"Y",
"Y",
"A=Math.sqrt(XX+YY)",
"A",
"Math.sqrt(XX+YY)",
"Math.sqrt",
"Math",
"XX+YY",
"XX",
"YY",
"if(A<=D){\n count++;\n }",
"A<=D",
"A",
"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) throws Exception {\n Scanner scanner =new Scanner(System.in);\n int N=scanner.nextInt();\n int D=scanner.nextInt();\n double A,K=0;\n long X,Y,XX,YY;\n int count=0;\n for(int i=0;i<N;i++){\n X=scanner.nextLong();\n Y=scanner.nextLong();\n XX=X*X;\n YY=Y*Y;\n A=Math.sqrt(XX+YY);\n if(A<=D){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner scanner =new Scanner(System.in);\n int N=scanner.nextInt();\n int D=scanner.nextInt();\n double A,K=0;\n long X,Y,XX,YY;\n int count=0;\n for(int i=0;i<N;i++){\n X=scanner.nextLong();\n Y=scanner.nextLong();\n XX=X*X;\n YY=Y*Y;\n A=Math.sqrt(XX+YY);\n if(A<=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) throws Exception {
Scanner scanner =new Scanner(System.in);
int N=scanner.nextInt();
int D=scanner.nextInt();
double A,K=0;
long X,Y,XX,YY;
int count=0;
for(int i=0;i<N;i++){
X=scanner.nextLong();
Y=scanner.nextLong();
XX=X*X;
YY=Y*Y;
A=Math.sqrt(XX+YY);
if(A<=D){
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
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,
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,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
87,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
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
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
53,
54
],
[
46,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
61,
62
],
[
46,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
72,
74
],
[
63,
75
],
[
75,
76
],
[
76,
77
],
[
11,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
9,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static final int MOD = 1000000007;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n long d = Long.parseLong(sc.next());\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n long x = Long.parseLong(sc.next());\n long y = Long.parseLong(sc.next());\n if (x * x + y * y <= d * d) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static final int MOD = 1000000007;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n long d = Long.parseLong(sc.next());\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n long x = Long.parseLong(sc.next());\n long y = Long.parseLong(sc.next());\n if (x * x + y * y <= d * d) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n}",
"Main",
"public static final int MOD = 1000000007;",
"MOD",
"1000000007",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n long d = Long.parseLong(sc.next());\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n long x = Long.parseLong(sc.next());\n long y = Long.parseLong(sc.next());\n if (x * x + y * y <= d * d) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n long d = Long.parseLong(sc.next());\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n long x = Long.parseLong(sc.next());\n long y = Long.parseLong(sc.next());\n if (x * x + y * y <= d * d) {\n cnt++;\n }\n }\n System.out.println(cnt);\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",
"long d = Long.parseLong(sc.next());",
"d",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"int cnt = 0;",
"cnt",
"0",
"for (int i = 0; i < n; i++) {\n long x = Long.parseLong(sc.next());\n long y = Long.parseLong(sc.next());\n if (x * x + y * y <= d * d) {\n cnt++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long x = Long.parseLong(sc.next());\n long y = Long.parseLong(sc.next());\n if (x * x + y * y <= d * d) {\n cnt++;\n }\n }",
"{\n long x = Long.parseLong(sc.next());\n long y = Long.parseLong(sc.next());\n if (x * x + y * y <= d * d) {\n cnt++;\n }\n }",
"long x = Long.parseLong(sc.next());",
"x",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"long y = Long.parseLong(sc.next());",
"y",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"if (x * x + y * y <= d * d) {\n cnt++;\n }",
"x * x + y * y <= d * d",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"d * d",
"d",
"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 final int MOD = 1000000007;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n long d = Long.parseLong(sc.next());\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n long x = Long.parseLong(sc.next());\n long y = Long.parseLong(sc.next());\n if (x * x + y * y <= d * d) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n}",
"public class Main {\n\n public static final int MOD = 1000000007;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n long d = Long.parseLong(sc.next());\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n long x = Long.parseLong(sc.next());\n long y = Long.parseLong(sc.next());\n if (x * x + y * y <= d * d) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static final int MOD = 1000000007;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
long d = Long.parseLong(sc.next());
int cnt = 0;
for (int i = 0; i < n; i++) {
long x = Long.parseLong(sc.next());
long y = Long.parseLong(sc.next());
if (x * x + y * y <= d * d) {
cnt++;
}
}
System.out.println(cnt);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
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,
41,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
29,
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,
41,
13,
2,
18,
13,
13,
17,
41,
13,
40,
17,
42,
2,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
14,
2,
18,
13,
13,
13,
0,
13,
2,
13,
17,
30,
0,
13,
13,
0,
13,
2,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
2,
18,
13,
13,
17,
41,
13,
40,
17,
42,
2,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
14,
2,
18,
18,
13,
13,
13,
13,
30,
0,
13,
13,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
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,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
40,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
2,
13,
13,
40,
13,
4,
18,
13,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
4,
13,
4,
18,
13,
4,
18,
13,
12,
13,
30,
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,
14,
2,
18,
36,
13,
18,
13,
13,
29,
2,
18,
36,
13,
18,
13,
13,
29,
2,
18,
36,
13,
18,
13,
13,
23,
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
],
[
421,
11
],
[
421,
12
],
[
12,
13
],
[
421,
14
],
[
14,
15
],
[
421,
16
],
[
16,
17
],
[
421,
18
],
[
18,
19
],
[
18,
20
],
[
421,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
24,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
34,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
23,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
421,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
51,
67
],
[
67,
68
],
[
421,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
421,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
421,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
421,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
98,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
98,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
125,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
133,
135
],
[
125,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
142,
144
],
[
98,
145
],
[
145,
146
],
[
96,
147
],
[
147,
148
],
[
96,
149
],
[
149,
150
],
[
421,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
153,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
153,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
172,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
181,
187
],
[
180,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
194,
196
],
[
180,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
199,
201
],
[
153,
202
],
[
202,
203
],
[
151,
204
],
[
204,
205
],
[
151,
206
],
[
206,
207
],
[
421,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
219,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
218,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
218,
239
],
[
239,
240
],
[
239,
241
],
[
210,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
208,
246
],
[
246,
247
],
[
208,
248
],
[
248,
249
],
[
421,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
253,
257
],
[
257,
258
],
[
252,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
260,
263
],
[
263,
264
],
[
263,
265
],
[
250,
266
],
[
266,
267
],
[
250,
268
],
[
268,
269
],
[
421,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
272,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
283,
284
],
[
283,
285
],
[
280,
286
],
[
286,
287
],
[
272,
288
],
[
288,
289
],
[
270,
290
],
[
290,
291
],
[
421,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
297,
298
],
[
294,
299
],
[
299,
300
],
[
299,
301
],
[
301,
302
],
[
294,
303
],
[
303,
304
],
[
303,
305
],
[
294,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
307,
310
],
[
306,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
314,
315
],
[
311,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
311,
320
],
[
320,
321
],
[
320,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
322,
326
],
[
326,
327
],
[
326,
328
],
[
311,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
332,
334
],
[
329,
335
],
[
335,
336
],
[
294,
337
],
[
337,
338
],
[
338,
339
],
[
337,
340
],
[
421,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
344,
345
],
[
344,
346
],
[
343,
347
],
[
347,
348
],
[
347,
349
],
[
343,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
353,
354
],
[
343,
355
],
[
355,
356
],
[
343,
357
],
[
357,
358
],
[
358,
359
],
[
343,
360
],
[
360,
361
],
[
361,
362
],
[
421,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
363,
369
],
[
369,
370
],
[
421,
371
],
[
371,
372
],
[
371,
373
],
[
373,
374
],
[
371,
375
],
[
375,
376
],
[
371,
377
],
[
377,
378
],
[
377,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
379,
383
],
[
383,
384
],
[
383,
385
],
[
377,
386
],
[
386,
387
],
[
377,
388
],
[
388,
389
],
[
371,
390
],
[
390,
391
],
[
390,
392
],
[
392,
393
],
[
393,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
394,
398
],
[
398,
399
],
[
398,
400
],
[
393,
401
],
[
401,
402
],
[
402,
403
],
[
403,
404
],
[
403,
405
],
[
402,
406
],
[
406,
407
],
[
406,
408
],
[
392,
409
],
[
409,
410
],
[
410,
411
],
[
411,
412
],
[
411,
413
],
[
410,
414
],
[
414,
415
],
[
414,
416
],
[
390,
417
],
[
417,
418
],
[
371,
419
],
[
0,
420
],
[
420,
421
],
[
420,
422
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.lang.*;\npublic class Main {\n\tPrintWriter out;\n StringTokenizer st;\n BufferedReader br;\n \t\n \tclass Pair implements Comparable<Pair>\n\t{\n\t int f;\n\t int s;\n \n\t Pair(int t, int r) {\n\t f = t;\n\t s = r;\n\t }\n\t public int compareTo(Pair p)\n\t {\n\t \tif(this.f!=p.f)\n\t \t\treturn this.f-p.f;\n \n\t \treturn this.s-p.s;\n\t }\n \t}\n // \tclass Sort implements Comparator<String> \n\t// { \n\t// public int compare(String a, String b) \n\t// { \n\t// \treturn (a+b).compareTo(b+a);\n\t// } \n\t// }\n \n\tString ns() {\n while (st == null || !st.hasMoreElements()) {\n \n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n String nextLine() throws Exception {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n throw new Exception(e.toString());\n }\n return str;\n }\n \n int nextInt() {\n return Integer.parseInt(ns());\n }\n \n long nextLong() {\n return Long.parseLong(ns());\n }\n \n double nextDouble() {\n return Double.parseDouble(ns());\n }\n\t\n\tint upperBound(long a[],long key)\n\t{\n\t\tint l=0,r=a.length-1;\n\t\tint i=-1;\n \n\t\twhile(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid]<key)\n\t\t\t\tl=mid+1;\n \n\t\t\telse{\n\t\t\t\ti=mid;\t\n\t\t\t\tr=mid-1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn i;\n\t}\n\tint lowerBound(Pair[] a , long key)\n\t{\n\t\tint l = 0, r = a.length- 1;\n\t\tint i = -1;\n \t\n\t\twhile(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid].f<key)\n\t\t\t{\n\t\t\t\ti=mid;\n\t\t\t\tl=mid+1;\t\n\t\t\t}\n \n\t\t\telse\n\t\t\t\tr=mid-1;\n\t\t\t\n\t\t}\n\t\treturn i;\n\t}\n \n\tlong power(long x,long y)\n\t{\n\t long ans=1;\n\t \n\t while(y!=0)\n\t {\n\t if(y%2==1) ans=(ans*x)%mod;\n\t x=(x*x)%mod;\n\t y/=2;\n\t }\n\t return ans%mod;\n\t}\n\t\n \n\tint mod= 1000000007;\n\tlong gcd(long x ,long y)\n\t{\n\t\tif(y==0)\n\t\t\treturn x;\n\t\treturn gcd(y,x%y);\n\t}\n \n\t// ArrayList<Integer> a[];\n\t// TreeMap<Integer, Long> map;\n\t// int vis[];\n\t// long d[];\n\t// void dfs(int ver, int m)\n\t// {\n\t// \tmap.put(ver, d[m % 3]);\n\t// \tfor(int v : a[ver])\n\t// \t{\n\t// \t\tif(vis[v] == 0){\n\t// \t\t\tvis[v] = vis[ver] + 1;\n\t// \t\t\tdfs(v, m + 1);\n\t// \t\t}\n\t// \t}\n\t// }\n \n \tint countSetBits(long n) \n { \n int count = 0; \n while (n > 0) { \n n &= (n - 1); \n count++; \n } \n return count; \n }\n\n\tvoid solve() throws IOException{\n\t\tint n = nextInt();\n\t\tLong d = nextLong();\n\t\tint cnt = 0;\n\t\twhile(n -- > 0)\n\t\t{\n\t\t\tlong x = nextLong();\n\t\t\tlong y = nextLong();\n\t\t\tlong f = x*x + y*y;\n\t\t\tif(f <= d * d)\n\t\t\t\tcnt++;\n\t\t}\n\t\tout.println(cnt);\n\t}\n\t\n void run() throws IOException {\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n long s = System.currentTimeMillis();\n\t\tsolve();\n\t\tout.flush();\n \n\t\tout.close();\n\t}\n \n\tpublic static void main(String args[]) throws IOException {\n\t\tnew Main().run();\n\t}\n}\n",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n\tPrintWriter out;\n StringTokenizer st;\n BufferedReader br;\n \t\n \tclass Pair implements Comparable<Pair>\n\t{\n\t int f;\n\t int s;\n \n\t Pair(int t, int r) {\n\t f = t;\n\t s = r;\n\t }\n\t public int compareTo(Pair p)\n\t {\n\t \tif(this.f!=p.f)\n\t \t\treturn this.f-p.f;\n \n\t \treturn this.s-p.s;\n\t }\n \t}\n // \tclass Sort implements Comparator<String> \n\t// { \n\t// public int compare(String a, String b) \n\t// { \n\t// \treturn (a+b).compareTo(b+a);\n\t// } \n\t// }\n \n\tString ns() {\n while (st == null || !st.hasMoreElements()) {\n \n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n String nextLine() throws Exception {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n throw new Exception(e.toString());\n }\n return str;\n }\n \n int nextInt() {\n return Integer.parseInt(ns());\n }\n \n long nextLong() {\n return Long.parseLong(ns());\n }\n \n double nextDouble() {\n return Double.parseDouble(ns());\n }\n\t\n\tint upperBound(long a[],long key)\n\t{\n\t\tint l=0,r=a.length-1;\n\t\tint i=-1;\n \n\t\twhile(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid]<key)\n\t\t\t\tl=mid+1;\n \n\t\t\telse{\n\t\t\t\ti=mid;\t\n\t\t\t\tr=mid-1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn i;\n\t}\n\tint lowerBound(Pair[] a , long key)\n\t{\n\t\tint l = 0, r = a.length- 1;\n\t\tint i = -1;\n \t\n\t\twhile(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid].f<key)\n\t\t\t{\n\t\t\t\ti=mid;\n\t\t\t\tl=mid+1;\t\n\t\t\t}\n \n\t\t\telse\n\t\t\t\tr=mid-1;\n\t\t\t\n\t\t}\n\t\treturn i;\n\t}\n \n\tlong power(long x,long y)\n\t{\n\t long ans=1;\n\t \n\t while(y!=0)\n\t {\n\t if(y%2==1) ans=(ans*x)%mod;\n\t x=(x*x)%mod;\n\t y/=2;\n\t }\n\t return ans%mod;\n\t}\n\t\n \n\tint mod= 1000000007;\n\tlong gcd(long x ,long y)\n\t{\n\t\tif(y==0)\n\t\t\treturn x;\n\t\treturn gcd(y,x%y);\n\t}\n \n\t// ArrayList<Integer> a[];\n\t// TreeMap<Integer, Long> map;\n\t// int vis[];\n\t// long d[];\n\t// void dfs(int ver, int m)\n\t// {\n\t// \tmap.put(ver, d[m % 3]);\n\t// \tfor(int v : a[ver])\n\t// \t{\n\t// \t\tif(vis[v] == 0){\n\t// \t\t\tvis[v] = vis[ver] + 1;\n\t// \t\t\tdfs(v, m + 1);\n\t// \t\t}\n\t// \t}\n\t// }\n \n \tint countSetBits(long n) \n { \n int count = 0; \n while (n > 0) { \n n &= (n - 1); \n count++; \n } \n return count; \n }\n\n\tvoid solve() throws IOException{\n\t\tint n = nextInt();\n\t\tLong d = nextLong();\n\t\tint cnt = 0;\n\t\twhile(n -- > 0)\n\t\t{\n\t\t\tlong x = nextLong();\n\t\t\tlong y = nextLong();\n\t\t\tlong f = x*x + y*y;\n\t\t\tif(f <= d * d)\n\t\t\t\tcnt++;\n\t\t}\n\t\tout.println(cnt);\n\t}\n\t\n void run() throws IOException {\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n long s = System.currentTimeMillis();\n\t\tsolve();\n\t\tout.flush();\n \n\t\tout.close();\n\t}\n \n\tpublic static void main(String args[]) throws IOException {\n\t\tnew Main().run();\n\t}\n}",
"Main",
"PrintWriter out;",
"out",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"int mod= 1000000007;",
"mod",
"1000000007",
"String ns() {\n while (st == null || !st.hasMoreElements()) {\n \n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"ns",
"{\n while (st == null || !st.hasMoreElements()) {\n \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 \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 \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",
"String nextLine() throws Exception {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n throw new Exception(e.toString());\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n throw new Exception(e.toString());\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n throw new Exception(e.toString());\n }",
"catch (IOException e) {\n throw new Exception(e.toString());\n }",
"IOException e",
"{\n throw new Exception(e.toString());\n }",
"throw new Exception(e.toString());",
"new Exception(e.toString())",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"int nextInt() {\n return Integer.parseInt(ns());\n }",
"nextInt",
"{\n return Integer.parseInt(ns());\n }",
"return Integer.parseInt(ns());",
"Integer.parseInt(ns())",
"Integer.parseInt",
"Integer",
"ns()",
"ns",
"long nextLong() {\n return Long.parseLong(ns());\n }",
"nextLong",
"{\n return Long.parseLong(ns());\n }",
"return Long.parseLong(ns());",
"Long.parseLong(ns())",
"Long.parseLong",
"Long",
"ns()",
"ns",
"double nextDouble() {\n return Double.parseDouble(ns());\n }",
"nextDouble",
"{\n return Double.parseDouble(ns());\n }",
"return Double.parseDouble(ns());",
"Double.parseDouble(ns())",
"Double.parseDouble",
"Double",
"ns()",
"ns",
"int upperBound(long a[],long key)\n\t{\n\t\tint l=0,r=a.length-1;\n\t\tint i=-1;\n \n\t\twhile(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid]<key)\n\t\t\t\tl=mid+1;\n \n\t\t\telse{\n\t\t\t\ti=mid;\t\n\t\t\t\tr=mid-1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn i;\n\t}",
"upperBound",
"{\n\t\tint l=0,r=a.length-1;\n\t\tint i=-1;\n \n\t\twhile(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid]<key)\n\t\t\t\tl=mid+1;\n \n\t\t\telse{\n\t\t\t\ti=mid;\t\n\t\t\t\tr=mid-1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn i;\n\t}",
"int l=0",
"l",
"0",
"r=a.length-1;",
"r",
"a.length-1",
"a.length",
"a",
"a.length",
"1",
"int i=-1;",
"i",
"-1",
"1",
"while(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid]<key)\n\t\t\t\tl=mid+1;\n \n\t\t\telse{\n\t\t\t\ti=mid;\t\n\t\t\t\tr=mid-1;\n\t\t\t}\n\t\t\t\n\t\t}",
"l<=r",
"l",
"r",
"{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid]<key)\n\t\t\t\tl=mid+1;\n \n\t\t\telse{\n\t\t\t\ti=mid;\t\n\t\t\t\tr=mid-1;\n\t\t\t}\n\t\t\t\n\t\t}",
"int mid=(l+r)/2;",
"mid",
"(l+r)/2",
"(l+r)",
"l",
"r",
"2",
"if(a[mid]<key)\n\t\t\t\tl=mid+1;\n \n\t\t\telse{\n\t\t\t\ti=mid;\t\n\t\t\t\tr=mid-1;\n\t\t\t}",
"a[mid]<key",
"a[mid]",
"a",
"mid",
"key",
"l=mid+1",
"l",
"mid+1",
"mid",
"1",
"{\n\t\t\t\ti=mid;\t\n\t\t\t\tr=mid-1;\n\t\t\t}",
"i=mid",
"i",
"mid",
"r=mid-1",
"r",
"mid-1",
"mid",
"1",
"return i;",
"i",
"long a[]",
"a",
"long key",
"key",
"int lowerBound(Pair[] a , long key)\n\t{\n\t\tint l = 0, r = a.length- 1;\n\t\tint i = -1;\n \t\n\t\twhile(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid].f<key)\n\t\t\t{\n\t\t\t\ti=mid;\n\t\t\t\tl=mid+1;\t\n\t\t\t}\n \n\t\t\telse\n\t\t\t\tr=mid-1;\n\t\t\t\n\t\t}\n\t\treturn i;\n\t}",
"lowerBound",
"{\n\t\tint l = 0, r = a.length- 1;\n\t\tint i = -1;\n \t\n\t\twhile(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid].f<key)\n\t\t\t{\n\t\t\t\ti=mid;\n\t\t\t\tl=mid+1;\t\n\t\t\t}\n \n\t\t\telse\n\t\t\t\tr=mid-1;\n\t\t\t\n\t\t}\n\t\treturn i;\n\t}",
"int l = 0",
"l",
"0",
"r = a.length- 1;",
"r",
"a.length- 1",
"a.length",
"a",
"a.length",
"1",
"int i = -1;",
"i",
"-1",
"1",
"while(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid].f<key)\n\t\t\t{\n\t\t\t\ti=mid;\n\t\t\t\tl=mid+1;\t\n\t\t\t}\n \n\t\t\telse\n\t\t\t\tr=mid-1;\n\t\t\t\n\t\t}",
"l<=r",
"l",
"r",
"{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid].f<key)\n\t\t\t{\n\t\t\t\ti=mid;\n\t\t\t\tl=mid+1;\t\n\t\t\t}\n \n\t\t\telse\n\t\t\t\tr=mid-1;\n\t\t\t\n\t\t}",
"int mid=(l+r)/2;",
"mid",
"(l+r)/2",
"(l+r)",
"l",
"r",
"2",
"if(a[mid].f<key)\n\t\t\t{\n\t\t\t\ti=mid;\n\t\t\t\tl=mid+1;\t\n\t\t\t}\n \n\t\t\telse\n\t\t\t\tr=mid-1;",
"a[mid].f<key",
"a[mid].f",
"a[mid]",
"a",
"mid",
"a[mid].f",
"key",
"{\n\t\t\t\ti=mid;\n\t\t\t\tl=mid+1;\t\n\t\t\t}",
"i=mid",
"i",
"mid",
"l=mid+1",
"l",
"mid+1",
"mid",
"1",
"r=mid-1",
"r",
"mid-1",
"mid",
"1",
"return i;",
"i",
"Pair[] a",
"a",
"long key",
"key",
"long power(long x,long y)\n\t{\n\t long ans=1;\n\t \n\t while(y!=0)\n\t {\n\t if(y%2==1) ans=(ans*x)%mod;\n\t x=(x*x)%mod;\n\t y/=2;\n\t }\n\t return ans%mod;\n\t}",
"power",
"{\n\t long ans=1;\n\t \n\t while(y!=0)\n\t {\n\t if(y%2==1) ans=(ans*x)%mod;\n\t x=(x*x)%mod;\n\t y/=2;\n\t }\n\t return ans%mod;\n\t}",
"long ans=1;",
"ans",
"1",
"while(y!=0)\n\t {\n\t if(y%2==1) ans=(ans*x)%mod;\n\t x=(x*x)%mod;\n\t y/=2;\n\t }",
"y!=0",
"y",
"0",
"{\n\t if(y%2==1) ans=(ans*x)%mod;\n\t x=(x*x)%mod;\n\t y/=2;\n\t }",
"if(y%2==1) ans=(ans*x)%mod;",
"y%2==1",
"y%2",
"y",
"2",
"1",
"ans=(ans*x)%mod",
"ans",
"(ans*x)%mod",
"(ans*x)",
"ans",
"x",
"mod",
"x=(x*x)%mod",
"x",
"(x*x)%mod",
"(x*x)",
"x",
"x",
"mod",
"y/=2",
"y",
"2",
"return ans%mod;",
"ans%mod",
"ans",
"mod",
"long x",
"x",
"long y",
"y",
"long gcd(long x ,long y)\n\t{\n\t\tif(y==0)\n\t\t\treturn x;\n\t\treturn gcd(y,x%y);\n\t}",
"gcd",
"{\n\t\tif(y==0)\n\t\t\treturn x;\n\t\treturn gcd(y,x%y);\n\t}",
"if(y==0)\n\t\t\treturn x;",
"y==0",
"y",
"0",
"return x;",
"x",
"return gcd(y,x%y);",
"gcd(y,x%y)",
"gcd",
"y",
"x%y",
"x",
"y",
"long x",
"x",
"long y",
"y",
"int countSetBits(long n) \n { \n int count = 0; \n while (n > 0) { \n n &= (n - 1); \n count++; \n } \n return count; \n }",
"countSetBits",
"{ \n int count = 0; \n while (n > 0) { \n n &= (n - 1); \n count++; \n } \n return count; \n }",
"int count = 0;",
"count",
"0",
"while (n > 0) { \n n &= (n - 1); \n count++; \n }",
"n > 0",
"n",
"0",
"{ \n n &= (n - 1); \n count++; \n }",
"n &= (n - 1)",
"n",
"(n - 1)",
"n",
"1",
"count++",
"count",
"return count;",
"count",
"long n",
"n",
"void solve() throws IOException{\n\t\tint n = nextInt();\n\t\tLong d = nextLong();\n\t\tint cnt = 0;\n\t\twhile(n -- > 0)\n\t\t{\n\t\t\tlong x = nextLong();\n\t\t\tlong y = nextLong();\n\t\t\tlong f = x*x + y*y;\n\t\t\tif(f <= d * d)\n\t\t\t\tcnt++;\n\t\t}\n\t\tout.println(cnt);\n\t}",
"solve",
"{\n\t\tint n = nextInt();\n\t\tLong d = nextLong();\n\t\tint cnt = 0;\n\t\twhile(n -- > 0)\n\t\t{\n\t\t\tlong x = nextLong();\n\t\t\tlong y = nextLong();\n\t\t\tlong f = x*x + y*y;\n\t\t\tif(f <= d * d)\n\t\t\t\tcnt++;\n\t\t}\n\t\tout.println(cnt);\n\t}",
"int n = nextInt();",
"n",
"nextInt()",
"nextInt",
"Long d = nextLong();",
"d",
"nextLong()",
"nextLong",
"int cnt = 0;",
"cnt",
"0",
"while(n -- > 0)\n\t\t{\n\t\t\tlong x = nextLong();\n\t\t\tlong y = nextLong();\n\t\t\tlong f = x*x + y*y;\n\t\t\tif(f <= d * d)\n\t\t\t\tcnt++;\n\t\t}",
"n -- > 0",
"n --",
"n",
"0",
"{\n\t\t\tlong x = nextLong();\n\t\t\tlong y = nextLong();\n\t\t\tlong f = x*x + y*y;\n\t\t\tif(f <= d * d)\n\t\t\t\tcnt++;\n\t\t}",
"long x = nextLong();",
"x",
"nextLong()",
"nextLong",
"long y = nextLong();",
"y",
"nextLong()",
"nextLong",
"long f = x*x + y*y;",
"f",
"x*x + y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"if(f <= d * d)\n\t\t\t\tcnt++;",
"f <= d * d",
"f",
"d * d",
"d",
"d",
"cnt++",
"cnt",
"out.println(cnt)",
"out.println",
"out",
"cnt",
"void run() throws IOException {\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n long s = System.currentTimeMillis();\n\t\tsolve();\n\t\tout.flush();\n \n\t\tout.close();\n\t}",
"run",
"{\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n long s = System.currentTimeMillis();\n\t\tsolve();\n\t\tout.flush();\n \n\t\tout.close();\n\t}",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"long s = System.currentTimeMillis();",
"s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"public static void main(String args[]) throws IOException {\n\t\tnew Main().run();\n\t}",
"main",
"{\n\t\tnew Main().run();\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String args[]",
"args",
"class Pair implements Comparable<Pair>\n\t{\n\t int f;\n\t int s;\n \n\t Pair(int t, int r) {\n\t f = t;\n\t s = r;\n\t }\n\t public int compareTo(Pair p)\n\t {\n\t \tif(this.f!=p.f)\n\t \t\treturn this.f-p.f;\n \n\t \treturn this.s-p.s;\n\t }\n \t}",
"Pair",
"int f;",
"f",
"int s;",
"s",
"Pair(int t, int r) {\n\t f = t;\n\t s = r;\n\t }",
"Pair",
"{\n\t f = t;\n\t s = r;\n\t }",
"f = t",
"f",
"t",
"s = r",
"s",
"r",
"int t",
"t",
"int r",
"r",
"public int compareTo(Pair p)\n\t {\n\t \tif(this.f!=p.f)\n\t \t\treturn this.f-p.f;\n \n\t \treturn this.s-p.s;\n\t }",
"compareTo",
"{\n\t \tif(this.f!=p.f)\n\t \t\treturn this.f-p.f;\n \n\t \treturn this.s-p.s;\n\t }",
"if(this.f!=p.f)\n\t \t\treturn this.f-p.f;",
"this.f!=p.f",
"this.f",
"this",
"this.f",
"p.f",
"p",
"p.f",
"return this.f-p.f;",
"this.f-p.f",
"this.f",
"this",
"this.f",
"p.f",
"p",
"p.f",
"return this.s-p.s;",
"this.s-p.s",
"this.s",
"this",
"this.s",
"p.s",
"p",
"p.s",
"Pair p",
"p",
"Comparable",
"public class Main {\n\tPrintWriter out;\n StringTokenizer st;\n BufferedReader br;\n \t\n \tclass Pair implements Comparable<Pair>\n\t{\n\t int f;\n\t int s;\n \n\t Pair(int t, int r) {\n\t f = t;\n\t s = r;\n\t }\n\t public int compareTo(Pair p)\n\t {\n\t \tif(this.f!=p.f)\n\t \t\treturn this.f-p.f;\n \n\t \treturn this.s-p.s;\n\t }\n \t}\n // \tclass Sort implements Comparator<String> \n\t// { \n\t// public int compare(String a, String b) \n\t// { \n\t// \treturn (a+b).compareTo(b+a);\n\t// } \n\t// }\n \n\tString ns() {\n while (st == null || !st.hasMoreElements()) {\n \n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n String nextLine() throws Exception {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n throw new Exception(e.toString());\n }\n return str;\n }\n \n int nextInt() {\n return Integer.parseInt(ns());\n }\n \n long nextLong() {\n return Long.parseLong(ns());\n }\n \n double nextDouble() {\n return Double.parseDouble(ns());\n }\n\t\n\tint upperBound(long a[],long key)\n\t{\n\t\tint l=0,r=a.length-1;\n\t\tint i=-1;\n \n\t\twhile(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid]<key)\n\t\t\t\tl=mid+1;\n \n\t\t\telse{\n\t\t\t\ti=mid;\t\n\t\t\t\tr=mid-1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn i;\n\t}\n\tint lowerBound(Pair[] a , long key)\n\t{\n\t\tint l = 0, r = a.length- 1;\n\t\tint i = -1;\n \t\n\t\twhile(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid].f<key)\n\t\t\t{\n\t\t\t\ti=mid;\n\t\t\t\tl=mid+1;\t\n\t\t\t}\n \n\t\t\telse\n\t\t\t\tr=mid-1;\n\t\t\t\n\t\t}\n\t\treturn i;\n\t}\n \n\tlong power(long x,long y)\n\t{\n\t long ans=1;\n\t \n\t while(y!=0)\n\t {\n\t if(y%2==1) ans=(ans*x)%mod;\n\t x=(x*x)%mod;\n\t y/=2;\n\t }\n\t return ans%mod;\n\t}\n\t\n \n\tint mod= 1000000007;\n\tlong gcd(long x ,long y)\n\t{\n\t\tif(y==0)\n\t\t\treturn x;\n\t\treturn gcd(y,x%y);\n\t}\n \n\t// ArrayList<Integer> a[];\n\t// TreeMap<Integer, Long> map;\n\t// int vis[];\n\t// long d[];\n\t// void dfs(int ver, int m)\n\t// {\n\t// \tmap.put(ver, d[m % 3]);\n\t// \tfor(int v : a[ver])\n\t// \t{\n\t// \t\tif(vis[v] == 0){\n\t// \t\t\tvis[v] = vis[ver] + 1;\n\t// \t\t\tdfs(v, m + 1);\n\t// \t\t}\n\t// \t}\n\t// }\n \n \tint countSetBits(long n) \n { \n int count = 0; \n while (n > 0) { \n n &= (n - 1); \n count++; \n } \n return count; \n }\n\n\tvoid solve() throws IOException{\n\t\tint n = nextInt();\n\t\tLong d = nextLong();\n\t\tint cnt = 0;\n\t\twhile(n -- > 0)\n\t\t{\n\t\t\tlong x = nextLong();\n\t\t\tlong y = nextLong();\n\t\t\tlong f = x*x + y*y;\n\t\t\tif(f <= d * d)\n\t\t\t\tcnt++;\n\t\t}\n\t\tout.println(cnt);\n\t}\n\t\n void run() throws IOException {\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n long s = System.currentTimeMillis();\n\t\tsolve();\n\t\tout.flush();\n \n\t\tout.close();\n\t}\n \n\tpublic static void main(String args[]) throws IOException {\n\t\tnew Main().run();\n\t}\n}",
"public class Main {\n\tPrintWriter out;\n StringTokenizer st;\n BufferedReader br;\n \t\n \tclass Pair implements Comparable<Pair>\n\t{\n\t int f;\n\t int s;\n \n\t Pair(int t, int r) {\n\t f = t;\n\t s = r;\n\t }\n\t public int compareTo(Pair p)\n\t {\n\t \tif(this.f!=p.f)\n\t \t\treturn this.f-p.f;\n \n\t \treturn this.s-p.s;\n\t }\n \t}\n // \tclass Sort implements Comparator<String> \n\t// { \n\t// public int compare(String a, String b) \n\t// { \n\t// \treturn (a+b).compareTo(b+a);\n\t// } \n\t// }\n \n\tString ns() {\n while (st == null || !st.hasMoreElements()) {\n \n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n String nextLine() throws Exception {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n throw new Exception(e.toString());\n }\n return str;\n }\n \n int nextInt() {\n return Integer.parseInt(ns());\n }\n \n long nextLong() {\n return Long.parseLong(ns());\n }\n \n double nextDouble() {\n return Double.parseDouble(ns());\n }\n\t\n\tint upperBound(long a[],long key)\n\t{\n\t\tint l=0,r=a.length-1;\n\t\tint i=-1;\n \n\t\twhile(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid]<key)\n\t\t\t\tl=mid+1;\n \n\t\t\telse{\n\t\t\t\ti=mid;\t\n\t\t\t\tr=mid-1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn i;\n\t}\n\tint lowerBound(Pair[] a , long key)\n\t{\n\t\tint l = 0, r = a.length- 1;\n\t\tint i = -1;\n \t\n\t\twhile(l<=r)\n\t\t{\n\t\t\tint mid=(l+r)/2;\n \n\t\t\tif(a[mid].f<key)\n\t\t\t{\n\t\t\t\ti=mid;\n\t\t\t\tl=mid+1;\t\n\t\t\t}\n \n\t\t\telse\n\t\t\t\tr=mid-1;\n\t\t\t\n\t\t}\n\t\treturn i;\n\t}\n \n\tlong power(long x,long y)\n\t{\n\t long ans=1;\n\t \n\t while(y!=0)\n\t {\n\t if(y%2==1) ans=(ans*x)%mod;\n\t x=(x*x)%mod;\n\t y/=2;\n\t }\n\t return ans%mod;\n\t}\n\t\n \n\tint mod= 1000000007;\n\tlong gcd(long x ,long y)\n\t{\n\t\tif(y==0)\n\t\t\treturn x;\n\t\treturn gcd(y,x%y);\n\t}\n \n\t// ArrayList<Integer> a[];\n\t// TreeMap<Integer, Long> map;\n\t// int vis[];\n\t// long d[];\n\t// void dfs(int ver, int m)\n\t// {\n\t// \tmap.put(ver, d[m % 3]);\n\t// \tfor(int v : a[ver])\n\t// \t{\n\t// \t\tif(vis[v] == 0){\n\t// \t\t\tvis[v] = vis[ver] + 1;\n\t// \t\t\tdfs(v, m + 1);\n\t// \t\t}\n\t// \t}\n\t// }\n \n \tint countSetBits(long n) \n { \n int count = 0; \n while (n > 0) { \n n &= (n - 1); \n count++; \n } \n return count; \n }\n\n\tvoid solve() throws IOException{\n\t\tint n = nextInt();\n\t\tLong d = nextLong();\n\t\tint cnt = 0;\n\t\twhile(n -- > 0)\n\t\t{\n\t\t\tlong x = nextLong();\n\t\t\tlong y = nextLong();\n\t\t\tlong f = x*x + y*y;\n\t\t\tif(f <= d * d)\n\t\t\t\tcnt++;\n\t\t}\n\t\tout.println(cnt);\n\t}\n\t\n void run() throws IOException {\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n long s = System.currentTimeMillis();\n\t\tsolve();\n\t\tout.flush();\n \n\t\tout.close();\n\t}\n \n\tpublic static void main(String args[]) throws IOException {\n\t\tnew Main().run();\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.*;
import java.lang.*;
public class Main {
PrintWriter out;
StringTokenizer st;
BufferedReader br;
class Pair implements Comparable<Pair>
{
int f;
int s;
Pair(int t, int r) {
f = t;
s = r;
}
public int compareTo(Pair p)
{
if(this.f!=p.f)
return this.f-p.f;
return this.s-p.s;
}
}
// class Sort implements Comparator<String>
// {
// public int compare(String a, String b)
// {
// return (a+b).compareTo(b+a);
// }
// }
String ns() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
String nextLine() throws Exception {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
throw new Exception(e.toString());
}
return str;
}
int nextInt() {
return Integer.parseInt(ns());
}
long nextLong() {
return Long.parseLong(ns());
}
double nextDouble() {
return Double.parseDouble(ns());
}
int upperBound(long a[],long key)
{
int l=0,r=a.length-1;
int i=-1;
while(l<=r)
{
int mid=(l+r)/2;
if(a[mid]<key)
l=mid+1;
else{
i=mid;
r=mid-1;
}
}
return i;
}
int lowerBound(Pair[] a , long key)
{
int l = 0, r = a.length- 1;
int i = -1;
while(l<=r)
{
int mid=(l+r)/2;
if(a[mid].f<key)
{
i=mid;
l=mid+1;
}
else
r=mid-1;
}
return i;
}
long power(long x,long y)
{
long ans=1;
while(y!=0)
{
if(y%2==1) ans=(ans*x)%mod;
x=(x*x)%mod;
y/=2;
}
return ans%mod;
}
int mod= 1000000007;
long gcd(long x ,long y)
{
if(y==0)
return x;
return gcd(y,x%y);
}
// ArrayList<Integer> a[];
// TreeMap<Integer, Long> map;
// int vis[];
// long d[];
// void dfs(int ver, int m)
// {
// map.put(ver, d[m % 3]);
// for(int v : a[ver])
// {
// if(vis[v] == 0){
// vis[v] = vis[ver] + 1;
// dfs(v, m + 1);
// }
// }
// }
int countSetBits(long n)
{
int count = 0;
while (n > 0) {
n &= (n - 1);
count++;
}
return count;
}
void solve() throws IOException{
int n = nextInt();
Long d = nextLong();
int cnt = 0;
while(n -- > 0)
{
long x = nextLong();
long y = nextLong();
long f = x*x + y*y;
if(f <= d * d)
cnt++;
}
out.println(cnt);
}
void run() throws IOException {
br = new BufferedReader(new InputStreamReader(System.in));
out = new PrintWriter(System.out);
long s = System.currentTimeMillis();
solve();
out.flush();
out.close();
}
public static void main(String args[]) throws IOException {
new Main().run();
}
}
|
[
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,
4,
18,
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,
18,
4,
18,
13,
17,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
41,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
13,
17,
30,
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
],
[
19,
20
],
[
20,
21
],
[
17,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
11,
36
],
[
36,
37
],
[
36,
38
],
[
11,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
54,
59
],
[
51,
60
],
[
60,
61
],
[
60,
62
],
[
51,
63
],
[
63,
64
],
[
63,
65
],
[
51,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
51,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
51,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
51,
84
],
[
84,
85
],
[
84,
86
],
[
51,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
51,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
94,
99
],
[
93,
100
],
[
100,
101
],
[
101,
102
],
[
11,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
9,
109
],
[
109,
110
]
]
| [
"import java.math.BigInteger;\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] arg = sc.nextLine().split(\" \");\n int n = Integer.parseInt(arg[0]);\n String d = arg[1];\n\n int count = 0;\n for (int i = 0; i < n; i++) {\n String[] value = sc.nextLine().split(\" \");\n BigInteger x = new BigInteger(value[0]);\n BigInteger y = new BigInteger(value[1]);\n BigInteger xs = x.multiply(x);\n BigInteger ys = y.multiply(y);\n BigInteger comp = xs.add(ys);\n BigInteger dd = new BigInteger(d);\n BigInteger ds = dd.multiply(dd);\n if(comp.compareTo(ds) <= 0) {\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] arg = sc.nextLine().split(\" \");\n int n = Integer.parseInt(arg[0]);\n String d = arg[1];\n\n int count = 0;\n for (int i = 0; i < n; i++) {\n String[] value = sc.nextLine().split(\" \");\n BigInteger x = new BigInteger(value[0]);\n BigInteger y = new BigInteger(value[1]);\n BigInteger xs = x.multiply(x);\n BigInteger ys = y.multiply(y);\n BigInteger comp = xs.add(ys);\n BigInteger dd = new BigInteger(d);\n BigInteger ds = dd.multiply(dd);\n if(comp.compareTo(ds) <= 0) {\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 String[] arg = sc.nextLine().split(\" \");\n int n = Integer.parseInt(arg[0]);\n String d = arg[1];\n\n int count = 0;\n for (int i = 0; i < n; i++) {\n String[] value = sc.nextLine().split(\" \");\n BigInteger x = new BigInteger(value[0]);\n BigInteger y = new BigInteger(value[1]);\n BigInteger xs = x.multiply(x);\n BigInteger ys = y.multiply(y);\n BigInteger comp = xs.add(ys);\n BigInteger dd = new BigInteger(d);\n BigInteger ds = dd.multiply(dd);\n if(comp.compareTo(ds) <= 0) {\n count++;\n }\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String[] arg = sc.nextLine().split(\" \");\n int n = Integer.parseInt(arg[0]);\n String d = arg[1];\n\n int count = 0;\n for (int i = 0; i < n; i++) {\n String[] value = sc.nextLine().split(\" \");\n BigInteger x = new BigInteger(value[0]);\n BigInteger y = new BigInteger(value[1]);\n BigInteger xs = x.multiply(x);\n BigInteger ys = y.multiply(y);\n BigInteger comp = xs.add(ys);\n BigInteger dd = new BigInteger(d);\n BigInteger ds = dd.multiply(dd);\n if(comp.compareTo(ds) <= 0) {\n count++;\n }\n }\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] arg = sc.nextLine().split(\" \");",
"arg",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"int n = Integer.parseInt(arg[0]);",
"n",
"Integer.parseInt(arg[0])",
"Integer.parseInt",
"Integer",
"arg[0]",
"arg",
"0",
"String d = arg[1];",
"d",
"arg[1]",
"arg",
"1",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < n; i++) {\n String[] value = sc.nextLine().split(\" \");\n BigInteger x = new BigInteger(value[0]);\n BigInteger y = new BigInteger(value[1]);\n BigInteger xs = x.multiply(x);\n BigInteger ys = y.multiply(y);\n BigInteger comp = xs.add(ys);\n BigInteger dd = new BigInteger(d);\n BigInteger ds = dd.multiply(dd);\n if(comp.compareTo(ds) <= 0) {\n count++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] value = sc.nextLine().split(\" \");\n BigInteger x = new BigInteger(value[0]);\n BigInteger y = new BigInteger(value[1]);\n BigInteger xs = x.multiply(x);\n BigInteger ys = y.multiply(y);\n BigInteger comp = xs.add(ys);\n BigInteger dd = new BigInteger(d);\n BigInteger ds = dd.multiply(dd);\n if(comp.compareTo(ds) <= 0) {\n count++;\n }\n }",
"{\n String[] value = sc.nextLine().split(\" \");\n BigInteger x = new BigInteger(value[0]);\n BigInteger y = new BigInteger(value[1]);\n BigInteger xs = x.multiply(x);\n BigInteger ys = y.multiply(y);\n BigInteger comp = xs.add(ys);\n BigInteger dd = new BigInteger(d);\n BigInteger ds = dd.multiply(dd);\n if(comp.compareTo(ds) <= 0) {\n count++;\n }\n }",
"String[] value = sc.nextLine().split(\" \");",
"value",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"BigInteger x = new BigInteger(value[0]);",
"x",
"new BigInteger(value[0])",
"BigInteger y = new BigInteger(value[1]);",
"y",
"new BigInteger(value[1])",
"BigInteger xs = x.multiply(x);",
"xs",
"x.multiply(x)",
"x.multiply",
"x",
"x",
"BigInteger ys = y.multiply(y);",
"ys",
"y.multiply(y)",
"y.multiply",
"y",
"y",
"BigInteger comp = xs.add(ys);",
"comp",
"xs.add(ys)",
"xs.add",
"xs",
"ys",
"BigInteger dd = new BigInteger(d);",
"dd",
"new BigInteger(d)",
"BigInteger ds = dd.multiply(dd);",
"ds",
"dd.multiply(dd)",
"dd.multiply",
"dd",
"dd",
"if(comp.compareTo(ds) <= 0) {\n count++;\n }",
"comp.compareTo(ds) <= 0",
"comp.compareTo(ds)",
"comp.compareTo",
"comp",
"ds",
"0",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args"
]
| import java.math.BigInteger;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] arg = sc.nextLine().split(" ");
int n = Integer.parseInt(arg[0]);
String d = arg[1];
int count = 0;
for (int i = 0; i < n; i++) {
String[] value = sc.nextLine().split(" ");
BigInteger x = new BigInteger(value[0]);
BigInteger y = new BigInteger(value[1]);
BigInteger xs = x.multiply(x);
BigInteger ys = y.multiply(y);
BigInteger comp = xs.add(ys);
BigInteger dd = new BigInteger(d);
BigInteger ds = dd.multiply(dd);
if(comp.compareTo(ds) <= 0) {
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,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
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,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
98,
5
],
[
98,
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
],
[
40,
41
],
[
40,
42
],
[
33,
43
],
[
43,
44
],
[
44,
45
],
[
33,
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
],
[
47,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
63,
79
],
[
79,
80
],
[
79,
81
],
[
62,
82
],
[
82,
83
],
[
83,
84
],
[
8,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
8,
94
],
[
6,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n long n = scan.nextLong(), d = scan.nextLong(), cnt = 0;\n long x[] = new long[(int)n], y[] = new long[(int)n];\n for(int i = 0; i < x.length; i++) {\n x[i] = scan.nextLong();\n y[i] = scan.nextLong();\n\n if(x[i] * x[i] + y[i] * y[i] <= d * d) {\n cnt ++;\n }\n }\n\n System.out.println(cnt);\n\n scan.close();\n return;\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\n long n = scan.nextLong(), d = scan.nextLong(), cnt = 0;\n long x[] = new long[(int)n], y[] = new long[(int)n];\n for(int i = 0; i < x.length; i++) {\n x[i] = scan.nextLong();\n y[i] = scan.nextLong();\n\n if(x[i] * x[i] + y[i] * y[i] <= d * d) {\n cnt ++;\n }\n }\n\n System.out.println(cnt);\n\n scan.close();\n return;\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n long n = scan.nextLong(), d = scan.nextLong(), cnt = 0;\n long x[] = new long[(int)n], y[] = new long[(int)n];\n for(int i = 0; i < x.length; i++) {\n x[i] = scan.nextLong();\n y[i] = scan.nextLong();\n\n if(x[i] * x[i] + y[i] * y[i] <= d * d) {\n cnt ++;\n }\n }\n\n System.out.println(cnt);\n\n scan.close();\n return;\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n long n = scan.nextLong(), d = scan.nextLong(), cnt = 0;\n long x[] = new long[(int)n], y[] = new long[(int)n];\n for(int i = 0; i < x.length; i++) {\n x[i] = scan.nextLong();\n y[i] = scan.nextLong();\n\n if(x[i] * x[i] + y[i] * y[i] <= d * d) {\n cnt ++;\n }\n }\n\n System.out.println(cnt);\n\n scan.close();\n return;\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long n = scan.nextLong()",
"n",
"scan.nextLong()",
"scan.nextLong",
"scan",
"d = scan.nextLong()",
"d",
"scan.nextLong()",
"scan.nextLong",
"scan",
"cnt = 0;",
"cnt",
"0",
"long x[] = new long[(int)n]",
"x",
"new long[(int)n]",
"(int)n",
"y[] = new long[(int)n];",
"y",
"new long[(int)n]",
"(int)n",
"for(int i = 0; i < x.length; i++) {\n x[i] = scan.nextLong();\n y[i] = scan.nextLong();\n\n if(x[i] * x[i] + y[i] * y[i] <= d * d) {\n cnt ++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < x.length",
"i",
"x.length",
"x",
"x.length",
"i++",
"i++",
"i",
"{\n x[i] = scan.nextLong();\n y[i] = scan.nextLong();\n\n if(x[i] * x[i] + y[i] * y[i] <= d * d) {\n cnt ++;\n }\n }",
"{\n x[i] = scan.nextLong();\n y[i] = scan.nextLong();\n\n if(x[i] * x[i] + y[i] * y[i] <= d * d) {\n cnt ++;\n }\n }",
"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",
"if(x[i] * x[i] + y[i] * y[i] <= d * d) {\n cnt ++;\n }",
"x[i] * x[i] + y[i] * y[i] <= 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",
"d * d",
"d",
"d",
"{\n cnt ++;\n }",
"cnt ++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"scan.close()",
"scan.close",
"scan",
"return;",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n long n = scan.nextLong(), d = scan.nextLong(), cnt = 0;\n long x[] = new long[(int)n], y[] = new long[(int)n];\n for(int i = 0; i < x.length; i++) {\n x[i] = scan.nextLong();\n y[i] = scan.nextLong();\n\n if(x[i] * x[i] + y[i] * y[i] <= d * d) {\n cnt ++;\n }\n }\n\n System.out.println(cnt);\n\n scan.close();\n return;\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n long n = scan.nextLong(), d = scan.nextLong(), cnt = 0;\n long x[] = new long[(int)n], y[] = new long[(int)n];\n for(int i = 0; i < x.length; i++) {\n x[i] = scan.nextLong();\n y[i] = scan.nextLong();\n\n if(x[i] * x[i] + y[i] * y[i] <= d * d) {\n cnt ++;\n }\n }\n\n System.out.println(cnt);\n\n scan.close();\n return;\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.nextLong(), d = scan.nextLong(), cnt = 0;
long x[] = new long[(int)n], y[] = new long[(int)n];
for(int i = 0; i < x.length; i++) {
x[i] = scan.nextLong();
y[i] = scan.nextLong();
if(x[i] * x[i] + y[i] * y[i] <= d * d) {
cnt ++;
}
}
System.out.println(cnt);
scan.close();
return;
}
} |
[
7,
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,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
9,
14,
2,
2,
2,
13,
13,
2,
13,
17,
2,
2,
13,
13,
2,
13,
17,
40,
13,
30,
14,
2,
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
],
[
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,
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
],
[
55,
57
],
[
42,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
42,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
63,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
72,
88
],
[
88,
89
],
[
72,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
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
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\td = d*d;\n\t\tint count =0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\t\n\t\t\tx=x*x;\n\t\t\ty=y*y;\n\t\t\t\n\t\t\tif(x>d || y>d)\n\t\t\t\tcontinue;\n\t\t\telse if( (x==d && y==0) || (y==d && x==0))\n\t\t\t\tcount++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(x+y<=d)\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\td = d*d;\n\t\tint count =0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\t\n\t\t\tx=x*x;\n\t\t\ty=y*y;\n\t\t\t\n\t\t\tif(x>d || y>d)\n\t\t\t\tcontinue;\n\t\t\telse if( (x==d && y==0) || (y==d && x==0))\n\t\t\t\tcount++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(x+y<=d)\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\td = d*d;\n\t\tint count =0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\t\n\t\t\tx=x*x;\n\t\t\ty=y*y;\n\t\t\t\n\t\t\tif(x>d || y>d)\n\t\t\t\tcontinue;\n\t\t\telse if( (x==d && y==0) || (y==d && x==0))\n\t\t\t\tcount++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(x+y<=d)\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\td = d*d;\n\t\tint count =0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\t\n\t\t\tx=x*x;\n\t\t\ty=y*y;\n\t\t\t\n\t\t\tif(x>d || y>d)\n\t\t\t\tcontinue;\n\t\t\telse if( (x==d && y==0) || (y==d && x==0))\n\t\t\t\tcount++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(x+y<=d)\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\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",
"long d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"d = d*d",
"d",
"d*d",
"d",
"d",
"int count =0;",
"count",
"0",
"for(int i=0;i<n;i++)\n\t\t{\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\t\n\t\t\tx=x*x;\n\t\t\ty=y*y;\n\t\t\t\n\t\t\tif(x>d || y>d)\n\t\t\t\tcontinue;\n\t\t\telse if( (x==d && y==0) || (y==d && x==0))\n\t\t\t\tcount++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(x+y<=d)\n\t\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\t\n\t\t\tx=x*x;\n\t\t\ty=y*y;\n\t\t\t\n\t\t\tif(x>d || y>d)\n\t\t\t\tcontinue;\n\t\t\telse if( (x==d && y==0) || (y==d && x==0))\n\t\t\t\tcount++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(x+y<=d)\n\t\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\t\n\t\t\tx=x*x;\n\t\t\ty=y*y;\n\t\t\t\n\t\t\tif(x>d || y>d)\n\t\t\t\tcontinue;\n\t\t\telse if( (x==d && y==0) || (y==d && x==0))\n\t\t\t\tcount++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(x+y<=d)\n\t\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",
"x=x*x",
"x",
"x*x",
"x",
"x",
"y=y*y",
"y",
"y*y",
"y",
"y",
"if(x>d || y>d)\n\t\t\t\tcontinue;\n\t\t\telse if( (x==d && y==0) || (y==d && x==0))\n\t\t\t\tcount++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(x+y<=d)\n\t\t\t\t\tcount++;\n\t\t\t}",
"x>d || y>d",
"x>d",
"x",
"d",
"y>d",
"y",
"d",
"continue;",
"if( (x==d && y==0) || (y==d && x==0))\n\t\t\t\tcount++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(x+y<=d)\n\t\t\t\t\tcount++;\n\t\t\t}",
"(x==d && y==0) || (y==d && x==0)",
"(x==d && y==0)",
"x==d",
"x",
"d",
"y==0",
"y",
"0",
"(y==d && x==0)",
"y==d",
"y",
"d",
"x==0",
"x",
"0",
"count++",
"count",
"{\n\t\t\t\tif(x+y<=d)\n\t\t\t\t\tcount++;\n\t\t\t}",
"if(x+y<=d)\n\t\t\t\t\tcount++;",
"x+y<=d",
"x+y",
"x",
"y",
"d",
"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\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\td = d*d;\n\t\tint count =0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\t\n\t\t\tx=x*x;\n\t\t\ty=y*y;\n\t\t\t\n\t\t\tif(x>d || y>d)\n\t\t\t\tcontinue;\n\t\t\telse if( (x==d && y==0) || (y==d && x==0))\n\t\t\t\tcount++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(x+y<=d)\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\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\t\tint n = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\td = d*d;\n\t\tint count =0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tlong x = sc.nextInt();\n\t\t\tlong y = sc.nextInt();\n\t\t\t\n\t\t\tx=x*x;\n\t\t\ty=y*y;\n\t\t\t\n\t\t\tif(x>d || y>d)\n\t\t\t\tcontinue;\n\t\t\telse if( (x==d && y==0) || (y==d && x==0))\n\t\t\t\tcount++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(x+y<=d)\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\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.nextInt();
d = d*d;
int count =0;
for(int i=0;i<n;i++)
{
long x = sc.nextInt();
long y = sc.nextInt();
x=x*x;
y=y*y;
if(x>d || y>d)
continue;
else if( (x==d && y==0) || (y==d && x==0))
count++;
else
{
if(x+y<=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,
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/**\n * @author: Happy\n * @date:2020年8月2日 下午8:23:01\n */\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in=new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint d=in.nextInt();\n\t\tint sum=0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlong x=in.nextInt();\n\t\t\tlong y=in.nextInt();\n\t\t\tdouble dis=Math.sqrt(x*x+y*y);\n\t\t\tif(dis<=d){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\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 Auto-generated method stub\n\t\tScanner in=new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint d=in.nextInt();\n\t\tint sum=0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlong x=in.nextInt();\n\t\t\tlong y=in.nextInt();\n\t\t\tdouble dis=Math.sqrt(x*x+y*y);\n\t\t\tif(dis<=d){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in=new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint d=in.nextInt();\n\t\tint sum=0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlong x=in.nextInt();\n\t\t\tlong y=in.nextInt();\n\t\t\tdouble dis=Math.sqrt(x*x+y*y);\n\t\t\tif(dis<=d){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner in=new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint d=in.nextInt();\n\t\tint sum=0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlong x=in.nextInt();\n\t\t\tlong y=in.nextInt();\n\t\t\tdouble dis=Math.sqrt(x*x+y*y);\n\t\t\tif(dis<=d){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n=in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int d=in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"int sum=0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tlong x=in.nextInt();\n\t\t\tlong y=in.nextInt();\n\t\t\tdouble dis=Math.sqrt(x*x+y*y);\n\t\t\tif(dis<=d){\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\tlong x=in.nextInt();\n\t\t\tlong y=in.nextInt();\n\t\t\tdouble dis=Math.sqrt(x*x+y*y);\n\t\t\tif(dis<=d){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tlong x=in.nextInt();\n\t\t\tlong y=in.nextInt();\n\t\t\tdouble dis=Math.sqrt(x*x+y*y);\n\t\t\tif(dis<=d){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}",
"long x=in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"long y=in.nextInt();",
"y",
"in.nextInt()",
"in.nextInt",
"in",
"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",
"if(dis<=d){\n\t\t\t\tsum++;\n\t\t\t}",
"dis<=d",
"dis",
"d",
"{\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\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in=new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint d=in.nextInt();\n\t\tint sum=0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlong x=in.nextInt();\n\t\t\tlong y=in.nextInt();\n\t\t\tdouble dis=Math.sqrt(x*x+y*y);\n\t\t\tif(dis<=d){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in=new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint d=in.nextInt();\n\t\tint sum=0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlong x=in.nextInt();\n\t\t\tlong y=in.nextInt();\n\t\t\tdouble dis=Math.sqrt(x*x+y*y);\n\t\t\tif(dis<=d){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
/**
* @author: Happy
* @date:2020年8月2日 下午8:23:01
*/
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in=new Scanner(System.in);
int n=in.nextInt();
int d=in.nextInt();
int sum=0;
for (int i = 0; i < n; i++) {
long x=in.nextInt();
long y=in.nextInt();
double dis=Math.sqrt(x*x+y*y);
if(dis<=d){
sum++;
}
}
System.out.println(sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
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,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
13,
17,
41,
13,
4,
18,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
153,
11
],
[
153,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
16,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
16,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
16,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
16,
47
],
[
47,
48
],
[
47,
49
],
[
16,
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
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
16,
72
],
[
72,
73
],
[
72,
74
],
[
16,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
75,
85
],
[
85,
86
],
[
86,
87
],
[
75,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
92,
98
],
[
89,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
89,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
112,
114
],
[
89,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
117,
121
],
[
89,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
124,
128
],
[
89,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
134,
136
],
[
89,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
142,
143
],
[
16,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
12,
150
],
[
150,
151
],
[
0,
152
],
[
152,
153
],
[
152,
154
]
]
| [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data1 = scanner.nextLine();\n\n\t\t\tString[] arr = data1.split(\" \");\n\n\t\t\tint N = Integer.parseInt(arr[0]);\n\t\t\tint D = Integer.parseInt(arr[1]);\n\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tString data = scanner.nextLine();\n\t\t\t\tlist.add(data);\n\t\t\t}\n\n\t\t\tint ans = 0;\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\t\tString[] arr1 = list.get(i).split(\" \");\n\t\t\t\tdouble x = Double.parseDouble(arr1[0]);\n\t\t\t\tdouble y = Double.parseDouble(arr1[1]);\n\n\t\t\t\tdouble xx = Math.pow(x, 2);\n\t\t\t\tdouble yy = Math.pow(y, 2);\n\n\t\t\t\tdouble s = Math.sqrt(xx + yy);\n\t\t\t\tif (s <= D) {\n\t\t\t\t\tans++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ans);\n\t\t}\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\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data1 = scanner.nextLine();\n\n\t\t\tString[] arr = data1.split(\" \");\n\n\t\t\tint N = Integer.parseInt(arr[0]);\n\t\t\tint D = Integer.parseInt(arr[1]);\n\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tString data = scanner.nextLine();\n\t\t\t\tlist.add(data);\n\t\t\t}\n\n\t\t\tint ans = 0;\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\t\tString[] arr1 = list.get(i).split(\" \");\n\t\t\t\tdouble x = Double.parseDouble(arr1[0]);\n\t\t\t\tdouble y = Double.parseDouble(arr1[1]);\n\n\t\t\t\tdouble xx = Math.pow(x, 2);\n\t\t\t\tdouble yy = Math.pow(y, 2);\n\n\t\t\t\tdouble s = Math.sqrt(xx + yy);\n\t\t\t\tif (s <= D) {\n\t\t\t\t\tans++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data1 = scanner.nextLine();\n\n\t\t\tString[] arr = data1.split(\" \");\n\n\t\t\tint N = Integer.parseInt(arr[0]);\n\t\t\tint D = Integer.parseInt(arr[1]);\n\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tString data = scanner.nextLine();\n\t\t\t\tlist.add(data);\n\t\t\t}\n\n\t\t\tint ans = 0;\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\t\tString[] arr1 = list.get(i).split(\" \");\n\t\t\t\tdouble x = Double.parseDouble(arr1[0]);\n\t\t\t\tdouble y = Double.parseDouble(arr1[1]);\n\n\t\t\t\tdouble xx = Math.pow(x, 2);\n\t\t\t\tdouble yy = Math.pow(y, 2);\n\n\t\t\t\tdouble s = Math.sqrt(xx + yy);\n\t\t\t\tif (s <= D) {\n\t\t\t\t\tans++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}",
"main",
"{\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data1 = scanner.nextLine();\n\n\t\t\tString[] arr = data1.split(\" \");\n\n\t\t\tint N = Integer.parseInt(arr[0]);\n\t\t\tint D = Integer.parseInt(arr[1]);\n\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tString data = scanner.nextLine();\n\t\t\t\tlist.add(data);\n\t\t\t}\n\n\t\t\tint ans = 0;\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\t\tString[] arr1 = list.get(i).split(\" \");\n\t\t\t\tdouble x = Double.parseDouble(arr1[0]);\n\t\t\t\tdouble y = Double.parseDouble(arr1[1]);\n\n\t\t\t\tdouble xx = Math.pow(x, 2);\n\t\t\t\tdouble yy = Math.pow(y, 2);\n\n\t\t\t\tdouble s = Math.sqrt(xx + yy);\n\t\t\t\tif (s <= D) {\n\t\t\t\t\tans++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}",
"try(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data1 = scanner.nextLine();\n\n\t\t\tString[] arr = data1.split(\" \");\n\n\t\t\tint N = Integer.parseInt(arr[0]);\n\t\t\tint D = Integer.parseInt(arr[1]);\n\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tString data = scanner.nextLine();\n\t\t\t\tlist.add(data);\n\t\t\t}\n\n\t\t\tint ans = 0;\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\t\tString[] arr1 = list.get(i).split(\" \");\n\t\t\t\tdouble x = Double.parseDouble(arr1[0]);\n\t\t\t\tdouble y = Double.parseDouble(arr1[1]);\n\n\t\t\t\tdouble xx = Math.pow(x, 2);\n\t\t\t\tdouble yy = Math.pow(y, 2);\n\n\t\t\t\tdouble s = Math.sqrt(xx + yy);\n\t\t\t\tif (s <= D) {\n\t\t\t\t\tans++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ans);\n\t\t}",
"{\n\t\t\tString data1 = scanner.nextLine();\n\n\t\t\tString[] arr = data1.split(\" \");\n\n\t\t\tint N = Integer.parseInt(arr[0]);\n\t\t\tint D = Integer.parseInt(arr[1]);\n\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tString data = scanner.nextLine();\n\t\t\t\tlist.add(data);\n\t\t\t}\n\n\t\t\tint ans = 0;\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\t\tString[] arr1 = list.get(i).split(\" \");\n\t\t\t\tdouble x = Double.parseDouble(arr1[0]);\n\t\t\t\tdouble y = Double.parseDouble(arr1[1]);\n\n\t\t\t\tdouble xx = Math.pow(x, 2);\n\t\t\t\tdouble yy = Math.pow(y, 2);\n\n\t\t\t\tdouble s = Math.sqrt(xx + yy);\n\t\t\t\tif (s <= D) {\n\t\t\t\t\tans++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ans);\n\t\t}",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"String data1 = scanner.nextLine();",
"data1",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"String[] arr = data1.split(\" \");",
"arr",
"data1.split(\" \")",
"data1.split",
"data1",
"\" \"",
"int N = Integer.parseInt(arr[0]);",
"N",
"Integer.parseInt(arr[0])",
"Integer.parseInt",
"Integer",
"arr[0]",
"arr",
"0",
"int D = Integer.parseInt(arr[1]);",
"D",
"Integer.parseInt(arr[1])",
"Integer.parseInt",
"Integer",
"arr[1]",
"arr",
"1",
"List<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"for (int i = 0; i < N; i++) {\n\t\t\t\tString data = scanner.nextLine();\n\t\t\t\tlist.add(data);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\t\tString data = scanner.nextLine();\n\t\t\t\tlist.add(data);\n\t\t\t}",
"{\n\t\t\t\tString data = scanner.nextLine();\n\t\t\t\tlist.add(data);\n\t\t\t}",
"String data = scanner.nextLine();",
"data",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"list.add(data)",
"list.add",
"list",
"data",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < list.size(); i++) {\n\n\t\t\t\tString[] arr1 = list.get(i).split(\" \");\n\t\t\t\tdouble x = Double.parseDouble(arr1[0]);\n\t\t\t\tdouble y = Double.parseDouble(arr1[1]);\n\n\t\t\t\tdouble xx = Math.pow(x, 2);\n\t\t\t\tdouble yy = Math.pow(y, 2);\n\n\t\t\t\tdouble s = Math.sqrt(xx + yy);\n\t\t\t\tif (s <= D) {\n\t\t\t\t\tans++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < list.size()",
"i",
"list.size()",
"list.size",
"list",
"i++",
"i++",
"i",
"{\n\n\t\t\t\tString[] arr1 = list.get(i).split(\" \");\n\t\t\t\tdouble x = Double.parseDouble(arr1[0]);\n\t\t\t\tdouble y = Double.parseDouble(arr1[1]);\n\n\t\t\t\tdouble xx = Math.pow(x, 2);\n\t\t\t\tdouble yy = Math.pow(y, 2);\n\n\t\t\t\tdouble s = Math.sqrt(xx + yy);\n\t\t\t\tif (s <= D) {\n\t\t\t\t\tans++;\n\t\t\t\t}\n\t\t\t}",
"{\n\n\t\t\t\tString[] arr1 = list.get(i).split(\" \");\n\t\t\t\tdouble x = Double.parseDouble(arr1[0]);\n\t\t\t\tdouble y = Double.parseDouble(arr1[1]);\n\n\t\t\t\tdouble xx = Math.pow(x, 2);\n\t\t\t\tdouble yy = Math.pow(y, 2);\n\n\t\t\t\tdouble s = Math.sqrt(xx + yy);\n\t\t\t\tif (s <= D) {\n\t\t\t\t\tans++;\n\t\t\t\t}\n\t\t\t}",
"String[] arr1 = list.get(i).split(\" \");",
"arr1",
"list.get(i).split(\" \")",
"list.get(i).split",
"list.get(i)",
"list.get",
"list",
"i",
"\" \"",
"double x = Double.parseDouble(arr1[0]);",
"x",
"Double.parseDouble(arr1[0])",
"Double.parseDouble",
"Double",
"arr1[0]",
"arr1",
"0",
"double y = Double.parseDouble(arr1[1]);",
"y",
"Double.parseDouble(arr1[1])",
"Double.parseDouble",
"Double",
"arr1[1]",
"arr1",
"1",
"double xx = Math.pow(x, 2);",
"xx",
"Math.pow(x, 2)",
"Math.pow",
"Math",
"x",
"2",
"double yy = Math.pow(y, 2);",
"yy",
"Math.pow(y, 2)",
"Math.pow",
"Math",
"y",
"2",
"double s = Math.sqrt(xx + yy);",
"s",
"Math.sqrt(xx + yy)",
"Math.sqrt",
"Math",
"xx + yy",
"xx",
"yy",
"if (s <= D) {\n\t\t\t\t\tans++;\n\t\t\t\t}",
"s <= D",
"s",
"D",
"{\n\t\t\t\t\tans++;\n\t\t\t\t}",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data1 = scanner.nextLine();\n\n\t\t\tString[] arr = data1.split(\" \");\n\n\t\t\tint N = Integer.parseInt(arr[0]);\n\t\t\tint D = Integer.parseInt(arr[1]);\n\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tString data = scanner.nextLine();\n\t\t\t\tlist.add(data);\n\t\t\t}\n\n\t\t\tint ans = 0;\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\t\tString[] arr1 = list.get(i).split(\" \");\n\t\t\t\tdouble x = Double.parseDouble(arr1[0]);\n\t\t\t\tdouble y = Double.parseDouble(arr1[1]);\n\n\t\t\t\tdouble xx = Math.pow(x, 2);\n\t\t\t\tdouble yy = Math.pow(y, 2);\n\n\t\t\t\tdouble s = Math.sqrt(xx + yy);\n\t\t\t\tif (s <= D) {\n\t\t\t\t\tans++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data1 = scanner.nextLine();\n\n\t\t\tString[] arr = data1.split(\" \");\n\n\t\t\tint N = Integer.parseInt(arr[0]);\n\t\t\tint D = Integer.parseInt(arr[1]);\n\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tString data = scanner.nextLine();\n\t\t\t\tlist.add(data);\n\t\t\t}\n\n\t\t\tint ans = 0;\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\t\tString[] arr1 = list.get(i).split(\" \");\n\t\t\t\tdouble x = Double.parseDouble(arr1[0]);\n\t\t\t\tdouble y = Double.parseDouble(arr1[1]);\n\n\t\t\t\tdouble xx = Math.pow(x, 2);\n\t\t\t\tdouble yy = Math.pow(y, 2);\n\n\t\t\t\tdouble s = Math.sqrt(xx + yy);\n\t\t\t\tif (s <= D) {\n\t\t\t\t\tans++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ans);\n\t\t}\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) {
try(Scanner scanner = new Scanner(System.in)) {
String data1 = scanner.nextLine();
String[] arr = data1.split(" ");
int N = Integer.parseInt(arr[0]);
int D = Integer.parseInt(arr[1]);
List<String> list = new ArrayList<String>();
for (int i = 0; i < N; i++) {
String data = scanner.nextLine();
list.add(data);
}
int ans = 0;
for (int i = 0; i < list.size(); i++) {
String[] arr1 = list.get(i).split(" ");
double x = Double.parseDouble(arr1[0]);
double y = Double.parseDouble(arr1[1]);
double xx = Math.pow(x, 2);
double yy = Math.pow(y, 2);
double s = Math.sqrt(xx + yy);
if (s <= 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,
41,
13,
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,
0,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
40,
13,
17,
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
],
[
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
],
[
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
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
43,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
]
| [
"import java.util.Scanner;\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\n int count = 0;\n long a,b;\n double c;\n\n for (int i=0;i<N;i++ ){\n a = scan.nextLong();\n b = scan.nextLong();\n\n c = Math.sqrt(a * a + b * b);\n\n if(c<=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 scan = new Scanner(System.in);\n int N = scan.nextInt();\n int D = scan.nextInt();\n\n int count = 0;\n long a,b;\n double c;\n\n for (int i=0;i<N;i++ ){\n a = scan.nextLong();\n b = scan.nextLong();\n\n c = Math.sqrt(a * a + b * b);\n\n if(c<=D){\n count++;\n }\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 int D = scan.nextInt();\n\n int count = 0;\n long a,b;\n double c;\n\n for (int i=0;i<N;i++ ){\n a = scan.nextLong();\n b = scan.nextLong();\n\n c = Math.sqrt(a * a + b * b);\n\n if(c<=D){\n count++;\n }\n }\n\n System.out.println(+ count + \"\");\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n int D = scan.nextInt();\n\n int count = 0;\n long a,b;\n double c;\n\n for (int i=0;i<N;i++ ){\n a = scan.nextLong();\n b = scan.nextLong();\n\n c = Math.sqrt(a * a + b * b);\n\n if(c<=D){\n count++;\n }\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",
"int D = scan.nextInt();",
"D",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int count = 0;",
"count",
"0",
"long a",
"a",
"b;",
"b",
"double c;",
"c",
"for (int i=0;i<N;i++ ){\n a = scan.nextLong();\n b = scan.nextLong();\n\n c = Math.sqrt(a * a + b * b);\n\n if(c<=D){\n count++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n a = scan.nextLong();\n b = scan.nextLong();\n\n c = Math.sqrt(a * a + b * b);\n\n if(c<=D){\n count++;\n }\n }",
"{\n a = scan.nextLong();\n b = scan.nextLong();\n\n c = Math.sqrt(a * a + b * b);\n\n if(c<=D){\n count++;\n }\n }",
"a = scan.nextLong()",
"a",
"scan.nextLong()",
"scan.nextLong",
"scan",
"b = scan.nextLong()",
"b",
"scan.nextLong()",
"scan.nextLong",
"scan",
"c = Math.sqrt(a * a + b * b)",
"c",
"Math.sqrt(a * a + b * b)",
"Math.sqrt",
"Math",
"a * a + b * b",
"a * a",
"a",
"a",
"b * b",
"b",
"b",
"if(c<=D){\n count++;\n }",
"c<=D",
"c",
"D",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(+ count + \"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"+ count + \"\"",
"+ count",
"count",
"\"\"",
"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\n int count = 0;\n long a,b;\n double c;\n\n for (int i=0;i<N;i++ ){\n a = scan.nextLong();\n b = scan.nextLong();\n\n c = Math.sqrt(a * a + b * b);\n\n if(c<=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 scan = new Scanner(System.in);\n int N = scan.nextInt();\n int D = scan.nextInt();\n\n int count = 0;\n long a,b;\n double c;\n\n for (int i=0;i<N;i++ ){\n a = scan.nextLong();\n b = scan.nextLong();\n\n c = Math.sqrt(a * a + b * b);\n\n if(c<=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 scan = new Scanner(System.in);
int N = scan.nextInt();
int D = scan.nextInt();
int count = 0;
long a,b;
double c;
for (int i=0;i<N;i++ ){
a = scan.nextLong();
b = scan.nextLong();
c = Math.sqrt(a * a + b * b);
if(c<=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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
0,
13,
8,
2,
13,
2,
13,
13,
17,
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
],
[
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
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
72,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
92,
98
],
[
92,
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.*;\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\tlong d = scan.nextInt();\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] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t}\n\t\tint count = 0;\n\t\tfor(int i = 0;i < n; ++i){\n\t\t\tlong distance = x[i]*x[i] + y[i]*y[i];\n\t\t\tcount += distance <= d*d? 1 : 0;\n\t\t}\n\n\t\tSystem.out.print(count);\n\t}\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\tlong d = scan.nextInt();\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] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t}\n\t\tint count = 0;\n\t\tfor(int i = 0;i < n; ++i){\n\t\t\tlong distance = x[i]*x[i] + y[i]*y[i];\n\t\t\tcount += distance <= d*d? 1 : 0;\n\t\t}\n\n\t\tSystem.out.print(count);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tlong d = scan.nextInt();\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] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t}\n\t\tint count = 0;\n\t\tfor(int i = 0;i < n; ++i){\n\t\t\tlong distance = x[i]*x[i] + y[i]*y[i];\n\t\t\tcount += distance <= d*d? 1 : 0;\n\t\t}\n\n\t\tSystem.out.print(count);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tlong d = scan.nextInt();\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] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t}\n\t\tint count = 0;\n\t\tfor(int i = 0;i < n; ++i){\n\t\t\tlong distance = x[i]*x[i] + y[i]*y[i];\n\t\t\tcount += distance <= d*d? 1 : 0;\n\t\t}\n\n\t\tSystem.out.print(count);\n\t}",
"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",
"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] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n\t\t\tx[i] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t}",
"{\n\t\t\tx[i] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t}",
"x[i] = scan.nextInt()",
"x[i]",
"x",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"y[i] = scan.nextInt()",
"y[i]",
"y",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int count = 0;",
"count",
"0",
"for(int i = 0;i < n; ++i){\n\t\t\tlong distance = x[i]*x[i] + y[i]*y[i];\n\t\t\tcount += distance <= d*d? 1 : 0;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n\t\t\tlong distance = x[i]*x[i] + y[i]*y[i];\n\t\t\tcount += distance <= d*d? 1 : 0;\n\t\t}",
"{\n\t\t\tlong distance = x[i]*x[i] + y[i]*y[i];\n\t\t\tcount += distance <= d*d? 1 : 0;\n\t\t}",
"long distance = x[i]*x[i] + y[i]*y[i];",
"distance",
"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",
"count += distance <= d*d? 1 : 0",
"count",
"distance <= d*d? 1 : 0",
"distance <= d*d",
"distance",
"d*d",
"d",
"d",
"1",
"0",
"System.out.print(count)",
"System.out.print",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"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\tlong d = scan.nextInt();\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] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t}\n\t\tint count = 0;\n\t\tfor(int i = 0;i < n; ++i){\n\t\t\tlong distance = x[i]*x[i] + y[i]*y[i];\n\t\t\tcount += distance <= d*d? 1 : 0;\n\t\t}\n\n\t\tSystem.out.print(count);\n\t}\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\tlong d = scan.nextInt();\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] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t}\n\t\tint count = 0;\n\t\tfor(int i = 0;i < n; ++i){\n\t\t\tlong distance = x[i]*x[i] + y[i]*y[i];\n\t\t\tcount += distance <= d*d? 1 : 0;\n\t\t}\n\n\t\tSystem.out.print(count);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
long d = scan.nextInt();
long[] x = new long[n];
long[] y = new long[n];
for(int i = 0;i < n; ++i){
x[i] = scan.nextInt();
y[i] = scan.nextInt();
}
int count = 0;
for(int i = 0;i < n; ++i){
long distance = x[i]*x[i] + y[i]*y[i];
count += distance <= d*d? 1 : 0;
}
System.out.print(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,
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,
0,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
17,
28,
13,
13,
30,
30,
14,
2,
4,
18,
13,
13,
40,
13,
4,
18,
13,
13,
23,
13,
23,
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,
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,
20,
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,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
13,
2,
13,
13,
12,
13,
30,
29,
4,
18,
13,
17,
13,
13,
12,
13,
30,
14,
2,
36,
13,
29,
17,
14,
2,
2,
13,
17,
2,
4,
13,
4,
18,
13,
29,
17,
41,
13,
13,
29,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
18,
13,
13,
14,
2,
13,
17,
29,
13,
29,
4,
18,
13,
13,
18,
13,
13,
23,
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
],
[
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
],
[
343,
32
],
[
343,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
35,
49
],
[
49,
50
],
[
49,
51
],
[
35,
52
],
[
52,
53
],
[
52,
54
],
[
35,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
55,
60
],
[
35,
61
],
[
61,
62
],
[
62,
63
],
[
33,
64
],
[
64,
65
],
[
343,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
70,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
70,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
88,
92
],
[
70,
93
],
[
93,
94
],
[
93,
95
],
[
70,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
102,
106
],
[
101,
107
],
[
107,
108
],
[
70,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
68,
113
],
[
113,
114
],
[
68,
115
],
[
115,
116
],
[
68,
117
],
[
117,
118
],
[
343,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
119,
123
],
[
123,
124
],
[
119,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
131,
133
],
[
125,
134
],
[
134,
135
],
[
119,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
139,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
149,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
138,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
119,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
170,
171
],
[
119,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
179,
180
],
[
343,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
181,
185
],
[
185,
186
],
[
181,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
189,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
187,
200
],
[
200,
201
],
[
187,
202
],
[
202,
203
],
[
181,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
204,
209
],
[
209,
210
],
[
181,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
218,
223
],
[
223,
224
],
[
223,
225
],
[
218,
226
],
[
226,
227
],
[
227,
228
],
[
218,
229
],
[
230,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
235,
237
],
[
213,
238
],
[
238,
239
],
[
211,
240
],
[
240,
241
],
[
211,
242
],
[
242,
243
],
[
181,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
248,
252
],
[
252,
253
],
[
252,
254
],
[
181,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
259,
262
],
[
259,
263
],
[
259,
264
],
[
181,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
268,
272
],
[
272,
273
],
[
267,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
275,
279
],
[
279,
280
],
[
280,
281
],
[
279,
282
],
[
282,
283
],
[
283,
284
],
[
274,
285
],
[
285,
286
],
[
267,
287
],
[
287,
288
],
[
287,
289
],
[
267,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
294,
296
],
[
291,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
299,
301
],
[
265,
302
],
[
302,
303
],
[
181,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
308,
311
],
[
308,
312
],
[
181,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
319,
320
],
[
318,
321
],
[
318,
322
],
[
322,
323
],
[
322,
324
],
[
315,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
329,
330
],
[
315,
331
],
[
331,
332
],
[
332,
333
],
[
333,
334
],
[
332,
335
],
[
332,
336
],
[
336,
337
],
[
336,
338
],
[
313,
339
],
[
339,
340
],
[
181,
341
],
[
0,
342
],
[
342,
343
],
[
342,
344
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Objects;\nimport java.util.StringTokenizer;\nimport java.io.BufferedReader;\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 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, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n long d = in.nextInt();\n d = d * d;\n Point[] points = Point.readPoints(in, n);\n\n int answer = 0;\n for (Point p : points) {\n if (p.norm() <= d)\n answer++;\n }\n\n out.println(answer);\n }\n\n }\n\n static class InputReader {\n public final 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 }\n\n static class Point implements Comparable<Point> {\n public long x;\n public long y;\n\n public Point(long x, long y) {\n this.x = x;\n this.y = y;\n }\n\n public static Point read(InputReader in) {\n return new Point(in.nextLong(), in.nextLong());\n }\n\n public static Point[] readPoints(InputReader in, int n) {\n Point[] p = new Point[n];\n for (int i = 0; i < n; i++) {\n p[i] = read(in);\n }\n return p;\n }\n\n public long norm() {\n return x * x + y * y;\n }\n\n public String toString() {\n return String.format(\"(%d, %d)\", x, y);\n }\n\n public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Point point = (Point) o;\n return x == point.x && y == point.y;\n }\n\n public int hashCode() {\n return Objects.hash(x, y);\n }\n\n public int compareTo(Point o) {\n int ret = Long.compare(x, o.x);\n if (ret != 0)\n return ret;\n return Long.compare(y, o.y);\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.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Objects;",
"Objects",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.BufferedReader;",
"BufferedReader",
"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 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, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n long d = in.nextInt();\n d = d * d;\n Point[] points = Point.readPoints(in, n);\n\n int answer = 0;\n for (Point p : points) {\n if (p.norm() <= d)\n answer++;\n }\n\n out.println(answer);\n }\n\n }\n\n static class InputReader {\n public final 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 }\n\n static class Point implements Comparable<Point> {\n public long x;\n public long y;\n\n public Point(long x, long y) {\n this.x = x;\n this.y = y;\n }\n\n public static Point read(InputReader in) {\n return new Point(in.nextLong(), in.nextLong());\n }\n\n public static Point[] readPoints(InputReader in, int n) {\n Point[] p = new Point[n];\n for (int i = 0; i < n; i++) {\n p[i] = read(in);\n }\n return p;\n }\n\n public long norm() {\n return x * x + y * y;\n }\n\n public String toString() {\n return String.format(\"(%d, %d)\", x, y);\n }\n\n public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Point point = (Point) o;\n return x == point.x && y == point.y;\n }\n\n public int hashCode() {\n return Objects.hash(x, y);\n }\n\n public int compareTo(Point o) {\n int ret = Long.compare(x, o.x);\n if (ret != 0)\n return ret;\n return Long.compare(y, o.y);\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 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 InputReader in = new InputReader(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",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(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, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n long d = in.nextInt();\n d = d * d;\n Point[] points = Point.readPoints(in, n);\n\n int answer = 0;\n for (Point p : points) {\n if (p.norm() <= d)\n answer++;\n }\n\n out.println(answer);\n }\n\n }",
"BDistance",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n long d = in.nextInt();\n d = d * d;\n Point[] points = Point.readPoints(in, n);\n\n int answer = 0;\n for (Point p : points) {\n if (p.norm() <= d)\n answer++;\n }\n\n out.println(answer);\n }",
"solve",
"{\n int n = in.nextInt();\n long d = in.nextInt();\n d = d * d;\n Point[] points = Point.readPoints(in, n);\n\n int answer = 0;\n for (Point p : points) {\n if (p.norm() <= d)\n answer++;\n }\n\n out.println(answer);\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"long d = in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"d = d * d",
"d",
"d * d",
"d",
"d",
"Point[] points = Point.readPoints(in, n);",
"points",
"Point.readPoints(in, n)",
"Point.readPoints",
"Point",
"in",
"n",
"int answer = 0;",
"answer",
"0",
"for (Point p : points) {\n if (p.norm() <= d)\n answer++;\n }",
"Point p",
"points",
"{\n if (p.norm() <= d)\n answer++;\n }",
"{\n if (p.norm() <= d)\n answer++;\n }",
"if (p.norm() <= d)\n answer++;",
"p.norm() <= d",
"p.norm()",
"p.norm",
"p",
"d",
"answer++",
"answer",
"out.println(answer)",
"out.println",
"out",
"answer",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n public final 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 }",
"InputReader",
"public final 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",
"static class Point implements Comparable<Point> {\n public long x;\n public long y;\n\n public Point(long x, long y) {\n this.x = x;\n this.y = y;\n }\n\n public static Point read(InputReader in) {\n return new Point(in.nextLong(), in.nextLong());\n }\n\n public static Point[] readPoints(InputReader in, int n) {\n Point[] p = new Point[n];\n for (int i = 0; i < n; i++) {\n p[i] = read(in);\n }\n return p;\n }\n\n public long norm() {\n return x * x + y * y;\n }\n\n public String toString() {\n return String.format(\"(%d, %d)\", x, y);\n }\n\n public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Point point = (Point) o;\n return x == point.x && y == point.y;\n }\n\n public int hashCode() {\n return Objects.hash(x, y);\n }\n\n public int compareTo(Point o) {\n int ret = Long.compare(x, o.x);\n if (ret != 0)\n return ret;\n return Long.compare(y, o.y);\n }\n\n }",
"Point",
"public long x;",
"x",
"public long y;",
"y",
"public Point(long x, long y) {\n this.x = x;\n this.y = y;\n }",
"Point",
"{\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",
"long x",
"x",
"long y",
"y",
"public static Point read(InputReader in) {\n return new Point(in.nextLong(), in.nextLong());\n }",
"read",
"{\n return new Point(in.nextLong(), in.nextLong());\n }",
"return new Point(in.nextLong(), in.nextLong());",
"new Point(in.nextLong(), in.nextLong())",
"InputReader in",
"in",
"public static Point[] readPoints(InputReader in, int n) {\n Point[] p = new Point[n];\n for (int i = 0; i < n; i++) {\n p[i] = read(in);\n }\n return p;\n }",
"readPoints",
"{\n Point[] p = new Point[n];\n for (int i = 0; i < n; i++) {\n p[i] = read(in);\n }\n return p;\n }",
"Point[] p = new Point[n];",
"p",
"new Point[n]",
"n",
"for (int i = 0; i < n; i++) {\n p[i] = read(in);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n p[i] = read(in);\n }",
"{\n p[i] = read(in);\n }",
"p[i] = read(in)",
"p[i]",
"p",
"i",
"read(in)",
"read",
"in",
"return p;",
"p",
"InputReader in",
"in",
"int n",
"n",
"public long norm() {\n return x * x + y * y;\n }",
"norm",
"{\n return x * x + y * y;\n }",
"return x * x + y * y;",
"x * x + y * y",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"public String toString() {\n return String.format(\"(%d, %d)\", x, y);\n }",
"toString",
"{\n return String.format(\"(%d, %d)\", x, y);\n }",
"return String.format(\"(%d, %d)\", x, y);",
"String.format(\"(%d, %d)\", x, y)",
"String.format",
"String",
"\"(%d, %d)\"",
"x",
"y",
"public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Point point = (Point) o;\n return x == point.x && y == point.y;\n }",
"equals",
"{\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Point point = (Point) o;\n return x == point.x && y == point.y;\n }",
"if (this == o)\n return true;",
"this == o",
"this",
"o",
"return true;",
"true",
"if (o == null || getClass() != o.getClass())\n return false;",
"o == null || getClass() != o.getClass()",
"o == null",
"o",
"null",
"getClass() != o.getClass()",
"getClass()",
"getClass",
"o.getClass()",
"o.getClass",
"o",
"return false;",
"false",
"Point point = (Point) o;",
"point",
"(Point) o",
"return x == point.x && y == point.y;",
"x == point.x && y == point.y",
"x == point.x",
"x",
"point.x",
"point",
"point.x",
"y == point.y",
"y",
"point.y",
"point",
"point.y",
"Object o",
"o",
"public int hashCode() {\n return Objects.hash(x, y);\n }",
"hashCode",
"{\n return Objects.hash(x, y);\n }",
"return Objects.hash(x, y);",
"Objects.hash(x, y)",
"Objects.hash",
"Objects",
"x",
"y",
"public int compareTo(Point o) {\n int ret = Long.compare(x, o.x);\n if (ret != 0)\n return ret;\n return Long.compare(y, o.y);\n }",
"compareTo",
"{\n int ret = Long.compare(x, o.x);\n if (ret != 0)\n return ret;\n return Long.compare(y, o.y);\n }",
"int ret = Long.compare(x, o.x);",
"ret",
"Long.compare(x, o.x)",
"Long.compare",
"Long",
"x",
"o.x",
"o",
"o.x",
"if (ret != 0)\n return ret;",
"ret != 0",
"ret",
"0",
"return ret;",
"ret",
"return Long.compare(y, o.y);",
"Long.compare(y, o.y)",
"Long.compare",
"Long",
"y",
"o.y",
"o",
"o.y",
"Point o",
"o",
"Comparable",
"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 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, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n long d = in.nextInt();\n d = d * d;\n Point[] points = Point.readPoints(in, n);\n\n int answer = 0;\n for (Point p : points) {\n if (p.norm() <= d)\n answer++;\n }\n\n out.println(answer);\n }\n\n }\n\n static class InputReader {\n public final 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 }\n\n static class Point implements Comparable<Point> {\n public long x;\n public long y;\n\n public Point(long x, long y) {\n this.x = x;\n this.y = y;\n }\n\n public static Point read(InputReader in) {\n return new Point(in.nextLong(), in.nextLong());\n }\n\n public static Point[] readPoints(InputReader in, int n) {\n Point[] p = new Point[n];\n for (int i = 0; i < n; i++) {\n p[i] = read(in);\n }\n return p;\n }\n\n public long norm() {\n return x * x + y * y;\n }\n\n public String toString() {\n return String.format(\"(%d, %d)\", x, y);\n }\n\n public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Point point = (Point) o;\n return x == point.x && y == point.y;\n }\n\n public int hashCode() {\n return Objects.hash(x, y);\n }\n\n public int compareTo(Point o) {\n int ret = Long.compare(x, o.x);\n if (ret != 0)\n return ret;\n return Long.compare(y, o.y);\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 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, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n long d = in.nextInt();\n d = d * d;\n Point[] points = Point.readPoints(in, n);\n\n int answer = 0;\n for (Point p : points) {\n if (p.norm() <= d)\n answer++;\n }\n\n out.println(answer);\n }\n\n }\n\n static class InputReader {\n public final 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 }\n\n static class Point implements Comparable<Point> {\n public long x;\n public long y;\n\n public Point(long x, long y) {\n this.x = x;\n this.y = y;\n }\n\n public static Point read(InputReader in) {\n return new Point(in.nextLong(), in.nextLong());\n }\n\n public static Point[] readPoints(InputReader in, int n) {\n Point[] p = new Point[n];\n for (int i = 0; i < n; i++) {\n p[i] = read(in);\n }\n return p;\n }\n\n public long norm() {\n return x * x + y * y;\n }\n\n public String toString() {\n return String.format(\"(%d, %d)\", x, y);\n }\n\n public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Point point = (Point) o;\n return x == point.x && y == point.y;\n }\n\n public int hashCode() {\n return Objects.hash(x, y);\n }\n\n public int compareTo(Point o) {\n int ret = Long.compare(x, o.x);\n if (ret != 0)\n return ret;\n return Long.compare(y, o.y);\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Objects;
import java.util.StringTokenizer;
import java.io.BufferedReader;
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);
PrintWriter out = new PrintWriter(outputStream);
BDistance solver = new BDistance();
solver.solve(1, in, out);
out.close();
}
static class BDistance {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int n = in.nextInt();
long d = in.nextInt();
d = d * d;
Point[] points = Point.readPoints(in, n);
int answer = 0;
for (Point p : points) {
if (p.norm() <= d)
answer++;
}
out.println(answer);
}
}
static class InputReader {
public final 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());
}
}
static class Point implements Comparable<Point> {
public long x;
public long y;
public Point(long x, long y) {
this.x = x;
this.y = y;
}
public static Point read(InputReader in) {
return new Point(in.nextLong(), in.nextLong());
}
public static Point[] readPoints(InputReader in, int n) {
Point[] p = new Point[n];
for (int i = 0; i < n; i++) {
p[i] = read(in);
}
return p;
}
public long norm() {
return x * x + y * y;
}
public String toString() {
return String.format("(%d, %d)", x, y);
}
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
Point point = (Point) o;
return x == point.x && y == point.y;
}
public int hashCode() {
return Objects.hash(x, y);
}
public int compareTo(Point o) {
int ret = Long.compare(x, o.x);
if (ret != 0)
return ret;
return Long.compare(y, o.y);
}
}
}
|
[
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,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
41,
13,
2,
2,
13,
13,
17,
42,
2,
13,
13,
30,
14,
2,
18,
13,
13,
13,
30,
0,
13,
2,
13,
17,
14,
2,
18,
13,
13,
13,
30,
29,
13,
30,
0,
13,
2,
13,
17,
0,
13,
2,
2,
13,
13,
17,
14,
2,
13,
13,
30,
29,
40,
17,
29,
40,
17,
23,
13,
23,
13,
23,
13,
23,
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,
4,
18,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
13,
30,
40,
13,
4,
18,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
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,
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,
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
],
[
278,
17
],
[
278,
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
],
[
20,
45
],
[
45,
46
],
[
46,
47
],
[
18,
48
],
[
48,
49
],
[
278,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
69,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
81,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
68,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
56,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
56,
111
],
[
111,
112
],
[
112,
113
],
[
54,
114
],
[
114,
115
],
[
54,
116
],
[
116,
117
],
[
54,
118
],
[
118,
119
],
[
54,
120
],
[
120,
121
],
[
50,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
124,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
124,
135
],
[
135,
136
],
[
135,
137
],
[
124,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
138,
149
],
[
150,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
150,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
150,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
167,
171
],
[
166,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
172,
176
],
[
162,
177
],
[
161,
178
],
[
178,
179
],
[
179,
180
],
[
124,
181
],
[
181,
182
],
[
182,
183
],
[
181,
184
],
[
122,
185
],
[
185,
186
],
[
122,
187
],
[
187,
188
],
[
278,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
189,
193
],
[
193,
194
],
[
193,
195
],
[
189,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
196,
204
],
[
204,
205
],
[
189,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
209,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
215,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
208,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
189,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
234,
237
],
[
237,
238
],
[
189,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
243,
246
],
[
246,
247
],
[
189,
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
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
267,
271
],
[
271,
272
],
[
250,
273
],
[
273,
274
],
[
248,
275
],
[
275,
276
],
[
0,
277
],
[
277,
278
],
[
277,
279
]
]
| [
"import javax.print.attribute.SupportedValuesAttribute;\nimport java.io.*;\nimport java.lang.reflect.Array;\nimport java.util.*;\nimport java.util.function.Predicate;\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 PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\n }\n\n static class TaskB {\n\n\n public static int binarySearch(int arr[], int low, int high, int key)\n {\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }\n\n public static int[][] maxPos;\n\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int d = in.nextInt();\n\n int count = 0;\n for(int i = 0; i < n; i++)\n {\n int p = in.nextInt();\n int q = in.nextInt();\n\n if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=d)\n {\n count++;\n }\n }\n out.print(count);\n }\n }\n\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\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 int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n }\n}",
"import javax.print.attribute.SupportedValuesAttribute;",
"SupportedValuesAttribute",
"javax.print.attribute",
"import java.io.*;",
"io.*",
"java",
"import java.lang.reflect.Array;",
"Array",
"java.lang.reflect",
"import java.util.*;",
"util.*",
"java",
"import java.util.function.Predicate;",
"Predicate",
"java.util.function",
"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 PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\n }\n\n static class TaskB {\n\n\n public static int binarySearch(int arr[], int low, int high, int key)\n {\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }\n\n public static int[][] maxPos;\n\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int d = in.nextInt();\n\n int count = 0;\n for(int i = 0; i < n; i++)\n {\n int p = in.nextInt();\n int q = in.nextInt();\n\n if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=d)\n {\n count++;\n }\n }\n out.print(count);\n }\n }\n\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\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 int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\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 PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\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 TaskB solver = new TaskB();\n solver.solve(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)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskB solver = new TaskB();",
"solver",
"new TaskB()",
"solver.solve(in, out)",
"solver.solve",
"solver",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskB {\n\n\n public static int binarySearch(int arr[], int low, int high, int key)\n {\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }\n\n public static int[][] maxPos;\n\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int d = in.nextInt();\n\n int count = 0;\n for(int i = 0; i < n; i++)\n {\n int p = in.nextInt();\n int q = in.nextInt();\n\n if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=d)\n {\n count++;\n }\n }\n out.print(count);\n }\n }",
"TaskB",
"public static int[][] maxPos;",
"maxPos",
"public static int binarySearch(int arr[], int low, int high, int key)\n {\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }",
"binarySearch",
"{\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }",
"int mid = (low + high)/2;",
"mid",
"(low + high)/2",
"(low + high)",
"low",
"high",
"2",
"while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }",
"low <= high",
"low",
"high",
"{\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }",
"if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }",
"arr[mid] < key",
"arr[mid]",
"arr",
"mid",
"key",
"{\n low = mid + 1;\n }",
"low = mid + 1",
"low",
"mid + 1",
"mid",
"1",
"if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }",
"arr[mid] == key",
"arr[mid]",
"arr",
"mid",
"key",
"{\n return mid;\n }",
"return mid;",
"mid",
"{\n high = mid - 1;\n }",
"high = mid - 1",
"high",
"mid - 1",
"mid",
"1",
"mid = (low + high)/2",
"mid",
"(low + high)/2",
"(low + high)",
"low",
"high",
"2",
"if( low > high )\n {\n return -1;\n }",
"low > high",
"low",
"high",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return -1;",
"-1",
"1",
"int arr[]",
"arr",
"int low",
"low",
"int high",
"high",
"int key",
"key",
"public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int d = in.nextInt();\n\n int count = 0;\n for(int i = 0; i < n; i++)\n {\n int p = in.nextInt();\n int q = in.nextInt();\n\n if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=d)\n {\n count++;\n }\n }\n out.print(count);\n }",
"solve",
"{\n int n = in.nextInt();\n int d = in.nextInt();\n\n int count = 0;\n for(int i = 0; i < n; i++)\n {\n int p = in.nextInt();\n int q = in.nextInt();\n\n if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=d)\n {\n count++;\n }\n }\n out.print(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",
"for(int i = 0; i < n; i++)\n {\n int p = in.nextInt();\n int q = in.nextInt();\n\n if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=d)\n {\n count++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int p = in.nextInt();\n int q = in.nextInt();\n\n if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=d)\n {\n count++;\n }\n }",
"{\n int p = in.nextInt();\n int q = in.nextInt();\n\n if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=d)\n {\n count++;\n }\n }",
"int p = in.nextInt();",
"p",
"in.nextInt()",
"in.nextInt",
"in",
"int q = in.nextInt();",
"q",
"in.nextInt()",
"in.nextInt",
"in",
"if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=d)\n {\n count++;\n }",
"Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=d",
"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",
"d",
"{\n count++;\n }",
"count++",
"count",
"out.print(count)",
"out.print",
"out",
"count",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\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 int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n }",
"InputReader",
"private BufferedReader reader;",
"reader",
"private StringTokenizer tokenizer = new StringTokenizer(\"\");",
"tokenizer",
"new StringTokenizer(\"\")",
"public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }",
"InputReader",
"{\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }",
"this.reader = new BufferedReader(\n new InputStreamReader(inputStream))",
"this.reader",
"this",
"this.reader",
"new BufferedReader(\n new InputStreamReader(inputStream))",
"InputStream inputStream",
"inputStream",
"public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return tokenizer.nextToken();\n }",
"while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.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 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 int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }",
"nextIntArray",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\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();",
"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",
"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 PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\n }\n\n static class TaskB {\n\n\n public static int binarySearch(int arr[], int low, int high, int key)\n {\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }\n\n public static int[][] maxPos;\n\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int d = in.nextInt();\n\n int count = 0;\n for(int i = 0; i < n; i++)\n {\n int p = in.nextInt();\n int q = in.nextInt();\n\n if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=d)\n {\n count++;\n }\n }\n out.print(count);\n }\n }\n\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\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 int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\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 PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\n }\n\n static class TaskB {\n\n\n public static int binarySearch(int arr[], int low, int high, int key)\n {\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }\n\n public static int[][] maxPos;\n\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int d = in.nextInt();\n\n int count = 0;\n for(int i = 0; i < n; i++)\n {\n int p = in.nextInt();\n int q = in.nextInt();\n\n if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=d)\n {\n count++;\n }\n }\n out.print(count);\n }\n }\n\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\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 int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n }\n}",
"Main"
]
| import javax.print.attribute.SupportedValuesAttribute;
import java.io.*;
import java.lang.reflect.Array;
import java.util.*;
import java.util.function.Predicate;
public class Main{
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskB solver = new TaskB();
solver.solve(in, out);
out.close();
}
static class TaskB {
public static int binarySearch(int arr[], int low, int high, int key)
{
int mid = (low + high)/2;
while( low <= high )
{
if ( arr[mid] < key )
{
low = mid + 1;
}
else if ( arr[mid] == key )
{
return mid;
}else
{
high = mid - 1;
}
mid = (low + high)/2;
}
if( low > high )
{
return -1;
}
return -1;
}
public static int[][] maxPos;
public void solve(InputReader in, PrintWriter out) {
int n = in.nextInt();
int d = in.nextInt();
int count = 0;
for(int i = 0; i < n; i++)
{
int p = in.nextInt();
int q = in.nextInt();
if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=d)
{
count++;
}
}
out.print(count);
}
}
static class InputReader {
private BufferedReader reader;
private StringTokenizer tokenizer = new StringTokenizer("");
public InputReader(InputStream inputStream) {
this.reader = new BufferedReader(
new InputStreamReader(inputStream));
}
public String next() {
while (!tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public long nextLong() {
return Long.parseLong(next());
}
public int[] nextIntArray(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
}
} |
[
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,
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,
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,
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,
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
],
[
202,
11
],
[
202,
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
],
[
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
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
66,
68
],
[
57,
69
],
[
69,
70
],
[
14,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
14,
75
],
[
75,
76
],
[
76,
77
],
[
12,
78
],
[
78,
79
],
[
202,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
80,
84
],
[
84,
85
],
[
80,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
86,
92
],
[
92,
93
],
[
80,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
94,
100
],
[
100,
101
],
[
80,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
105,
114
],
[
114,
115
],
[
114,
116
],
[
104,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
80,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
128,
129
],
[
80,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
137,
138
],
[
80,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
80,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
153,
154
],
[
80,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
80,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
174,
175
],
[
174,
176
],
[
169,
177
],
[
177,
178
],
[
178,
179
],
[
169,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
164,
187
],
[
187,
188
],
[
162,
189
],
[
189,
190
],
[
80,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
197,
198
],
[
191,
199
],
[
199,
200
],
[
0,
201
],
[
201,
202
],
[
201,
203
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.math.BigInteger;\npublic class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t\tlong d=sc.nextLong();\n\t\tint c=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong a=sc.nextLong();\n\t\t\tlong b=sc.nextLong();\n\t\t\tif((a*a+b*b)<=d*d)c++;\n\t\t}\n\t\tsyso.println(c);\n syso.close();\n }\n \n \n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t\tlong d=sc.nextLong();\n\t\tint c=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong a=sc.nextLong();\n\t\t\tlong b=sc.nextLong();\n\t\t\tif((a*a+b*b)<=d*d)c++;\n\t\t}\n\t\tsyso.println(c);\n syso.close();\n }\n \n \n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t\tlong d=sc.nextLong();\n\t\tint c=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong a=sc.nextLong();\n\t\t\tlong b=sc.nextLong();\n\t\t\tif((a*a+b*b)<=d*d)c++;\n\t\t}\n\t\tsyso.println(c);\n syso.close();\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t\tlong d=sc.nextLong();\n\t\tint c=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong a=sc.nextLong();\n\t\t\tlong b=sc.nextLong();\n\t\t\tif((a*a+b*b)<=d*d)c++;\n\t\t}\n\t\tsyso.println(c);\n syso.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"PrintWriter syso = new PrintWriter(System.out);",
"syso",
"new PrintWriter(System.out)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d=sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"int c=0;",
"c",
"0",
"for(int i=0;i<n;i++) {\n\t\t\tlong a=sc.nextLong();\n\t\t\tlong b=sc.nextLong();\n\t\t\tif((a*a+b*b)<=d*d)c++;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tlong a=sc.nextLong();\n\t\t\tlong b=sc.nextLong();\n\t\t\tif((a*a+b*b)<=d*d)c++;\n\t\t}",
"{\n\t\t\tlong a=sc.nextLong();\n\t\t\tlong b=sc.nextLong();\n\t\t\tif((a*a+b*b)<=d*d)c++;\n\t\t}",
"long a=sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b=sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if((a*a+b*b)<=d*d)c++;",
"(a*a+b*b)<=d*d",
"(a*a+b*b)",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"d*d",
"d",
"d",
"c++",
"c",
"syso.println(c)",
"syso.println",
"syso",
"c",
"syso.close()",
"syso.close",
"syso",
"String[] args",
"args",
"static class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}",
"Scanner",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"Scanner",
"{\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"br = new BufferedReader(new FileReader(file))",
"br",
"new BufferedReader(new FileReader(file))",
"String file",
"file",
"public String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreTokens())\n\t\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 {\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",
"public long nextLong() throws IOException {\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 String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}",
"nextLine",
"{\n\t\t\treturn br.readLine();\n\t\t}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public double nextDouble() throws IOException {\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",
"public boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}",
"ready",
"{\n\t\t\treturn br.ready();\n\t\t}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}",
"nextArr",
"{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\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++)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 BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}",
"BigInteger",
"{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}",
"BigInteger a=new BigInteger(s);",
"a",
"new BigInteger(s)",
"return a;",
"a",
"String s",
"s",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t\tlong d=sc.nextLong();\n\t\tint c=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong a=sc.nextLong();\n\t\t\tlong b=sc.nextLong();\n\t\t\tif((a*a+b*b)<=d*d)c++;\n\t\t}\n\t\tsyso.println(c);\n syso.close();\n }\n \n \n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t\tlong d=sc.nextLong();\n\t\tint c=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tlong a=sc.nextLong();\n\t\t\tlong b=sc.nextLong();\n\t\t\tif((a*a+b*b)<=d*d)c++;\n\t\t}\n\t\tsyso.println(c);\n syso.close();\n }\n \n \n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.*;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
PrintWriter syso = new PrintWriter(System.out);
int n=sc.nextInt();
long d=sc.nextLong();
int c=0;
for(int i=0;i<n;i++) {
long a=sc.nextLong();
long b=sc.nextLong();
if((a*a+b*b)<=d*d)c++;
}
syso.println(c);
syso.close();
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
public Scanner(String file) throws FileNotFoundException {
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 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 boolean ready() throws IOException {
return br.ready();
}
public int[] nextArr(int n) throws IOException{
int arr[]=new int[n];
for(int i=0;i<n;i++)arr[i]=nextInt();
return arr;
}
public BigInteger BigInteger(String s) throws IOException{
BigInteger a=new BigInteger(s);
return a;
}
}
} |
[
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,
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,
14,
2,
13,
4,
18,
13,
13,
17,
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
],
[
86,
11
],
[
86,
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
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
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
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
43,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
70,
74
],
[
67,
75
],
[
75,
76
],
[
14,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
12,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"import javax.sound.midi.Soundbank;\nimport java.util.*;\nimport java.lang.*;\n\npublic class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int d = s.nextInt();\n int c = 0;\n for(int i=0; i<n; i++)\n {\n int x = s.nextInt();\n int y = s.nextInt();\n double distsq = Math.pow(x,2)+Math.pow(y,2);\n if(distsq<=Math.pow(d,2))\n c++;\n }\n System.out.println(c);\n\n }\n}",
"import javax.sound.midi.Soundbank;",
"Soundbank",
"javax.sound.midi",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int d = s.nextInt();\n int c = 0;\n for(int i=0; i<n; i++)\n {\n int x = s.nextInt();\n int y = s.nextInt();\n double distsq = Math.pow(x,2)+Math.pow(y,2);\n if(distsq<=Math.pow(d,2))\n c++;\n }\n System.out.println(c);\n\n }\n}",
"Main",
"public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int d = s.nextInt();\n int c = 0;\n for(int i=0; i<n; i++)\n {\n int x = s.nextInt();\n int y = s.nextInt();\n double distsq = Math.pow(x,2)+Math.pow(y,2);\n if(distsq<=Math.pow(d,2))\n c++;\n }\n System.out.println(c);\n\n }",
"main",
"{\n // your code goes here\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int d = s.nextInt();\n int c = 0;\n for(int i=0; i<n; i++)\n {\n int x = s.nextInt();\n int y = s.nextInt();\n double distsq = Math.pow(x,2)+Math.pow(y,2);\n if(distsq<=Math.pow(d,2))\n c++;\n }\n System.out.println(c);\n\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"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 {\n int x = s.nextInt();\n int y = s.nextInt();\n double distsq = Math.pow(x,2)+Math.pow(y,2);\n if(distsq<=Math.pow(d,2))\n c++;\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 double distsq = Math.pow(x,2)+Math.pow(y,2);\n if(distsq<=Math.pow(d,2))\n c++;\n }",
"{\n int x = s.nextInt();\n int y = s.nextInt();\n double distsq = Math.pow(x,2)+Math.pow(y,2);\n if(distsq<=Math.pow(d,2))\n c++;\n }",
"int x = s.nextInt();",
"x",
"s.nextInt()",
"s.nextInt",
"s",
"int y = s.nextInt();",
"y",
"s.nextInt()",
"s.nextInt",
"s",
"double distsq = Math.pow(x,2)+Math.pow(y,2);",
"distsq",
"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(distsq<=Math.pow(d,2))\n c++;",
"distsq<=Math.pow(d,2)",
"distsq",
"Math.pow(d,2)",
"Math.pow",
"Math",
"d",
"2",
"c++",
"c",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"public class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int d = s.nextInt();\n int c = 0;\n for(int i=0; i<n; i++)\n {\n int x = s.nextInt();\n int y = s.nextInt();\n double distsq = Math.pow(x,2)+Math.pow(y,2);\n if(distsq<=Math.pow(d,2))\n c++;\n }\n System.out.println(c);\n\n }\n}",
"public class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int d = s.nextInt();\n int c = 0;\n for(int i=0; i<n; i++)\n {\n int x = s.nextInt();\n int y = s.nextInt();\n double distsq = Math.pow(x,2)+Math.pow(y,2);\n if(distsq<=Math.pow(d,2))\n c++;\n }\n System.out.println(c);\n\n }\n}",
"Main"
]
| import javax.sound.midi.Soundbank;
import java.util.*;
import java.lang.*;
public class Main
{
public static void main (String[] args)
{
// your code goes here
Scanner s = new Scanner(System.in);
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 distsq = Math.pow(x,2)+Math.pow(y,2);
if(distsq<=Math.pow(d,2))
c++;
}
System.out.println(c);
}
}
|
[
7,
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,
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,
13,
13,
4,
18,
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,
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,
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
],
[
422,
17
],
[
422,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
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
],
[
65,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
52,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
20,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
20,
86
],
[
86,
87
],
[
87,
88
],
[
18,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
91,
98
],
[
98,
99
],
[
91,
100
],
[
100,
101
],
[
91,
102
],
[
102,
103
],
[
91,
104
],
[
104,
105
],
[
91,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
112,
114
],
[
108,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
118,
120
],
[
91,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
127,
129
],
[
123,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
133,
135
],
[
121,
136
],
[
136,
137
],
[
91,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
140,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
151,
156
],
[
156,
157
],
[
150,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
158,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
164,
169
],
[
140,
170
],
[
170,
171
],
[
91,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
174,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
174,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
192,
194
],
[
174,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
174,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
203,
208
],
[
202,
209
],
[
209,
210
],
[
209,
211
],
[
201,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
216,
220
],
[
215,
221
],
[
174,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
174,
227
],
[
227,
228
],
[
91,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
231,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
231,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
249,
251
],
[
231,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
231,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
260,
265
],
[
259,
266
],
[
266,
267
],
[
266,
268
],
[
258,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
277
],
[
272,
278
],
[
231,
279
],
[
279,
280
],
[
279,
281
],
[
281,
282
],
[
282,
283
],
[
231,
284
],
[
284,
285
],
[
91,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
288,
292
],
[
292,
293
],
[
292,
294
],
[
288,
295
],
[
295,
296
],
[
295,
297
],
[
297,
298
],
[
288,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
299,
303
],
[
303,
304
],
[
303,
305
],
[
305,
306
],
[
288,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
309,
311
],
[
288,
312
],
[
312,
313
],
[
312,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
288,
318
],
[
318,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
320,
325
],
[
319,
326
],
[
326,
327
],
[
326,
328
],
[
318,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
333,
337
],
[
332,
338
],
[
288,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
339,
343
],
[
343,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
349,
350
],
[
346,
351
],
[
345,
352
],
[
352,
353
],
[
352,
354
],
[
344,
355
],
[
355,
356
],
[
356,
357
],
[
356,
358
],
[
358,
359
],
[
359,
360
],
[
359,
361
],
[
358,
362
],
[
362,
363
],
[
362,
364
],
[
288,
365
],
[
365,
366
],
[
365,
367
],
[
367,
368
],
[
368,
369
],
[
288,
370
],
[
370,
371
],
[
91,
372
],
[
372,
373
],
[
372,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
377,
378
],
[
378,
379
],
[
377,
380
],
[
377,
381
],
[
381,
382
],
[
381,
383
],
[
377,
384
],
[
374,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
388,
389
],
[
385,
390
],
[
390,
391
],
[
391,
392
],
[
391,
393
],
[
390,
394
],
[
394,
395
],
[
91,
396
],
[
396,
397
],
[
396,
398
],
[
398,
399
],
[
399,
400
],
[
400,
401
],
[
400,
402
],
[
399,
403
],
[
403,
404
],
[
398,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
408,
409
],
[
91,
410
],
[
410,
411
],
[
410,
412
],
[
412,
413
],
[
413,
414
],
[
414,
415
],
[
414,
416
],
[
413,
417
],
[
412,
418
],
[
418,
419
],
[
419,
420
],
[
0,
421
],
[
421,
422
],
[
421,
423
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.text.*;\nimport java.math.*;\nimport java.util.regex.*;\n\npublic class Main {\n public static void main(String args[] ) throws Exception {\n Reader sc=new Reader();\n PrintWriter out=new PrintWriter(System.out);\n int n=sc.nextInt();\n Double D=sc.nextDouble();\n int count=0;\n for(int i=0;i<n;i++){\n long x=sc.nextLong(),y=sc.nextLong();\n double d=Math.sqrt(x*x+y*y);\n if(d<=D){\n count++;\n }\n }\n out.println(count);\n out.flush();\n }\n}\n\nclass Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } ",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.text.*;",
"text.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.util.regex.*;",
"regex.*",
"java.util",
"public class Main {\n public static void main(String args[] ) throws Exception {\n Reader sc=new Reader();\n PrintWriter out=new PrintWriter(System.out);\n int n=sc.nextInt();\n Double D=sc.nextDouble();\n int count=0;\n for(int i=0;i<n;i++){\n long x=sc.nextLong(),y=sc.nextLong();\n double d=Math.sqrt(x*x+y*y);\n if(d<=D){\n count++;\n }\n }\n out.println(count);\n out.flush();\n }\n}",
"Main",
"public static void main(String args[] ) throws Exception {\n Reader sc=new Reader();\n PrintWriter out=new PrintWriter(System.out);\n int n=sc.nextInt();\n Double D=sc.nextDouble();\n int count=0;\n for(int i=0;i<n;i++){\n long x=sc.nextLong(),y=sc.nextLong();\n double d=Math.sqrt(x*x+y*y);\n if(d<=D){\n count++;\n }\n }\n out.println(count);\n out.flush();\n }",
"main",
"{\n Reader sc=new Reader();\n PrintWriter out=new PrintWriter(System.out);\n int n=sc.nextInt();\n Double D=sc.nextDouble();\n int count=0;\n for(int i=0;i<n;i++){\n long x=sc.nextLong(),y=sc.nextLong();\n double d=Math.sqrt(x*x+y*y);\n if(d<=D){\n count++;\n }\n }\n out.println(count);\n out.flush();\n }",
"Reader sc=new Reader();",
"sc",
"new Reader()",
"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 i=0;i<n;i++){\n long x=sc.nextLong(),y=sc.nextLong();\n double d=Math.sqrt(x*x+y*y);\n if(d<=D){\n count++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long x=sc.nextLong(),y=sc.nextLong();\n double d=Math.sqrt(x*x+y*y);\n if(d<=D){\n count++;\n }\n }",
"{\n long x=sc.nextLong(),y=sc.nextLong();\n double d=Math.sqrt(x*x+y*y);\n if(d<=D){\n count++;\n }\n }",
"long x=sc.nextLong()",
"x",
"sc.nextLong()",
"sc.nextLong",
"sc",
"y=sc.nextLong();",
"y",
"sc.nextLong()",
"sc.nextLong",
"sc",
"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<=D){\n count++;\n }",
"d<=D",
"d",
"D",
"{\n count++;\n }",
"count++",
"count",
"out.println(count)",
"out.println",
"out",
"count",
"out.flush()",
"out.flush",
"out",
"String args[]",
"args",
"class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }",
"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 { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"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 { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"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 { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"readLine",
"{ \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"byte[] buf = new byte[64];",
"buf",
"new byte[64]",
"64",
"int cnt = 0",
"cnt",
"0",
"c;",
"c",
"while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"(c = read()) != -1",
"(c = read())",
"c",
"read()",
"read",
"-1",
"1",
"{ \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"if (c == '\\n') \n break;",
"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 { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n }",
"nextInt",
"{ \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n }",
"int ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do\n { \n ret = ret * 10 + c - '0'; \n } 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 ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"nextLong",
"{ \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"long ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n 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 ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n }",
"nextDouble",
"{ \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n }",
"double ret = 0",
"ret",
"0",
"div = 1;",
"div",
"1",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n 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 ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }",
"c == '.'",
"c",
"'.'",
"{ \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }",
"while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n }",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret += (c - '0') / (div *= 10); \n }",
"ret += (c - '0') / (div *= 10)",
"ret",
"(c - '0') / (div *= 10)",
"(c - '0')",
"c",
"'0'",
"(div *= 10)",
"div",
"10",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"fillBuffer",
"{ \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"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 buffer[0] = -1;",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"read",
"{ \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"if (bufferPointer == bytesRead) \n fillBuffer();",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n }",
"close",
"{ \n if (din == null) \n return; \n din.close(); \n }",
"if (din == null) \n return;",
"din == null",
"din",
"null",
"return;",
"din.close()",
"din.close",
"din",
"public class Main {\n public static void main(String args[] ) throws Exception {\n Reader sc=new Reader();\n PrintWriter out=new PrintWriter(System.out);\n int n=sc.nextInt();\n Double D=sc.nextDouble();\n int count=0;\n for(int i=0;i<n;i++){\n long x=sc.nextLong(),y=sc.nextLong();\n double d=Math.sqrt(x*x+y*y);\n if(d<=D){\n count++;\n }\n }\n out.println(count);\n out.flush();\n }\n}",
"public class Main {\n public static void main(String args[] ) throws Exception {\n Reader sc=new Reader();\n PrintWriter out=new PrintWriter(System.out);\n int n=sc.nextInt();\n Double D=sc.nextDouble();\n int count=0;\n for(int i=0;i<n;i++){\n long x=sc.nextLong(),y=sc.nextLong();\n double d=Math.sqrt(x*x+y*y);\n if(d<=D){\n count++;\n }\n }\n out.println(count);\n out.flush();\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Main {
public static void main(String args[] ) throws Exception {
Reader sc=new Reader();
PrintWriter out=new PrintWriter(System.out);
int n=sc.nextInt();
Double D=sc.nextDouble();
int count=0;
for(int i=0;i<n;i++){
long x=sc.nextLong(),y=sc.nextLong();
double d=Math.sqrt(x*x+y*y);
if(d<=D){
count++;
}
}
out.println(count);
out.flush();
}
}
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[64]; // 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();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
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,
41,
13,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
2,
2,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
2,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
14,
2,
13,
13,
30,
40,
13,
30,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
19,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
8,
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
],
[
63,
66
],
[
63,
67
],
[
55,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
74,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
84,
86
],
[
73,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
91,
93
],
[
87,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
55,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
100,
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.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n \n int num = Integer.parseInt(lines[0]);\n int dis = Integer.parseInt(lines[1]);\n \n int count = 0;\n for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n \tString[] lines2 = line.split(\" \", 0);\n double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])\n + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));\n if (pos <= dis) {\n count++;\n }else{\n }\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 String line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n \n int num = Integer.parseInt(lines[0]);\n int dis = Integer.parseInt(lines[1]);\n \n int count = 0;\n for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n \tString[] lines2 = line.split(\" \", 0);\n double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])\n + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));\n if (pos <= dis) {\n count++;\n }else{\n }\n }\n \n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n \n int num = Integer.parseInt(lines[0]);\n int dis = Integer.parseInt(lines[1]);\n \n int count = 0;\n for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n \tString[] lines2 = line.split(\" \", 0);\n double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])\n + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));\n if (pos <= dis) {\n count++;\n }else{\n }\n }\n \n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n \n int num = Integer.parseInt(lines[0]);\n int dis = Integer.parseInt(lines[1]);\n \n int count = 0;\n for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n \tString[] lines2 = line.split(\" \", 0);\n double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])\n + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));\n if (pos <= dis) {\n count++;\n }else{\n }\n }\n \n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] lines = line.split(\" \", 0);",
"lines",
"line.split(\" \", 0)",
"line.split",
"line",
"\" \"",
"0",
"int num = Integer.parseInt(lines[0]);",
"num",
"Integer.parseInt(lines[0])",
"Integer.parseInt",
"Integer",
"lines[0]",
"lines",
"0",
"int dis = Integer.parseInt(lines[1]);",
"dis",
"Integer.parseInt(lines[1])",
"Integer.parseInt",
"Integer",
"lines[1]",
"lines",
"1",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n \tString[] lines2 = line.split(\" \", 0);\n double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])\n + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));\n if (pos <= dis) {\n count++;\n }else{\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n line = sc.nextLine();\n \tString[] lines2 = line.split(\" \", 0);\n double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])\n + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));\n if (pos <= dis) {\n count++;\n }else{\n }\n }",
"{\n line = sc.nextLine();\n \tString[] lines2 = line.split(\" \", 0);\n double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])\n + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));\n if (pos <= dis) {\n count++;\n }else{\n }\n }",
"line = sc.nextLine()",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] lines2 = line.split(\" \", 0);",
"lines2",
"line.split(\" \", 0)",
"line.split",
"line",
"\" \"",
"0",
"double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])\n + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));",
"pos",
"Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])\n + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]))",
"Math.sqrt",
"Math",
"Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])\n + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1])",
"Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])",
"Long.parseLong(lines2[0])",
"Long.parseLong",
"Long",
"lines2[0]",
"lines2",
"0",
"Long.parseLong(lines2[0])",
"Long.parseLong",
"Long",
"lines2[0]",
"lines2",
"0",
"Long.parseLong(lines2[1]) * Long.parseLong(lines2[1])",
"Long.parseLong(lines2[1])",
"Long.parseLong",
"Long",
"lines2[1]",
"lines2",
"1",
"Long.parseLong(lines2[1])",
"Long.parseLong",
"Long",
"lines2[1]",
"lines2",
"1",
"if (pos <= dis) {\n count++;\n }else{\n }",
"pos <= dis",
"pos",
"dis",
"{\n count++;\n }",
"count++",
"count",
"{\n }",
"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 String line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n \n int num = Integer.parseInt(lines[0]);\n int dis = Integer.parseInt(lines[1]);\n \n int count = 0;\n for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n \tString[] lines2 = line.split(\" \", 0);\n double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])\n + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));\n if (pos <= dis) {\n count++;\n }else{\n }\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 String line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n \n int num = Integer.parseInt(lines[0]);\n int dis = Integer.parseInt(lines[1]);\n \n int count = 0;\n for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n \tString[] lines2 = line.split(\" \", 0);\n double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])\n + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));\n if (pos <= dis) {\n count++;\n }else{\n }\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);
String line = sc.nextLine();
String[] lines = line.split(" ", 0);
int num = Integer.parseInt(lines[0]);
int dis = Integer.parseInt(lines[1]);
int count = 0;
for (int i = 0; i < num; i++) {
line = sc.nextLine();
String[] lines2 = line.split(" ", 0);
double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
+ Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));
if (pos <= dis) {
count++;
}else{
}
}
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,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
20,
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
],
[
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
],
[
76,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
69,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public Main() {\n Scanner scanner = new Scanner(System.in);\n long N = scanner.nextLong();\n long D = scanner.nextLong();\n\n int R = 0;\n for (int i = 0; i < N; i++) {\n long X = scanner.nextLong();\n long Y = scanner.nextLong();\n\n if (X*X + Y*Y <= D*D){\n R++;\n }\n }\n\n System.out.println(R);\n }\n\n public static void main(String[] args) {\n new Main();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public Main() {\n Scanner scanner = new Scanner(System.in);\n long N = scanner.nextLong();\n long D = scanner.nextLong();\n\n int R = 0;\n for (int i = 0; i < N; i++) {\n long X = scanner.nextLong();\n long Y = scanner.nextLong();\n\n if (X*X + Y*Y <= D*D){\n R++;\n }\n }\n\n System.out.println(R);\n }\n\n public static void main(String[] args) {\n new Main();\n }\n}",
"Main",
"public Main() {\n Scanner scanner = new Scanner(System.in);\n long N = scanner.nextLong();\n long D = scanner.nextLong();\n\n int R = 0;\n for (int i = 0; i < N; i++) {\n long X = scanner.nextLong();\n long Y = scanner.nextLong();\n\n if (X*X + Y*Y <= D*D){\n R++;\n }\n }\n\n System.out.println(R);\n }",
"Main",
"{\n Scanner scanner = new Scanner(System.in);\n long N = scanner.nextLong();\n long D = scanner.nextLong();\n\n int R = 0;\n for (int i = 0; i < N; i++) {\n long X = scanner.nextLong();\n long Y = scanner.nextLong();\n\n if (X*X + Y*Y <= D*D){\n R++;\n }\n }\n\n System.out.println(R);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"long N = scanner.nextLong();",
"N",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"long D = scanner.nextLong();",
"D",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"int R = 0;",
"R",
"0",
"for (int i = 0; i < N; i++) {\n long X = scanner.nextLong();\n long Y = scanner.nextLong();\n\n if (X*X + Y*Y <= D*D){\n R++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n long X = scanner.nextLong();\n long Y = scanner.nextLong();\n\n if (X*X + Y*Y <= D*D){\n R++;\n }\n }",
"{\n long X = scanner.nextLong();\n long Y = scanner.nextLong();\n\n if (X*X + Y*Y <= D*D){\n R++;\n }\n }",
"long X = scanner.nextLong();",
"X",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"long Y = scanner.nextLong();",
"Y",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"if (X*X + Y*Y <= D*D){\n R++;\n }",
"X*X + Y*Y <= D*D",
"X*X + Y*Y",
"X*X",
"X",
"X",
"Y*Y",
"Y",
"Y",
"D*D",
"D",
"D",
"{\n R++;\n }",
"R++",
"R",
"System.out.println(R)",
"System.out.println",
"System.out",
"System",
"System.out",
"R",
"public static void main(String[] args) {\n new Main();\n }",
"main",
"{\n new Main();\n }",
"new Main()",
"String[] args",
"args",
"public class Main {\n\n public Main() {\n Scanner scanner = new Scanner(System.in);\n long N = scanner.nextLong();\n long D = scanner.nextLong();\n\n int R = 0;\n for (int i = 0; i < N; i++) {\n long X = scanner.nextLong();\n long Y = scanner.nextLong();\n\n if (X*X + Y*Y <= D*D){\n R++;\n }\n }\n\n System.out.println(R);\n }\n\n public static void main(String[] args) {\n new Main();\n }\n}",
"public class Main {\n\n public Main() {\n Scanner scanner = new Scanner(System.in);\n long N = scanner.nextLong();\n long D = scanner.nextLong();\n\n int R = 0;\n for (int i = 0; i < N; i++) {\n long X = scanner.nextLong();\n long Y = scanner.nextLong();\n\n if (X*X + Y*Y <= D*D){\n R++;\n }\n }\n\n System.out.println(R);\n }\n\n public static void main(String[] args) {\n new Main();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public Main() {
Scanner scanner = new Scanner(System.in);
long N = scanner.nextLong();
long D = scanner.nextLong();
int R = 0;
for (int i = 0; i < N; i++) {
long X = scanner.nextLong();
long Y = scanner.nextLong();
if (X*X + Y*Y <= D*D){
R++;
}
}
System.out.println(R);
}
public static void main(String[] args) {
new Main();
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
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
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
6,
8
],
[
76,
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
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
52,
63
],
[
51,
64
],
[
64,
65
],
[
65,
66
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
9,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"import java.util.*;\n\n\npublic class Main {\n\tstatic int j =0;\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int x = sc.nextInt();\n\t\t int y = sc.nextInt();\n\t\t int c=0;\n\t\t for(int i=0;i<x;i++) {\n\t\t\t double a= sc.nextInt();\n\t\t\t double b= sc.nextInt();\n\t\t\t \n\t\t\t if(Math.sqrt(a*a+b*b)<=y) {\n\t\t\t\t c++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(c);\n\t}\n\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tstatic int j =0;\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int x = sc.nextInt();\n\t\t int y = sc.nextInt();\n\t\t int c=0;\n\t\t for(int i=0;i<x;i++) {\n\t\t\t double a= sc.nextInt();\n\t\t\t double b= sc.nextInt();\n\t\t\t \n\t\t\t if(Math.sqrt(a*a+b*b)<=y) {\n\t\t\t\t c++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(c);\n\t}\n\n\n}",
"Main",
"static int j =0;",
"j",
"0",
"public static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int x = sc.nextInt();\n\t\t int y = sc.nextInt();\n\t\t int c=0;\n\t\t for(int i=0;i<x;i++) {\n\t\t\t double a= sc.nextInt();\n\t\t\t double b= sc.nextInt();\n\t\t\t \n\t\t\t if(Math.sqrt(a*a+b*b)<=y) {\n\t\t\t\t c++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(c);\n\t}",
"main",
"{\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int x = sc.nextInt();\n\t\t int y = sc.nextInt();\n\t\t int c=0;\n\t\t for(int i=0;i<x;i++) {\n\t\t\t double a= sc.nextInt();\n\t\t\t double b= sc.nextInt();\n\t\t\t \n\t\t\t if(Math.sqrt(a*a+b*b)<=y) {\n\t\t\t\t c++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(c);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int c=0;",
"c",
"0",
"for(int i=0;i<x;i++) {\n\t\t\t double a= sc.nextInt();\n\t\t\t double b= sc.nextInt();\n\t\t\t \n\t\t\t if(Math.sqrt(a*a+b*b)<=y) {\n\t\t\t\t c++;\n\t\t\t }\n\t\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<x",
"i",
"x",
"i++",
"i++",
"i",
"{\n\t\t\t double a= sc.nextInt();\n\t\t\t double b= sc.nextInt();\n\t\t\t \n\t\t\t if(Math.sqrt(a*a+b*b)<=y) {\n\t\t\t\t c++;\n\t\t\t }\n\t\t }",
"{\n\t\t\t double a= sc.nextInt();\n\t\t\t double b= sc.nextInt();\n\t\t\t \n\t\t\t if(Math.sqrt(a*a+b*b)<=y) {\n\t\t\t\t c++;\n\t\t\t }\n\t\t }",
"double a= sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double b= sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(Math.sqrt(a*a+b*b)<=y) {\n\t\t\t\t c++;\n\t\t\t }",
"Math.sqrt(a*a+b*b)<=y",
"Math.sqrt(a*a+b*b)",
"Math.sqrt",
"Math",
"a*a+b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"y",
"{\n\t\t\t\t c++;\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\tstatic int j =0;\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int x = sc.nextInt();\n\t\t int y = sc.nextInt();\n\t\t int c=0;\n\t\t for(int i=0;i<x;i++) {\n\t\t\t double a= sc.nextInt();\n\t\t\t double b= sc.nextInt();\n\t\t\t \n\t\t\t if(Math.sqrt(a*a+b*b)<=y) {\n\t\t\t\t c++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(c);\n\t}\n\n\n}",
"public class Main {\n\tstatic int j =0;\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int x = sc.nextInt();\n\t\t int y = sc.nextInt();\n\t\t int c=0;\n\t\t for(int i=0;i<x;i++) {\n\t\t\t double a= sc.nextInt();\n\t\t\t double b= sc.nextInt();\n\t\t\t \n\t\t\t if(Math.sqrt(a*a+b*b)<=y) {\n\t\t\t\t c++;\n\t\t\t }\n\t\t }\n\t\t System.out.println(c);\n\t}\n\n\n}",
"Main"
]
| import java.util.*;
public class Main {
static int j =0;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
int c=0;
for(int i=0;i<x;i++) {
double a= sc.nextInt();
double b= sc.nextInt();
if(Math.sqrt(a*a+b*b)<=y) {
c++;
}
}
System.out.println(c);
}
}
|
[
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,
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,
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
],
[
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
],
[
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
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
43,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
43,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
61,
72
],
[
60,
73
],
[
73,
74
],
[
74,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = Integer.parseInt(sc.next());\n\t\tint D = Integer.parseInt(sc.next());\n\t\tint count = 0;\n\t\tfor(int i=0;i < N;i++) {\n\t\t\tlong x = Long.parseLong(sc.next());\n\t\t\tlong y = Long.parseLong(sc.next());\n\t\t\tif(Math.sqrt(x*x+y*y) <= D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = Integer.parseInt(sc.next());\n\t\tint D = Integer.parseInt(sc.next());\n\t\tint count = 0;\n\t\tfor(int i=0;i < N;i++) {\n\t\t\tlong x = Long.parseLong(sc.next());\n\t\t\tlong y = Long.parseLong(sc.next());\n\t\t\tif(Math.sqrt(x*x+y*y) <= D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = Integer.parseInt(sc.next());\n\t\tint D = Integer.parseInt(sc.next());\n\t\tint count = 0;\n\t\tfor(int i=0;i < N;i++) {\n\t\t\tlong x = Long.parseLong(sc.next());\n\t\t\tlong y = Long.parseLong(sc.next());\n\t\t\tif(Math.sqrt(x*x+y*y) <= D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = Integer.parseInt(sc.next());\n\t\tint D = Integer.parseInt(sc.next());\n\t\tint count = 0;\n\t\tfor(int i=0;i < N;i++) {\n\t\t\tlong x = Long.parseLong(sc.next());\n\t\t\tlong y = Long.parseLong(sc.next());\n\t\t\tif(Math.sqrt(x*x+y*y) <= D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\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",
"int D = Integer.parseInt(sc.next());",
"D",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int count = 0;",
"count",
"0",
"for(int i=0;i < N;i++) {\n\t\t\tlong x = Long.parseLong(sc.next());\n\t\t\tlong y = Long.parseLong(sc.next());\n\t\t\tif(Math.sqrt(x*x+y*y) <= 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\tlong x = Long.parseLong(sc.next());\n\t\t\tlong y = Long.parseLong(sc.next());\n\t\t\tif(Math.sqrt(x*x+y*y) <= D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tlong x = Long.parseLong(sc.next());\n\t\t\tlong y = Long.parseLong(sc.next());\n\t\t\tif(Math.sqrt(x*x+y*y) <= D) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"long x = Long.parseLong(sc.next());",
"x",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"long y = Long.parseLong(sc.next());",
"y",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"if(Math.sqrt(x*x+y*y) <= D) {\n\t\t\t\tcount++;\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\tcount++;\n\t\t\t}",
"count++",
"count",
"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);
int N = Integer.parseInt(sc.next());
int D = Integer.parseInt(sc.next());
int count = 0;
for(int i=0;i < N;i++) {
long x = Long.parseLong(sc.next());
long y = Long.parseLong(sc.next());
if(Math.sqrt(x*x+y*y) <= D) {
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
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,
14,
2,
36,
13,
29,
17,
14,
2,
2,
13,
17,
2,
4,
13,
4,
18,
13,
29,
17,
41,
13,
13,
14,
40,
4,
18,
13,
18,
13,
13,
29,
17,
29,
4,
18,
13,
18,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
17,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
2,
2,
2,
2,
17,
13,
17,
13,
17,
12,
13,
30,
29,
20,
23,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
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,
13,
40,
17,
40,
4,
13,
13,
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,
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
],
[
12,
13
],
[
10,
14
],
[
14,
15
],
[
10,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
18,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
16,
29
],
[
29,
30
],
[
16,
31
],
[
31,
32
],
[
10,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
35,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
53,
54
],
[
35,
55
],
[
55,
56
],
[
55,
57
],
[
35,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
35,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
33,
75
],
[
75,
76
],
[
10,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
10,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
97,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
95,
101
],
[
97,
102
],
[
10,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
103,
108
],
[
108,
109
],
[
103,
110
],
[
110,
111
],
[
0,
112
],
[
454,
113
],
[
454,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
116,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
116,
130
],
[
130,
131
],
[
130,
132
],
[
116,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
133,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
116,
150
],
[
150,
151
],
[
150,
152
],
[
116,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
153,
161
],
[
161,
162
],
[
162,
163
],
[
153,
164
],
[
165,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
165,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
174,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
189,
191
],
[
173,
192
],
[
172,
193
],
[
193,
194
],
[
116,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
195,
200
],
[
114,
201
],
[
201,
202
],
[
0,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
207,
209
],
[
203,
210
],
[
210,
211
],
[
210,
212
],
[
203,
214
],
[
214,
215
],
[
214,
216
],
[
203,
217
],
[
217,
218
],
[
217,
219
],
[
203,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
227,
228
],
[
228,
229
],
[
223,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
230,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
234,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
244,
247
],
[
230,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
248,
252
],
[
252,
253
],
[
253,
254
],
[
222,
255
],
[
255,
256
],
[
203,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
260,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
260,
268
],
[
268,
269
],
[
269,
270
],
[
203,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
275,
279
],
[
279,
280
],
[
279,
281
],
[
271,
282
],
[
282,
283
],
[
203,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
288,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
294,
296
],
[
287,
297
],
[
297,
298
],
[
286,
299
],
[
299,
300
],
[
300,
301
],
[
203,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
307,
308
],
[
305,
309
],
[
309,
310
],
[
304,
311
],
[
311,
312
],
[
311,
313
],
[
304,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
304,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
318,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
323,
326
],
[
322,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
304,
331
],
[
331,
332
],
[
332,
333
],
[
333,
334
],
[
203,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
338,
342
],
[
342,
343
],
[
337,
344
],
[
344,
345
],
[
344,
346
],
[
337,
347
],
[
347,
348
],
[
347,
349
],
[
337,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
337,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
354,
358
],
[
358,
359
],
[
359,
360
],
[
359,
361
],
[
358,
362
],
[
362,
363
],
[
362,
364
],
[
364,
365
],
[
337,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
367,
371
],
[
371,
372
],
[
371,
373
],
[
366,
374
],
[
374,
375
],
[
375,
376
],
[
337,
377
],
[
377,
378
],
[
377,
379
],
[
379,
380
],
[
380,
381
],
[
381,
382
],
[
382,
383
],
[
382,
384
],
[
381,
385
],
[
385,
386
],
[
385,
387
],
[
380,
388
],
[
388,
389
],
[
389,
390
],
[
389,
391
],
[
388,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
394,
396
],
[
380,
397
],
[
397,
398
],
[
398,
399
],
[
399,
400
],
[
399,
401
],
[
401,
402
],
[
398,
403
],
[
403,
404
],
[
404,
405
],
[
404,
406
],
[
397,
407
],
[
407,
408
],
[
408,
409
],
[
409,
410
],
[
409,
411
],
[
411,
412
],
[
409,
413
],
[
397,
414
],
[
414,
415
],
[
415,
416
],
[
379,
417
],
[
417,
418
],
[
417,
419
],
[
419,
420
],
[
203,
421
],
[
421,
422
],
[
421,
423
],
[
423,
424
],
[
424,
425
],
[
424,
426
],
[
426,
427
],
[
423,
428
],
[
428,
429
],
[
429,
430
],
[
430,
431
],
[
430,
432
],
[
432,
433
],
[
432,
434
],
[
429,
435
],
[
435,
436
],
[
435,
437
],
[
437,
438
],
[
437,
439
],
[
428,
440
],
[
440,
441
],
[
423,
442
],
[
442,
443
],
[
203,
444
],
[
444,
445
],
[
444,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
449,
450
],
[
448,
451
],
[
451,
452
],
[
0,
453
],
[
453,
454
],
[
453,
455
]
]
| [
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.util.*;\n\n// Pair class\nclass Pair<U, V>\n{\n public final U first; \t// first field of a Pair\n public final V second; \t// second field of a Pair\n\n // Constructs a new Pair with specified values\n public Pair(U first, V second)\n {\n this.first = first;\n this.second = second;\n }\n\n @Override\n // Checks specified object is \"equal to\" current object or not\n public boolean equals(Object o)\n {\n if (this == o)\n return true;\n\n if (o == null || getClass() != o.getClass())\n return false;\n\n Pair<?, ?> pair = (Pair<?, ?>) o;\n\n // call equals() method of the underlying objects\n if (!first.equals(pair.first))\n return false;\n return second.equals(pair.second);\n }\n\n @Override\n // Computes hash code for an object to support hash tables\n public int hashCode()\n {\n // use hash codes of the underlying objects\n return 31 * first.hashCode() + second.hashCode();\n }\n\n @Override\n public String toString()\n {\n return \"(\" + first + \", \" + second + \")\";\n }\n\n // Factory method for creating a Typed Pair immutable instance\n public static <U, V> Pair<U, V> of(U a, V b)\n {\n // calls private constructor\n return new Pair<>(a, b);\n }\n}\n\npublic class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int N = fs.nextInt();\n int D = fs.nextInt();\n\n List<Pair<Long, Long>> list = new ArrayList<>();\n for (int i = 0; i < N; ++i) {\n list.add(new Pair<>(fs.nextLong(), fs.nextLong()));\n }\n\n int ans = 0;\n for (int i = 0; i < N; ++i) {\n Pair<Long, Long> p = list.get(i);\n if (Math.sqrt(p.first * p.first + p.second * p.second) <= D) ++ans;\n }\n\n System.out.println(ans);\n }\n}\n\nclass FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\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\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\n public long nextLong() {\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)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\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 double nextDouble() { return Double.parseDouble(next());}\n}\n\n",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.*;",
"util.*",
"java",
"class Pair<U, V>\n{\n public final U first; \t// first field of a Pair\n public final V second; \t// second field of a Pair\n\n // Constructs a new Pair with specified values\n public Pair(U first, V second)\n {\n this.first = first;\n this.second = second;\n }\n\n @Override\n // Checks specified object is \"equal to\" current object or not\n public boolean equals(Object o)\n {\n if (this == o)\n return true;\n\n if (o == null || getClass() != o.getClass())\n return false;\n\n Pair<?, ?> pair = (Pair<?, ?>) o;\n\n // call equals() method of the underlying objects\n if (!first.equals(pair.first))\n return false;\n return second.equals(pair.second);\n }\n\n @Override\n // Computes hash code for an object to support hash tables\n public int hashCode()\n {\n // use hash codes of the underlying objects\n return 31 * first.hashCode() + second.hashCode();\n }\n\n @Override\n public String toString()\n {\n return \"(\" + first + \", \" + second + \")\";\n }\n\n // Factory method for creating a Typed Pair immutable instance\n public static <U, V> Pair<U, V> of(U a, V b)\n {\n // calls private constructor\n return new Pair<>(a, b);\n }\n}",
"Pair",
"public final U first; \t// first field of a Pair",
"first",
"public final V second; \t// second field of a Pair",
"second",
"// Constructs a new Pair with specified values\n public Pair(U first, V second)\n {\n this.first = first;\n this.second = second;\n }",
"Pair",
"{\n this.first = first;\n this.second = second;\n }",
"this.first = first",
"this.first",
"this",
"this.first",
"first",
"this.second = second",
"this.second",
"this",
"this.second",
"second",
"U first",
"first",
"V second",
"second",
"@Override\n // Checks specified object is \"equal to\" current object or not\n public boolean equals(Object o)\n {\n if (this == o)\n return true;\n\n if (o == null || getClass() != o.getClass())\n return false;\n\n Pair<?, ?> pair = (Pair<?, ?>) o;\n\n // call equals() method of the underlying objects\n if (!first.equals(pair.first))\n return false;\n return second.equals(pair.second);\n }",
"equals",
"{\n if (this == o)\n return true;\n\n if (o == null || getClass() != o.getClass())\n return false;\n\n Pair<?, ?> pair = (Pair<?, ?>) o;\n\n // call equals() method of the underlying objects\n if (!first.equals(pair.first))\n return false;\n return second.equals(pair.second);\n }",
"if (this == o)\n return true;",
"this == o",
"this",
"o",
"return true;",
"true",
"if (o == null || getClass() != o.getClass())\n return false;",
"o == null || getClass() != o.getClass()",
"o == null",
"o",
"null",
"getClass() != o.getClass()",
"getClass()",
"getClass",
"o.getClass()",
"o.getClass",
"o",
"return false;",
"false",
"Pair<?, ?> pair = (Pair<?, ?>) o;",
"pair",
"(Pair<?, ?>) o",
"if (!first.equals(pair.first))\n return false;",
"!first.equals(pair.first)",
"first.equals(pair.first)",
"first.equals",
"first",
"pair.first",
"pair",
"pair.first",
"return false;",
"false",
"return second.equals(pair.second);",
"second.equals(pair.second)",
"second.equals",
"second",
"pair.second",
"pair",
"pair.second",
"Object o",
"o",
"@Override\n // Computes hash code for an object to support hash tables\n public int hashCode()\n {\n // use hash codes of the underlying objects\n return 31 * first.hashCode() + second.hashCode();\n }",
"hashCode",
"{\n // use hash codes of the underlying objects\n return 31 * first.hashCode() + second.hashCode();\n }",
"return 31 * first.hashCode() + second.hashCode();",
"31 * first.hashCode() + second.hashCode()",
"31 * first.hashCode()",
"31",
"first.hashCode()",
"first.hashCode",
"first",
"second.hashCode()",
"second.hashCode",
"second",
"@Override\n public String toString()\n {\n return \"(\" + first + \", \" + second + \")\";\n }",
"toString",
"{\n return \"(\" + first + \", \" + second + \")\";\n }",
"return \"(\" + first + \", \" + second + \")\";",
"\"(\" + first + \", \" + second + \")\"",
"second",
"\", \"",
"\"(\" + first + \", \" + second + \")\"",
"\"(\"",
"first",
"\", \"",
"second",
"\")\"",
"// Factory method for creating a Typed Pair immutable instance\n public static <U, V> Pair<U, V> of(U a, V b)\n {\n // calls private constructor\n return new Pair<>(a, b);\n }",
"of",
"{\n // calls private constructor\n return new Pair<>(a, b);\n }",
"return new Pair<>(a, b);",
"new Pair<>(a, b)",
"U a",
"a",
"V b",
"b",
"public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int N = fs.nextInt();\n int D = fs.nextInt();\n\n List<Pair<Long, Long>> list = new ArrayList<>();\n for (int i = 0; i < N; ++i) {\n list.add(new Pair<>(fs.nextLong(), fs.nextLong()));\n }\n\n int ans = 0;\n for (int i = 0; i < N; ++i) {\n Pair<Long, Long> p = list.get(i);\n if (Math.sqrt(p.first * p.first + p.second * p.second) <= D) ++ans;\n }\n\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int N = fs.nextInt();\n int D = fs.nextInt();\n\n List<Pair<Long, Long>> list = new ArrayList<>();\n for (int i = 0; i < N; ++i) {\n list.add(new Pair<>(fs.nextLong(), fs.nextLong()));\n }\n\n int ans = 0;\n for (int i = 0; i < N; ++i) {\n Pair<Long, Long> p = list.get(i);\n if (Math.sqrt(p.first * p.first + p.second * p.second) <= D) ++ans;\n }\n\n System.out.println(ans);\n }",
"main",
"{\n FastScanner fs = new FastScanner();\n int N = fs.nextInt();\n int D = fs.nextInt();\n\n List<Pair<Long, Long>> list = new ArrayList<>();\n for (int i = 0; i < N; ++i) {\n list.add(new Pair<>(fs.nextLong(), fs.nextLong()));\n }\n\n int ans = 0;\n for (int i = 0; i < N; ++i) {\n Pair<Long, Long> p = list.get(i);\n if (Math.sqrt(p.first * p.first + p.second * p.second) <= D) ++ans;\n }\n\n System.out.println(ans);\n }",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"int N = fs.nextInt();",
"N",
"fs.nextInt()",
"fs.nextInt",
"fs",
"int D = fs.nextInt();",
"D",
"fs.nextInt()",
"fs.nextInt",
"fs",
"List<Pair<Long, Long>> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"for (int i = 0; i < N; ++i) {\n list.add(new Pair<>(fs.nextLong(), fs.nextLong()));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"++i",
"++i",
"i",
"{\n list.add(new Pair<>(fs.nextLong(), fs.nextLong()));\n }",
"{\n list.add(new Pair<>(fs.nextLong(), fs.nextLong()));\n }",
"list.add(new Pair<>(fs.nextLong(), fs.nextLong()))",
"list.add",
"list",
"new Pair<>(fs.nextLong(), fs.nextLong())",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < N; ++i) {\n Pair<Long, Long> p = list.get(i);\n if (Math.sqrt(p.first * p.first + p.second * p.second) <= D) ++ans;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"++i",
"++i",
"i",
"{\n Pair<Long, Long> p = list.get(i);\n if (Math.sqrt(p.first * p.first + p.second * p.second) <= D) ++ans;\n }",
"{\n Pair<Long, Long> p = list.get(i);\n if (Math.sqrt(p.first * p.first + p.second * p.second) <= D) ++ans;\n }",
"Pair<Long, Long> p = list.get(i);",
"p",
"list.get(i)",
"list.get",
"list",
"i",
"if (Math.sqrt(p.first * p.first + p.second * p.second) <= D) ++ans;",
"Math.sqrt(p.first * p.first + p.second * p.second) <= D",
"Math.sqrt(p.first * p.first + p.second * p.second)",
"Math.sqrt",
"Math",
"p.first * p.first + p.second * p.second",
"p.first * p.first",
"p.first",
"p",
"p.first",
"p.first",
"p",
"p.first",
"p.second * p.second",
"p.second",
"p",
"p.second",
"p.second",
"p",
"p.second",
"D",
"++ans",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\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\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\n public long nextLong() {\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)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\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 double nextDouble() { return Double.parseDouble(next());}\n}",
"FastScanner",
"private final InputStream in = System.in;",
"in",
"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",
"private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.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 = in.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 = in.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 = in.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 = in.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 = in.read(buffer);\n }",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"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 nextLong() {\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)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }",
"nextLong",
"{\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)){\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)){\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)){\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)){\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)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"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 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 double nextDouble() { return Double.parseDouble(next());}",
"nextDouble",
"{ return Double.parseDouble(next());}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int N = fs.nextInt();\n int D = fs.nextInt();\n\n List<Pair<Long, Long>> list = new ArrayList<>();\n for (int i = 0; i < N; ++i) {\n list.add(new Pair<>(fs.nextLong(), fs.nextLong()));\n }\n\n int ans = 0;\n for (int i = 0; i < N; ++i) {\n Pair<Long, Long> p = list.get(i);\n if (Math.sqrt(p.first * p.first + p.second * p.second) <= D) ++ans;\n }\n\n System.out.println(ans);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int N = fs.nextInt();\n int D = fs.nextInt();\n\n List<Pair<Long, Long>> list = new ArrayList<>();\n for (int i = 0; i < N; ++i) {\n list.add(new Pair<>(fs.nextLong(), fs.nextLong()));\n }\n\n int ans = 0;\n for (int i = 0; i < N; ++i) {\n Pair<Long, Long> p = list.get(i);\n if (Math.sqrt(p.first * p.first + p.second * p.second) <= D) ++ans;\n }\n\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.io.IOException;
import java.io.InputStream;
import java.util.*;
// Pair class
class Pair<U, V>
{
public final U first; // first field of a Pair
public final V second; // second field of a Pair
// Constructs a new Pair with specified values
public Pair(U first, V second)
{
this.first = first;
this.second = second;
}
@Override
// Checks specified object is "equal to" current object or not
public boolean equals(Object o)
{
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
Pair<?, ?> pair = (Pair<?, ?>) o;
// call equals() method of the underlying objects
if (!first.equals(pair.first))
return false;
return second.equals(pair.second);
}
@Override
// Computes hash code for an object to support hash tables
public int hashCode()
{
// use hash codes of the underlying objects
return 31 * first.hashCode() + second.hashCode();
}
@Override
public String toString()
{
return "(" + first + ", " + second + ")";
}
// Factory method for creating a Typed Pair immutable instance
public static <U, V> Pair<U, V> of(U a, V b)
{
// calls private constructor
return new Pair<>(a, b);
}
}
public class Main {
public static void main(String[] args) {
FastScanner fs = new FastScanner();
int N = fs.nextInt();
int D = fs.nextInt();
List<Pair<Long, Long>> list = new ArrayList<>();
for (int i = 0; i < N; ++i) {
list.add(new Pair<>(fs.nextLong(), fs.nextLong()));
}
int ans = 0;
for (int i = 0; i < N; ++i) {
Pair<Long, Long> p = list.get(i);
if (Math.sqrt(p.first * p.first + p.second * p.second) <= D) ++ans;
}
System.out.println(ans);
}
}
class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
}else{
ptr = 0;
try {
buflen = in.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 nextLong() {
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)){
return minus ? -n : n;
}else{
throw new NumberFormatException();
}
b = readByte();
}
}
public int nextInt() {
long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
return (int) nl;
}
public double nextDouble() { return Double.parseDouble(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,
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,
14,
2,
13,
4,
18,
13,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
2,
13,
17,
18,
13,
2,
13,
17,
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
],
[
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
],
[
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
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
69,
94
],
[
94,
95
],
[
95,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
8,
103
],
[
103,
104
],
[
104,
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\tScanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint d = sc.nextInt();\n\tlong[] x = new long[n * 2];\n\tfor(int i = 0; i < n * 2; i++) {\n\t\tx[i] = sc.nextInt();\n }\n int count = 0;\n for(int j = 0; j < n * 2; j += 2) {\n if(d >= Math.sqrt((x[j] * x[j]) + (x[j + 1] * x[j + 1]))){\n count++;\n }\n }\n System.out.println(count);\n\tsc.close();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\tScanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint d = sc.nextInt();\n\tlong[] x = new long[n * 2];\n\tfor(int i = 0; i < n * 2; i++) {\n\t\tx[i] = sc.nextInt();\n }\n int count = 0;\n for(int j = 0; j < n * 2; j += 2) {\n if(d >= Math.sqrt((x[j] * x[j]) + (x[j + 1] * x[j + 1]))){\n count++;\n }\n }\n System.out.println(count);\n\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\tScanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint d = sc.nextInt();\n\tlong[] x = new long[n * 2];\n\tfor(int i = 0; i < n * 2; i++) {\n\t\tx[i] = sc.nextInt();\n }\n int count = 0;\n for(int j = 0; j < n * 2; j += 2) {\n if(d >= Math.sqrt((x[j] * x[j]) + (x[j + 1] * x[j + 1]))){\n count++;\n }\n }\n System.out.println(count);\n\tsc.close();\n\t}",
"main",
"{\n\tScanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint d = sc.nextInt();\n\tlong[] x = new long[n * 2];\n\tfor(int i = 0; i < n * 2; i++) {\n\t\tx[i] = sc.nextInt();\n }\n int count = 0;\n for(int j = 0; j < n * 2; j += 2) {\n if(d >= Math.sqrt((x[j] * x[j]) + (x[j + 1] * x[j + 1]))){\n count++;\n }\n }\n System.out.println(count);\n\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",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[] x = new long[n * 2];",
"x",
"new long[n * 2]",
"n * 2",
"n",
"2",
"for(int i = 0; i < n * 2; i++) {\n\t\tx[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n * 2",
"i",
"n * 2",
"n",
"2",
"i++",
"i++",
"i",
"{\n\t\tx[i] = sc.nextInt();\n }",
"{\n\t\tx[i] = sc.nextInt();\n }",
"x[i] = sc.nextInt()",
"x[i]",
"x",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 0;",
"count",
"0",
"for(int j = 0; j < n * 2; j += 2) {\n if(d >= Math.sqrt((x[j] * x[j]) + (x[j + 1] * x[j + 1]))){\n count++;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n * 2",
"j",
"n * 2",
"n",
"2",
"j += 2",
"j += 2",
"j",
"2",
"{\n if(d >= Math.sqrt((x[j] * x[j]) + (x[j + 1] * x[j + 1]))){\n count++;\n }\n }",
"{\n if(d >= Math.sqrt((x[j] * x[j]) + (x[j + 1] * x[j + 1]))){\n count++;\n }\n }",
"if(d >= Math.sqrt((x[j] * x[j]) + (x[j + 1] * x[j + 1]))){\n count++;\n }",
"d >= Math.sqrt((x[j] * x[j]) + (x[j + 1] * x[j + 1]))",
"d",
"Math.sqrt((x[j] * x[j]) + (x[j + 1] * x[j + 1]))",
"Math.sqrt",
"Math",
"(x[j] * x[j]) + (x[j + 1] * x[j + 1])",
"(x[j] * x[j])",
"x[j]",
"x",
"j",
"x[j]",
"x",
"j",
"(x[j + 1] * x[j + 1])",
"x[j + 1]",
"x",
"j + 1",
"j",
"1",
"x[j + 1]",
"x",
"j + 1",
"j",
"1",
"{\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\tpublic static void main(String[] args) {\n\tScanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint d = sc.nextInt();\n\tlong[] x = new long[n * 2];\n\tfor(int i = 0; i < n * 2; i++) {\n\t\tx[i] = sc.nextInt();\n }\n int count = 0;\n for(int j = 0; j < n * 2; j += 2) {\n if(d >= Math.sqrt((x[j] * x[j]) + (x[j + 1] * x[j + 1]))){\n count++;\n }\n }\n System.out.println(count);\n\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\tScanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint d = sc.nextInt();\n\tlong[] x = new long[n * 2];\n\tfor(int i = 0; i < n * 2; i++) {\n\t\tx[i] = sc.nextInt();\n }\n int count = 0;\n for(int j = 0; j < n * 2; j += 2) {\n if(d >= Math.sqrt((x[j] * x[j]) + (x[j + 1] * x[j + 1]))){\n count++;\n }\n }\n System.out.println(count);\n\tsc.close();\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();
int d = sc.nextInt();
long[] x = new long[n * 2];
for(int i = 0; i < n * 2; i++) {
x[i] = sc.nextInt();
}
int count = 0;
for(int j = 0; j < n * 2; j += 2) {
if(d >= Math.sqrt((x[j] * x[j]) + (x[j + 1] * x[j + 1]))){
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,
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 public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n int n=kbd.nextInt();\n int d=kbd.nextInt();\n int num=0;\n for(int i=0;i<n;i++){\n long x=kbd.nextInt();\n long y=kbd.nextInt();\n if(Math.sqrt(x*x+y*y)<=d){\n num++;\n }\n}\n System.out.println(num);\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n int n=kbd.nextInt();\n int d=kbd.nextInt();\n int num=0;\n for(int i=0;i<n;i++){\n long x=kbd.nextInt();\n long y=kbd.nextInt();\n if(Math.sqrt(x*x+y*y)<=d){\n num++;\n }\n}\n System.out.println(num);\n}\n}",
"Main",
"public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n int n=kbd.nextInt();\n int d=kbd.nextInt();\n int num=0;\n for(int i=0;i<n;i++){\n long x=kbd.nextInt();\n long y=kbd.nextInt();\n if(Math.sqrt(x*x+y*y)<=d){\n num++;\n }\n}\n System.out.println(num);\n}",
"main",
"{\n Scanner kbd =new Scanner(System.in);\n int n=kbd.nextInt();\n int d=kbd.nextInt();\n int num=0;\n for(int i=0;i<n;i++){\n long x=kbd.nextInt();\n long y=kbd.nextInt();\n if(Math.sqrt(x*x+y*y)<=d){\n num++;\n }\n}\n System.out.println(num);\n}",
"Scanner kbd =new Scanner(System.in);",
"kbd",
"new Scanner(System.in)",
"int n=kbd.nextInt();",
"n",
"kbd.nextInt()",
"kbd.nextInt",
"kbd",
"int d=kbd.nextInt();",
"d",
"kbd.nextInt()",
"kbd.nextInt",
"kbd",
"int num=0;",
"num",
"0",
"for(int i=0;i<n;i++){\n long x=kbd.nextInt();\n long y=kbd.nextInt();\n if(Math.sqrt(x*x+y*y)<=d){\n num++;\n }\n}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long x=kbd.nextInt();\n long y=kbd.nextInt();\n if(Math.sqrt(x*x+y*y)<=d){\n num++;\n }\n}",
"{\n long x=kbd.nextInt();\n long y=kbd.nextInt();\n if(Math.sqrt(x*x+y*y)<=d){\n num++;\n }\n}",
"long x=kbd.nextInt();",
"x",
"kbd.nextInt()",
"kbd.nextInt",
"kbd",
"long y=kbd.nextInt();",
"y",
"kbd.nextInt()",
"kbd.nextInt",
"kbd",
"if(Math.sqrt(x*x+y*y)<=d){\n num++;\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 num++;\n }",
"num++",
"num",
"System.out.println(num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n int n=kbd.nextInt();\n int d=kbd.nextInt();\n int num=0;\n for(int i=0;i<n;i++){\n long x=kbd.nextInt();\n long y=kbd.nextInt();\n if(Math.sqrt(x*x+y*y)<=d){\n num++;\n }\n}\n System.out.println(num);\n}\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n int n=kbd.nextInt();\n int d=kbd.nextInt();\n int num=0;\n for(int i=0;i<n;i++){\n long x=kbd.nextInt();\n long y=kbd.nextInt();\n if(Math.sqrt(x*x+y*y)<=d){\n num++;\n }\n}\n System.out.println(num);\n}\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner kbd =new Scanner(System.in);
int n=kbd.nextInt();
int d=kbd.nextInt();
int num=0;
for(int i=0;i<n;i++){
long x=kbd.nextInt();
long y=kbd.nextInt();
if(Math.sqrt(x*x+y*y)<=d){
num++;
}
}
System.out.println(num);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
17,
41,
13,
17,
28,
13,
13,
30,
30,
14,
2,
2,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
13,
40,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
0,
13,
20,
4,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
18,
13,
13,
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,
14,
2,
13,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
40,
2,
2,
13,
17,
2,
13,
17,
23,
13,
12,
13,
30,
41,
13,
42,
2,
2,
0,
13,
4,
13,
40,
17,
4,
13,
13,
29,
13,
12,
13,
30,
29,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
13,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
42,
2,
2,
0,
13,
4,
13,
40,
17,
40,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
42,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
0,
13,
4,
13,
29,
8,
13,
40,
13,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
42,
2,
2,
0,
13,
4,
13,
40,
17,
40,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
42,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
0,
13,
4,
13,
29,
8,
13,
40,
13,
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,
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,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
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,
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,
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,
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,
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,
4,
18,
18,
13,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
791,
20
],
[
791,
21
],
[
21,
22
],
[
791,
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
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
25,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
25,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
25,
51
],
[
51,
52
],
[
51,
53
],
[
25,
54
],
[
54,
55
],
[
54,
56
],
[
54,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
60,
76
],
[
59,
77
],
[
77,
78
],
[
25,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
791,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
87,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
96,
97
],
[
791,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
98,
105
],
[
105,
106
],
[
98,
107
],
[
107,
108
],
[
98,
109
],
[
109,
110
],
[
98,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
113,
119
],
[
119,
120
],
[
119,
121
],
[
113,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
98,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
130,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
140,
142
],
[
128,
143
],
[
143,
144
],
[
98,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
153,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
152,
166
],
[
166,
167
],
[
166,
168
],
[
147,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
173,
174
],
[
174,
175
],
[
147,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
98,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
190,
192
],
[
181,
193
],
[
193,
194
],
[
98,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
197,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
202,
207
],
[
207,
208
],
[
201,
209
],
[
209,
210
],
[
209,
211
],
[
197,
212
],
[
212,
213
],
[
98,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
98,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
224,
227
],
[
227,
228
],
[
98,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
231,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
239,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
245,
248
],
[
244,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
231,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
98,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
263
],
[
263,
264
],
[
263,
265
],
[
259,
266
],
[
266,
267
],
[
259,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
270,
275
],
[
275,
276
],
[
269,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
279,
283
],
[
283,
284
],
[
283,
285
],
[
278,
286
],
[
286,
287
],
[
286,
288
],
[
259,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
289,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
293,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
259,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
302,
306
],
[
306,
307
],
[
306,
308
],
[
301,
309
],
[
309,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
312,
316
],
[
316,
317
],
[
316,
318
],
[
309,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
259,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
326,
327
],
[
324,
328
],
[
98,
329
],
[
329,
330
],
[
329,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
331,
335
],
[
335,
336
],
[
335,
337
],
[
331,
338
],
[
338,
339
],
[
331,
340
],
[
340,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
342,
347
],
[
347,
348
],
[
341,
349
],
[
349,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
351,
355
],
[
355,
356
],
[
355,
357
],
[
350,
358
],
[
358,
359
],
[
358,
360
],
[
331,
361
],
[
361,
362
],
[
362,
363
],
[
362,
364
],
[
361,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
365,
369
],
[
369,
370
],
[
369,
371
],
[
371,
372
],
[
331,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
374,
378
],
[
378,
379
],
[
378,
380
],
[
373,
381
],
[
381,
382
],
[
382,
383
],
[
382,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
384,
388
],
[
388,
389
],
[
388,
390
],
[
381,
391
],
[
391,
392
],
[
391,
393
],
[
393,
394
],
[
331,
395
],
[
395,
396
],
[
396,
397
],
[
396,
398
],
[
398,
399
],
[
396,
400
],
[
98,
401
],
[
401,
402
],
[
401,
403
],
[
403,
404
],
[
404,
405
],
[
404,
406
],
[
403,
408
],
[
408,
409
],
[
409,
410
],
[
410,
411
],
[
410,
412
],
[
408,
413
],
[
413,
414
],
[
413,
415
],
[
408,
416
],
[
416,
417
],
[
417,
418
],
[
408,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
421,
423
],
[
420,
424
],
[
424,
425
],
[
403,
426
],
[
426,
427
],
[
401,
428
],
[
428,
429
],
[
98,
430
],
[
430,
431
],
[
430,
432
],
[
432,
433
],
[
433,
434
],
[
433,
435
],
[
432,
437
],
[
437,
438
],
[
438,
439
],
[
439,
440
],
[
439,
441
],
[
437,
442
],
[
442,
443
],
[
442,
444
],
[
437,
445
],
[
445,
446
],
[
446,
447
],
[
437,
448
],
[
448,
449
],
[
449,
450
],
[
450,
451
],
[
450,
452
],
[
449,
453
],
[
453,
454
],
[
432,
455
],
[
455,
456
],
[
430,
457
],
[
457,
458
],
[
98,
459
],
[
459,
460
],
[
459,
461
],
[
461,
462
],
[
462,
463
],
[
462,
464
],
[
461,
466
],
[
466,
467
],
[
467,
468
],
[
468,
469
],
[
468,
470
],
[
466,
471
],
[
471,
472
],
[
471,
473
],
[
466,
474
],
[
474,
475
],
[
475,
476
],
[
466,
477
],
[
477,
478
],
[
478,
479
],
[
479,
480
],
[
479,
481
],
[
478,
482
],
[
482,
483
],
[
461,
484
],
[
484,
485
],
[
459,
486
],
[
486,
487
],
[
98,
488
],
[
488,
489
],
[
488,
490
],
[
490,
491
],
[
491,
492
],
[
491,
493
],
[
490,
495
],
[
495,
496
],
[
496,
497
],
[
497,
498
],
[
497,
499
],
[
495,
500
],
[
500,
501
],
[
500,
502
],
[
495,
503
],
[
503,
504
],
[
504,
505
],
[
495,
506
],
[
506,
507
],
[
507,
508
],
[
508,
509
],
[
508,
510
],
[
507,
511
],
[
511,
512
],
[
490,
513
],
[
513,
514
],
[
488,
515
],
[
515,
516
],
[
98,
517
],
[
517,
518
],
[
517,
519
],
[
519,
520
],
[
520,
521
],
[
520,
522
],
[
519,
524
],
[
524,
525
],
[
525,
526
],
[
526,
527
],
[
526,
528
],
[
524,
529
],
[
529,
530
],
[
529,
531
],
[
524,
532
],
[
532,
533
],
[
533,
534
],
[
524,
535
],
[
535,
536
],
[
536,
537
],
[
537,
538
],
[
537,
539
],
[
536,
540
],
[
540,
541
],
[
519,
542
],
[
542,
543
],
[
517,
544
],
[
544,
545
],
[
98,
546
],
[
546,
547
],
[
546,
548
],
[
548,
549
],
[
549,
550
],
[
549,
551
],
[
548,
554
],
[
554,
555
],
[
555,
556
],
[
556,
557
],
[
556,
558
],
[
554,
559
],
[
559,
560
],
[
559,
561
],
[
554,
562
],
[
562,
563
],
[
563,
564
],
[
554,
565
],
[
565,
566
],
[
566,
567
],
[
567,
568
],
[
568,
569
],
[
568,
570
],
[
566,
571
],
[
571,
572
],
[
571,
573
],
[
566,
574
],
[
574,
575
],
[
575,
576
],
[
566,
577
],
[
577,
578
],
[
578,
579
],
[
579,
580
],
[
580,
581
],
[
580,
582
],
[
579,
583
],
[
578,
584
],
[
584,
585
],
[
548,
586
],
[
586,
587
],
[
546,
588
],
[
588,
589
],
[
546,
590
],
[
590,
591
],
[
98,
592
],
[
592,
593
],
[
592,
594
],
[
594,
595
],
[
595,
596
],
[
595,
597
],
[
594,
600
],
[
600,
601
],
[
601,
602
],
[
602,
603
],
[
602,
604
],
[
600,
605
],
[
605,
606
],
[
605,
607
],
[
600,
608
],
[
608,
609
],
[
609,
610
],
[
600,
611
],
[
611,
612
],
[
612,
613
],
[
613,
614
],
[
614,
615
],
[
614,
616
],
[
612,
617
],
[
617,
618
],
[
617,
619
],
[
612,
620
],
[
620,
621
],
[
621,
622
],
[
612,
623
],
[
623,
624
],
[
624,
625
],
[
625,
626
],
[
626,
627
],
[
626,
628
],
[
625,
629
],
[
624,
630
],
[
630,
631
],
[
594,
632
],
[
632,
633
],
[
592,
634
],
[
634,
635
],
[
592,
636
],
[
636,
637
],
[
98,
638
],
[
638,
639
],
[
638,
640
],
[
640,
641
],
[
641,
642
],
[
641,
643
],
[
640,
646
],
[
646,
647
],
[
647,
648
],
[
648,
649
],
[
648,
650
],
[
646,
651
],
[
651,
652
],
[
651,
653
],
[
646,
654
],
[
654,
655
],
[
655,
656
],
[
646,
657
],
[
657,
658
],
[
658,
659
],
[
659,
660
],
[
660,
661
],
[
660,
662
],
[
658,
663
],
[
663,
664
],
[
663,
665
],
[
658,
666
],
[
666,
667
],
[
667,
668
],
[
658,
669
],
[
669,
670
],
[
670,
671
],
[
671,
672
],
[
672,
673
],
[
672,
674
],
[
671,
675
],
[
670,
676
],
[
676,
677
],
[
640,
678
],
[
678,
679
],
[
638,
680
],
[
680,
681
],
[
638,
682
],
[
682,
683
],
[
98,
684
],
[
684,
685
],
[
684,
686
],
[
686,
687
],
[
687,
688
],
[
687,
689
],
[
686,
692
],
[
692,
693
],
[
693,
694
],
[
694,
695
],
[
694,
696
],
[
692,
697
],
[
697,
698
],
[
697,
699
],
[
692,
700
],
[
700,
701
],
[
701,
702
],
[
692,
703
],
[
703,
704
],
[
704,
705
],
[
705,
706
],
[
706,
707
],
[
706,
708
],
[
704,
709
],
[
709,
710
],
[
709,
711
],
[
704,
712
],
[
712,
713
],
[
713,
714
],
[
704,
715
],
[
715,
716
],
[
716,
717
],
[
717,
718
],
[
718,
719
],
[
718,
720
],
[
717,
721
],
[
716,
722
],
[
722,
723
],
[
686,
724
],
[
724,
725
],
[
684,
726
],
[
726,
727
],
[
684,
728
],
[
728,
729
],
[
98,
730
],
[
730,
731
],
[
730,
732
],
[
732,
733
],
[
733,
734
],
[
733,
735
],
[
732,
738
],
[
738,
739
],
[
739,
740
],
[
740,
741
],
[
740,
742
],
[
738,
743
],
[
743,
744
],
[
743,
745
],
[
738,
746
],
[
746,
747
],
[
747,
748
],
[
738,
749
],
[
749,
750
],
[
750,
751
],
[
751,
752
],
[
752,
753
],
[
752,
754
],
[
750,
755
],
[
755,
756
],
[
755,
757
],
[
750,
758
],
[
758,
759
],
[
759,
760
],
[
750,
761
],
[
761,
762
],
[
762,
763
],
[
763,
764
],
[
764,
765
],
[
764,
766
],
[
763,
767
],
[
762,
768
],
[
768,
769
],
[
732,
770
],
[
770,
771
],
[
730,
772
],
[
772,
773
],
[
730,
774
],
[
774,
775
],
[
98,
776
],
[
776,
777
],
[
776,
778
],
[
778,
779
],
[
779,
780
],
[
780,
781
],
[
781,
782
],
[
781,
783
],
[
779,
784
],
[
784,
785
],
[
785,
786
],
[
784,
787
],
[
776,
788
],
[
788,
789
],
[
0,
790
],
[
790,
791
],
[
790,
792
]
]
| [
"// package beginner174;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.InputMismatchException;\n\npublic class Main {\n\t\n\tprivate static PrintWriter out;\n\tpublic static void solve() {\n\t\tIn in = new In();\n\t\tint n = in.ni();\n\t\tlong d = in.nl();\n\t\td = d*d;\n\t\tlong[][] xys = in.nlm(n, 2);\n\t\t\n\t\tint count = 0;\n\t\tfor (long[] xy : xys) {\n\t\t\tif (xy[0] * xy[0] + xy[1] * xy[1] <= d)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}\n\n}",
"import java.io.ByteArrayInputStream;",
"ByteArrayInputStream",
"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.Arrays;",
"Arrays",
"java.util",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"public class Main {\n\t\n\tprivate static PrintWriter out;\n\tpublic static void solve() {\n\t\tIn in = new In();\n\t\tint n = in.ni();\n\t\tlong d = in.nl();\n\t\td = d*d;\n\t\tlong[][] xys = in.nlm(n, 2);\n\t\t\n\t\tint count = 0;\n\t\tfor (long[] xy : xys) {\n\t\t\tif (xy[0] * xy[0] + xy[1] * xy[1] <= d)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}\n\n}",
"Main",
"private static PrintWriter out;",
"out",
"public static void solve() {\n\t\tIn in = new In();\n\t\tint n = in.ni();\n\t\tlong d = in.nl();\n\t\td = d*d;\n\t\tlong[][] xys = in.nlm(n, 2);\n\t\t\n\t\tint count = 0;\n\t\tfor (long[] xy : xys) {\n\t\t\tif (xy[0] * xy[0] + xy[1] * xy[1] <= d)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"solve",
"{\n\t\tIn in = new In();\n\t\tint n = in.ni();\n\t\tlong d = in.nl();\n\t\td = d*d;\n\t\tlong[][] xys = in.nlm(n, 2);\n\t\t\n\t\tint count = 0;\n\t\tfor (long[] xy : xys) {\n\t\t\tif (xy[0] * xy[0] + xy[1] * xy[1] <= d)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"In in = new In();",
"in",
"new In()",
"int n = in.ni();",
"n",
"in.ni()",
"in.ni",
"in",
"long d = in.nl();",
"d",
"in.nl()",
"in.nl",
"in",
"d = d*d",
"d",
"d*d",
"d",
"d",
"long[][] xys = in.nlm(n, 2);",
"xys",
"in.nlm(n, 2)",
"in.nlm",
"in",
"n",
"2",
"int count = 0;",
"count",
"0",
"for (long[] xy : xys) {\n\t\t\tif (xy[0] * xy[0] + xy[1] * xy[1] <= d)\n\t\t\t\tcount++;\n\t\t}",
"long[] xy",
"xys",
"{\n\t\t\tif (xy[0] * xy[0] + xy[1] * xy[1] <= d)\n\t\t\t\tcount++;\n\t\t}",
"{\n\t\t\tif (xy[0] * xy[0] + xy[1] * xy[1] <= d)\n\t\t\t\tcount++;\n\t\t}",
"if (xy[0] * xy[0] + xy[1] * xy[1] <= d)\n\t\t\t\tcount++;",
"xy[0] * xy[0] + xy[1] * xy[1] <= d",
"xy[0] * xy[0] + xy[1] * xy[1]",
"xy[0] * xy[0]",
"xy[0]",
"xy",
"0",
"xy[0]",
"xy",
"0",
"xy[1] * xy[1]",
"xy[1]",
"xy",
"1",
"xy[1]",
"xy",
"1",
"d",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"public static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}",
"main",
"{\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"private static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}",
"In",
"final private static int BUFFER_SIZE = 1024;",
"BUFFER_SIZE",
"1024",
"private byte[] buf;",
"buf",
"private InputStream is;",
"is",
"private int buflen;",
"buflen",
"private int bufptr;",
"bufptr",
"public In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}",
"In",
"{\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}",
"is = System.in",
"is",
"System.in",
"System",
"System.in",
"buf = new byte[BUFFER_SIZE]",
"buf",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"buflen = bufptr = 0",
"buflen",
"bufptr = 0",
"bufptr",
"0",
"public In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}",
"In",
"{\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}",
"is = new ByteArrayInputStream(input.getBytes())",
"is",
"new ByteArrayInputStream(input.getBytes())",
"buf = new byte[BUFFER_SIZE]",
"buf",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"buflen = bufptr = 0",
"buflen",
"bufptr = 0",
"bufptr",
"0",
"String input",
"input",
"public int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}",
"readByte",
"{\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}",
"if (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}",
"bufptr >= buflen",
"bufptr",
"buflen",
"{\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}",
"try {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"IOException ioe",
"{\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t}",
"buflen = is.read(buf)",
"buflen",
"is.read(buf)",
"is.read",
"is",
"buf",
"bufptr = 0",
"bufptr",
"0",
"if (buflen <= 0)\n\t\t\t\treturn -1;",
"buflen <= 0",
"buflen",
"0",
"return -1;",
"-1",
"1",
"return buf[bufptr++];",
"buf[bufptr++]",
"buf",
"bufptr++",
"bufptr",
"public boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}",
"isSpaceChar",
"{\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}",
"return !(c >= 33 && c <= 126);",
"!(c >= 33 && c <= 126)",
"(c >= 33 && c <= 126)",
"c >= 33",
"c",
"33",
"c <= 126",
"c",
"126",
"int c",
"c",
"public int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}",
"skip",
"{\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}",
"int b;",
"b",
"while ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;",
"(b = readByte()) != -1 && isSpaceChar(b)",
"(b = readByte()) != -1",
"(b = readByte())",
"b",
"readByte()",
"readByte",
"-1",
"1",
"isSpaceChar(b)",
"isSpaceChar",
"b",
"return b;",
"b",
"/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}",
"nc",
"{\n\t\t\treturn (char) skip();\n\t\t}",
"return (char) skip();",
"(char) skip()",
"skip",
"/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}",
"nd",
"{\n\t\t\treturn Double.parseDouble(ns());\n\t\t}",
"return Double.parseDouble(ns());",
"Double.parseDouble(ns())",
"Double.parseDouble",
"Double",
"ns()",
"ns",
"/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}",
"ns",
"{\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}",
"final StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = skip();",
"b",
"skip()",
"skip",
"while (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}",
"!isSpaceChar(b)",
"isSpaceChar(b)",
"isSpaceChar",
"b",
"{\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}",
"ni",
"{\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}",
"boolean minus = false;",
"minus",
"false",
"int num = 0;",
"num",
"0",
"int b;",
"b",
"while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;",
"(b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')",
"(b = readByte()) != -1",
"(b = readByte())",
"b",
"readByte()",
"readByte",
"-1",
"1",
"!((b >= '0' && b <= '9') || b == '-')",
"((b >= '0' && b <= '9') || b == '-')",
"(b >= '0' && b <= '9')",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"b == '-'",
"b",
"'-'",
"if (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}",
"b == '-'",
"b",
"'-'",
"{\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"while (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}",
"b >= '0' && b <= '9'",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"{\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}",
"num = num * 10 + (b - '0')",
"num",
"num * 10 + (b - '0')",
"num * 10",
"num",
"10",
"(b - '0')",
"b",
"'0'",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return minus ? -num : num;",
"minus ? -num : num",
"minus",
"-num",
"num",
"num",
"/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}",
"nl",
"{\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}",
"boolean minus = false;",
"minus",
"false",
"long num = 0;",
"num",
"0",
"int b;",
"b",
"while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;",
"(b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')",
"(b = readByte()) != -1",
"(b = readByte())",
"b",
"readByte()",
"readByte",
"-1",
"1",
"!((b >= '0' && b <= '9') || b == '-')",
"((b >= '0' && b <= '9') || b == '-')",
"(b >= '0' && b <= '9')",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"b == '-'",
"b",
"'-'",
"if (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}",
"b == '-'",
"b",
"'-'",
"{\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"while (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}",
"b >= '0' && b <= '9'",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"{\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}",
"num = num * 10 + (b - '0')",
"num",
"num * 10 + (b - '0')",
"num * 10",
"num",
"10",
"(b - '0')",
"b",
"'0'",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return minus ? -num : num;",
"minus ? -num : num",
"minus",
"-num",
"num",
"num",
"/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}",
"nia",
"{\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}",
"final int[] arr = new int[n];",
"arr",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i] = ni();",
"arr[i] = ni()",
"arr[i]",
"arr",
"i",
"ni()",
"ni",
"return arr;",
"arr",
"int n",
"n",
"/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}",
"nla",
"{\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}",
"final long[] arr = new long[n];",
"arr",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i] = nl();",
"arr[i] = nl()",
"arr[i]",
"arr",
"i",
"nl()",
"nl",
"return arr;",
"arr",
"int n",
"n",
"/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}",
"nsa",
"{\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}",
"final String[] arr = new String[n];",
"arr",
"new String[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i] = ns();",
"arr[i] = ns()",
"arr[i]",
"arr",
"i",
"ns()",
"ns",
"return arr;",
"arr",
"int n",
"n",
"/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}",
"nca",
"{\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}",
"final char[] arr = new char[n];",
"arr",
"new char[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i] = nc();",
"arr[i] = nc()",
"arr[i]",
"arr",
"i",
"nc()",
"nc",
"return arr;",
"arr",
"int n",
"n",
"/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}",
"nda",
"{\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}",
"final double[] arr = new double[n];",
"arr",
"new double[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i] = nc();",
"arr[i] = nc()",
"arr[i]",
"arr",
"i",
"nc()",
"nc",
"return arr;",
"arr",
"int n",
"n",
"/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}",
"nim",
"{\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}",
"final int[][] arr = new int[n][m];",
"arr",
"new int[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"arr[i][j] = ni();",
"arr[i][j] = ni()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"ni()",
"ni",
"return arr;",
"arr",
"int n",
"n",
"int m",
"m",
"/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}",
"nlm",
"{\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}",
"final long[][] arr = new long[n][m];",
"arr",
"new long[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"arr[i][j] = nl();",
"arr[i][j] = nl()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"nl()",
"nl",
"return arr;",
"arr",
"int n",
"n",
"int m",
"m",
"/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}",
"nsm",
"{\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}",
"final String[][] arr = new String[n][m];",
"arr",
"new String[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"arr[i][j] = ns();",
"arr[i][j] = ns()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"ns()",
"ns",
"return arr;",
"arr",
"int n",
"n",
"int m",
"m",
"/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}",
"ncm",
"{\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}",
"final char[][] arr = new char[n][m];",
"arr",
"new char[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"arr[i][j] = nc();",
"arr[i][j] = nc()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"nc()",
"nc",
"return arr;",
"arr",
"int n",
"n",
"int m",
"m",
"/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}",
"ndm",
"{\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}",
"final double[][] arr = new double[n][m];",
"arr",
"new double[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"arr[i][j] = nd();",
"arr[i][j] = nd()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"nd()",
"nd",
"return arr;",
"arr",
"int n",
"n",
"int m",
"m",
"public static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}",
"log",
"{\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}",
"System.out.println(Arrays.deepToString(o))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.deepToString(o)",
"Arrays.deepToString",
"Arrays",
"o",
"Object... o",
"o",
"public class Main {\n\t\n\tprivate static PrintWriter out;\n\tpublic static void solve() {\n\t\tIn in = new In();\n\t\tint n = in.ni();\n\t\tlong d = in.nl();\n\t\td = d*d;\n\t\tlong[][] xys = in.nlm(n, 2);\n\t\t\n\t\tint count = 0;\n\t\tfor (long[] xy : xys) {\n\t\t\tif (xy[0] * xy[0] + xy[1] * xy[1] <= d)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}\n\n}",
"public class Main {\n\t\n\tprivate static PrintWriter out;\n\tpublic static void solve() {\n\t\tIn in = new In();\n\t\tint n = in.ni();\n\t\tlong d = in.nl();\n\t\td = d*d;\n\t\tlong[][] xys = in.nlm(n, 2);\n\t\t\n\t\tint count = 0;\n\t\tfor (long[] xy : xys) {\n\t\t\tif (xy[0] * xy[0] + xy[1] * xy[1] <= d)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}\n\n}",
"Main"
]
| // package beginner174;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;
public class Main {
private static PrintWriter out;
public static void solve() {
In in = new In();
int n = in.ni();
long d = in.nl();
d = d*d;
long[][] xys = in.nlm(n, 2);
int count = 0;
for (long[] xy : xys) {
if (xy[0] * xy[0] + xy[1] * xy[1] <= d)
count++;
}
System.out.println(count);
}
public static void main(String[] args) throws IOException {
// long start = System.nanoTime();
out = new PrintWriter(System.out);
solve();
out.flush();
// System.out.println("Elapsed: " + (System.nanoTime() - start) / 1000000 +
// "ns");
}
@SuppressWarnings("unused")
private static class In {
final private static int BUFFER_SIZE = 1024;
private byte[] buf;
private InputStream is;
private int buflen;
private int bufptr;
public In() {
is = System.in;
buf = new byte[BUFFER_SIZE];
buflen = bufptr = 0;
}
public In(String input) {
is = new ByteArrayInputStream(input.getBytes());
buf = new byte[BUFFER_SIZE];
buflen = bufptr = 0;
}
public int readByte() {
if (bufptr >= buflen) {
try {
buflen = is.read(buf);
} catch (IOException ioe) {
throw new InputMismatchException();
}
bufptr = 0;
}
if (buflen <= 0)
return -1;
return buf[bufptr++];
}
public boolean isSpaceChar(int c) {
return !(c >= 33 && c <= 126);
}
public int skip() {
int b;
while ((b = readByte()) != -1 && isSpaceChar(b))
;
return b;
}
/* Next character */
public char nc() {
return (char) skip();
}
/* Next double */
public double nd() {
return Double.parseDouble(ns());
}
/* Next string */
public String ns() {
final StringBuilder sb = new StringBuilder();
int b = skip();
while (!isSpaceChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
/* Next integer */
public int ni() {
boolean minus = false;
int num = 0;
int b;
while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))
;
if (b == '-') {
minus = true;
b = readByte();
}
while (b >= '0' && b <= '9') {
num = num * 10 + (b - '0');
b = readByte();
}
return minus ? -num : num;
}
/* Next long */
public long nl() {
boolean minus = false;
long num = 0;
int b;
while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))
;
if (b == '-') {
minus = true;
b = readByte();
}
while (b >= '0' && b <= '9') {
num = num * 10 + (b - '0');
b = readByte();
}
return minus ? -num : num;
}
/* Next integer 1D array */
public int[] nia(int n) {
final int[] arr = new int[n];
for (int i = 0; i < n; i++)
arr[i] = ni();
return arr;
}
/* Next long 1D array */
public long[] nla(int n) {
final long[] arr = new long[n];
for (int i = 0; i < n; i++)
arr[i] = nl();
return arr;
}
/* Next string 1D array */
public String[] nsa(int n) {
final String[] arr = new String[n];
for (int i = 0; i < n; i++)
arr[i] = ns();
return arr;
}
/* Next char 1D array */
public char[] nca(int n) {
final char[] arr = new char[n];
for (int i = 0; i < n; i++)
arr[i] = nc();
return arr;
}
/* Next double 1D array */
public double[] nda(int n) {
final double[] arr = new double[n];
for (int i = 0; i < n; i++)
arr[i] = nc();
return arr;
}
/* Next integer matrix */
public int[][] nim(int n, int m) {
final int[][] arr = new int[n][m];
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
arr[i][j] = ni();
return arr;
}
/* Next long matrix */
public long[][] nlm(int n, int m) {
final long[][] arr = new long[n][m];
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
arr[i][j] = nl();
return arr;
}
/* Next string matrix */
public String[][] nsm(int n, int m) {
final String[][] arr = new String[n][m];
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
arr[i][j] = ns();
return arr;
}
/* Next char matrix */
public char[][] ncm(int n, int m) {
final char[][] arr = new char[n][m];
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
arr[i][j] = nc();
return arr;
}
/* Next double matrix */
public double[][] ndm(int n, int m) {
final double[][] arr = new double[n][m];
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
arr[i][j] = nd();
return arr;
}
public static void log(Object... o) {
System.out.println(Arrays.deepToString(o));
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
0,
13,
20,
13,
41,
13,
0,
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,
0,
13,
20,
13,
41,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
41,
13,
41,
13,
0,
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,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
159,
5
],
[
159,
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
],
[
24,
26
],
[
8,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
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
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
8,
61
],
[
61,
62
],
[
8,
63
],
[
63,
64
],
[
63,
65
],
[
8,
67
],
[
67,
68
],
[
8,
69
],
[
69,
70
],
[
69,
71
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
8,
100
],
[
100,
101
],
[
8,
102
],
[
102,
103
],
[
8,
104
],
[
104,
105
],
[
104,
106
],
[
8,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
137,
139
],
[
119,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
8,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
6,
156
],
[
156,
157
],
[
0,
158
],
[
158,
159
],
[
158,
160
]
]
| [
"import java.util.*;\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 = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tint D = sc.nextInt();\n int A[];\n\t\tA = new int[N];\n int B[];\n\t\tB = new int[N];\n for (int i = 0; i < N; i++){\n\t\t\t A[i] = sc.nextInt();\n\t\t\t B[i] = sc.nextInt();\n }\n double X[];\n\t\tX = new double[N];\n double Y[];\n\t\tY = new double[N];\n for (int i = 0; i < N; i++){\n\t\t\t X[i] = A[i];\n\t\t\t Y[i] = B[i];\n }\n double L;\n int Nstep ;\n Nstep=0;\n for (int j = 0; j < N; j++){\n \tL=Math.sqrt((X[j]*X[j])+(Y[j]*Y[j]));\n \t if (L<=D){\n \t\tNstep=Nstep+1;\n \t}\n }\n\t\t// 出力\n\t\tSystem.out.println(Nstep);\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\t// 整数の入力\n\t\tint N = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tint D = sc.nextInt();\n int A[];\n\t\tA = new int[N];\n int B[];\n\t\tB = new int[N];\n for (int i = 0; i < N; i++){\n\t\t\t A[i] = sc.nextInt();\n\t\t\t B[i] = sc.nextInt();\n }\n double X[];\n\t\tX = new double[N];\n double Y[];\n\t\tY = new double[N];\n for (int i = 0; i < N; i++){\n\t\t\t X[i] = A[i];\n\t\t\t Y[i] = B[i];\n }\n double L;\n int Nstep ;\n Nstep=0;\n for (int j = 0; j < N; j++){\n \tL=Math.sqrt((X[j]*X[j])+(Y[j]*Y[j]));\n \t if (L<=D){\n \t\tNstep=Nstep+1;\n \t}\n }\n\t\t// 出力\n\t\tSystem.out.println(Nstep);\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 = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tint D = sc.nextInt();\n int A[];\n\t\tA = new int[N];\n int B[];\n\t\tB = new int[N];\n for (int i = 0; i < N; i++){\n\t\t\t A[i] = sc.nextInt();\n\t\t\t B[i] = sc.nextInt();\n }\n double X[];\n\t\tX = new double[N];\n double Y[];\n\t\tY = new double[N];\n for (int i = 0; i < N; i++){\n\t\t\t X[i] = A[i];\n\t\t\t Y[i] = B[i];\n }\n double L;\n int Nstep ;\n Nstep=0;\n for (int j = 0; j < N; j++){\n \tL=Math.sqrt((X[j]*X[j])+(Y[j]*Y[j]));\n \t if (L<=D){\n \t\tNstep=Nstep+1;\n \t}\n }\n\t\t// 出力\n\t\tSystem.out.println(Nstep);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint N = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tint D = sc.nextInt();\n int A[];\n\t\tA = new int[N];\n int B[];\n\t\tB = new int[N];\n for (int i = 0; i < N; i++){\n\t\t\t A[i] = sc.nextInt();\n\t\t\t B[i] = sc.nextInt();\n }\n double X[];\n\t\tX = new double[N];\n double Y[];\n\t\tY = new double[N];\n for (int i = 0; i < N; i++){\n\t\t\t X[i] = A[i];\n\t\t\t Y[i] = B[i];\n }\n double L;\n int Nstep ;\n Nstep=0;\n for (int j = 0; j < N; j++){\n \tL=Math.sqrt((X[j]*X[j])+(Y[j]*Y[j]));\n \t if (L<=D){\n \t\tNstep=Nstep+1;\n \t}\n }\n\t\t// 出力\n\t\tSystem.out.println(Nstep);\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 A[];",
"A",
"A = new int[N]",
"A",
"new int[N]",
"N",
"int B[];",
"B",
"B = new int[N]",
"B",
"new int[N]",
"N",
"for (int i = 0; i < N; i++){\n\t\t\t A[i] = sc.nextInt();\n\t\t\t B[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\t A[i] = sc.nextInt();\n\t\t\t B[i] = sc.nextInt();\n }",
"{\n\t\t\t A[i] = sc.nextInt();\n\t\t\t B[i] = sc.nextInt();\n }",
"A[i] = sc.nextInt()",
"A[i]",
"A",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"B[i] = sc.nextInt()",
"B[i]",
"B",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double X[];",
"X",
"X = new double[N]",
"X",
"new double[N]",
"N",
"double Y[];",
"Y",
"Y = new double[N]",
"Y",
"new double[N]",
"N",
"for (int i = 0; i < N; i++){\n\t\t\t X[i] = A[i];\n\t\t\t Y[i] = B[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\t X[i] = A[i];\n\t\t\t Y[i] = B[i];\n }",
"{\n\t\t\t X[i] = A[i];\n\t\t\t Y[i] = B[i];\n }",
"X[i] = A[i]",
"X[i]",
"X",
"i",
"A[i]",
"A",
"i",
"Y[i] = B[i]",
"Y[i]",
"Y",
"i",
"B[i]",
"B",
"i",
"double L;",
"L",
"int Nstep ;",
"Nstep",
"Nstep=0",
"Nstep",
"0",
"for (int j = 0; j < N; j++){\n \tL=Math.sqrt((X[j]*X[j])+(Y[j]*Y[j]));\n \t if (L<=D){\n \t\tNstep=Nstep+1;\n \t}\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < N",
"j",
"N",
"j++",
"j++",
"j",
"{\n \tL=Math.sqrt((X[j]*X[j])+(Y[j]*Y[j]));\n \t if (L<=D){\n \t\tNstep=Nstep+1;\n \t}\n }",
"{\n \tL=Math.sqrt((X[j]*X[j])+(Y[j]*Y[j]));\n \t if (L<=D){\n \t\tNstep=Nstep+1;\n \t}\n }",
"L=Math.sqrt((X[j]*X[j])+(Y[j]*Y[j]))",
"L",
"Math.sqrt((X[j]*X[j])+(Y[j]*Y[j]))",
"Math.sqrt",
"Math",
"(X[j]*X[j])+(Y[j]*Y[j])",
"(X[j]*X[j])",
"X[j]",
"X",
"j",
"X[j]",
"X",
"j",
"(Y[j]*Y[j])",
"Y[j]",
"Y",
"j",
"Y[j]",
"Y",
"j",
"if (L<=D){\n \t\tNstep=Nstep+1;\n \t}",
"L<=D",
"L",
"D",
"{\n \t\tNstep=Nstep+1;\n \t}",
"Nstep=Nstep+1",
"Nstep",
"Nstep+1",
"Nstep",
"1",
"System.out.println(Nstep)",
"System.out.println",
"System.out",
"System",
"System.out",
"Nstep",
"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 = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tint D = sc.nextInt();\n int A[];\n\t\tA = new int[N];\n int B[];\n\t\tB = new int[N];\n for (int i = 0; i < N; i++){\n\t\t\t A[i] = sc.nextInt();\n\t\t\t B[i] = sc.nextInt();\n }\n double X[];\n\t\tX = new double[N];\n double Y[];\n\t\tY = new double[N];\n for (int i = 0; i < N; i++){\n\t\t\t X[i] = A[i];\n\t\t\t Y[i] = B[i];\n }\n double L;\n int Nstep ;\n Nstep=0;\n for (int j = 0; j < N; j++){\n \tL=Math.sqrt((X[j]*X[j])+(Y[j]*Y[j]));\n \t if (L<=D){\n \t\tNstep=Nstep+1;\n \t}\n }\n\t\t// 出力\n\t\tSystem.out.println(Nstep);\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 = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tint D = sc.nextInt();\n int A[];\n\t\tA = new int[N];\n int B[];\n\t\tB = new int[N];\n for (int i = 0; i < N; i++){\n\t\t\t A[i] = sc.nextInt();\n\t\t\t B[i] = sc.nextInt();\n }\n double X[];\n\t\tX = new double[N];\n double Y[];\n\t\tY = new double[N];\n for (int i = 0; i < N; i++){\n\t\t\t X[i] = A[i];\n\t\t\t Y[i] = B[i];\n }\n double L;\n int Nstep ;\n Nstep=0;\n for (int j = 0; j < N; j++){\n \tL=Math.sqrt((X[j]*X[j])+(Y[j]*Y[j]));\n \t if (L<=D){\n \t\tNstep=Nstep+1;\n \t}\n }\n\t\t// 出力\n\t\tSystem.out.println(Nstep);\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();
// スペース区切りの整数の入力
int D = sc.nextInt();
int A[];
A = new int[N];
int B[];
B = new int[N];
for (int i = 0; i < N; i++){
A[i] = sc.nextInt();
B[i] = sc.nextInt();
}
double X[];
X = new double[N];
double Y[];
Y = new double[N];
for (int i = 0; i < N; i++){
X[i] = A[i];
Y[i] = B[i];
}
double L;
int Nstep ;
Nstep=0;
for (int j = 0; j < N; j++){
L=Math.sqrt((X[j]*X[j])+(Y[j]*Y[j]));
if (L<=D){
Nstep=Nstep+1;
}
}
// 出力
System.out.println(Nstep);
}
}
|
[
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,
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,
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
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
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
],
[
74,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
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;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint N = sc.nextInt();//点の数\n\t\tint D = sc.nextInt();//距離\n\t\t//座標の取得\n\t\tint[] x =new int[N];\n\t\tint[] y =new int[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tx[i]=sc.nextInt();\n\t\t\ty[i]=sc.nextInt();\n\t\t}\n\t\t//計算\n\t\tint check=0;\n\t\tdouble dis;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);\n\t\t\tif(dis<=(double)D) {\n\t\t\t\tcheck++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(check);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint N = sc.nextInt();//点の数\n\t\tint D = sc.nextInt();//距離\n\t\t//座標の取得\n\t\tint[] x =new int[N];\n\t\tint[] y =new int[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tx[i]=sc.nextInt();\n\t\t\ty[i]=sc.nextInt();\n\t\t}\n\t\t//計算\n\t\tint check=0;\n\t\tdouble dis;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);\n\t\t\tif(dis<=(double)D) {\n\t\t\t\tcheck++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(check);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint N = sc.nextInt();//点の数\n\t\tint D = sc.nextInt();//距離\n\t\t//座標の取得\n\t\tint[] x =new int[N];\n\t\tint[] y =new int[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tx[i]=sc.nextInt();\n\t\t\ty[i]=sc.nextInt();\n\t\t}\n\t\t//計算\n\t\tint check=0;\n\t\tdouble dis;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);\n\t\t\tif(dis<=(double)D) {\n\t\t\t\tcheck++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(check);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint N = sc.nextInt();//点の数\n\t\tint D = sc.nextInt();//距離\n\t\t//座標の取得\n\t\tint[] x =new int[N];\n\t\tint[] y =new int[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tx[i]=sc.nextInt();\n\t\t\ty[i]=sc.nextInt();\n\t\t}\n\t\t//計算\n\t\tint check=0;\n\t\tdouble dis;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);\n\t\t\tif(dis<=(double)D) {\n\t\t\t\tcheck++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(check);\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[] 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\t\t\tx[i]=sc.nextInt();\n\t\t\ty[i]=sc.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tx[i]=sc.nextInt();\n\t\t\ty[i]=sc.nextInt();\n\t\t}",
"{\n\t\t\tx[i]=sc.nextInt();\n\t\t\ty[i]=sc.nextInt();\n\t\t}",
"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 check=0;",
"check",
"0",
"double dis;",
"dis",
"for(int i=0;i<N;i++) {\n\t\t\tdis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);\n\t\t\tif(dis<=(double)D) {\n\t\t\t\tcheck++;\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\tdis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);\n\t\t\tif(dis<=(double)D) {\n\t\t\t\tcheck++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tdis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);\n\t\t\tif(dis<=(double)D) {\n\t\t\t\tcheck++;\n\t\t\t}\n\t\t}",
"dis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i])",
"dis",
"Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i])",
"Math.sqrt",
"Math",
"(double)x[i]*x[i]+(double)y[i]*y[i]",
"(double)x[i]*x[i]",
"(double)x[i]",
"x",
"i",
"x[i]",
"x",
"i",
"(double)y[i]*y[i]",
"(double)y[i]",
"y",
"i",
"y[i]",
"y",
"i",
"if(dis<=(double)D) {\n\t\t\t\tcheck++;\n\t\t\t}",
"dis<=(double)D",
"dis",
"(double)D",
"{\n\t\t\t\tcheck++;\n\t\t\t}",
"check++",
"check",
"System.out.println(check)",
"System.out.println",
"System.out",
"System",
"System.out",
"check",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint N = sc.nextInt();//点の数\n\t\tint D = sc.nextInt();//距離\n\t\t//座標の取得\n\t\tint[] x =new int[N];\n\t\tint[] y =new int[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tx[i]=sc.nextInt();\n\t\t\ty[i]=sc.nextInt();\n\t\t}\n\t\t//計算\n\t\tint check=0;\n\t\tdouble dis;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);\n\t\t\tif(dis<=(double)D) {\n\t\t\t\tcheck++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(check);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint N = sc.nextInt();//点の数\n\t\tint D = sc.nextInt();//距離\n\t\t//座標の取得\n\t\tint[] x =new int[N];\n\t\tint[] y =new int[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tx[i]=sc.nextInt();\n\t\t\ty[i]=sc.nextInt();\n\t\t}\n\t\t//計算\n\t\tint check=0;\n\t\tdouble dis;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);\n\t\t\tif(dis<=(double)D) {\n\t\t\t\tcheck++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(check);\n\t}\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 check=0;
double dis;
for(int i=0;i<N;i++) {
dis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);
if(dis<=(double)D) {
check++;
}
}
System.out.println(check);
}
}
|
[
7,
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,
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
124,
17
],
[
124,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
38
],
[
38,
39
],
[
38,
40
],
[
20,
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
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
20,
69
],
[
69,
70
],
[
69,
71
],
[
20,
72
],
[
72,
73
],
[
72,
74
],
[
20,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
75,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
94,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
87,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
20,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
18,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
]
| [
"//package atcoder;\n\nimport java.io.BufferedWriter;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String [] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint x[] = new int[N];\n\t\tint y[] = new int[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\tint count = 0;\n\n\t\t//System.out.println(x[1]);\n\t\t//System.out.println(y[1]);\n\t\tdouble kyori = 0;\n\t\tfor(int j=0;j<N;j++) {\n\t\t\tkyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));\n\t\t\t//System.out.println(kyori);\n\t\t\tif(kyori<=D) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t}\n}",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.FileWriter;",
"FileWriter",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"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\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint x[] = new int[N];\n\t\tint y[] = new int[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\tint count = 0;\n\n\t\t//System.out.println(x[1]);\n\t\t//System.out.println(y[1]);\n\t\tdouble kyori = 0;\n\t\tfor(int j=0;j<N;j++) {\n\t\t\tkyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));\n\t\t\t//System.out.println(kyori);\n\t\t\tif(kyori<=D) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\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\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint x[] = new int[N];\n\t\tint y[] = new int[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\tint count = 0;\n\n\t\t//System.out.println(x[1]);\n\t\t//System.out.println(y[1]);\n\t\tdouble kyori = 0;\n\t\tfor(int j=0;j<N;j++) {\n\t\t\tkyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));\n\t\t\t//System.out.println(kyori);\n\t\t\tif(kyori<=D) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint x[] = new int[N];\n\t\tint y[] = new int[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\tint count = 0;\n\n\t\t//System.out.println(x[1]);\n\t\t//System.out.println(y[1]);\n\t\tdouble kyori = 0;\n\t\tfor(int j=0;j<N;j++) {\n\t\t\tkyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));\n\t\t\t//System.out.println(kyori);\n\t\t\tif(kyori<=D) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\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 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\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}",
"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 count = 0;",
"count",
"0",
"double kyori = 0;",
"kyori",
"0",
"for(int j=0;j<N;j++) {\n\t\t\tkyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));\n\t\t\t//System.out.println(kyori);\n\t\t\tif(kyori<=D) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<N",
"j",
"N",
"j++",
"j++",
"j",
"{\n\t\t\tkyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));\n\t\t\t//System.out.println(kyori);\n\t\t\tif(kyori<=D) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tkyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));\n\t\t\t//System.out.println(kyori);\n\t\t\tif(kyori<=D) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"kyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)))",
"kyori",
"Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)))",
"Math.sqrt",
"Math",
"(Math.pow(x[j], 2)+Math.pow(y[j], 2))",
"Math.pow(x[j], 2)",
"Math.pow",
"Math",
"x[j]",
"x",
"j",
"2",
"Math.pow(y[j], 2)",
"Math.pow",
"Math",
"y[j]",
"y",
"j",
"2",
"if(kyori<=D) {\n\t\t\t\tcount ++;\n\t\t\t}",
"kyori<=D",
"kyori",
"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\tpublic static void main(String [] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint x[] = new int[N];\n\t\tint y[] = new int[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\tint count = 0;\n\n\t\t//System.out.println(x[1]);\n\t\t//System.out.println(y[1]);\n\t\tdouble kyori = 0;\n\t\tfor(int j=0;j<N;j++) {\n\t\t\tkyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));\n\t\t\t//System.out.println(kyori);\n\t\t\tif(kyori<=D) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\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\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint x[] = new int[N];\n\t\tint y[] = new int[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\ty[i] = sc.nextInt();\n\t\t}\n\t\tint count = 0;\n\n\t\t//System.out.println(x[1]);\n\t\t//System.out.println(y[1]);\n\t\tdouble kyori = 0;\n\t\tfor(int j=0;j<N;j++) {\n\t\t\tkyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));\n\t\t\t//System.out.println(kyori);\n\t\t\tif(kyori<=D) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t}\n}",
"Main"
]
| //package atcoder;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
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 count = 0;
//System.out.println(x[1]);
//System.out.println(y[1]);
double kyori = 0;
for(int j=0;j<N;j++) {
kyori = Math.sqrt((Math.pow(x[j], 2)+Math.pow(y[j], 2)));
//System.out.println(kyori);
if(kyori<=D) {
count ++;
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
4,
18,
13,
0,
18,
36,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
0,
18,
36,
13,
20,
13,
0,
18,
36,
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,
18,
13,
13,
17,
41,
13,
4,
18,
13,
18,
13,
13,
17,
41,
13,
4,
18,
13,
2,
13,
13,
14,
2,
13,
13,
30,
40,
13,
29,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
152,
5
],
[
152,
6
],
[
6,
7
],
[
152,
8
],
[
8,
9
],
[
152,
10
],
[
10,
11
],
[
152,
12
],
[
12,
13
],
[
152,
14
],
[
14,
15
],
[
152,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
22,
24
],
[
18,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
18,
31
],
[
31,
32
],
[
32,
33
],
[
16,
34
],
[
34,
35
],
[
152,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
38,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
36,
58
],
[
58,
59
],
[
152,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
62,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
62,
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
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
90,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
110,
112
],
[
107,
113
],
[
90,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
119,
121
],
[
116,
122
],
[
90,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
128,
129
],
[
128,
130
],
[
90,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
136,
137
],
[
62,
138
],
[
138,
139
],
[
152,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
140,
149
],
[
149,
150
],
[
0,
151
],
[
151,
152
],
[
151,
153
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n int N;\n int D;\n int[] X;\n int [] Y;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.N = sc.nextInt();\n this.D = sc.nextInt();\n }\n \n //解答処理\n private int solve() {\n int count = 0;\n this.X =new int[N];\n this.Y = new int[N];\n \n for (int i=0; i<N; i++) {\n \tX[i] = sc.nextInt();\n \tY[i] = sc.nextInt();\n \tdouble p = Math.pow(X[i], 2);\n \tdouble q = Math.pow(Y[i], 2);\n \tdouble distance = Math.sqrt(p + q);\n \tif (distance <= D) {\n \t\tcount++;\n \t}\n }\n \n return count;\n }\n \n //出力\n public void show(int answer) {\n System.out.println(answer);\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n int N;\n int D;\n int[] X;\n int [] Y;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.N = sc.nextInt();\n this.D = sc.nextInt();\n }\n \n //解答処理\n private int solve() {\n int count = 0;\n this.X =new int[N];\n this.Y = new int[N];\n \n for (int i=0; i<N; i++) {\n \tX[i] = sc.nextInt();\n \tY[i] = sc.nextInt();\n \tdouble p = Math.pow(X[i], 2);\n \tdouble q = Math.pow(Y[i], 2);\n \tdouble distance = Math.sqrt(p + q);\n \tif (distance <= D) {\n \t\tcount++;\n \t}\n }\n \n return count;\n }\n \n //出力\n public void show(int answer) {\n System.out.println(answer);\n }\n\n}",
"Main",
"//フィールド\n Scanner sc;",
"sc",
"int N;",
"N",
"int D;",
"D",
"int[] X;",
"X",
"int [] Y;",
"Y",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Main m = new Main(sc);",
"m",
"new Main(sc)",
"m.show(m.solve())",
"m.show",
"m",
"m.solve()",
"m.solve",
"m",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"//入力\n Main(Scanner sc) {\n this.sc = sc;\n this.N = sc.nextInt();\n this.D = sc.nextInt();\n }",
"Main",
"{\n this.sc = sc;\n this.N = sc.nextInt();\n this.D = sc.nextInt();\n }",
"this.sc = sc",
"this.sc",
"this",
"this.sc",
"sc",
"this.N = sc.nextInt()",
"this.N",
"this",
"this.N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"this.D = sc.nextInt()",
"this.D",
"this",
"this.D",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Scanner sc",
"sc",
"//解答処理\n private int solve() {\n int count = 0;\n this.X =new int[N];\n this.Y = new int[N];\n \n for (int i=0; i<N; i++) {\n \tX[i] = sc.nextInt();\n \tY[i] = sc.nextInt();\n \tdouble p = Math.pow(X[i], 2);\n \tdouble q = Math.pow(Y[i], 2);\n \tdouble distance = Math.sqrt(p + q);\n \tif (distance <= D) {\n \t\tcount++;\n \t}\n }\n \n return count;\n }",
"solve",
"{\n int count = 0;\n this.X =new int[N];\n this.Y = new int[N];\n \n for (int i=0; i<N; i++) {\n \tX[i] = sc.nextInt();\n \tY[i] = sc.nextInt();\n \tdouble p = Math.pow(X[i], 2);\n \tdouble q = Math.pow(Y[i], 2);\n \tdouble distance = Math.sqrt(p + q);\n \tif (distance <= D) {\n \t\tcount++;\n \t}\n }\n \n return count;\n }",
"int count = 0;",
"count",
"0",
"this.X =new int[N]",
"this.X",
"this",
"this.X",
"new int[N]",
"N",
"this.Y = new int[N]",
"this.Y",
"this",
"this.Y",
"new int[N]",
"N",
"for (int i=0; i<N; i++) {\n \tX[i] = sc.nextInt();\n \tY[i] = sc.nextInt();\n \tdouble p = Math.pow(X[i], 2);\n \tdouble q = Math.pow(Y[i], 2);\n \tdouble distance = Math.sqrt(p + q);\n \tif (distance <= D) {\n \t\tcount++;\n \t}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n \tX[i] = sc.nextInt();\n \tY[i] = sc.nextInt();\n \tdouble p = Math.pow(X[i], 2);\n \tdouble q = Math.pow(Y[i], 2);\n \tdouble distance = Math.sqrt(p + q);\n \tif (distance <= D) {\n \t\tcount++;\n \t}\n }",
"{\n \tX[i] = sc.nextInt();\n \tY[i] = sc.nextInt();\n \tdouble p = Math.pow(X[i], 2);\n \tdouble q = Math.pow(Y[i], 2);\n \tdouble distance = Math.sqrt(p + q);\n \tif (distance <= D) {\n \t\tcount++;\n \t}\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",
"double p = Math.pow(X[i], 2);",
"p",
"Math.pow(X[i], 2)",
"Math.pow",
"Math",
"X[i]",
"X",
"i",
"2",
"double q = Math.pow(Y[i], 2);",
"q",
"Math.pow(Y[i], 2)",
"Math.pow",
"Math",
"Y[i]",
"Y",
"i",
"2",
"double distance = Math.sqrt(p + q);",
"distance",
"Math.sqrt(p + q)",
"Math.sqrt",
"Math",
"p + q",
"p",
"q",
"if (distance <= D) {\n \t\tcount++;\n \t}",
"distance <= D",
"distance",
"D",
"{\n \t\tcount++;\n \t}",
"count++",
"count",
"return count;",
"count",
"//出力\n public void show(int answer) {\n System.out.println(answer);\n }",
"show",
"{\n System.out.println(answer);\n }",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"int answer",
"answer",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n int N;\n int D;\n int[] X;\n int [] Y;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.N = sc.nextInt();\n this.D = sc.nextInt();\n }\n \n //解答処理\n private int solve() {\n int count = 0;\n this.X =new int[N];\n this.Y = new int[N];\n \n for (int i=0; i<N; i++) {\n \tX[i] = sc.nextInt();\n \tY[i] = sc.nextInt();\n \tdouble p = Math.pow(X[i], 2);\n \tdouble q = Math.pow(Y[i], 2);\n \tdouble distance = Math.sqrt(p + q);\n \tif (distance <= D) {\n \t\tcount++;\n \t}\n }\n \n return count;\n }\n \n //出力\n public void show(int answer) {\n System.out.println(answer);\n }\n\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n int N;\n int D;\n int[] X;\n int [] Y;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.N = sc.nextInt();\n this.D = sc.nextInt();\n }\n \n //解答処理\n private int solve() {\n int count = 0;\n this.X =new int[N];\n this.Y = new int[N];\n \n for (int i=0; i<N; i++) {\n \tX[i] = sc.nextInt();\n \tY[i] = sc.nextInt();\n \tdouble p = Math.pow(X[i], 2);\n \tdouble q = Math.pow(Y[i], 2);\n \tdouble distance = Math.sqrt(p + q);\n \tif (distance <= D) {\n \t\tcount++;\n \t}\n }\n \n return count;\n }\n \n //出力\n public void show(int answer) {\n System.out.println(answer);\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
Main m = new Main(sc);
m.show(m.solve());
sc.close();
}
//フィールド
Scanner sc;
int N;
int D;
int[] X;
int [] Y;
//入力
Main(Scanner sc) {
this.sc = sc;
this.N = sc.nextInt();
this.D = sc.nextInt();
}
//解答処理
private int solve() {
int count = 0;
this.X =new int[N];
this.Y = new int[N];
for (int i=0; i<N; i++) {
X[i] = sc.nextInt();
Y[i] = sc.nextInt();
double p = Math.pow(X[i], 2);
double q = Math.pow(Y[i], 2);
double distance = Math.sqrt(p + q);
if (distance <= D) {
count++;
}
}
return count;
}
//出力
public void show(int answer) {
System.out.println(answer);
}
}
|
[
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,
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,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
0,
13,
4,
18,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
91,
8
],
[
91,
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
],
[
11,
27
],
[
27,
28
],
[
11,
29
],
[
29,
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
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
46,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
46,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
46,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
11,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
9,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
]
| [
"import java.io.*;\nimport java.util.*;\npublic class Main{\n public static void main(String []args) throws Exception {\n // BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Scanner sc = new Scanner(System.in);\n // int n = Integer.parseInt(br.readLine());\n // long [][] dp = new long[n+1][n+1];\n // ArrayList<String> list = new ArrayList<>();\n int n = sc.nextInt();\n double d = sc.nextDouble();\n long x;\n long y ;\n double dis;\n int ans = 0;\n for(int i = 0 ; i < n ; i++){\n x = sc.nextInt();\n y = sc.nextInt();\n x = x*x;\n y = y*y;\n dis = Math.sqrt(x+y);\n if(dis <= d){\n ans++;\n }\n }\n System.out.println(ans);\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 br = new BufferedReader(new InputStreamReader(System.in));\n Scanner sc = new Scanner(System.in);\n // int n = Integer.parseInt(br.readLine());\n // long [][] dp = new long[n+1][n+1];\n // ArrayList<String> list = new ArrayList<>();\n int n = sc.nextInt();\n double d = sc.nextDouble();\n long x;\n long y ;\n double dis;\n int ans = 0;\n for(int i = 0 ; i < n ; i++){\n x = sc.nextInt();\n y = sc.nextInt();\n x = x*x;\n y = y*y;\n dis = Math.sqrt(x+y);\n if(dis <= d){\n ans++;\n }\n }\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 Scanner sc = new Scanner(System.in);\n // int n = Integer.parseInt(br.readLine());\n // long [][] dp = new long[n+1][n+1];\n // ArrayList<String> list = new ArrayList<>();\n int n = sc.nextInt();\n double d = sc.nextDouble();\n long x;\n long y ;\n double dis;\n int ans = 0;\n for(int i = 0 ; i < n ; i++){\n x = sc.nextInt();\n y = sc.nextInt();\n x = x*x;\n y = y*y;\n dis = Math.sqrt(x+y);\n if(dis <= d){\n ans++;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n // BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Scanner sc = new Scanner(System.in);\n // int n = Integer.parseInt(br.readLine());\n // long [][] dp = new long[n+1][n+1];\n // ArrayList<String> list = new ArrayList<>();\n int n = sc.nextInt();\n double d = sc.nextDouble();\n long x;\n long y ;\n double dis;\n int ans = 0;\n for(int i = 0 ; i < n ; i++){\n x = sc.nextInt();\n y = sc.nextInt();\n x = x*x;\n y = y*y;\n dis = Math.sqrt(x+y);\n if(dis <= d){\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",
"double d = sc.nextDouble();",
"d",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"long x;",
"x",
"long y ;",
"y",
"double dis;",
"dis",
"int ans = 0;",
"ans",
"0",
"for(int i = 0 ; i < n ; i++){\n x = sc.nextInt();\n y = sc.nextInt();\n x = x*x;\n y = y*y;\n dis = Math.sqrt(x+y);\n if(dis <= d){\n ans++;\n }\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n x = sc.nextInt();\n y = sc.nextInt();\n x = x*x;\n y = y*y;\n dis = Math.sqrt(x+y);\n if(dis <= d){\n ans++;\n }\n }",
"{\n x = sc.nextInt();\n y = sc.nextInt();\n x = x*x;\n y = y*y;\n dis = Math.sqrt(x+y);\n if(dis <= d){\n ans++;\n }\n }",
"x = sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"y = sc.nextInt()",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x = x*x",
"x",
"x*x",
"x",
"x",
"y = y*y",
"y",
"y*y",
"y",
"y",
"dis = Math.sqrt(x+y)",
"dis",
"Math.sqrt(x+y)",
"Math.sqrt",
"Math",
"x+y",
"x",
"y",
"if(dis <= d){\n ans++;\n }",
"dis <= d",
"dis",
"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 public static void main(String []args) throws Exception {\n // BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Scanner sc = new Scanner(System.in);\n // int n = Integer.parseInt(br.readLine());\n // long [][] dp = new long[n+1][n+1];\n // ArrayList<String> list = new ArrayList<>();\n int n = sc.nextInt();\n double d = sc.nextDouble();\n long x;\n long y ;\n double dis;\n int ans = 0;\n for(int i = 0 ; i < n ; i++){\n x = sc.nextInt();\n y = sc.nextInt();\n x = x*x;\n y = y*y;\n dis = Math.sqrt(x+y);\n if(dis <= d){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"public class Main{\n public static void main(String []args) throws Exception {\n // BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Scanner sc = new Scanner(System.in);\n // int n = Integer.parseInt(br.readLine());\n // long [][] dp = new long[n+1][n+1];\n // ArrayList<String> list = new ArrayList<>();\n int n = sc.nextInt();\n double d = sc.nextDouble();\n long x;\n long y ;\n double dis;\n int ans = 0;\n for(int i = 0 ; i < n ; i++){\n x = sc.nextInt();\n y = sc.nextInt();\n x = x*x;\n y = y*y;\n dis = Math.sqrt(x+y);\n if(dis <= d){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main{
public static void main(String []args) throws Exception {
// BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Scanner sc = new Scanner(System.in);
// int n = Integer.parseInt(br.readLine());
// long [][] dp = new long[n+1][n+1];
// ArrayList<String> list = new ArrayList<>();
int n = sc.nextInt();
double d = sc.nextDouble();
long x;
long y ;
double dis;
int ans = 0;
for(int i = 0 ; i < n ; i++){
x = sc.nextInt();
y = sc.nextInt();
x = x*x;
y = y*y;
dis = Math.sqrt(x+y);
if(dis <= d){
ans++;
}
}
System.out.println(ans);
}
} |
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
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,
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
],
[
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
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
77,
78
],
[
78,
79
],
[
79,
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
],
[
79,
102
],
[
78,
103
],
[
103,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
6,
111
],
[
111,
112
]
]
| [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n \tScanner scanner = new Scanner(System.in);\n int count=0;\n\tint num1= scanner.nextInt();\n int num2= scanner.nextInt();\n \n int[][] a = new int[num1][2];\n for(int i=0;i<num1;i++) for(int k=0;k<2;k++) a[i][k] = scanner.nextInt();\n \n scanner.close();\n \n for(int i=0;i<num1;i++) if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++;\n System.out.println(count);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n \tScanner scanner = new Scanner(System.in);\n int count=0;\n\tint num1= scanner.nextInt();\n int num2= scanner.nextInt();\n \n int[][] a = new int[num1][2];\n for(int i=0;i<num1;i++) for(int k=0;k<2;k++) a[i][k] = scanner.nextInt();\n \n scanner.close();\n \n for(int i=0;i<num1;i++) if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++;\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner scanner = new Scanner(System.in);\n int count=0;\n\tint num1= scanner.nextInt();\n int num2= scanner.nextInt();\n \n int[][] a = new int[num1][2];\n for(int i=0;i<num1;i++) for(int k=0;k<2;k++) a[i][k] = scanner.nextInt();\n \n scanner.close();\n \n for(int i=0;i<num1;i++) if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++;\n System.out.println(count);\n }",
"main",
"{\n \tScanner scanner = new Scanner(System.in);\n int count=0;\n\tint num1= scanner.nextInt();\n int num2= scanner.nextInt();\n \n int[][] a = new int[num1][2];\n for(int i=0;i<num1;i++) for(int k=0;k<2;k++) a[i][k] = scanner.nextInt();\n \n scanner.close();\n \n for(int i=0;i<num1;i++) if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++;\n System.out.println(count);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int count=0;",
"count",
"0",
"int num1= scanner.nextInt();",
"num1",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int num2= scanner.nextInt();",
"num2",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[][] a = new int[num1][2];",
"a",
"new int[num1][2]",
"num1",
"2",
"for(int i=0;i<num1;i++) for(int k=0;k<2;k++) a[i][k] = scanner.nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num1",
"i",
"num1",
"i++",
"i++",
"i",
"for(int k=0;k<2;k++) a[i][k] = scanner.nextInt();",
"for(int k=0;k<2;k++) a[i][k] = scanner.nextInt();",
"int k=0;",
"int k=0;",
"k",
"0",
"k<2",
"k",
"2",
"k++",
"k++",
"k",
"a[i][k] = scanner.nextInt();",
"a[i][k] = scanner.nextInt()",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"scanner.close()",
"scanner.close",
"scanner",
"for(int i=0;i<num1;i++) if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num1",
"i",
"num1",
"i++",
"i++",
"i",
"if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++;",
"if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++;",
"Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2",
"Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) )",
"Math.sqrt",
"Math",
"Math.pow(a[i][0],2) + Math.pow(a[i][1],2)",
"Math.pow(a[i][0],2)",
"Math.pow",
"Math",
"a[i][0]",
"a[i]",
"a",
"i",
"0",
"2",
"Math.pow(a[i][1],2)",
"Math.pow",
"Math",
"a[i][1]",
"a[i]",
"a",
"i",
"1",
"2",
"num2",
"count++",
"count",
"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 scanner = new Scanner(System.in);
int count=0;
int num1= scanner.nextInt();
int num2= scanner.nextInt();
int[][] a = new int[num1][2];
for(int i=0;i<num1;i++) for(int k=0;k<2;k++) a[i][k] = scanner.nextInt();
scanner.close();
for(int i=0;i<num1;i++) if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) 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,
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
],
[
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
],
[
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
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
82,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
89,
95
],
[
75,
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 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[] Xz = new int[N];\n int[] Yz = new int[N];\n for (int i = 0; i < N; i++){\n Xz[i] = sc.nextInt();\n Yz[i] = sc.nextInt();\n }\n double ans = 0;\n int cnt = 0;\n for (int i = 0; i < N; i++){\n ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));\n if (ans <= D){\n cnt++;\n }\n }\n System.out.println(cnt);\n\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 int D = sc.nextInt();\n int[] Xz = new int[N];\n int[] Yz = new int[N];\n for (int i = 0; i < N; i++){\n Xz[i] = sc.nextInt();\n Yz[i] = sc.nextInt();\n }\n double ans = 0;\n int cnt = 0;\n for (int i = 0; i < N; i++){\n ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));\n if (ans <= 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[] Xz = new int[N];\n int[] Yz = new int[N];\n for (int i = 0; i < N; i++){\n Xz[i] = sc.nextInt();\n Yz[i] = sc.nextInt();\n }\n double ans = 0;\n int cnt = 0;\n for (int i = 0; i < N; i++){\n ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));\n if (ans <= D){\n cnt++;\n }\n }\n System.out.println(cnt);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int D = sc.nextInt();\n int[] Xz = new int[N];\n int[] Yz = new int[N];\n for (int i = 0; i < N; i++){\n Xz[i] = sc.nextInt();\n Yz[i] = sc.nextInt();\n }\n double ans = 0;\n int cnt = 0;\n for (int i = 0; i < N; i++){\n ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));\n if (ans <= D){\n cnt++;\n }\n }\n System.out.println(cnt);\n\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[] Xz = new int[N];",
"Xz",
"new int[N]",
"N",
"int[] Yz = new int[N];",
"Yz",
"new int[N]",
"N",
"for (int i = 0; i < N; i++){\n Xz[i] = sc.nextInt();\n Yz[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n Xz[i] = sc.nextInt();\n Yz[i] = sc.nextInt();\n }",
"{\n Xz[i] = sc.nextInt();\n Yz[i] = sc.nextInt();\n }",
"Xz[i] = sc.nextInt()",
"Xz[i]",
"Xz",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Yz[i] = sc.nextInt()",
"Yz[i]",
"Yz",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double ans = 0;",
"ans",
"0",
"int cnt = 0;",
"cnt",
"0",
"for (int i = 0; i < N; i++){\n ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));\n if (ans <= D){\n cnt++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));\n if (ans <= D){\n cnt++;\n }\n }",
"{\n ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));\n if (ans <= D){\n cnt++;\n }\n }",
"ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2))",
"ans",
"Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2))",
"Math.sqrt",
"Math",
"Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2)",
"Math.pow(Xz[i], 2)",
"Math.pow",
"Math",
"Xz[i]",
"Xz",
"i",
"2",
"Math.pow(Yz[i], 2)",
"Math.pow",
"Math",
"Yz[i]",
"Yz",
"i",
"2",
"if (ans <= D){\n cnt++;\n }",
"ans <= D",
"ans",
"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 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[] Xz = new int[N];\n int[] Yz = new int[N];\n for (int i = 0; i < N; i++){\n Xz[i] = sc.nextInt();\n Yz[i] = sc.nextInt();\n }\n double ans = 0;\n int cnt = 0;\n for (int i = 0; i < N; i++){\n ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));\n if (ans <= D){\n cnt++;\n }\n }\n System.out.println(cnt);\n\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 int D = sc.nextInt();\n int[] Xz = new int[N];\n int[] Yz = new int[N];\n for (int i = 0; i < N; i++){\n Xz[i] = sc.nextInt();\n Yz[i] = sc.nextInt();\n }\n double ans = 0;\n int cnt = 0;\n for (int i = 0; i < N; i++){\n ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));\n if (ans <= D){\n cnt++;\n }\n }\n System.out.println(cnt);\n\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[] Xz = new int[N];
int[] Yz = new int[N];
for (int i = 0; i < N; i++){
Xz[i] = sc.nextInt();
Yz[i] = sc.nextInt();
}
double ans = 0;
int cnt = 0;
for (int i = 0; i < N; i++){
ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));
if (ans <= 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,
41,
13,
17,
42,
2,
40,
13,
17,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
14,
2,
2,
13,
13,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
40,
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
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
41,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
56,
76
],
[
76,
77
],
[
41,
78
],
[
78,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
6,
86
],
[
86,
87
]
]
| [
"import java.util.Scanner;\nclass Main\n{\npublic static void main(String args[])\n{\nScanner sc=new Scanner(System.in);\nlong n=sc.nextLong();\nlong d=sc.nextLong();\nint cnt=0;\n\n//long x[],y[]; x=new long[n]; y=new long[n];\nlong[] x=new long[(int)n];\nlong[] y=new long[(int)n];\nint i=0;\n\nwhile((n--)>0){\nx[i]=sc.nextLong();\ny[i]=sc.nextLong();\nif(d*d>=(x[i]*x[i]+y[i]*y[i]))\ncnt++;\ni++;\n}\nSystem.out.println(cnt);\n}\n\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main\n{\npublic static void main(String args[])\n{\nScanner sc=new Scanner(System.in);\nlong n=sc.nextLong();\nlong d=sc.nextLong();\nint cnt=0;\n\n//long x[],y[]; x=new long[n]; y=new long[n];\nlong[] x=new long[(int)n];\nlong[] y=new long[(int)n];\nint i=0;\n\nwhile((n--)>0){\nx[i]=sc.nextLong();\ny[i]=sc.nextLong();\nif(d*d>=(x[i]*x[i]+y[i]*y[i]))\ncnt++;\ni++;\n}\nSystem.out.println(cnt);\n}\n\n\n}",
"Main",
"public static void main(String args[])\n{\nScanner sc=new Scanner(System.in);\nlong n=sc.nextLong();\nlong d=sc.nextLong();\nint cnt=0;\n\n//long x[],y[]; x=new long[n]; y=new long[n];\nlong[] x=new long[(int)n];\nlong[] y=new long[(int)n];\nint i=0;\n\nwhile((n--)>0){\nx[i]=sc.nextLong();\ny[i]=sc.nextLong();\nif(d*d>=(x[i]*x[i]+y[i]*y[i]))\ncnt++;\ni++;\n}\nSystem.out.println(cnt);\n}",
"main",
"{\nScanner sc=new Scanner(System.in);\nlong n=sc.nextLong();\nlong d=sc.nextLong();\nint cnt=0;\n\n//long x[],y[]; x=new long[n]; y=new long[n];\nlong[] x=new long[(int)n];\nlong[] y=new long[(int)n];\nint i=0;\n\nwhile((n--)>0){\nx[i]=sc.nextLong();\ny[i]=sc.nextLong();\nif(d*d>=(x[i]*x[i]+y[i]*y[i]))\ncnt++;\ni++;\n}\nSystem.out.println(cnt);\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 cnt=0;",
"cnt",
"0",
"long[] x=new long[(int)n];",
"x",
"new long[(int)n]",
"(int)n",
"long[] y=new long[(int)n];",
"y",
"new long[(int)n]",
"(int)n",
"int i=0;",
"i",
"0",
"while((n--)>0){\nx[i]=sc.nextLong();\ny[i]=sc.nextLong();\nif(d*d>=(x[i]*x[i]+y[i]*y[i]))\ncnt++;\ni++;\n}",
"(n--)>0",
"(n--)",
"n",
"0",
"{\nx[i]=sc.nextLong();\ny[i]=sc.nextLong();\nif(d*d>=(x[i]*x[i]+y[i]*y[i]))\ncnt++;\ni++;\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",
"if(d*d>=(x[i]*x[i]+y[i]*y[i]))\ncnt++;",
"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",
"cnt++",
"cnt",
"i++",
"i",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"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();
int cnt=0;
//long x[],y[]; x=new long[n]; y=new long[n];
long[] x=new long[(int)n];
long[] y=new long[(int)n];
int i=0;
while((n--)>0){
x[i]=sc.nextLong();
y[i]=sc.nextLong();
if(d*d>=(x[i]*x[i]+y[i]*y[i]))
cnt++;
i++;
}
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,
13,
17,
30,
40,
13,
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
],
[
65,
5
],
[
65,
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
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
29,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
29,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
51,
53
],
[
42,
54
],
[
54,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
6,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
]
| [
"import java.util.*;\npublic class Main {\n public static void main(String args[]) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt(); long d = in.nextLong();\n int count = 0;\n while(n > 0){\n n--;\n long x = in.nextLong();\n long y = in.nextLong();\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 in = new Scanner(System.in);\n int n = in.nextInt(); long d = in.nextLong();\n int count = 0;\n while(n > 0){\n n--;\n long x = in.nextLong();\n long y = in.nextLong();\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 in = new Scanner(System.in);\n int n = in.nextInt(); long d = in.nextLong();\n int count = 0;\n while(n > 0){\n n--;\n long x = in.nextLong();\n long y = in.nextLong();\n if(x*x + y*y <= d*d) count++;\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int n = in.nextInt(); long d = in.nextLong();\n int count = 0;\n while(n > 0){\n n--;\n long x = in.nextLong();\n long y = in.nextLong();\n if(x*x + y*y <= d*d) count++;\n }\n System.out.println(count);\n }",
"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",
"int count = 0;",
"count",
"0",
"while(n > 0){\n n--;\n long x = in.nextLong();\n long y = in.nextLong();\n if(x*x + y*y <= d*d) count++;\n }",
"n > 0",
"n",
"0",
"{\n n--;\n long x = in.nextLong();\n long y = in.nextLong();\n if(x*x + y*y <= d*d) count++;\n }",
"n--",
"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*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 in = new Scanner(System.in);\n int n = in.nextInt(); long d = in.nextLong();\n int count = 0;\n while(n > 0){\n n--;\n long x = in.nextLong();\n long y = in.nextLong();\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 in = new Scanner(System.in);\n int n = in.nextInt(); long d = in.nextLong();\n int count = 0;\n while(n > 0){\n n--;\n long x = in.nextLong();\n long y = in.nextLong();\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 in = new Scanner(System.in);
int n = in.nextInt(); long d = in.nextLong();
int count = 0;
while(n > 0){
n--;
long x = in.nextLong();
long y = in.nextLong();
if(x*x + y*y <= d*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,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
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
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
]
| [
"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();\n int D = sc.nextInt();\n int cnt = 0;\n for (int i=0;i<N;i++) {\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n if ((long)D*D >= (long)X*X+(long)Y*Y) cnt++;\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 int D = sc.nextInt();\n int cnt = 0;\n for (int i=0;i<N;i++) {\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n if ((long)D*D >= (long)X*X+(long)Y*Y) cnt++;\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 int D = sc.nextInt();\n int cnt = 0;\n for (int i=0;i<N;i++) {\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n if ((long)D*D >= (long)X*X+(long)Y*Y) cnt++;\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 int X = sc.nextInt();\n int Y = sc.nextInt();\n\n if ((long)D*D >= (long)X*X+(long)Y*Y) cnt++;\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 int X = sc.nextInt();\n int Y = sc.nextInt();\n\n if ((long)D*D >= (long)X*X+(long)Y*Y) cnt++;\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 if ((long)D*D >= (long)X*X+(long)Y*Y) cnt++;\n }",
"{\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n if ((long)D*D >= (long)X*X+(long)Y*Y) cnt++;\n }",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if ((long)D*D >= (long)X*X+(long)Y*Y) cnt++;",
"(long)D*D >= (long)X*X+(long)Y*Y",
"(long)D*D",
"(long)D",
"D",
"(long)X*X+(long)Y*Y",
"(long)X*X",
"(long)X",
"X",
"(long)Y*Y",
"(long)Y",
"Y",
"cnt++",
"cnt",
"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 int D = sc.nextInt();\n int cnt = 0;\n for (int i=0;i<N;i++) {\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n if ((long)D*D >= (long)X*X+(long)Y*Y) cnt++;\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 int D = sc.nextInt();\n int cnt = 0;\n for (int i=0;i<N;i++) {\n int X = sc.nextInt();\n int Y = sc.nextInt();\n\n if ((long)D*D >= (long)X*X+(long)Y*Y) cnt++;\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();
int D = sc.nextInt();
int cnt = 0;
for (int i=0;i<N;i++) {
int X = sc.nextInt();
int Y = sc.nextInt();
if ((long)D*D >= (long)X*X+(long)Y*Y) 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,
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,
4,
18,
13,
41,
13,
17,
41,
13,
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,
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
],
[
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
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
60,
62
],
[
8,
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
],
[
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
],
[
8,
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\tScanner sc = new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tdouble D=sc.nextDouble();\n\t\tdouble X[]=new double[N];\n\t\tdouble Y[]=new double[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tX[i]=sc.nextDouble();\n\t\t\tY[i]=sc.nextDouble();\n\t\t}\n\t\tsc.close();\n\t\tint count=0;\n\t\tdouble distance;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdistance=Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\tif(distance<=D)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\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\t\tint N=sc.nextInt();\n\t\tdouble D=sc.nextDouble();\n\t\tdouble X[]=new double[N];\n\t\tdouble Y[]=new double[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tX[i]=sc.nextDouble();\n\t\t\tY[i]=sc.nextDouble();\n\t\t}\n\t\tsc.close();\n\t\tint count=0;\n\t\tdouble distance;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdistance=Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\tif(distance<=D)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tdouble D=sc.nextDouble();\n\t\tdouble X[]=new double[N];\n\t\tdouble Y[]=new double[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tX[i]=sc.nextDouble();\n\t\t\tY[i]=sc.nextDouble();\n\t\t}\n\t\tsc.close();\n\t\tint count=0;\n\t\tdouble distance;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdistance=Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\tif(distance<=D)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tdouble D=sc.nextDouble();\n\t\tdouble X[]=new double[N];\n\t\tdouble Y[]=new double[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tX[i]=sc.nextDouble();\n\t\t\tY[i]=sc.nextDouble();\n\t\t}\n\t\tsc.close();\n\t\tint count=0;\n\t\tdouble distance;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdistance=Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\tif(distance<=D)\n\t\t\t\tcount++;\n\t\t}\n\t\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",
"double D=sc.nextDouble();",
"D",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"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\t\t\tX[i]=sc.nextDouble();\n\t\t\tY[i]=sc.nextDouble();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tX[i]=sc.nextDouble();\n\t\t\tY[i]=sc.nextDouble();\n\t\t}",
"{\n\t\t\tX[i]=sc.nextDouble();\n\t\t\tY[i]=sc.nextDouble();\n\t\t}",
"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",
"sc.close()",
"sc.close",
"sc",
"int count=0;",
"count",
"0",
"double distance;",
"distance",
"for(int i=0;i<N;i++) {\n\t\t\tdistance=Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\tif(distance<=D)\n\t\t\t\tcount++;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tdistance=Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\tif(distance<=D)\n\t\t\t\tcount++;\n\t\t}",
"{\n\t\t\tdistance=Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\tif(distance<=D)\n\t\t\t\tcount++;\n\t\t}",
"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\t\t\t\tcount++;",
"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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tdouble D=sc.nextDouble();\n\t\tdouble X[]=new double[N];\n\t\tdouble Y[]=new double[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tX[i]=sc.nextDouble();\n\t\t\tY[i]=sc.nextDouble();\n\t\t}\n\t\tsc.close();\n\t\tint count=0;\n\t\tdouble distance;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdistance=Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\tif(distance<=D)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tdouble D=sc.nextDouble();\n\t\tdouble X[]=new double[N];\n\t\tdouble Y[]=new double[N];\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tX[i]=sc.nextDouble();\n\t\t\tY[i]=sc.nextDouble();\n\t\t}\n\t\tsc.close();\n\t\tint count=0;\n\t\tdouble distance;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tdistance=Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);\n\t\t\tif(distance<=D)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\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();
double D=sc.nextDouble();
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();
}
sc.close();
int count=0;
double distance;
for(int i=0;i<N;i++) {
distance=Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);
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,
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\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint t = scan.nextInt();\n\t\tDouble d = scan.nextDouble();\n\t\tint count = 0;\n\t\twhile (t-- > 0) {\n\t\t\tDouble a = scan.nextDouble();\n\t\t\tDouble b = scan.nextDouble();\n\t\t\tDouble dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n\t\t\tif (dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint t = scan.nextInt();\n\t\tDouble d = scan.nextDouble();\n\t\tint count = 0;\n\t\twhile (t-- > 0) {\n\t\t\tDouble a = scan.nextDouble();\n\t\t\tDouble b = scan.nextDouble();\n\t\t\tDouble dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n\t\t\tif (dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint t = scan.nextInt();\n\t\tDouble d = scan.nextDouble();\n\t\tint count = 0;\n\t\twhile (t-- > 0) {\n\t\t\tDouble a = scan.nextDouble();\n\t\t\tDouble b = scan.nextDouble();\n\t\t\tDouble dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n\t\t\tif (dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint t = scan.nextInt();\n\t\tDouble d = scan.nextDouble();\n\t\tint count = 0;\n\t\twhile (t-- > 0) {\n\t\t\tDouble a = scan.nextDouble();\n\t\t\tDouble b = scan.nextDouble();\n\t\t\tDouble dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n\t\t\tif (dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int t = scan.nextInt();",
"t",
"scan.nextInt()",
"scan.nextInt",
"scan",
"Double d = scan.nextDouble();",
"d",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"int count = 0;",
"count",
"0",
"while (t-- > 0) {\n\t\t\tDouble a = scan.nextDouble();\n\t\t\tDouble b = scan.nextDouble();\n\t\t\tDouble dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n\t\t\tif (dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"t-- > 0",
"t--",
"t",
"0",
"{\n\t\t\tDouble a = scan.nextDouble();\n\t\t\tDouble b = scan.nextDouble();\n\t\t\tDouble dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n\t\t\tif (dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"Double a = scan.nextDouble();",
"a",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"Double b = scan.nextDouble();",
"b",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"Double dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));",
"dis",
"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 (dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}",
"dis <= d",
"dis",
"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\tScanner scan = new Scanner(System.in);\n\t\tint t = scan.nextInt();\n\t\tDouble d = scan.nextDouble();\n\t\tint count = 0;\n\t\twhile (t-- > 0) {\n\t\t\tDouble a = scan.nextDouble();\n\t\t\tDouble b = scan.nextDouble();\n\t\t\tDouble dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n\t\t\tif (dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint t = scan.nextInt();\n\t\tDouble d = scan.nextDouble();\n\t\tint count = 0;\n\t\twhile (t-- > 0) {\n\t\t\tDouble a = scan.nextDouble();\n\t\t\tDouble b = scan.nextDouble();\n\t\t\tDouble dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n\t\t\tif (dis <= d) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int t = scan.nextInt();
Double d = scan.nextDouble();
int count = 0;
while (t-- > 0) {
Double a = scan.nextDouble();
Double b = scan.nextDouble();
Double dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
if (dis <= 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,
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,
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,
14,
2,
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
],
[
119,
5
],
[
119,
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,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
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
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
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
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
81,
89
],
[
80,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
90,
98
],
[
77,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
102,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
8,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
6,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
]
| [
"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 int d = sc.nextInt();\n int[][] arr = new int[n][2];\n\n for(int i = 0; i< n; i++){\n for(int j=0; j<2; j++){\n arr[i][j] = sc.nextInt();\n }\n }\n int cnt = 0;\n\n for(int i = 0; i<n; i++){\n long di = (long)(Math.pow(arr[i][0], 2)+Math.pow(arr[i][1], 2));\n //System.out.println(di);\n if(di <= (long)Math.pow(d,2)){\n cnt++;\n }\n }\n\n System.out.println(cnt);\n\n\n \n }\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 int d = sc.nextInt();\n int[][] arr = new int[n][2];\n\n for(int i = 0; i< n; i++){\n for(int j=0; j<2; j++){\n arr[i][j] = sc.nextInt();\n }\n }\n int cnt = 0;\n\n for(int i = 0; i<n; i++){\n long di = (long)(Math.pow(arr[i][0], 2)+Math.pow(arr[i][1], 2));\n //System.out.println(di);\n if(di <= (long)Math.pow(d,2)){\n cnt++;\n }\n }\n\n System.out.println(cnt);\n\n\n \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[][] arr = new int[n][2];\n\n for(int i = 0; i< n; i++){\n for(int j=0; j<2; j++){\n arr[i][j] = sc.nextInt();\n }\n }\n int cnt = 0;\n\n for(int i = 0; i<n; i++){\n long di = (long)(Math.pow(arr[i][0], 2)+Math.pow(arr[i][1], 2));\n //System.out.println(di);\n if(di <= (long)Math.pow(d,2)){\n cnt++;\n }\n }\n\n System.out.println(cnt);\n\n\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int[][] arr = new int[n][2];\n\n for(int i = 0; i< n; i++){\n for(int j=0; j<2; j++){\n arr[i][j] = sc.nextInt();\n }\n }\n int cnt = 0;\n\n for(int i = 0; i<n; i++){\n long di = (long)(Math.pow(arr[i][0], 2)+Math.pow(arr[i][1], 2));\n //System.out.println(di);\n if(di <= (long)Math.pow(d,2)){\n cnt++;\n }\n }\n\n System.out.println(cnt);\n\n\n \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[][] arr = new int[n][2];",
"arr",
"new int[n][2]",
"n",
"2",
"for(int i = 0; i< n; i++){\n for(int j=0; j<2; j++){\n arr[i][j] = sc.nextInt();\n }\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 arr[i][j] = sc.nextInt();\n }\n }",
"{\n for(int j=0; j<2; j++){\n arr[i][j] = sc.nextInt();\n }\n }",
"for(int j=0; j<2; j++){\n arr[i][j] = sc.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<2",
"j",
"2",
"j++",
"j++",
"j",
"{\n arr[i][j] = sc.nextInt();\n }",
"{\n arr[i][j] = sc.nextInt();\n }",
"arr[i][j] = sc.nextInt()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int cnt = 0;",
"cnt",
"0",
"for(int i = 0; i<n; i++){\n long di = (long)(Math.pow(arr[i][0], 2)+Math.pow(arr[i][1], 2));\n //System.out.println(di);\n if(di <= (long)Math.pow(d,2)){\n cnt++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long di = (long)(Math.pow(arr[i][0], 2)+Math.pow(arr[i][1], 2));\n //System.out.println(di);\n if(di <= (long)Math.pow(d,2)){\n cnt++;\n }\n }",
"{\n long di = (long)(Math.pow(arr[i][0], 2)+Math.pow(arr[i][1], 2));\n //System.out.println(di);\n if(di <= (long)Math.pow(d,2)){\n cnt++;\n }\n }",
"long di = (long)(Math.pow(arr[i][0], 2)+Math.pow(arr[i][1], 2));",
"di",
"(long)(Math.pow(arr[i][0], 2)+Math.pow(arr[i][1], 2))",
"Math.pow(arr[i][0], 2)",
"Math.pow",
"Math",
"arr[i][0]",
"arr[i]",
"arr",
"i",
"0",
"2",
"Math.pow(arr[i][1], 2)",
"Math.pow",
"Math",
"arr[i][1]",
"arr[i]",
"arr",
"i",
"1",
"2",
"if(di <= (long)Math.pow(d,2)){\n cnt++;\n }",
"di <= (long)Math.pow(d,2)",
"di",
"(long)Math.pow(d,2)",
"Math.pow",
"Math",
"d",
"2",
"{\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 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[][] arr = new int[n][2];\n\n for(int i = 0; i< n; i++){\n for(int j=0; j<2; j++){\n arr[i][j] = sc.nextInt();\n }\n }\n int cnt = 0;\n\n for(int i = 0; i<n; i++){\n long di = (long)(Math.pow(arr[i][0], 2)+Math.pow(arr[i][1], 2));\n //System.out.println(di);\n if(di <= (long)Math.pow(d,2)){\n cnt++;\n }\n }\n\n System.out.println(cnt);\n\n\n \n }\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 int d = sc.nextInt();\n int[][] arr = new int[n][2];\n\n for(int i = 0; i< n; i++){\n for(int j=0; j<2; j++){\n arr[i][j] = sc.nextInt();\n }\n }\n int cnt = 0;\n\n for(int i = 0; i<n; i++){\n long di = (long)(Math.pow(arr[i][0], 2)+Math.pow(arr[i][1], 2));\n //System.out.println(di);\n if(di <= (long)Math.pow(d,2)){\n cnt++;\n }\n }\n\n System.out.println(cnt);\n\n\n \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[][] arr = new int[n][2];
for(int i = 0; i< n; i++){
for(int j=0; j<2; j++){
arr[i][j] = sc.nextInt();
}
}
int cnt = 0;
for(int i = 0; i<n; i++){
long di = (long)(Math.pow(arr[i][0], 2)+Math.pow(arr[i][1], 2));
//System.out.println(di);
if(di <= (long)Math.pow(d,2)){
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,
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
],
[
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
],
[
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\npublic class Main {\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 count = 0;\n\n for(int i = 1 ; i <= N ; i++){\n double p = sc.nextInt();\n double q = sc.nextInt();\n\n if(Math.sqrt(p*p+q*q)<=D){\n count++;\n }\n \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){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int D = sc.nextInt();\n\n int count = 0;\n\n for(int i = 1 ; i <= N ; i++){\n double p = sc.nextInt();\n double q = sc.nextInt();\n\n if(Math.sqrt(p*p+q*q)<=D){\n count++;\n }\n \n\n }\n sc.close();\n System.out.println(count);\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 count = 0;\n\n for(int i = 1 ; i <= N ; i++){\n double p = sc.nextInt();\n double q = sc.nextInt();\n\n if(Math.sqrt(p*p+q*q)<=D){\n count++;\n }\n \n\n }\n sc.close();\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int D = sc.nextInt();\n\n int count = 0;\n\n for(int i = 1 ; i <= N ; i++){\n double p = sc.nextInt();\n double q = sc.nextInt();\n\n if(Math.sqrt(p*p+q*q)<=D){\n count++;\n }\n \n\n }\n sc.close();\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",
"int D = sc.nextInt();",
"D",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 0;",
"count",
"0",
"for(int i = 1 ; i <= N ; i++){\n double p = sc.nextInt();\n double q = sc.nextInt();\n\n if(Math.sqrt(p*p+q*q)<=D){\n count++;\n }\n \n\n }",
"int i = 1 ;",
"int i = 1 ;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n double p = sc.nextInt();\n double q = sc.nextInt();\n\n if(Math.sqrt(p*p+q*q)<=D){\n count++;\n }\n \n\n }",
"{\n double p = sc.nextInt();\n double q = sc.nextInt();\n\n if(Math.sqrt(p*p+q*q)<=D){\n count++;\n }\n \n\n }",
"double p = sc.nextInt();",
"p",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double q = sc.nextInt();",
"q",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(Math.sqrt(p*p+q*q)<=D){\n count++;\n }",
"Math.sqrt(p*p+q*q)<=D",
"Math.sqrt(p*p+q*q)",
"Math.sqrt",
"Math",
"p*p+q*q",
"p*p",
"p",
"p",
"q*q",
"q",
"q",
"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",
"public class Main {\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 count = 0;\n\n for(int i = 1 ; i <= N ; i++){\n double p = sc.nextInt();\n double q = sc.nextInt();\n\n if(Math.sqrt(p*p+q*q)<=D){\n count++;\n }\n \n\n }\n sc.close();\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 = sc.nextInt();\n int D = sc.nextInt();\n\n int count = 0;\n\n for(int i = 1 ; i <= N ; i++){\n double p = sc.nextInt();\n double q = sc.nextInt();\n\n if(Math.sqrt(p*p+q*q)<=D){\n count++;\n }\n \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){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int D = sc.nextInt();
int count = 0;
for(int i = 1 ; i <= N ; i++){
double p = sc.nextInt();
double q = sc.nextInt();
if(Math.sqrt(p*p+q*q)<=D){
count++;
}
}
sc.close();
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
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,
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,
23,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
20,
4,
18,
20,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
96,
8
],
[
96,
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
],
[
11,
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
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
9,
73
],
[
73,
74
],
[
9,
75
],
[
75,
76
],
[
96,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
81,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
88,
92
],
[
77,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
]
| [
"import java.util.*;\nimport java.io.*;\n\n/**\n * @author Azuz\n * \n */\npublic class Main {\n\n void solve(Scanner in, PrintWriter out) {\n int N = in.nextInt();\n double d = in.nextDouble();\n int ans = 0;\n for (int i = 0; i < N; ++i) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n double dist = Math.sqrt(x*x + y*y);\n if (dist <= d) {\n ++ans;\n }\n }\n\n System.out.println(ans);\n }\n\n public static void main(String[] args) {\n try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n void solve(Scanner in, PrintWriter out) {\n int N = in.nextInt();\n double d = in.nextDouble();\n int ans = 0;\n for (int i = 0; i < N; ++i) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n double dist = Math.sqrt(x*x + y*y);\n if (dist <= d) {\n ++ans;\n }\n }\n\n System.out.println(ans);\n }\n\n public static void main(String[] args) {\n try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }\n }\n}",
"Main",
"void solve(Scanner in, PrintWriter out) {\n int N = in.nextInt();\n double d = in.nextDouble();\n int ans = 0;\n for (int i = 0; i < N; ++i) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n double dist = Math.sqrt(x*x + y*y);\n if (dist <= d) {\n ++ans;\n }\n }\n\n System.out.println(ans);\n }",
"solve",
"{\n int N = in.nextInt();\n double d = in.nextDouble();\n int ans = 0;\n for (int i = 0; i < N; ++i) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n double dist = Math.sqrt(x*x + y*y);\n if (dist <= d) {\n ++ans;\n }\n }\n\n System.out.println(ans);\n }",
"int N = in.nextInt();",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"double d = in.nextDouble();",
"d",
"in.nextDouble()",
"in.nextDouble",
"in",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < N; ++i) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n double dist = Math.sqrt(x*x + y*y);\n if (dist <= d) {\n ++ans;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"++i",
"++i",
"i",
"{\n double x = in.nextInt();\n double y = in.nextInt();\n\n double dist = Math.sqrt(x*x + y*y);\n if (dist <= d) {\n ++ans;\n }\n }",
"{\n double x = in.nextInt();\n double y = in.nextInt();\n\n double dist = Math.sqrt(x*x + y*y);\n if (dist <= d) {\n ++ans;\n }\n }",
"double x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"double y = in.nextInt();",
"y",
"in.nextInt()",
"in.nextInt",
"in",
"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 ++ans;\n }",
"dist <= d",
"dist",
"d",
"{\n ++ans;\n }",
"++ans",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public static void main(String[] args) {\n try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }\n }",
"main",
"{\n try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }\n }",
"try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }",
"{\n new Main().solve(in, out);\n }",
"Scanner in = new Scanner(System.in)",
"Scanner in = new Scanner(System.in)",
"new Scanner(System.in)",
"PrintWriter out = new PrintWriter(System.out)",
"PrintWriter out = new PrintWriter(System.out)",
"new PrintWriter(System.out)",
"new Main().solve(in, out)",
"new Main().solve",
"new Main()",
"in",
"out",
"String[] args",
"args",
"public class Main {\n\n void solve(Scanner in, PrintWriter out) {\n int N = in.nextInt();\n double d = in.nextDouble();\n int ans = 0;\n for (int i = 0; i < N; ++i) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n double dist = Math.sqrt(x*x + y*y);\n if (dist <= d) {\n ++ans;\n }\n }\n\n System.out.println(ans);\n }\n\n public static void main(String[] args) {\n try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }\n }\n}",
"public class Main {\n\n void solve(Scanner in, PrintWriter out) {\n int N = in.nextInt();\n double d = in.nextDouble();\n int ans = 0;\n for (int i = 0; i < N; ++i) {\n double x = in.nextInt();\n double y = in.nextInt();\n\n double dist = Math.sqrt(x*x + y*y);\n if (dist <= d) {\n ++ans;\n }\n }\n\n System.out.println(ans);\n }\n\n public static void main(String[] args) {\n try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
/**
* @author Azuz
*
*/
public class Main {
void solve(Scanner in, PrintWriter out) {
int N = in.nextInt();
double d = in.nextDouble();
int ans = 0;
for (int i = 0; i < N; ++i) {
double x = in.nextInt();
double y = in.nextInt();
double dist = Math.sqrt(x*x + y*y);
if (dist <= d) {
++ans;
}
}
System.out.println(ans);
}
public static void main(String[] args) {
try(Scanner in = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out)) {
new Main().solve(in, out);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
190,
5
],
[
190,
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
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
17,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
34,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
51,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
68,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
85,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
102,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
124,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
119,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
136,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
158,
160
],
[
153,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
153,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
175,
177
],
[
170,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
184,
185
],
[
184,
186
],
[
6,
187
],
[
187,
188
],
[
0,
189
],
[
189,
190
],
[
189,
191
]
]
| [
"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();\n if(N >= 0 && N <= 1000){\n System.out.print(1000 - N);\n }else if(N > 1000 && N <= 2000){\n System.out.print(2000 - N);\n }else if(N > 2000 && N <= 3000){\n System.out.print(3000 - N);\n }else if(N > 3000 && N <= 4000){\n System.out.print(4000 - N);\n }else if(N > 4000 && N <= 5000){\n System.out.print(5000 - N);\n }else if(N > 5000 && N <= 6000){\n System.out.print(6000 - N);\n }else if(N > 6000 && N <= 7000){\n System.out.print(7000 - N);\n }else if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }\n \n\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 if(N >= 0 && N <= 1000){\n System.out.print(1000 - N);\n }else if(N > 1000 && N <= 2000){\n System.out.print(2000 - N);\n }else if(N > 2000 && N <= 3000){\n System.out.print(3000 - N);\n }else if(N > 3000 && N <= 4000){\n System.out.print(4000 - N);\n }else if(N > 4000 && N <= 5000){\n System.out.print(5000 - N);\n }else if(N > 5000 && N <= 6000){\n System.out.print(6000 - N);\n }else if(N > 6000 && N <= 7000){\n System.out.print(7000 - N);\n }else if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }\n \n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N >= 0 && N <= 1000){\n System.out.print(1000 - N);\n }else if(N > 1000 && N <= 2000){\n System.out.print(2000 - N);\n }else if(N > 2000 && N <= 3000){\n System.out.print(3000 - N);\n }else if(N > 3000 && N <= 4000){\n System.out.print(4000 - N);\n }else if(N > 4000 && N <= 5000){\n System.out.print(5000 - N);\n }else if(N > 5000 && N <= 6000){\n System.out.print(6000 - N);\n }else if(N > 6000 && N <= 7000){\n System.out.print(7000 - N);\n }else if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }\n \n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N >= 0 && N <= 1000){\n System.out.print(1000 - N);\n }else if(N > 1000 && N <= 2000){\n System.out.print(2000 - N);\n }else if(N > 2000 && N <= 3000){\n System.out.print(3000 - N);\n }else if(N > 3000 && N <= 4000){\n System.out.print(4000 - N);\n }else if(N > 4000 && N <= 5000){\n System.out.print(5000 - N);\n }else if(N > 5000 && N <= 6000){\n System.out.print(6000 - N);\n }else if(N > 6000 && N <= 7000){\n System.out.print(7000 - N);\n }else if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }\n \n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(N >= 0 && N <= 1000){\n System.out.print(1000 - N);\n }else if(N > 1000 && N <= 2000){\n System.out.print(2000 - N);\n }else if(N > 2000 && N <= 3000){\n System.out.print(3000 - N);\n }else if(N > 3000 && N <= 4000){\n System.out.print(4000 - N);\n }else if(N > 4000 && N <= 5000){\n System.out.print(5000 - N);\n }else if(N > 5000 && N <= 6000){\n System.out.print(6000 - N);\n }else if(N > 6000 && N <= 7000){\n System.out.print(7000 - N);\n }else if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }",
"N >= 0 && N <= 1000",
"N >= 0",
"N",
"0",
"N <= 1000",
"N",
"1000",
"{\n System.out.print(1000 - N);\n }",
"System.out.print(1000 - N)",
"System.out.print",
"System.out",
"System",
"System.out",
"1000 - N",
"1000",
"N",
"if(N > 1000 && N <= 2000){\n System.out.print(2000 - N);\n }else if(N > 2000 && N <= 3000){\n System.out.print(3000 - N);\n }else if(N > 3000 && N <= 4000){\n System.out.print(4000 - N);\n }else if(N > 4000 && N <= 5000){\n System.out.print(5000 - N);\n }else if(N > 5000 && N <= 6000){\n System.out.print(6000 - N);\n }else if(N > 6000 && N <= 7000){\n System.out.print(7000 - N);\n }else if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }",
"N > 1000 && N <= 2000",
"N > 1000",
"N",
"1000",
"N <= 2000",
"N",
"2000",
"{\n System.out.print(2000 - N);\n }",
"System.out.print(2000 - N)",
"System.out.print",
"System.out",
"System",
"System.out",
"2000 - N",
"2000",
"N",
"if(N > 2000 && N <= 3000){\n System.out.print(3000 - N);\n }else if(N > 3000 && N <= 4000){\n System.out.print(4000 - N);\n }else if(N > 4000 && N <= 5000){\n System.out.print(5000 - N);\n }else if(N > 5000 && N <= 6000){\n System.out.print(6000 - N);\n }else if(N > 6000 && N <= 7000){\n System.out.print(7000 - N);\n }else if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }",
"N > 2000 && N <= 3000",
"N > 2000",
"N",
"2000",
"N <= 3000",
"N",
"3000",
"{\n System.out.print(3000 - N);\n }",
"System.out.print(3000 - N)",
"System.out.print",
"System.out",
"System",
"System.out",
"3000 - N",
"3000",
"N",
"if(N > 3000 && N <= 4000){\n System.out.print(4000 - N);\n }else if(N > 4000 && N <= 5000){\n System.out.print(5000 - N);\n }else if(N > 5000 && N <= 6000){\n System.out.print(6000 - N);\n }else if(N > 6000 && N <= 7000){\n System.out.print(7000 - N);\n }else if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }",
"N > 3000 && N <= 4000",
"N > 3000",
"N",
"3000",
"N <= 4000",
"N",
"4000",
"{\n System.out.print(4000 - N);\n }",
"System.out.print(4000 - N)",
"System.out.print",
"System.out",
"System",
"System.out",
"4000 - N",
"4000",
"N",
"if(N > 4000 && N <= 5000){\n System.out.print(5000 - N);\n }else if(N > 5000 && N <= 6000){\n System.out.print(6000 - N);\n }else if(N > 6000 && N <= 7000){\n System.out.print(7000 - N);\n }else if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }",
"N > 4000 && N <= 5000",
"N > 4000",
"N",
"4000",
"N <= 5000",
"N",
"5000",
"{\n System.out.print(5000 - N);\n }",
"System.out.print(5000 - N)",
"System.out.print",
"System.out",
"System",
"System.out",
"5000 - N",
"5000",
"N",
"if(N > 5000 && N <= 6000){\n System.out.print(6000 - N);\n }else if(N > 6000 && N <= 7000){\n System.out.print(7000 - N);\n }else if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }",
"N > 5000 && N <= 6000",
"N > 5000",
"N",
"5000",
"N <= 6000",
"N",
"6000",
"{\n System.out.print(6000 - N);\n }",
"System.out.print(6000 - N)",
"System.out.print",
"System.out",
"System",
"System.out",
"6000 - N",
"6000",
"N",
"if(N > 6000 && N <= 7000){\n System.out.print(7000 - N);\n }else if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }",
"N > 6000 && N <= 7000",
"N > 6000",
"N",
"6000",
"N <= 7000",
"N",
"7000",
"{\n System.out.print(7000 - N);\n }",
"System.out.print(7000 - N)",
"System.out.print",
"System.out",
"System",
"System.out",
"7000 - N",
"7000",
"N",
"if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }",
"N > 7000 && N <= 8000",
"N > 7000",
"N",
"7000",
"N <= 8000",
"N",
"8000",
"{\n System.out.print(8000 - N);\n }",
"System.out.print(8000 - N)",
"System.out.print",
"System.out",
"System",
"System.out",
"8000 - N",
"8000",
"N",
"if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }",
"N > 8000 && N <= 9000",
"N > 8000",
"N",
"8000",
"N <= 9000",
"N",
"9000",
"{\n System.out.print(9000 - N);\n }",
"System.out.print(9000 - N)",
"System.out.print",
"System.out",
"System",
"System.out",
"9000 - N",
"9000",
"N",
"if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }",
"N > 9000 && N <= 10000",
"N > 9000",
"N",
"9000",
"N <= 10000",
"N",
"10000",
"{\n System.out.print(10000 - N);\n }",
"System.out.print(10000 - N)",
"System.out.print",
"System.out",
"System",
"System.out",
"10000 - N",
"10000",
"N",
"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 if(N >= 0 && N <= 1000){\n System.out.print(1000 - N);\n }else if(N > 1000 && N <= 2000){\n System.out.print(2000 - N);\n }else if(N > 2000 && N <= 3000){\n System.out.print(3000 - N);\n }else if(N > 3000 && N <= 4000){\n System.out.print(4000 - N);\n }else if(N > 4000 && N <= 5000){\n System.out.print(5000 - N);\n }else if(N > 5000 && N <= 6000){\n System.out.print(6000 - N);\n }else if(N > 6000 && N <= 7000){\n System.out.print(7000 - N);\n }else if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }\n \n\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 if(N >= 0 && N <= 1000){\n System.out.print(1000 - N);\n }else if(N > 1000 && N <= 2000){\n System.out.print(2000 - N);\n }else if(N > 2000 && N <= 3000){\n System.out.print(3000 - N);\n }else if(N > 3000 && N <= 4000){\n System.out.print(4000 - N);\n }else if(N > 4000 && N <= 5000){\n System.out.print(5000 - N);\n }else if(N > 5000 && N <= 6000){\n System.out.print(6000 - N);\n }else if(N > 6000 && N <= 7000){\n System.out.print(7000 - N);\n }else if(N > 7000 && N <= 8000){\n System.out.print(8000 - N);\n }else if(N > 8000 && N <= 9000){\n System.out.print(9000 - N);\n }else if(N > 9000 && N <= 10000){\n System.out.print(10000 - N);\n }\n \n\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();
if(N >= 0 && N <= 1000){
System.out.print(1000 - N);
}else if(N > 1000 && N <= 2000){
System.out.print(2000 - N);
}else if(N > 2000 && N <= 3000){
System.out.print(3000 - N);
}else if(N > 3000 && N <= 4000){
System.out.print(4000 - N);
}else if(N > 4000 && N <= 5000){
System.out.print(5000 - N);
}else if(N > 5000 && N <= 6000){
System.out.print(6000 - N);
}else if(N > 6000 && N <= 7000){
System.out.print(7000 - N);
}else if(N > 7000 && N <= 8000){
System.out.print(8000 - N);
}else if(N > 8000 && N <= 9000){
System.out.print(9000 - N);
}else if(N > 9000 && N <= 10000){
System.out.print(10000 - N);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
8,
2,
2,
13,
17,
17,
17,
2,
17,
2,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
43,
5
],
[
43,
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
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
19,
25
],
[
19,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
6,
40
],
[
40,
41
],
[
0,
42
],
[
42,
43
],
[
42,
44
]
]
| [
"import java.util.*;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tn=(n%1000==0)? 0:1000-(n%1000);\n\t\tSystem.out.println(n);\n\t\tsc.close();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tn=(n%1000==0)? 0:1000-(n%1000);\n\t\tSystem.out.println(n);\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tn=(n%1000==0)? 0:1000-(n%1000);\n\t\tSystem.out.println(n);\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tn=(n%1000==0)? 0:1000-(n%1000);\n\t\tSystem.out.println(n);\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",
"n=(n%1000==0)? 0:1000-(n%1000)",
"n",
"(n%1000==0)? 0:1000-(n%1000)",
"(n%1000==0)",
"n%1000",
"n",
"1000",
"0",
"0",
"1000-(n%1000)",
"1000",
"(n%1000)",
"n",
"1000",
"System.out.println(n)",
"System.out.println",
"System.out",
"System",
"System.out",
"n",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tn=(n%1000==0)? 0:1000-(n%1000);\n\t\tSystem.out.println(n);\n\t\tsc.close();\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tn=(n%1000==0)? 0:1000-(n%1000);\n\t\tSystem.out.println(n);\n\t\tsc.close();\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();
n=(n%1000==0)? 0:1000-(n%1000);
System.out.println(n);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
17,
2,
2,
13,
17,
17,
4,
18,
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
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
6,
32
],
[
32,
33
]
]
| [
"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 System.out.println(999 - (n-1)%1000);\n sc.close();\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 System.out.println(999 - (n-1)%1000);\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 System.out.println(999 - (n-1)%1000);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n System.out.println(999 - (n-1)%1000);\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",
"System.out.println(999 - (n-1)%1000)",
"System.out.println",
"System.out",
"System",
"System.out",
"999 - (n-1)%1000",
"999",
"(n-1)%1000",
"(n-1)",
"n",
"1",
"1000",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args"
]
| import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println(999 - (n-1)%1000);
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
17,
17,
4,
18,
13,
17,
4,
18,
13,
2,
17,
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
],
[
70,
8
],
[
70,
9
],
[
9,
10
],
[
9,
11
],
[
70,
12
],
[
12,
13
],
[
12,
14
],
[
70,
15
],
[
15,
16
],
[
70,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
19,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
70,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
46,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
41,
64
],
[
64,
65
],
[
65,
66
],
[
39,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n private static StringTokenizer st;\n\n private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }\n\n public static void main(String[] args) throws IOException {\n int N = readInt();\n if (N % 1000 == 0) pw.println(0);\n else pw.println(1000 - N % 1000);\n pw.close();\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n private static StringTokenizer st;\n\n private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }\n\n public static void main(String[] args) throws IOException {\n int N = readInt();\n if (N % 1000 == 0) pw.println(0);\n else pw.println(1000 - N % 1000);\n pw.close();\n }\n}",
"Main",
"private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));",
"pw",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))",
"private static StringTokenizer st;",
"st",
"private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }",
"readInt",
"{\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(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 Integer.parseInt(st.nextToken());",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"public static void main(String[] args) throws IOException {\n int N = readInt();\n if (N % 1000 == 0) pw.println(0);\n else pw.println(1000 - N % 1000);\n pw.close();\n }",
"main",
"{\n int N = readInt();\n if (N % 1000 == 0) pw.println(0);\n else pw.println(1000 - N % 1000);\n pw.close();\n }",
"int N = readInt();",
"N",
"readInt()",
"readInt",
"if (N % 1000 == 0) pw.println(0);\n else pw.println(1000 - N % 1000);",
"N % 1000 == 0",
"N % 1000",
"N",
"1000",
"0",
"pw.println(0)",
"pw.println",
"pw",
"0",
"pw.println(1000 - N % 1000)",
"pw.println",
"pw",
"1000 - N % 1000",
"1000",
"N % 1000",
"N",
"1000",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"public class Main {\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n private static StringTokenizer st;\n\n private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }\n\n public static void main(String[] args) throws IOException {\n int N = readInt();\n if (N % 1000 == 0) pw.println(0);\n else pw.println(1000 - N % 1000);\n pw.close();\n }\n}",
"public class Main {\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n private static StringTokenizer st;\n\n private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }\n\n public static void main(String[] args) throws IOException {\n int N = readInt();\n if (N % 1000 == 0) pw.println(0);\n else pw.println(1000 - N % 1000);\n pw.close();\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
private static StringTokenizer st;
private static int readInt() throws IOException {
while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());
return Integer.parseInt(st.nextToken());
}
public static void main(String[] args) throws IOException {
int N = readInt();
if (N % 1000 == 0) pw.println(0);
else pw.println(1000 - N % 1000);
pw.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,
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,
4,
18,
4,
18,
13,
2,
2,
2,
2,
13,
17,
17,
17,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
0,
13,
20,
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,
38,
5,
13,
30,
37,
20,
30,
4,
18,
18,
36,
13,
13,
6,
13,
41,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
4,
13,
20,
23,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
13,
0,
13,
17,
29,
36,
23,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
13,
17,
4,
18,
13,
0,
13,
17,
29,
36,
23,
13,
12,
13,
30,
14,
40,
13,
30,
4,
13,
17,
29,
4,
13,
13,
23,
13,
12,
13,
30,
29,
4,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
13,
4,
18,
13,
0,
13,
17,
14,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
29,
36,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
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
],
[
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
],
[
319,
44
],
[
319,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
47,
58
],
[
58,
59
],
[
58,
60
],
[
47,
61
],
[
61,
62
],
[
61,
63
],
[
47,
64
],
[
64,
65
],
[
64,
66
],
[
47,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
67,
71
],
[
67,
72
],
[
47,
73
],
[
73,
74
],
[
74,
75
],
[
45,
76
],
[
76,
77
],
[
319,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
93,
101
],
[
80,
102
],
[
102,
103
],
[
80,
104
],
[
104,
105
],
[
80,
106
],
[
106,
107
],
[
319,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
116,
122
],
[
122,
123
],
[
108,
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
],
[
108,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
158,
159
],
[
108,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
108,
175
],
[
319,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
176,
180
],
[
180,
181
],
[
180,
182
],
[
176,
183
],
[
183,
184
],
[
183,
185
],
[
176,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
186,
194
],
[
194,
195
],
[
176,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
196,
202
],
[
202,
203
],
[
176,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
207,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
214,
217
],
[
213,
218
],
[
218,
219
],
[
218,
220
],
[
206,
221
],
[
221,
222
],
[
204,
223
],
[
223,
224
],
[
176,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
228,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
235,
238
],
[
235,
239
],
[
235,
240
],
[
240,
241
],
[
241,
242
],
[
234,
243
],
[
243,
244
],
[
243,
245
],
[
227,
246
],
[
246,
247
],
[
225,
248
],
[
248,
249
],
[
176,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
253,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
252,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
250,
264
],
[
264,
265
],
[
176,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
273,
274
],
[
272,
275
],
[
266,
276
],
[
276,
277
],
[
176,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
283,
284
],
[
284,
285
],
[
280,
286
],
[
286,
287
],
[
286,
288
],
[
280,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
296,
297
],
[
292,
298
],
[
298,
299
],
[
299,
300
],
[
300,
301
],
[
280,
302
],
[
302,
303
],
[
176,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
311,
312
],
[
307,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
176,
317
],
[
0,
318
],
[
318,
319
],
[
318,
320
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedOutputStream;\nimport java.io.UncheckedIOException;\nimport java.nio.charset.Charset;\nimport java.util.StringTokenizer;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\nimport java.io.BufferedReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author mikit\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n long n = in.longs();\n out.ans((n + 999) / 1000 * 1000 - n).ln();\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long longs() {\n return Long.parseLong(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(long l) {\n return ans(Long.toString(l));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\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.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedOutputStream;",
"BufferedOutputStream",
"java.io",
"import java.io.UncheckedIOException;",
"UncheckedIOException",
"java.io",
"import java.nio.charset.Charset;",
"Charset",
"java.nio.charset",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.Writer;",
"Writer",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"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 LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n long n = in.longs();\n out.ans((n + 999) / 1000 * 1000 - n).ln();\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long longs() {\n return Long.parseLong(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(long l) {\n return ans(Long.toString(l));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n APayment solver = new APayment();\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",
"LightScanner in = new LightScanner(inputStream);",
"in",
"new LightScanner(inputStream)",
"LightWriter out = new LightWriter(outputStream);",
"out",
"new LightWriter(outputStream)",
"APayment solver = new APayment();",
"solver",
"new APayment()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class APayment {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n long n = in.longs();\n out.ans((n + 999) / 1000 * 1000 - n).ln();\n }\n\n }",
"APayment",
"public void solve(int testNumber, LightScanner in, LightWriter out) {\n long n = in.longs();\n out.ans((n + 999) / 1000 * 1000 - n).ln();\n }",
"solve",
"{\n long n = in.longs();\n out.ans((n + 999) / 1000 * 1000 - n).ln();\n }",
"long n = in.longs();",
"n",
"in.longs()",
"in.longs",
"in",
"out.ans((n + 999) / 1000 * 1000 - n).ln()",
"out.ans((n + 999) / 1000 * 1000 - n).ln",
"out.ans((n + 999) / 1000 * 1000 - n)",
"out.ans",
"out",
"(n + 999) / 1000 * 1000 - n",
"(n + 999) / 1000 * 1000",
"(n + 999) / 1000",
"(n + 999)",
"n",
"999",
"1000",
"1000",
"n",
"int testNumber",
"testNumber",
"LightScanner in",
"in",
"LightWriter out",
"out",
"static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long longs() {\n return Long.parseLong(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }",
"LightScanner",
"private BufferedReader reader = null;",
"reader",
"null",
"private StringTokenizer tokenizer = null;",
"tokenizer",
"null",
"public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }",
"LightScanner",
"{\n reader = new BufferedReader(new InputStreamReader(in));\n }",
"reader = new BufferedReader(new InputStreamReader(in))",
"reader",
"new BufferedReader(new InputStreamReader(in))",
"InputStream in",
"in",
"public String string() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"string",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(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 UncheckedIOException(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 UncheckedIOException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }",
"catch (IOException e) {\n throw new UncheckedIOException(e);\n }",
"IOException e",
"{\n throw new UncheckedIOException(e);\n }",
"throw new UncheckedIOException(e);",
"new UncheckedIOException(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 long longs() {\n return Long.parseLong(string());\n }",
"longs",
"{\n return Long.parseLong(string());\n }",
"return Long.parseLong(string());",
"Long.parseLong(string())",
"Long.parseLong",
"Long",
"string()",
"string",
"public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"close",
"{\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n this.reader.close();\n }",
"this.reader.close()",
"this.reader.close",
"this.reader",
"this",
"this.reader",
"AutoCloseable",
"static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(long l) {\n return ans(Long.toString(l));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }",
"LightWriter",
"private final Writer out;",
"out",
"private boolean autoflush = false;",
"autoflush",
"false",
"private boolean breaked = true;",
"breaked",
"true",
"public LightWriter(Writer out) {\n this.out = out;\n }",
"LightWriter",
"{\n this.out = out;\n }",
"this.out = out",
"this.out",
"this",
"this.out",
"out",
"Writer out",
"out",
"public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }",
"LightWriter",
"{\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }",
"this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()))",
"this",
"new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset())",
"OutputStream out",
"out",
"public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"print",
"{\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.write(c);\n breaked = false;\n }",
"out.write(c)",
"out.write",
"out",
"c",
"breaked = false",
"breaked",
"false",
"return this;",
"this",
"char c",
"c",
"public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"print",
"{\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.write(s, 0, s.length());\n breaked = false;\n }",
"out.write(s, 0, s.length())",
"out.write",
"out",
"s",
"0",
"s.length()",
"s.length",
"s",
"breaked = false",
"breaked",
"false",
"return this;",
"this",
"String s",
"s",
"public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }",
"ans",
"{\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }",
"if (!breaked) {\n print(' ');\n }",
"!breaked",
"breaked",
"{\n print(' ');\n }",
"print(' ')",
"print",
"' '",
"return print(s);",
"print(s)",
"print",
"s",
"String s",
"s",
"public LightWriter ans(long l) {\n return ans(Long.toString(l));\n }",
"ans",
"{\n return ans(Long.toString(l));\n }",
"return ans(Long.toString(l));",
"ans(Long.toString(l))",
"ans",
"Long.toString(l)",
"Long.toString",
"Long",
"l",
"long l",
"l",
"public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }",
"ln",
"{\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }",
"print(System.lineSeparator())",
"print",
"System.lineSeparator()",
"System.lineSeparator",
"System",
"breaked = true",
"breaked",
"true",
"if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"autoflush",
"{\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.flush();\n }",
"out.flush()",
"out.flush",
"out",
"return this;",
"this",
"public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"close",
"{\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.close();\n }",
"out.close()",
"out.close",
"out",
"AutoCloseable",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n long n = in.longs();\n out.ans((n + 999) / 1000 * 1000 - n).ln();\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long longs() {\n return Long.parseLong(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(long l) {\n return ans(Long.toString(l));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\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 LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n long n = in.longs();\n out.ans((n + 999) / 1000 * 1000 - n).ln();\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long longs() {\n return Long.parseLong(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(long l) {\n return ans(Long.toString(l));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedOutputStream;
import java.io.UncheckedIOException;
import java.nio.charset.Charset;
import java.util.StringTokenizer;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.io.BufferedReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author mikit
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
LightScanner in = new LightScanner(inputStream);
LightWriter out = new LightWriter(outputStream);
APayment solver = new APayment();
solver.solve(1, in, out);
out.close();
}
static class APayment {
public void solve(int testNumber, LightScanner in, LightWriter out) {
long n = in.longs();
out.ans((n + 999) / 1000 * 1000 - n).ln();
}
}
static class LightScanner implements AutoCloseable {
private BufferedReader reader = null;
private StringTokenizer tokenizer = null;
public LightScanner(InputStream in) {
reader = new BufferedReader(new InputStreamReader(in));
}
public String string() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
return tokenizer.nextToken();
}
public long longs() {
return Long.parseLong(string());
}
public void close() {
try {
this.reader.close();
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
}
static class LightWriter implements AutoCloseable {
private final Writer out;
private boolean autoflush = false;
private boolean breaked = true;
public LightWriter(Writer out) {
this.out = out;
}
public LightWriter(OutputStream out) {
this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));
}
public LightWriter print(char c) {
try {
out.write(c);
breaked = false;
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
return this;
}
public LightWriter print(String s) {
try {
out.write(s, 0, s.length());
breaked = false;
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
return this;
}
public LightWriter ans(String s) {
if (!breaked) {
print(' ');
}
return print(s);
}
public LightWriter ans(long l) {
return ans(Long.toString(l));
}
public LightWriter ln() {
print(System.lineSeparator());
breaked = true;
if (autoflush) {
try {
out.flush();
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
return this;
}
public void close() {
try {
out.close();
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
2,
4,
18,
13,
17,
0,
13,
8,
2,
13,
17,
17,
2,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
38,
5
],
[
38,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
14,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
6,
35
],
[
35,
36
],
[
0,
37
],
[
37,
38
],
[
37,
39
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String aargs[]){\n Scanner sc = new Scanner(System.in);\n \n int ans = sc.nextInt() % 1000;\n \n ans = (ans == 0) ? 0 : 1000 - ans;\n \n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String aargs[]){\n Scanner sc = new Scanner(System.in);\n \n int ans = sc.nextInt() % 1000;\n \n ans = (ans == 0) ? 0 : 1000 - ans;\n \n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String aargs[]){\n Scanner sc = new Scanner(System.in);\n \n int ans = sc.nextInt() % 1000;\n \n ans = (ans == 0) ? 0 : 1000 - ans;\n \n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int ans = sc.nextInt() % 1000;\n \n ans = (ans == 0) ? 0 : 1000 - ans;\n \n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int ans = sc.nextInt() % 1000;",
"ans",
"sc.nextInt() % 1000",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1000",
"ans = (ans == 0) ? 0 : 1000 - ans",
"ans",
"(ans == 0) ? 0 : 1000 - ans",
"(ans == 0)",
"ans",
"0",
"0",
"1000 - ans",
"1000",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String aargs[]",
"aargs",
"public class Main{\n public static void main(String aargs[]){\n Scanner sc = new Scanner(System.in);\n \n int ans = sc.nextInt() % 1000;\n \n ans = (ans == 0) ? 0 : 1000 - ans;\n \n System.out.println(ans);\n }\n}",
"public class Main{\n public static void main(String aargs[]){\n Scanner sc = new Scanner(System.in);\n \n int ans = sc.nextInt() % 1000;\n \n ans = (ans == 0) ? 0 : 1000 - ans;\n \n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String aargs[]){
Scanner sc = new Scanner(System.in);
int ans = sc.nextInt() % 1000;
ans = (ans == 0) ? 0 : 1000 - ans;
System.out.println(ans);
}
} |
[
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,
0,
13,
17,
14,
2,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
17,
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
],
[
92,
8
],
[
92,
9
],
[
9,
10
],
[
92,
11
],
[
11,
12
],
[
92,
13
],
[
13,
14
],
[
92,
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
],
[
17,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
17,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
15,
43
],
[
43,
44
],
[
92,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
92,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
92,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
92,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
75,
84
],
[
84,
85
],
[
84,
86
],
[
74,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
]
| [
"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\n N %= 1000;\n \n if(N==0) N = 1000;\n\n System.out.println(1000 - N);\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\n N %= 1000;\n \n if(N==0) N = 1000;\n\n System.out.println(1000 - N);\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\n N %= 1000;\n \n if(N==0) N = 1000;\n\n System.out.println(1000 - N);\n\n }",
"main",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n\n int N = nextInt();\n\n N %= 1000;\n \n if(N==0) N = 1000;\n\n System.out.println(1000 - N);\n\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int N = nextInt();",
"N",
"nextInt()",
"nextInt",
"N %= 1000",
"N",
"1000",
"if(N==0) N = 1000;",
"N==0",
"N",
"0",
"N = 1000",
"N",
"1000",
"System.out.println(1000 - N)",
"System.out.println",
"System.out",
"System",
"System.out",
"1000 - N",
"1000",
"N",
"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\n N %= 1000;\n \n if(N==0) N = 1000;\n\n System.out.println(1000 - N);\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\n N %= 1000;\n \n if(N==0) N = 1000;\n\n System.out.println(1000 - N);\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();
N %= 1000;
if(N==0) N = 1000;
System.out.println(1000 - N);
}
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,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
40,
17,
41,
13,
17,
42,
2,
13,
40,
17,
30,
0,
13,
2,
2,
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
],
[
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
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
29,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
6,
45
],
[
45,
46
]
]
| [
"import java.util.*;\n \nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \tint ret = -1;\n \tint cnt = 1;\n \twhile(ret <= -1){\n ret = cnt*1000 - a;\n cnt++;\n }\n\t\t\n \tSystem.out.println(ret);\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 a = sc.nextInt();\n \tint ret = -1;\n \tint cnt = 1;\n \twhile(ret <= -1){\n ret = cnt*1000 - a;\n cnt++;\n }\n\t\t\n \tSystem.out.println(ret);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \tint ret = -1;\n \tint cnt = 1;\n \twhile(ret <= -1){\n ret = cnt*1000 - a;\n cnt++;\n }\n\t\t\n \tSystem.out.println(ret);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \tint ret = -1;\n \tint cnt = 1;\n \twhile(ret <= -1){\n ret = cnt*1000 - a;\n cnt++;\n }\n\t\t\n \tSystem.out.println(ret);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ret = -1;",
"ret",
"-1",
"1",
"int cnt = 1;",
"cnt",
"1",
"while(ret <= -1){\n ret = cnt*1000 - a;\n cnt++;\n }",
"ret <= -1",
"ret",
"-1",
"1",
"{\n ret = cnt*1000 - a;\n cnt++;\n }",
"ret = cnt*1000 - a",
"ret",
"cnt*1000 - a",
"cnt*1000",
"cnt",
"1000",
"a",
"cnt++",
"cnt",
"System.out.println(ret)",
"System.out.println",
"System.out",
"System",
"System.out",
"ret",
"String[] args",
"args"
]
| import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int ret = -1;
int cnt = 1;
while(ret <= -1){
ret = cnt*1000 - a;
cnt++;
}
System.out.println(ret);
}
} |
[
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,
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,
2,
2,
17,
2,
13,
17,
17,
23,
13,
23,
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,
30,
38,
5,
13,
30,
29,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
29,
17,
0,
13,
20,
29,
4,
18,
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
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
152,
29
],
[
152,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
32,
46
],
[
46,
47
],
[
46,
48
],
[
32,
49
],
[
49,
50
],
[
49,
51
],
[
32,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
52,
57
],
[
32,
58
],
[
58,
59
],
[
59,
60
],
[
30,
61
],
[
61,
62
],
[
152,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
76,
82
],
[
65,
83
],
[
83,
84
],
[
65,
85
],
[
85,
86
],
[
65,
87
],
[
87,
88
],
[
152,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
89,
93
],
[
93,
94
],
[
89,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
95,
101
],
[
101,
102
],
[
89,
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
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
116,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
122,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
122,
135
],
[
135,
136
],
[
135,
137
],
[
105,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
89,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
149,
150
],
[
0,
151
],
[
151,
152
],
[
151,
153
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\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 MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, MyScanner in, PrintWriter out) {\n int N = in.Int();\n out.println((1000 - (N % 1000)) % 1000);\n }\n\n }\n\n static class MyScanner {\n private BufferedReader in;\n private StringTokenizer st;\n\n public MyScanner(InputStream stream) {\n in = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }\n\n public int Int() {\n return Integer.parseInt(next());\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.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"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 MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, MyScanner in, PrintWriter out) {\n int N = in.Int();\n out.println((1000 - (N % 1000)) % 1000);\n }\n\n }\n\n static class MyScanner {\n private BufferedReader in;\n private StringTokenizer st;\n\n public MyScanner(InputStream stream) {\n in = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }\n\n public int Int() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\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",
"MyScanner in = new MyScanner(inputStream);",
"in",
"new MyScanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"A solver = new A();",
"solver",
"new A()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class A {\n public void solve(int testNumber, MyScanner in, PrintWriter out) {\n int N = in.Int();\n out.println((1000 - (N % 1000)) % 1000);\n }\n\n }",
"A",
"public void solve(int testNumber, MyScanner in, PrintWriter out) {\n int N = in.Int();\n out.println((1000 - (N % 1000)) % 1000);\n }",
"solve",
"{\n int N = in.Int();\n out.println((1000 - (N % 1000)) % 1000);\n }",
"int N = in.Int();",
"N",
"in.Int()",
"in.Int",
"in",
"out.println((1000 - (N % 1000)) % 1000)",
"out.println",
"out",
"(1000 - (N % 1000)) % 1000",
"(1000 - (N % 1000))",
"1000",
"(N % 1000)",
"N",
"1000",
"1000",
"int testNumber",
"testNumber",
"MyScanner in",
"in",
"PrintWriter out",
"out",
"static class MyScanner {\n private BufferedReader in;\n private StringTokenizer st;\n\n public MyScanner(InputStream stream) {\n in = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }\n\n public int Int() {\n return Integer.parseInt(next());\n }\n\n }",
"MyScanner",
"private BufferedReader in;",
"in",
"private StringTokenizer st;",
"st",
"public MyScanner(InputStream stream) {\n in = new BufferedReader(new InputStreamReader(stream));\n }",
"MyScanner",
"{\n in = new BufferedReader(new InputStreamReader(stream));\n }",
"in = new BufferedReader(new InputStreamReader(stream))",
"in",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }",
"try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }",
"catch (IOException e) {\n return null;\n }",
"IOException e",
"{\n return null;\n }",
"return null;",
"null",
"{\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n }",
"String rl = in.readLine();",
"rl",
"in.readLine()",
"in.readLine",
"in",
"if (rl == null) {\n return null;\n }",
"rl == null",
"rl",
"null",
"{\n return null;\n }",
"return null;",
"null",
"st = new StringTokenizer(rl)",
"st",
"new StringTokenizer(rl)",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int Int() {\n return Integer.parseInt(next());\n }",
"Int",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, MyScanner in, PrintWriter out) {\n int N = in.Int();\n out.println((1000 - (N % 1000)) % 1000);\n }\n\n }\n\n static class MyScanner {\n private BufferedReader in;\n private StringTokenizer st;\n\n public MyScanner(InputStream stream) {\n in = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }\n\n public int Int() {\n return Integer.parseInt(next());\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 MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, MyScanner in, PrintWriter out) {\n int N = in.Int();\n out.println((1000 - (N % 1000)) % 1000);\n }\n\n }\n\n static class MyScanner {\n private BufferedReader in;\n private StringTokenizer st;\n\n public MyScanner(InputStream stream) {\n in = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }\n\n public int Int() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
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;
MyScanner in = new MyScanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
A solver = new A();
solver.solve(1, in, out);
out.close();
}
static class A {
public void solve(int testNumber, MyScanner in, PrintWriter out) {
int N = in.Int();
out.println((1000 - (N % 1000)) % 1000);
}
}
static class MyScanner {
private BufferedReader in;
private StringTokenizer st;
public MyScanner(InputStream stream) {
in = new BufferedReader(new InputStreamReader(stream));
}
public String next() {
while (st == null || !st.hasMoreTokens()) {
try {
String rl = in.readLine();
if (rl == null) {
return null;
}
st = new StringTokenizer(rl);
} catch (IOException e) {
return null;
}
}
return st.nextToken();
}
public int Int() {
return Integer.parseInt(next());
}
}
}
|
[
7,
6,
13,
12,
13,
30,
41,
13,
4,
18,
20,
4,
18,
18,
13,
13,
2,
2,
17,
2,
13,
17,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
26,
2
],
[
26,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
5,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
11,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
16,
22
],
[
3,
23
],
[
23,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
]
]
| [
"public class Main{\n public static void main(String[] args){\n int n = new java.util.Scanner(System.in).nextInt();\n System.out.println((1000-n%1000)%1000);\n }\n}",
"public class Main{\n public static void main(String[] args){\n int n = new java.util.Scanner(System.in).nextInt();\n System.out.println((1000-n%1000)%1000);\n }\n}",
"Main",
"public static void main(String[] args){\n int n = new java.util.Scanner(System.in).nextInt();\n System.out.println((1000-n%1000)%1000);\n }",
"main",
"{\n int n = new java.util.Scanner(System.in).nextInt();\n System.out.println((1000-n%1000)%1000);\n }",
"int n = new java.util.Scanner(System.in).nextInt();",
"n",
"new java.util.Scanner(System.in).nextInt()",
"new java.util.Scanner(System.in).nextInt",
"new java.util.Scanner(System.in)",
"System.out.println((1000-n%1000)%1000)",
"System.out.println",
"System.out",
"System",
"System.out",
"(1000-n%1000)%1000",
"(1000-n%1000)",
"1000",
"n%1000",
"n",
"1000",
"1000",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n int n = new java.util.Scanner(System.in).nextInt();\n System.out.println((1000-n%1000)%1000);\n }\n}",
"public class Main{\n public static void main(String[] args){\n int n = new java.util.Scanner(System.in).nextInt();\n System.out.println((1000-n%1000)%1000);\n }\n}",
"Main"
]
| public class Main{
public static void main(String[] args){
int n = new java.util.Scanner(System.in).nextInt();
System.out.println((1000-n%1000)%1000);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
0,
13,
2,
13,
17,
30,
30,
29,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
59,
5
],
[
59,
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
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
6,
28
],
[
28,
29
],
[
59,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
36,
50
],
[
51,
51
],
[
32,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
30,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int total = in.nextInt();\n int ans = thousands(total);\n System.out.println(ans);\n }\n\n // N = 1900;\n public static int thousands(int N) {\n int total = 0;\n for (total = 1000; total < N; total = total + 1000) {\n }\n return total - N;\n }\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int total = in.nextInt();\n int ans = thousands(total);\n System.out.println(ans);\n }\n\n // N = 1900;\n public static int thousands(int N) {\n int total = 0;\n for (total = 1000; total < N; total = total + 1000) {\n }\n return total - N;\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int total = in.nextInt();\n int ans = thousands(total);\n System.out.println(ans);\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int total = in.nextInt();\n int ans = thousands(total);\n System.out.println(ans);\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int total = in.nextInt();",
"total",
"in.nextInt()",
"in.nextInt",
"in",
"int ans = thousands(total);",
"ans",
"thousands(total)",
"thousands",
"total",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"// N = 1900;\n public static int thousands(int N) {\n int total = 0;\n for (total = 1000; total < N; total = total + 1000) {\n }\n return total - N;\n }",
"thousands",
"{\n int total = 0;\n for (total = 1000; total < N; total = total + 1000) {\n }\n return total - N;\n }",
"int total = 0;",
"total",
"0",
"for (total = 1000; total < N; total = total + 1000) {\n }",
"total = 1000;",
"total = 1000",
"total",
"1000",
"total < N",
"total",
"N",
"total = total + 1000",
"total = total + 1000",
"total",
"total + 1000",
"total",
"1000",
"{\n }",
"{\n }",
"return total - N;",
"total - N",
"total",
"N",
"int N",
"N",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int total = in.nextInt();\n int ans = thousands(total);\n System.out.println(ans);\n }\n\n // N = 1900;\n public static int thousands(int N) {\n int total = 0;\n for (total = 1000; total < N; total = total + 1000) {\n }\n return total - N;\n }\n\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int total = in.nextInt();\n int ans = thousands(total);\n System.out.println(ans);\n }\n\n // N = 1900;\n public static int thousands(int N) {\n int total = 0;\n for (total = 1000; total < N; total = total + 1000) {\n }\n return total - N;\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int total = in.nextInt();
int ans = thousands(total);
System.out.println(ans);
}
// N = 1900;
public static int thousands(int N) {
int total = 0;
for (total = 1000; total < N; total = total + 1000) {
}
return total - N;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
4,
18,
13,
17,
17,
4,
18,
18,
13,
13,
2,
2,
17,
2,
13,
17,
17,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
40,
5
],
[
40,
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
],
[
19,
20
],
[
20,
21
],
[
17,
22
],
[
17,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
29,
35
],
[
8,
36
],
[
6,
37
],
[
37,
38
],
[
0,
39
],
[
39,
40
],
[
39,
41
]
]
| [
"import java.io.*;\n// import java.math.*;\n// import java.util.*;\n// import java.util.Map.*;\n// import java.util.stream.*;\n\npublic class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int N = Integer.parseInt (reader.readLine().replace (\" \", \"\"));\n System.out.println ((1000 - N % 1000) % 1000);\n return;\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int N = Integer.parseInt (reader.readLine().replace (\" \", \"\"));\n System.out.println ((1000 - N % 1000) % 1000);\n return;\n }\n}",
"Main",
"public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int N = Integer.parseInt (reader.readLine().replace (\" \", \"\"));\n System.out.println ((1000 - N % 1000) % 1000);\n return;\n }",
"main",
"{\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int N = Integer.parseInt (reader.readLine().replace (\" \", \"\"));\n System.out.println ((1000 - N % 1000) % 1000);\n return;\n }",
"BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));",
"reader",
"new BufferedReader (new InputStreamReader (System.in))",
"int N = Integer.parseInt (reader.readLine().replace (\" \", \"\"));",
"N",
"Integer.parseInt (reader.readLine().replace (\" \", \"\"))",
"Integer.parseInt",
"Integer",
"reader.readLine().replace (\" \", \"\")",
"reader.readLine().replace",
"reader.readLine()",
"reader.readLine",
"reader",
"\" \"",
"\"\"",
"System.out.println ((1000 - N % 1000) % 1000)",
"System.out.println",
"System.out",
"System",
"System.out",
"(1000 - N % 1000) % 1000",
"(1000 - N % 1000)",
"1000",
"N % 1000",
"N",
"1000",
"1000",
"return;",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int N = Integer.parseInt (reader.readLine().replace (\" \", \"\"));\n System.out.println ((1000 - N % 1000) % 1000);\n return;\n }\n}",
"public class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int N = Integer.parseInt (reader.readLine().replace (\" \", \"\"));\n System.out.println ((1000 - N % 1000) % 1000);\n return;\n }\n}",
"Main"
]
| import java.io.*;
// import java.math.*;
// import java.util.*;
// import java.util.Map.*;
// import java.util.stream.*;
public class Main {
public static void main (String[] args) throws Exception {
BufferedReader reader =
new BufferedReader (new InputStreamReader (System.in));
int N = Integer.parseInt (reader.readLine().replace (" ", ""));
System.out.println ((1000 - N % 1000) % 1000);
return;
}
} |
[
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,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
41,
13,
2,
2,
13,
13,
17,
42,
2,
13,
13,
30,
14,
2,
18,
13,
13,
13,
30,
0,
13,
2,
13,
17,
14,
2,
18,
13,
13,
13,
30,
29,
13,
30,
0,
13,
2,
13,
17,
0,
13,
2,
2,
13,
13,
17,
14,
2,
13,
13,
30,
29,
40,
17,
29,
40,
17,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
17,
4,
18,
13,
2,
2,
13,
17,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
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,
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,
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
],
[
242,
17
],
[
242,
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
],
[
20,
45
],
[
45,
46
],
[
46,
47
],
[
18,
48
],
[
48,
49
],
[
242,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
69,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
81,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
68,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
56,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
56,
111
],
[
111,
112
],
[
112,
113
],
[
54,
114
],
[
114,
115
],
[
54,
116
],
[
116,
117
],
[
54,
118
],
[
118,
119
],
[
54,
120
],
[
120,
121
],
[
50,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
131,
132
],
[
124,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
138,
139
],
[
138,
140
],
[
124,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
122,
149
],
[
149,
150
],
[
122,
151
],
[
151,
152
],
[
242,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
153,
157
],
[
157,
158
],
[
157,
159
],
[
153,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
160,
168
],
[
168,
169
],
[
153,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
173,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
179,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
172,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
153,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
201,
202
],
[
153,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
207,
210
],
[
210,
211
],
[
153,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
219,
227
],
[
227,
228
],
[
228,
229
],
[
219,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
214,
237
],
[
237,
238
],
[
212,
239
],
[
239,
240
],
[
0,
241
],
[
241,
242
],
[
241,
243
]
]
| [
"import javax.print.attribute.SupportedValuesAttribute;\nimport java.io.*;\nimport java.lang.reflect.Array;\nimport java.util.*;\nimport java.util.function.Predicate;\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 PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\n }\n\n static class TaskB {\n\n\n public static int binarySearch(int arr[], int low, int high, int key)\n {\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }\n\n public static int[][] maxPos;\n\n public void solve(InputReader in, PrintWriter out) {\n double money = Double.parseDouble(in.next());\n\n int bills = (int)Math.ceil(money/1000);\n\n out.println((bills*1000)-((int)money));\n }\n }\n\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\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 int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n }\n}",
"import javax.print.attribute.SupportedValuesAttribute;",
"SupportedValuesAttribute",
"javax.print.attribute",
"import java.io.*;",
"io.*",
"java",
"import java.lang.reflect.Array;",
"Array",
"java.lang.reflect",
"import java.util.*;",
"util.*",
"java",
"import java.util.function.Predicate;",
"Predicate",
"java.util.function",
"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 PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\n }\n\n static class TaskB {\n\n\n public static int binarySearch(int arr[], int low, int high, int key)\n {\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }\n\n public static int[][] maxPos;\n\n public void solve(InputReader in, PrintWriter out) {\n double money = Double.parseDouble(in.next());\n\n int bills = (int)Math.ceil(money/1000);\n\n out.println((bills*1000)-((int)money));\n }\n }\n\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\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 int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\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 PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\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 TaskB solver = new TaskB();\n solver.solve(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)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskB solver = new TaskB();",
"solver",
"new TaskB()",
"solver.solve(in, out)",
"solver.solve",
"solver",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskB {\n\n\n public static int binarySearch(int arr[], int low, int high, int key)\n {\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }\n\n public static int[][] maxPos;\n\n public void solve(InputReader in, PrintWriter out) {\n double money = Double.parseDouble(in.next());\n\n int bills = (int)Math.ceil(money/1000);\n\n out.println((bills*1000)-((int)money));\n }\n }",
"TaskB",
"public static int[][] maxPos;",
"maxPos",
"public static int binarySearch(int arr[], int low, int high, int key)\n {\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }",
"binarySearch",
"{\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }",
"int mid = (low + high)/2;",
"mid",
"(low + high)/2",
"(low + high)",
"low",
"high",
"2",
"while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }",
"low <= high",
"low",
"high",
"{\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }",
"if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }",
"arr[mid] < key",
"arr[mid]",
"arr",
"mid",
"key",
"{\n low = mid + 1;\n }",
"low = mid + 1",
"low",
"mid + 1",
"mid",
"1",
"if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }",
"arr[mid] == key",
"arr[mid]",
"arr",
"mid",
"key",
"{\n return mid;\n }",
"return mid;",
"mid",
"{\n high = mid - 1;\n }",
"high = mid - 1",
"high",
"mid - 1",
"mid",
"1",
"mid = (low + high)/2",
"mid",
"(low + high)/2",
"(low + high)",
"low",
"high",
"2",
"if( low > high )\n {\n return -1;\n }",
"low > high",
"low",
"high",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return -1;",
"-1",
"1",
"int arr[]",
"arr",
"int low",
"low",
"int high",
"high",
"int key",
"key",
"public void solve(InputReader in, PrintWriter out) {\n double money = Double.parseDouble(in.next());\n\n int bills = (int)Math.ceil(money/1000);\n\n out.println((bills*1000)-((int)money));\n }",
"solve",
"{\n double money = Double.parseDouble(in.next());\n\n int bills = (int)Math.ceil(money/1000);\n\n out.println((bills*1000)-((int)money));\n }",
"double money = Double.parseDouble(in.next());",
"money",
"Double.parseDouble(in.next())",
"Double.parseDouble",
"Double",
"in.next()",
"in.next",
"in",
"int bills = (int)Math.ceil(money/1000);",
"bills",
"(int)Math.ceil(money/1000)",
"Math.ceil",
"Math",
"money/1000",
"money",
"1000",
"out.println((bills*1000)-((int)money))",
"out.println",
"out",
"(bills*1000)-((int)money)",
"(bills*1000)",
"bills",
"1000",
"((int)money)",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\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 int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n }",
"InputReader",
"private BufferedReader reader;",
"reader",
"private StringTokenizer tokenizer = new StringTokenizer(\"\");",
"tokenizer",
"new StringTokenizer(\"\")",
"public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }",
"InputReader",
"{\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }",
"this.reader = new BufferedReader(\n new InputStreamReader(inputStream))",
"this.reader",
"this",
"this.reader",
"new BufferedReader(\n new InputStreamReader(inputStream))",
"InputStream inputStream",
"inputStream",
"public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return tokenizer.nextToken();\n }",
"while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.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 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 int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }",
"nextIntArray",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\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();",
"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",
"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 PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\n }\n\n static class TaskB {\n\n\n public static int binarySearch(int arr[], int low, int high, int key)\n {\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }\n\n public static int[][] maxPos;\n\n public void solve(InputReader in, PrintWriter out) {\n double money = Double.parseDouble(in.next());\n\n int bills = (int)Math.ceil(money/1000);\n\n out.println((bills*1000)-((int)money));\n }\n }\n\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\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 int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\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 PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\n }\n\n static class TaskB {\n\n\n public static int binarySearch(int arr[], int low, int high, int key)\n {\n int mid = (low + high)/2;\n while( low <= high )\n {\n if ( arr[mid] < key )\n {\n low = mid + 1;\n }\n else if ( arr[mid] == key )\n {\n return mid;\n }else\n {\n high = mid - 1;\n }\n mid = (low + high)/2;\n }\n if( low > high )\n {\n return -1;\n }\n return -1;\n }\n\n public static int[][] maxPos;\n\n public void solve(InputReader in, PrintWriter out) {\n double money = Double.parseDouble(in.next());\n\n int bills = (int)Math.ceil(money/1000);\n\n out.println((bills*1000)-((int)money));\n }\n }\n\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\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 int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n }\n}",
"Main"
]
| import javax.print.attribute.SupportedValuesAttribute;
import java.io.*;
import java.lang.reflect.Array;
import java.util.*;
import java.util.function.Predicate;
public class Main{
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskB solver = new TaskB();
solver.solve(in, out);
out.close();
}
static class TaskB {
public static int binarySearch(int arr[], int low, int high, int key)
{
int mid = (low + high)/2;
while( low <= high )
{
if ( arr[mid] < key )
{
low = mid + 1;
}
else if ( arr[mid] == key )
{
return mid;
}else
{
high = mid - 1;
}
mid = (low + high)/2;
}
if( low > high )
{
return -1;
}
return -1;
}
public static int[][] maxPos;
public void solve(InputReader in, PrintWriter out) {
double money = Double.parseDouble(in.next());
int bills = (int)Math.ceil(money/1000);
out.println((bills*1000)-((int)money));
}
}
static class InputReader {
private BufferedReader reader;
private StringTokenizer tokenizer = new StringTokenizer("");
public InputReader(InputStream inputStream) {
this.reader = new BufferedReader(
new InputStreamReader(inputStream));
}
public String next() {
while (!tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public long nextLong() {
return Long.parseLong(next());
}
public int[] nextIntArray(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
30,
0,
13,
2,
17,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
46,
5
],
[
46,
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
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
19,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
19,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
]
| [
"import java.util.*;\n\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 back;\n if (N % 1000 == 0) {\n back = 0;\n }else {\n back = 1000 - (N % 1000);\n }\n System.out.println(back);\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 \n int N = sc.nextInt();\n int back;\n if (N % 1000 == 0) {\n back = 0;\n }else {\n back = 1000 - (N % 1000);\n }\n System.out.println(back);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int back;\n if (N % 1000 == 0) {\n back = 0;\n }else {\n back = 1000 - (N % 1000);\n }\n System.out.println(back);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int back;\n if (N % 1000 == 0) {\n back = 0;\n }else {\n back = 1000 - (N % 1000);\n }\n System.out.println(back);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int back;",
"back",
"if (N % 1000 == 0) {\n back = 0;\n }else {\n back = 1000 - (N % 1000);\n }",
"N % 1000 == 0",
"N % 1000",
"N",
"1000",
"0",
"{\n back = 0;\n }",
"back = 0",
"back",
"0",
"{\n back = 1000 - (N % 1000);\n }",
"back = 1000 - (N % 1000)",
"back",
"1000 - (N % 1000)",
"1000",
"(N % 1000)",
"N",
"1000",
"System.out.println(back)",
"System.out.println",
"System.out",
"System",
"System.out",
"back",
"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 back;\n if (N % 1000 == 0) {\n back = 0;\n }else {\n back = 1000 - (N % 1000);\n }\n System.out.println(back);\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 back;\n if (N % 1000 == 0) {\n back = 0;\n }else {\n back = 1000 - (N % 1000);\n }\n System.out.println(back);\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 back;
if (N % 1000 == 0) {
back = 0;
}else {
back = 1000 - (N % 1000);
}
System.out.println(back);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
17,
2,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
50,
5
],
[
50,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
21,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
21,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
6,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n int n, res;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n if (n % 1000 != 0) {\n res = 1000 - n % 1000;\n System.out.println(res);\n\n } else System.out.println(\"0\");\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n int n, res;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n if (n % 1000 != 0) {\n res = 1000 - n % 1000;\n System.out.println(res);\n\n } else System.out.println(\"0\");\n\n }\n}",
"Main",
"public static void main(String[] args) {\n int n, res;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n if (n % 1000 != 0) {\n res = 1000 - n % 1000;\n System.out.println(res);\n\n } else System.out.println(\"0\");\n\n }",
"main",
"{\n int n, res;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n if (n % 1000 != 0) {\n res = 1000 - n % 1000;\n System.out.println(res);\n\n } else System.out.println(\"0\");\n\n }",
"int n",
"n",
"res;",
"res",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (n % 1000 != 0) {\n res = 1000 - n % 1000;\n System.out.println(res);\n\n } else System.out.println(\"0\");",
"n % 1000 != 0",
"n % 1000",
"n",
"1000",
"0",
"{\n res = 1000 - n % 1000;\n System.out.println(res);\n\n }",
"res = 1000 - n % 1000",
"res",
"1000 - n % 1000",
"1000",
"n % 1000",
"n",
"1000",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"System.out.println(\"0\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"0\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n int n, res;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n if (n % 1000 != 0) {\n res = 1000 - n % 1000;\n System.out.println(res);\n\n } else System.out.println(\"0\");\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n int n, res;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n if (n % 1000 != 0) {\n res = 1000 - n % 1000;\n System.out.println(res);\n\n } else System.out.println(\"0\");\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int n, res;
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
if (n % 1000 != 0) {
res = 1000 - n % 1000;
System.out.println(res);
} else System.out.println("0");
}
}
|
[
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,
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,
17,
42,
17,
30,
14,
2,
13,
13,
30,
4,
18,
13,
2,
13,
13,
3,
0,
13,
17,
23,
13,
23,
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,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
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
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
151,
29
],
[
151,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
32,
46
],
[
46,
47
],
[
46,
48
],
[
32,
49
],
[
49,
50
],
[
49,
51
],
[
32,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
52,
57
],
[
32,
58
],
[
58,
59
],
[
59,
60
],
[
30,
61
],
[
61,
62
],
[
151,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
67,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
87,
89
],
[
83,
90
],
[
78,
91
],
[
91,
92
],
[
91,
93
],
[
65,
94
],
[
94,
95
],
[
65,
96
],
[
96,
97
],
[
65,
98
],
[
98,
99
],
[
151,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
100,
104
],
[
104,
105
],
[
100,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
106,
112
],
[
112,
113
],
[
100,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
117,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
127,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
116,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
100,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
148,
149
],
[
0,
150
],
[
150,
151
],
[
150,
152
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author HussienMoustafa\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 APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, Scanner s, PrintWriter sout) {\n int n = s.nextInt(), sum = 1000;\n\n while (true) {\n if (sum >= n) {\n sout.println(sum - n);\n break;\n }\n sum += 1000;\n }\n }\n\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\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.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"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 Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, Scanner s, PrintWriter sout) {\n int n = s.nextInt(), sum = 1000;\n\n while (true) {\n if (sum >= n) {\n sout.println(sum - n);\n break;\n }\n sum += 1000;\n }\n }\n\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\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 APayment solver = new APayment();\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 APayment solver = new APayment();\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)",
"APayment solver = new APayment();",
"solver",
"new APayment()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class APayment {\n public void solve(int testNumber, Scanner s, PrintWriter sout) {\n int n = s.nextInt(), sum = 1000;\n\n while (true) {\n if (sum >= n) {\n sout.println(sum - n);\n break;\n }\n sum += 1000;\n }\n }\n\n }",
"APayment",
"public void solve(int testNumber, Scanner s, PrintWriter sout) {\n int n = s.nextInt(), sum = 1000;\n\n while (true) {\n if (sum >= n) {\n sout.println(sum - n);\n break;\n }\n sum += 1000;\n }\n }",
"solve",
"{\n int n = s.nextInt(), sum = 1000;\n\n while (true) {\n if (sum >= n) {\n sout.println(sum - n);\n break;\n }\n sum += 1000;\n }\n }",
"int n = s.nextInt()",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"sum = 1000;",
"sum",
"1000",
"while (true) {\n if (sum >= n) {\n sout.println(sum - n);\n break;\n }\n sum += 1000;\n }",
"true",
"{\n if (sum >= n) {\n sout.println(sum - n);\n break;\n }\n sum += 1000;\n }",
"if (sum >= n) {\n sout.println(sum - n);\n break;\n }",
"sum >= n",
"sum",
"n",
"{\n sout.println(sum - n);\n break;\n }",
"sout.println(sum - n)",
"sout.println",
"sout",
"sum - n",
"sum",
"n",
"break;",
"sum += 1000",
"sum",
"1000",
"int testNumber",
"testNumber",
"Scanner s",
"s",
"PrintWriter sout",
"sout",
"static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\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 String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException 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 (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n st = new StringTokenizer(br.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 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 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 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 APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, Scanner s, PrintWriter sout) {\n int n = s.nextInt(), sum = 1000;\n\n while (true) {\n if (sum >= n) {\n sout.println(sum - n);\n break;\n }\n sum += 1000;\n }\n }\n\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\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 APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, Scanner s, PrintWriter sout) {\n int n = s.nextInt(), sum = 1000;\n\n while (true) {\n if (sum >= n) {\n sout.println(sum - n);\n break;\n }\n sum += 1000;\n }\n }\n\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author HussienMoustafa
*/
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);
APayment solver = new APayment();
solver.solve(1, in, out);
out.close();
}
static class APayment {
public void solve(int testNumber, Scanner s, PrintWriter sout) {
int n = s.nextInt(), sum = 1000;
while (true) {
if (sum >= n) {
sout.println(sum - n);
break;
}
sum += 1000;
}
}
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
public String next() {
while (st == null || !st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return st.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.