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,
41,
13,
20,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
0,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
67,
8
],
[
67,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
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
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
42,
54
],
[
54,
55
],
[
54,
56
],
[
11,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
11,
61
],
[
61,
62
],
[
62,
63
],
[
9,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n long sum = 0;\n int n = Integer.parseInt(f.readLine());\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0) sum+=i;\n }\n out.println(sum);\n out.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n long sum = 0;\n int n = Integer.parseInt(f.readLine());\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0) sum+=i;\n }\n out.println(sum);\n out.close();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n long sum = 0;\n int n = Integer.parseInt(f.readLine());\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0) sum+=i;\n }\n out.println(sum);\n out.close();\n }",
"main",
"{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n long sum = 0;\n int n = Integer.parseInt(f.readLine());\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0) sum+=i;\n }\n out.println(sum);\n out.close();\n }",
"BufferedReader f = new BufferedReader(new InputStreamReader(System.in));",
"f",
"new BufferedReader(new InputStreamReader(System.in))",
"PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));",
"out",
"new PrintWriter(new OutputStreamWriter(System.out))",
"long sum = 0;",
"sum",
"0",
"int n = Integer.parseInt(f.readLine());",
"n",
"Integer.parseInt(f.readLine())",
"Integer.parseInt",
"Integer",
"f.readLine()",
"f.readLine",
"f",
"for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0) sum+=i;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i % 3 != 0 && i % 5 != 0) sum+=i;\n }",
"{\n if(i % 3 != 0 && i % 5 != 0) sum+=i;\n }",
"if(i % 3 != 0 && i % 5 != 0) sum+=i;",
"i % 3 != 0 && i % 5 != 0",
"i % 3 != 0",
"i % 3",
"i",
"3",
"0",
"i % 5 != 0",
"i % 5",
"i",
"5",
"0",
"sum+=i",
"sum",
"i",
"out.println(sum)",
"out.println",
"out",
"sum",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n long sum = 0;\n int n = Integer.parseInt(f.readLine());\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0) sum+=i;\n }\n out.println(sum);\n out.close();\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n long sum = 0;\n int n = Integer.parseInt(f.readLine());\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0) sum+=i;\n }\n out.println(sum);\n out.close();\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
long sum = 0;
int n = Integer.parseInt(f.readLine());
for(int i = 1; i <= n; i++){
if(i % 3 != 0 && i % 5 != 0) sum+=i;
}
out.println(sum);
out.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
18,
13,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
40,
13,
9,
0,
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
],
[
83,
8
],
[
83,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
19,
20
],
[
18,
21
],
[
9,
22
],
[
22,
23
],
[
83,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
28,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
44,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
44,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
42,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
41,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
28,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
26,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Question question = new Question();\n question.solve(sc);\n }\n\n static class Question {\n public void solve(Scanner sc) {\n int n = sc.nextInt();\n long sum = 0;\n while(n > 0) {\n if(n % 3 == 0 && n % 5 == 0 || n % 3 == 0 || n % 5 == 0) {\n n--;\n continue;\n }\n sum += n--;\n }\n System.out.println(sum);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Question question = new Question();\n question.solve(sc);\n }\n\n static class Question {\n public void solve(Scanner sc) {\n int n = sc.nextInt();\n long sum = 0;\n while(n > 0) {\n if(n % 3 == 0 && n % 5 == 0 || n % 3 == 0 || n % 5 == 0) {\n n--;\n continue;\n }\n sum += n--;\n }\n System.out.println(sum);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Question question = new Question();\n question.solve(sc);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n Question question = new Question();\n question.solve(sc);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Question question = new Question();",
"question",
"new Question()",
"question.solve(sc)",
"question.solve",
"question",
"sc",
"String[] args",
"args",
"static class Question {\n public void solve(Scanner sc) {\n int n = sc.nextInt();\n long sum = 0;\n while(n > 0) {\n if(n % 3 == 0 && n % 5 == 0 || n % 3 == 0 || n % 5 == 0) {\n n--;\n continue;\n }\n sum += n--;\n }\n System.out.println(sum);\n }\n }",
"Question",
"public void solve(Scanner sc) {\n int n = sc.nextInt();\n long sum = 0;\n while(n > 0) {\n if(n % 3 == 0 && n % 5 == 0 || n % 3 == 0 || n % 5 == 0) {\n n--;\n continue;\n }\n sum += n--;\n }\n System.out.println(sum);\n }",
"solve",
"{\n int n = sc.nextInt();\n long sum = 0;\n while(n > 0) {\n if(n % 3 == 0 && n % 5 == 0 || n % 3 == 0 || n % 5 == 0) {\n n--;\n continue;\n }\n sum += n--;\n }\n System.out.println(sum);\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"while(n > 0) {\n if(n % 3 == 0 && n % 5 == 0 || n % 3 == 0 || n % 5 == 0) {\n n--;\n continue;\n }\n sum += n--;\n }",
"n > 0",
"n",
"0",
"{\n if(n % 3 == 0 && n % 5 == 0 || n % 3 == 0 || n % 5 == 0) {\n n--;\n continue;\n }\n sum += n--;\n }",
"if(n % 3 == 0 && n % 5 == 0 || n % 3 == 0 || n % 5 == 0) {\n n--;\n continue;\n }",
"n % 3 == 0 && n % 5 == 0 || n % 3 == 0 || n % 5 == 0",
"n % 3 == 0 && n % 5 == 0 || n % 3 == 0 || n % 5 == 0",
"n % 3 == 0 && n % 5 == 0",
"n % 3 == 0",
"n % 3",
"n",
"3",
"0",
"n % 5 == 0",
"n % 5",
"n",
"5",
"0",
"n % 3 == 0",
"n % 3",
"n",
"3",
"0",
"n % 5 == 0",
"n % 5",
"n",
"5",
"0",
"{\n n--;\n continue;\n }",
"n--",
"n",
"continue;",
"sum += n--",
"sum",
"n--",
"n",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"Scanner sc",
"sc",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Question question = new Question();\n question.solve(sc);\n }\n\n static class Question {\n public void solve(Scanner sc) {\n int n = sc.nextInt();\n long sum = 0;\n while(n > 0) {\n if(n % 3 == 0 && n % 5 == 0 || n % 3 == 0 || n % 5 == 0) {\n n--;\n continue;\n }\n sum += n--;\n }\n System.out.println(sum);\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Question question = new Question();\n question.solve(sc);\n }\n\n static class Question {\n public void solve(Scanner sc) {\n int n = sc.nextInt();\n long sum = 0;\n while(n > 0) {\n if(n % 3 == 0 && n % 5 == 0 || n % 3 == 0 || n % 5 == 0) {\n n--;\n continue;\n }\n sum += n--;\n }\n System.out.println(sum);\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Question question = new Question();
question.solve(sc);
}
static class Question {
public void solve(Scanner sc) {
int n = sc.nextInt();
long sum = 0;
while(n > 0) {
if(n % 3 == 0 && n % 5 == 0 || n % 3 == 0 || n % 5 == 0) {
n--;
continue;
}
sum += n--;
}
System.out.println(sum);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
2,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
2,
13,
17,
4,
18,
13,
18,
13,
2,
13,
17,
14,
2,
2,
18,
13,
2,
13,
17,
17,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
2,
2,
18,
13,
2,
13,
17,
17,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
2,
2,
18,
13,
2,
13,
17,
17,
17,
30,
0,
18,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
183,
5
],
[
183,
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,
24
],
[
24,
25
],
[
24,
26
],
[
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
],
[
46,
47
],
[
46,
48
],
[
43,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
50,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
64,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
81,
87
],
[
80,
88
],
[
79,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
90,
96
],
[
64,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
99,
105
],
[
98,
106
],
[
97,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
108,
114
],
[
64,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
117,
123
],
[
116,
124
],
[
115,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
126,
132
],
[
8,
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
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
148,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
148,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
146,
164
],
[
146,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
171,
172
],
[
171,
173
],
[
8,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
6,
180
],
[
180,
181
],
[
0,
182
],
[
182,
183
],
[
182,
184
]
] |
[
"import java.util.*;\n \npublic class Main {\n public static void main(String[] args) throws Exception {\nScanner sc=new Scanner(System.in);\nint a=sc.nextInt();\nint b[] =new int[a];\nlong e=0;\nString c[] =new String[a];\nfor(int i=1;i<a+1;i++){\nb[i-1]=i;\n}\nfor(int i=1;i<a+1;i++){\n c[i-1]=String.valueOf(b[i-1]);\n if(b[i-1]%15==0){\n c[i-1]=\"FizzBuzz\";\n }\n if(b[i-1]%3==0){\n c[i-1]=\"Fizz\";\n }\n if(b[i-1]%5==0){\n c[i-1]=\"Buzz\";\n }\n\n}\nfor(int i=0;i<a;i++){\n if(c[i]==\"FizzBuzz\"||c[i]==\"Fizz\"||c[i]==\"Buzz\"){\n }else{\n e+=Integer.parseInt(c[i]);\n }\n }\n System.out.println(e);\n}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\nScanner sc=new Scanner(System.in);\nint a=sc.nextInt();\nint b[] =new int[a];\nlong e=0;\nString c[] =new String[a];\nfor(int i=1;i<a+1;i++){\nb[i-1]=i;\n}\nfor(int i=1;i<a+1;i++){\n c[i-1]=String.valueOf(b[i-1]);\n if(b[i-1]%15==0){\n c[i-1]=\"FizzBuzz\";\n }\n if(b[i-1]%3==0){\n c[i-1]=\"Fizz\";\n }\n if(b[i-1]%5==0){\n c[i-1]=\"Buzz\";\n }\n\n}\nfor(int i=0;i<a;i++){\n if(c[i]==\"FizzBuzz\"||c[i]==\"Fizz\"||c[i]==\"Buzz\"){\n }else{\n e+=Integer.parseInt(c[i]);\n }\n }\n System.out.println(e);\n}\n}",
"Main",
"public static void main(String[] args) throws Exception {\nScanner sc=new Scanner(System.in);\nint a=sc.nextInt();\nint b[] =new int[a];\nlong e=0;\nString c[] =new String[a];\nfor(int i=1;i<a+1;i++){\nb[i-1]=i;\n}\nfor(int i=1;i<a+1;i++){\n c[i-1]=String.valueOf(b[i-1]);\n if(b[i-1]%15==0){\n c[i-1]=\"FizzBuzz\";\n }\n if(b[i-1]%3==0){\n c[i-1]=\"Fizz\";\n }\n if(b[i-1]%5==0){\n c[i-1]=\"Buzz\";\n }\n\n}\nfor(int i=0;i<a;i++){\n if(c[i]==\"FizzBuzz\"||c[i]==\"Fizz\"||c[i]==\"Buzz\"){\n }else{\n e+=Integer.parseInt(c[i]);\n }\n }\n System.out.println(e);\n}",
"main",
"{\nScanner sc=new Scanner(System.in);\nint a=sc.nextInt();\nint b[] =new int[a];\nlong e=0;\nString c[] =new String[a];\nfor(int i=1;i<a+1;i++){\nb[i-1]=i;\n}\nfor(int i=1;i<a+1;i++){\n c[i-1]=String.valueOf(b[i-1]);\n if(b[i-1]%15==0){\n c[i-1]=\"FizzBuzz\";\n }\n if(b[i-1]%3==0){\n c[i-1]=\"Fizz\";\n }\n if(b[i-1]%5==0){\n c[i-1]=\"Buzz\";\n }\n\n}\nfor(int i=0;i<a;i++){\n if(c[i]==\"FizzBuzz\"||c[i]==\"Fizz\"||c[i]==\"Buzz\"){\n }else{\n e+=Integer.parseInt(c[i]);\n }\n }\n System.out.println(e);\n}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a=sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b[] =new int[a];",
"b",
"new int[a]",
"a",
"long e=0;",
"e",
"0",
"String c[] =new String[a];",
"c",
"new String[a]",
"a",
"for(int i=1;i<a+1;i++){\nb[i-1]=i;\n}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<a+1",
"i",
"a+1",
"a",
"1",
"i++",
"i++",
"i",
"{\nb[i-1]=i;\n}",
"{\nb[i-1]=i;\n}",
"b[i-1]=i",
"b[i-1]",
"b",
"i-1",
"i",
"1",
"i",
"for(int i=1;i<a+1;i++){\n c[i-1]=String.valueOf(b[i-1]);\n if(b[i-1]%15==0){\n c[i-1]=\"FizzBuzz\";\n }\n if(b[i-1]%3==0){\n c[i-1]=\"Fizz\";\n }\n if(b[i-1]%5==0){\n c[i-1]=\"Buzz\";\n }\n\n}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<a+1",
"i",
"a+1",
"a",
"1",
"i++",
"i++",
"i",
"{\n c[i-1]=String.valueOf(b[i-1]);\n if(b[i-1]%15==0){\n c[i-1]=\"FizzBuzz\";\n }\n if(b[i-1]%3==0){\n c[i-1]=\"Fizz\";\n }\n if(b[i-1]%5==0){\n c[i-1]=\"Buzz\";\n }\n\n}",
"{\n c[i-1]=String.valueOf(b[i-1]);\n if(b[i-1]%15==0){\n c[i-1]=\"FizzBuzz\";\n }\n if(b[i-1]%3==0){\n c[i-1]=\"Fizz\";\n }\n if(b[i-1]%5==0){\n c[i-1]=\"Buzz\";\n }\n\n}",
"c[i-1]=String.valueOf(b[i-1])",
"c[i-1]",
"c",
"i-1",
"i",
"1",
"String.valueOf(b[i-1])",
"String.valueOf",
"String",
"b[i-1]",
"b",
"i-1",
"i",
"1",
"if(b[i-1]%15==0){\n c[i-1]=\"FizzBuzz\";\n }",
"b[i-1]%15==0",
"b[i-1]%15",
"b[i-1]",
"b",
"i-1",
"i",
"1",
"15",
"0",
"{\n c[i-1]=\"FizzBuzz\";\n }",
"c[i-1]=\"FizzBuzz\"",
"c[i-1]",
"c",
"i-1",
"i",
"1",
"\"FizzBuzz\"",
"if(b[i-1]%3==0){\n c[i-1]=\"Fizz\";\n }",
"b[i-1]%3==0",
"b[i-1]%3",
"b[i-1]",
"b",
"i-1",
"i",
"1",
"3",
"0",
"{\n c[i-1]=\"Fizz\";\n }",
"c[i-1]=\"Fizz\"",
"c[i-1]",
"c",
"i-1",
"i",
"1",
"\"Fizz\"",
"if(b[i-1]%5==0){\n c[i-1]=\"Buzz\";\n }",
"b[i-1]%5==0",
"b[i-1]%5",
"b[i-1]",
"b",
"i-1",
"i",
"1",
"5",
"0",
"{\n c[i-1]=\"Buzz\";\n }",
"c[i-1]=\"Buzz\"",
"c[i-1]",
"c",
"i-1",
"i",
"1",
"\"Buzz\"",
"for(int i=0;i<a;i++){\n if(c[i]==\"FizzBuzz\"||c[i]==\"Fizz\"||c[i]==\"Buzz\"){\n }else{\n e+=Integer.parseInt(c[i]);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\n if(c[i]==\"FizzBuzz\"||c[i]==\"Fizz\"||c[i]==\"Buzz\"){\n }else{\n e+=Integer.parseInt(c[i]);\n }\n }",
"{\n if(c[i]==\"FizzBuzz\"||c[i]==\"Fizz\"||c[i]==\"Buzz\"){\n }else{\n e+=Integer.parseInt(c[i]);\n }\n }",
"if(c[i]==\"FizzBuzz\"||c[i]==\"Fizz\"||c[i]==\"Buzz\"){\n }else{\n e+=Integer.parseInt(c[i]);\n }",
"c[i]==\"FizzBuzz\"||c[i]==\"Fizz\"||c[i]==\"Buzz\"",
"c[i]==\"FizzBuzz\"||c[i]==\"Fizz\"||c[i]==\"Buzz\"",
"c[i]==\"FizzBuzz\"",
"c[i]",
"c",
"i",
"\"FizzBuzz\"",
"c[i]==\"Fizz\"",
"c[i]",
"c",
"i",
"\"Fizz\"",
"c[i]==\"Buzz\"",
"c[i]",
"c",
"i",
"\"Buzz\"",
"{\n }",
"{\n e+=Integer.parseInt(c[i]);\n }",
"e+=Integer.parseInt(c[i])",
"e",
"Integer.parseInt(c[i])",
"Integer.parseInt",
"Integer",
"c[i]",
"c",
"i",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\nScanner sc=new Scanner(System.in);\nint a=sc.nextInt();\nint b[] =new int[a];\nlong e=0;\nString c[] =new String[a];\nfor(int i=1;i<a+1;i++){\nb[i-1]=i;\n}\nfor(int i=1;i<a+1;i++){\n c[i-1]=String.valueOf(b[i-1]);\n if(b[i-1]%15==0){\n c[i-1]=\"FizzBuzz\";\n }\n if(b[i-1]%3==0){\n c[i-1]=\"Fizz\";\n }\n if(b[i-1]%5==0){\n c[i-1]=\"Buzz\";\n }\n\n}\nfor(int i=0;i<a;i++){\n if(c[i]==\"FizzBuzz\"||c[i]==\"Fizz\"||c[i]==\"Buzz\"){\n }else{\n e+=Integer.parseInt(c[i]);\n }\n }\n System.out.println(e);\n}\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\nScanner sc=new Scanner(System.in);\nint a=sc.nextInt();\nint b[] =new int[a];\nlong e=0;\nString c[] =new String[a];\nfor(int i=1;i<a+1;i++){\nb[i-1]=i;\n}\nfor(int i=1;i<a+1;i++){\n c[i-1]=String.valueOf(b[i-1]);\n if(b[i-1]%15==0){\n c[i-1]=\"FizzBuzz\";\n }\n if(b[i-1]%3==0){\n c[i-1]=\"Fizz\";\n }\n if(b[i-1]%5==0){\n c[i-1]=\"Buzz\";\n }\n\n}\nfor(int i=0;i<a;i++){\n if(c[i]==\"FizzBuzz\"||c[i]==\"Fizz\"||c[i]==\"Buzz\"){\n }else{\n e+=Integer.parseInt(c[i]);\n }\n }\n System.out.println(e);\n}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b[] =new int[a];
long e=0;
String c[] =new String[a];
for(int i=1;i<a+1;i++){
b[i-1]=i;
}
for(int i=1;i<a+1;i++){
c[i-1]=String.valueOf(b[i-1]);
if(b[i-1]%15==0){
c[i-1]="FizzBuzz";
}
if(b[i-1]%3==0){
c[i-1]="Fizz";
}
if(b[i-1]%5==0){
c[i-1]="Buzz";
}
}
for(int i=0;i<a;i++){
if(c[i]=="FizzBuzz"||c[i]=="Fizz"||c[i]=="Buzz"){
}else{
e+=Integer.parseInt(c[i]);
}
}
System.out.println(e);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
9,
0,
13,
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
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
32,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
6,
56
],
[
56,
57
]
] |
[
"import java.util.*;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long ans = 0;\n for(int i=1; i<=N; i++){\n if(i%3==0 || i%5==0){\n continue;\n }\n ans += i;\n }\n System.out.print(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long ans = 0;\n for(int i=1; i<=N; i++){\n if(i%3==0 || i%5==0){\n continue;\n }\n ans += i;\n }\n System.out.print(ans);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long ans = 0;\n for(int i=1; i<=N; i++){\n if(i%3==0 || i%5==0){\n continue;\n }\n ans += i;\n }\n System.out.print(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long ans = 0;\n for(int i=1; i<=N; i++){\n if(i%3==0 || i%5==0){\n continue;\n }\n ans += i;\n }\n System.out.print(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ans = 0;",
"ans",
"0",
"for(int i=1; i<=N; i++){\n if(i%3==0 || i%5==0){\n continue;\n }\n ans += i;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if(i%3==0 || i%5==0){\n continue;\n }\n ans += i;\n }",
"{\n if(i%3==0 || i%5==0){\n continue;\n }\n ans += i;\n }",
"if(i%3==0 || i%5==0){\n continue;\n }",
"i%3==0 || i%5==0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"{\n continue;\n }",
"continue;",
"ans += i",
"ans",
"i",
"System.out.print(ans)",
"System.out.print",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
] |
import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
long ans = 0;
for(int i=1; i<=N; i++){
if(i%3==0 || i%5==0){
continue;
}
ans += i;
}
System.out.print(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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
0,
13,
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
],
[
144,
14
],
[
144,
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
],
[
17,
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
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
42,
54
],
[
54,
55
],
[
54,
56
],
[
17,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
15,
63
],
[
63,
64
],
[
144,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
76,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
81,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
75,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
65,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
65,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
107,
130
],
[
130,
131
],
[
105,
132
],
[
132,
133
],
[
65,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int n = fs.nextInt();\n long ans = 0;\n for(int i=1; i<=n; ++i){\n if(i%3 != 0 && i%5 != 0)\n ans += i;\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 (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"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 public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int n = fs.nextInt();\n long ans = 0;\n for(int i=1; i<=n; ++i){\n if(i%3 != 0 && i%5 != 0)\n ans += i;\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 (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int n = fs.nextInt();\n long ans = 0;\n for(int i=1; i<=n; ++i){\n if(i%3 != 0 && i%5 != 0)\n ans += i;\n }\n System.out.println(ans);\n }",
"main",
"{\n FastScanner fs = new FastScanner();\n int n = fs.nextInt();\n long ans = 0;\n for(int i=1; i<=n; ++i){\n if(i%3 != 0 && i%5 != 0)\n ans += i;\n }\n System.out.println(ans);\n }",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"int n = fs.nextInt();",
"n",
"fs.nextInt()",
"fs.nextInt",
"fs",
"long ans = 0;",
"ans",
"0",
"for(int i=1; i<=n; ++i){\n if(i%3 != 0 && i%5 != 0)\n ans += i;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"++i",
"++i",
"i",
"{\n if(i%3 != 0 && i%5 != 0)\n ans += i;\n }",
"{\n if(i%3 != 0 && i%5 != 0)\n ans += i;\n }",
"if(i%3 != 0 && i%5 != 0)\n ans += i;",
"i%3 != 0 && i%5 != 0",
"i%3 != 0",
"i%3",
"i",
"3",
"0",
"i%5 != 0",
"i%5",
"i",
"5",
"0",
"ans += i",
"ans",
"i",
"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 (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }",
"FastScanner",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"next",
"{\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }",
"readArray",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) a[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int n = fs.nextInt();\n long ans = 0;\n for(int i=1; i<=n; ++i){\n if(i%3 != 0 && i%5 != 0)\n ans += i;\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 (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int n = fs.nextInt();\n long ans = 0;\n for(int i=1; i<=n; ++i){\n if(i%3 != 0 && i%5 != 0)\n ans += i;\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 (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
FastScanner fs = new FastScanner();
int n = fs.nextInt();
long ans = 0;
for(int i=1; i<=n; ++i){
if(i%3 != 0 && i%5 != 0)
ans += i;
}
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 (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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint N = scanner.nextInt();\n\t\tlong ans = 0;\n\n\t\tfor (int i = 1; i <= N; i++) {\n\n\t\t\t//3の倍数でもあり5の倍数でもある場合\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\n\t\t\t}\n\n\t\t\t//3の倍数の場合\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\t\n\t\t\t}\n\t\t\t//5の倍数の場合\n\t\t\telse if (i % 5 == 0) {\n\t\t\t\t\n\t\t\t//3と5の倍数以外の場合\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tans += i;\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(ans);\n\n\t\tscanner.close();\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 自動生成されたメソッド・スタブ\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint N = scanner.nextInt();\n\t\tlong ans = 0;\n\n\t\tfor (int i = 1; i <= N; i++) {\n\n\t\t\t//3の倍数でもあり5の倍数でもある場合\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\n\t\t\t}\n\n\t\t\t//3の倍数の場合\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\t\n\t\t\t}\n\t\t\t//5の倍数の場合\n\t\t\telse if (i % 5 == 0) {\n\t\t\t\t\n\t\t\t//3と5の倍数以外の場合\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tans += i;\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(ans);\n\n\t\tscanner.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint N = scanner.nextInt();\n\t\tlong ans = 0;\n\n\t\tfor (int i = 1; i <= N; i++) {\n\n\t\t\t//3の倍数でもあり5の倍数でもある場合\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\n\t\t\t}\n\n\t\t\t//3の倍数の場合\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\t\n\t\t\t}\n\t\t\t//5の倍数の場合\n\t\t\telse if (i % 5 == 0) {\n\t\t\t\t\n\t\t\t//3と5の倍数以外の場合\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tans += i;\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(ans);\n\n\t\tscanner.close();\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint N = scanner.nextInt();\n\t\tlong ans = 0;\n\n\t\tfor (int i = 1; i <= N; i++) {\n\n\t\t\t//3の倍数でもあり5の倍数でもある場合\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\n\t\t\t}\n\n\t\t\t//3の倍数の場合\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\t\n\t\t\t}\n\t\t\t//5の倍数の場合\n\t\t\telse if (i % 5 == 0) {\n\t\t\t\t\n\t\t\t//3と5の倍数以外の場合\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tans += i;\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(ans);\n\n\t\tscanner.close();\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long ans = 0;",
"ans",
"0",
"for (int i = 1; i <= N; i++) {\n\n\t\t\t//3の倍数でもあり5の倍数でもある場合\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\n\t\t\t}\n\n\t\t\t//3の倍数の場合\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\t\n\t\t\t}\n\t\t\t//5の倍数の場合\n\t\t\telse if (i % 5 == 0) {\n\t\t\t\t\n\t\t\t//3と5の倍数以外の場合\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tans += i;\n\n\t\t\t}\n\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\n\t\t\t//3の倍数でもあり5の倍数でもある場合\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\n\t\t\t}\n\n\t\t\t//3の倍数の場合\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\t\n\t\t\t}\n\t\t\t//5の倍数の場合\n\t\t\telse if (i % 5 == 0) {\n\t\t\t\t\n\t\t\t//3と5の倍数以外の場合\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tans += i;\n\n\t\t\t}\n\n\t\t}",
"{\n\n\t\t\t//3の倍数でもあり5の倍数でもある場合\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\n\t\t\t}\n\n\t\t\t//3の倍数の場合\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\t\n\t\t\t}\n\t\t\t//5の倍数の場合\n\t\t\telse if (i % 5 == 0) {\n\t\t\t\t\n\t\t\t//3と5の倍数以外の場合\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tans += i;\n\n\t\t\t}\n\n\t\t}",
"if (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\n\t\t\t}\n\n\t\t\t//3の倍数の場合\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\t\n\t\t\t}\n\t\t\t//5の倍数の場合\n\t\t\telse if (i % 5 == 0) {\n\t\t\t\t\n\t\t\t//3と5の倍数以外の場合\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tans += i;\n\n\t\t\t}",
"i % 3 == 0 && i % 5 == 0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\t\t\t\n\t\t\t}",
"if (i % 3 == 0) {\n\t\t\t\t\n\t\t\t}\n\t\t\t//5の倍数の場合\n\t\t\telse if (i % 5 == 0) {\n\t\t\t\t\n\t\t\t//3と5の倍数以外の場合\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tans += i;\n\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\t\n\t\t\t}",
"if (i % 5 == 0) {\n\t\t\t\t\n\t\t\t//3と5の倍数以外の場合\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tans += i;\n\n\t\t\t}",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\t\t\t\t\n\t\t\t//3と5の倍数以外の場合\n\t\t\t}",
"{\n\t\t\t\t\n\t\t\t\tans += i;\n\n\t\t\t}",
"ans += i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint N = scanner.nextInt();\n\t\tlong ans = 0;\n\n\t\tfor (int i = 1; i <= N; i++) {\n\n\t\t\t//3の倍数でもあり5の倍数でもある場合\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\n\t\t\t}\n\n\t\t\t//3の倍数の場合\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\t\n\t\t\t}\n\t\t\t//5の倍数の場合\n\t\t\telse if (i % 5 == 0) {\n\t\t\t\t\n\t\t\t//3と5の倍数以外の場合\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tans += i;\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(ans);\n\n\t\tscanner.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint N = scanner.nextInt();\n\t\tlong ans = 0;\n\n\t\tfor (int i = 1; i <= N; i++) {\n\n\t\t\t//3の倍数でもあり5の倍数でもある場合\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\n\t\t\t}\n\n\t\t\t//3の倍数の場合\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\t\n\t\t\t}\n\t\t\t//5の倍数の場合\n\t\t\telse if (i % 5 == 0) {\n\t\t\t\t\n\t\t\t//3と5の倍数以外の場合\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tans += i;\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(ans);\n\n\t\tscanner.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
long ans = 0;
for (int i = 1; i <= N; i++) {
//3の倍数でもあり5の倍数でもある場合
if (i % 3 == 0 && i % 5 == 0) {
}
//3の倍数の場合
else if (i % 3 == 0) {
}
//5の倍数の場合
else if (i % 5 == 0) {
//3と5の倍数以外の場合
} else {
ans += i;
}
}
System.out.println(ans);
scanner.close();
}
}
|
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
0,
13,
2,
13,
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
],
[
71,
17
],
[
71,
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
],
[
20,
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
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
45,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
20,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
18,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] |
[
"import java.io.*;\nimport java.math.*;\nimport java.text.*;\nimport java.util.*;\nimport java.util.regex.*;\n\npublic class Main\t {\n public static void main(String[] args) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tlong n = sc.nextLong();\n \tlong res =0;\n \tfor(int i=1;i<=n;i++) {\n \t\tif(i%3!=0 && i%5!=0)\n \t\t\tres=res+i;\n \t}\n \tSystem.out.println(res);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.text.*;",
"text.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.util.regex.*;",
"regex.*",
"java.util",
"public class Main\t {\n public static void main(String[] args) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tlong n = sc.nextLong();\n \tlong res =0;\n \tfor(int i=1;i<=n;i++) {\n \t\tif(i%3!=0 && i%5!=0)\n \t\t\tres=res+i;\n \t}\n \tSystem.out.println(res);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tlong n = sc.nextLong();\n \tlong res =0;\n \tfor(int i=1;i<=n;i++) {\n \t\tif(i%3!=0 && i%5!=0)\n \t\t\tres=res+i;\n \t}\n \tSystem.out.println(res);\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tlong n = sc.nextLong();\n \tlong res =0;\n \tfor(int i=1;i<=n;i++) {\n \t\tif(i%3!=0 && i%5!=0)\n \t\t\tres=res+i;\n \t}\n \tSystem.out.println(res);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n = sc.nextLong();",
"n",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long res =0;",
"res",
"0",
"for(int i=1;i<=n;i++) {\n \t\tif(i%3!=0 && i%5!=0)\n \t\t\tres=res+i;\n \t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\tif(i%3!=0 && i%5!=0)\n \t\t\tres=res+i;\n \t}",
"{\n \t\tif(i%3!=0 && i%5!=0)\n \t\t\tres=res+i;\n \t}",
"if(i%3!=0 && i%5!=0)\n \t\t\tres=res+i;",
"i%3!=0 && i%5!=0",
"i%3!=0",
"i%3",
"i",
"3",
"0",
"i%5!=0",
"i%5",
"i",
"5",
"0",
"res=res+i",
"res",
"res+i",
"res",
"i",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"String[] args",
"args",
"public class Main\t {\n public static void main(String[] args) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tlong n = sc.nextLong();\n \tlong res =0;\n \tfor(int i=1;i<=n;i++) {\n \t\tif(i%3!=0 && i%5!=0)\n \t\t\tres=res+i;\n \t}\n \tSystem.out.println(res);\n }\n}",
"public class Main\t {\n public static void main(String[] args) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tlong n = sc.nextLong();\n \tlong res =0;\n \tfor(int i=1;i<=n;i++) {\n \t\tif(i%3!=0 && i%5!=0)\n \t\t\tres=res+i;\n \t}\n \tSystem.out.println(res);\n }\n}",
"Main"
] |
import java.io.*;
import java.math.*;
import java.text.*;
import java.util.*;
import java.util.regex.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
long res =0;
for(int i=1;i<=n;i++) {
if(i%3!=0 && i%5!=0)
res=res+i;
}
System.out.println(res);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
13,
42,
2,
2,
13,
17,
17,
30,
40,
13,
41,
13,
13,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
17,
41,
13,
2,
2,
13,
2,
17,
13,
17,
0,
13,
13,
42,
2,
2,
13,
17,
17,
30,
40,
13,
0,
13,
13,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
17,
41,
13,
2,
2,
13,
2,
13,
17,
17,
0,
13,
13,
42,
2,
2,
13,
17,
17,
30,
40,
13,
0,
13,
13,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
17,
41,
13,
2,
2,
13,
2,
13,
17,
17,
41,
13,
2,
2,
13,
2,
13,
17,
17,
0,
13,
2,
2,
13,
13,
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
],
[
171,
11
],
[
171,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
15,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
39,
40
],
[
29,
41
],
[
41,
42
],
[
41,
43
],
[
29,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
29,
53
],
[
53,
54
],
[
53,
55
],
[
29,
56
],
[
56,
57
],
[
56,
58
],
[
29,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
29,
64
],
[
64,
65
],
[
64,
66
],
[
29,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
29,
76
],
[
76,
77
],
[
76,
78
],
[
29,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
29,
88
],
[
88,
89
],
[
88,
90
],
[
29,
91
],
[
91,
92
],
[
91,
93
],
[
29,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
29,
99
],
[
99,
100
],
[
99,
101
],
[
29,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
104,
110
],
[
29,
111
],
[
111,
112
],
[
111,
113
],
[
29,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
114,
120
],
[
120,
121
],
[
121,
122
],
[
29,
123
],
[
123,
124
],
[
123,
125
],
[
29,
126
],
[
126,
127
],
[
126,
128
],
[
29,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
29,
134
],
[
134,
135
],
[
134,
136
],
[
29,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
142,
144
],
[
139,
145
],
[
29,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
151,
153
],
[
148,
154
],
[
29,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
29,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
12,
168
],
[
168,
169
],
[
0,
170
],
[
170,
171
],
[
170,
172
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.HashMap;\n\npublic class Main {\n public static void main(String[] args){\n try{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n long t=Long.parseLong(br.readLine());\n long p=t;\n while(p%5!=0){\n p--;\n }\n long k=p;\n p-=5;\n p=p/5;\n p+=1;\n long sum1=((p)*(5+k))/2;\n p=t;\n while(p%3!=0){\n p--;\n }\n k=p;\n p-=3;\n p=p/3;\n p+=1;\n long sum2=((p)*(k+3))/2;\n p=t;\n while(p%15!=0){\n p--;\n }\n k=p;\n p-=15;\n p=p/15;\n p+=1;\n long sum=((p)*(k+15))/2;\n long ans=((t)*(t+1))/2;\n ans-=(sum1+sum2-sum);\n System.out.println(ans);\n\n }catch(Exception e){\n System.out.println(\"KKKK \"+e.getMessage());\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.HashMap;",
"HashMap",
"java.util",
"public class Main {\n public static void main(String[] args){\n try{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n long t=Long.parseLong(br.readLine());\n long p=t;\n while(p%5!=0){\n p--;\n }\n long k=p;\n p-=5;\n p=p/5;\n p+=1;\n long sum1=((p)*(5+k))/2;\n p=t;\n while(p%3!=0){\n p--;\n }\n k=p;\n p-=3;\n p=p/3;\n p+=1;\n long sum2=((p)*(k+3))/2;\n p=t;\n while(p%15!=0){\n p--;\n }\n k=p;\n p-=15;\n p=p/15;\n p+=1;\n long sum=((p)*(k+15))/2;\n long ans=((t)*(t+1))/2;\n ans-=(sum1+sum2-sum);\n System.out.println(ans);\n\n }catch(Exception e){\n System.out.println(\"KKKK \"+e.getMessage());\n }\n }\n}",
"Main",
"public static void main(String[] args){\n try{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n long t=Long.parseLong(br.readLine());\n long p=t;\n while(p%5!=0){\n p--;\n }\n long k=p;\n p-=5;\n p=p/5;\n p+=1;\n long sum1=((p)*(5+k))/2;\n p=t;\n while(p%3!=0){\n p--;\n }\n k=p;\n p-=3;\n p=p/3;\n p+=1;\n long sum2=((p)*(k+3))/2;\n p=t;\n while(p%15!=0){\n p--;\n }\n k=p;\n p-=15;\n p=p/15;\n p+=1;\n long sum=((p)*(k+15))/2;\n long ans=((t)*(t+1))/2;\n ans-=(sum1+sum2-sum);\n System.out.println(ans);\n\n }catch(Exception e){\n System.out.println(\"KKKK \"+e.getMessage());\n }\n }",
"main",
"{\n try{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n long t=Long.parseLong(br.readLine());\n long p=t;\n while(p%5!=0){\n p--;\n }\n long k=p;\n p-=5;\n p=p/5;\n p+=1;\n long sum1=((p)*(5+k))/2;\n p=t;\n while(p%3!=0){\n p--;\n }\n k=p;\n p-=3;\n p=p/3;\n p+=1;\n long sum2=((p)*(k+3))/2;\n p=t;\n while(p%15!=0){\n p--;\n }\n k=p;\n p-=15;\n p=p/15;\n p+=1;\n long sum=((p)*(k+15))/2;\n long ans=((t)*(t+1))/2;\n ans-=(sum1+sum2-sum);\n System.out.println(ans);\n\n }catch(Exception e){\n System.out.println(\"KKKK \"+e.getMessage());\n }\n }",
"try{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n long t=Long.parseLong(br.readLine());\n long p=t;\n while(p%5!=0){\n p--;\n }\n long k=p;\n p-=5;\n p=p/5;\n p+=1;\n long sum1=((p)*(5+k))/2;\n p=t;\n while(p%3!=0){\n p--;\n }\n k=p;\n p-=3;\n p=p/3;\n p+=1;\n long sum2=((p)*(k+3))/2;\n p=t;\n while(p%15!=0){\n p--;\n }\n k=p;\n p-=15;\n p=p/15;\n p+=1;\n long sum=((p)*(k+15))/2;\n long ans=((t)*(t+1))/2;\n ans-=(sum1+sum2-sum);\n System.out.println(ans);\n\n }catch(Exception e){\n System.out.println(\"KKKK \"+e.getMessage());\n }",
"catch(Exception e){\n System.out.println(\"KKKK \"+e.getMessage());\n }",
"Exception e",
"{\n System.out.println(\"KKKK \"+e.getMessage());\n }",
"System.out.println(\"KKKK \"+e.getMessage())",
"System.out.println",
"System.out",
"System",
"System.out",
"\"KKKK \"+e.getMessage()",
"\"KKKK \"",
"e.getMessage()",
"e.getMessage",
"e",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n long t=Long.parseLong(br.readLine());\n long p=t;\n while(p%5!=0){\n p--;\n }\n long k=p;\n p-=5;\n p=p/5;\n p+=1;\n long sum1=((p)*(5+k))/2;\n p=t;\n while(p%3!=0){\n p--;\n }\n k=p;\n p-=3;\n p=p/3;\n p+=1;\n long sum2=((p)*(k+3))/2;\n p=t;\n while(p%15!=0){\n p--;\n }\n k=p;\n p-=15;\n p=p/15;\n p+=1;\n long sum=((p)*(k+15))/2;\n long ans=((t)*(t+1))/2;\n ans-=(sum1+sum2-sum);\n System.out.println(ans);\n\n }",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"long t=Long.parseLong(br.readLine());",
"t",
"Long.parseLong(br.readLine())",
"Long.parseLong",
"Long",
"br.readLine()",
"br.readLine",
"br",
"long p=t;",
"p",
"t",
"while(p%5!=0){\n p--;\n }",
"p%5!=0",
"p%5",
"p",
"5",
"0",
"{\n p--;\n }",
"p--",
"p",
"long k=p;",
"k",
"p",
"p-=5",
"p",
"5",
"p=p/5",
"p",
"p/5",
"p",
"5",
"p+=1",
"p",
"1",
"long sum1=((p)*(5+k))/2;",
"sum1",
"((p)*(5+k))/2",
"((p)*(5+k))",
"(p)",
"(5+k)",
"5",
"k",
"2",
"p=t",
"p",
"t",
"while(p%3!=0){\n p--;\n }",
"p%3!=0",
"p%3",
"p",
"3",
"0",
"{\n p--;\n }",
"p--",
"p",
"k=p",
"k",
"p",
"p-=3",
"p",
"3",
"p=p/3",
"p",
"p/3",
"p",
"3",
"p+=1",
"p",
"1",
"long sum2=((p)*(k+3))/2;",
"sum2",
"((p)*(k+3))/2",
"((p)*(k+3))",
"(p)",
"(k+3)",
"k",
"3",
"2",
"p=t",
"p",
"t",
"while(p%15!=0){\n p--;\n }",
"p%15!=0",
"p%15",
"p",
"15",
"0",
"{\n p--;\n }",
"p--",
"p",
"k=p",
"k",
"p",
"p-=15",
"p",
"15",
"p=p/15",
"p",
"p/15",
"p",
"15",
"p+=1",
"p",
"1",
"long sum=((p)*(k+15))/2;",
"sum",
"((p)*(k+15))/2",
"((p)*(k+15))",
"(p)",
"(k+15)",
"k",
"15",
"2",
"long ans=((t)*(t+1))/2;",
"ans",
"((t)*(t+1))/2",
"((t)*(t+1))",
"(t)",
"(t+1)",
"t",
"1",
"2",
"ans-=(sum1+sum2-sum)",
"ans",
"(sum1+sum2-sum)",
"sum1+sum2",
"sum1",
"sum2",
"sum",
"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 try{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n long t=Long.parseLong(br.readLine());\n long p=t;\n while(p%5!=0){\n p--;\n }\n long k=p;\n p-=5;\n p=p/5;\n p+=1;\n long sum1=((p)*(5+k))/2;\n p=t;\n while(p%3!=0){\n p--;\n }\n k=p;\n p-=3;\n p=p/3;\n p+=1;\n long sum2=((p)*(k+3))/2;\n p=t;\n while(p%15!=0){\n p--;\n }\n k=p;\n p-=15;\n p=p/15;\n p+=1;\n long sum=((p)*(k+15))/2;\n long ans=((t)*(t+1))/2;\n ans-=(sum1+sum2-sum);\n System.out.println(ans);\n\n }catch(Exception e){\n System.out.println(\"KKKK \"+e.getMessage());\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n try{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n long t=Long.parseLong(br.readLine());\n long p=t;\n while(p%5!=0){\n p--;\n }\n long k=p;\n p-=5;\n p=p/5;\n p+=1;\n long sum1=((p)*(5+k))/2;\n p=t;\n while(p%3!=0){\n p--;\n }\n k=p;\n p-=3;\n p=p/3;\n p+=1;\n long sum2=((p)*(k+3))/2;\n p=t;\n while(p%15!=0){\n p--;\n }\n k=p;\n p-=15;\n p=p/15;\n p+=1;\n long sum=((p)*(k+15))/2;\n long ans=((t)*(t+1))/2;\n ans-=(sum1+sum2-sum);\n System.out.println(ans);\n\n }catch(Exception e){\n System.out.println(\"KKKK \"+e.getMessage());\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashMap;
public class Main {
public static void main(String[] args){
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
long t=Long.parseLong(br.readLine());
long p=t;
while(p%5!=0){
p--;
}
long k=p;
p-=5;
p=p/5;
p+=1;
long sum1=((p)*(5+k))/2;
p=t;
while(p%3!=0){
p--;
}
k=p;
p-=3;
p=p/3;
p+=1;
long sum2=((p)*(k+3))/2;
p=t;
while(p%15!=0){
p--;
}
k=p;
p-=15;
p=p/15;
p+=1;
long sum=((p)*(k+15))/2;
long ans=((t)*(t+1))/2;
ans-=(sum1+sum2-sum);
System.out.println(ans);
}catch(Exception e){
System.out.println("KKKK "+e.getMessage());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
12,
13,
30,
0,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
0,
13,
13,
4,
18,
13,
13,
4,
18,
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,
12,
13,
30,
4,
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,
29,
4,
18,
13,
4,
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,
29,
4,
13,
12,
13,
30,
14,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
14,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
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
],
[
441,
14
],
[
441,
15
],
[
15,
16
],
[
15,
17
],
[
441,
18
],
[
18,
19
],
[
18,
20
],
[
441,
21
],
[
21,
22
],
[
441,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
31,
33
],
[
25,
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
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
47,
59
],
[
46,
60
],
[
60,
61
],
[
60,
62
],
[
25,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
25,
67
],
[
67,
68
],
[
68,
69
],
[
23,
70
],
[
70,
71
],
[
441,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
72,
79
],
[
79,
80
],
[
79,
81
],
[
72,
83
],
[
83,
84
],
[
83,
85
],
[
72,
86
],
[
86,
87
],
[
86,
88
],
[
72,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
97,
98
],
[
92,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
103,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
99,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
122,
123
],
[
91,
124
],
[
124,
125
],
[
72,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
72,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
140,
151
],
[
151,
152
],
[
72,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
163,
165
],
[
156,
166
],
[
166,
167
],
[
72,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
173,
174
],
[
174,
175
],
[
72,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
179,
183
],
[
183,
184
],
[
178,
185
],
[
185,
186
],
[
185,
187
],
[
178,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
178,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
197,
200
],
[
196,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
178,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
72,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
216,
217
],
[
72,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
221,
225
],
[
225,
226
],
[
220,
227
],
[
227,
228
],
[
227,
229
],
[
220,
230
],
[
230,
231
],
[
230,
232
],
[
220,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
220,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
237,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
220,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
254
],
[
254,
255
],
[
254,
256
],
[
249,
257
],
[
257,
258
],
[
258,
259
],
[
220,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
264,
268
],
[
268,
269
],
[
268,
270
],
[
263,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
277,
279
],
[
263,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
281,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
280,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
292,
296
],
[
280,
297
],
[
297,
298
],
[
298,
299
],
[
262,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
72,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
72,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
319,
320
],
[
319,
321
],
[
315,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
322,
327
],
[
327,
328
],
[
327,
329
],
[
322,
330
],
[
330,
331
],
[
331,
332
],
[
322,
333
],
[
334,
334
],
[
334,
335
],
[
335,
336
],
[
336,
337
],
[
336,
338
],
[
335,
339
],
[
339,
340
],
[
340,
341
],
[
315,
342
],
[
342,
343
],
[
313,
344
],
[
344,
345
],
[
345,
346
],
[
345,
347
],
[
344,
349
],
[
349,
350
],
[
350,
351
],
[
351,
352
],
[
351,
353
],
[
349,
354
],
[
354,
355
],
[
354,
356
],
[
349,
357
],
[
357,
358
],
[
358,
359
],
[
349,
360
],
[
361,
361
],
[
361,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
362,
366
],
[
366,
367
],
[
367,
368
],
[
344,
369
],
[
369,
370
],
[
310,
371
],
[
371,
372
],
[
310,
373
],
[
373,
374
],
[
72,
375
],
[
375,
376
],
[
375,
377
],
[
377,
378
],
[
378,
379
],
[
378,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
384,
385
],
[
384,
386
],
[
380,
387
],
[
387,
388
],
[
388,
389
],
[
389,
390
],
[
389,
391
],
[
387,
392
],
[
392,
393
],
[
392,
394
],
[
387,
395
],
[
395,
396
],
[
396,
397
],
[
387,
398
],
[
399,
399
],
[
399,
400
],
[
400,
401
],
[
401,
402
],
[
401,
403
],
[
400,
404
],
[
404,
405
],
[
405,
406
],
[
380,
407
],
[
407,
408
],
[
378,
409
],
[
409,
410
],
[
410,
411
],
[
410,
412
],
[
409,
414
],
[
414,
415
],
[
415,
416
],
[
416,
417
],
[
416,
418
],
[
414,
419
],
[
419,
420
],
[
419,
421
],
[
414,
422
],
[
422,
423
],
[
423,
424
],
[
414,
425
],
[
426,
426
],
[
426,
427
],
[
427,
428
],
[
428,
429
],
[
428,
430
],
[
427,
431
],
[
431,
432
],
[
432,
433
],
[
409,
434
],
[
434,
435
],
[
375,
436
],
[
436,
437
],
[
375,
438
],
[
438,
439
],
[
0,
440
],
[
440,
441
],
[
440,
442
]
] |
[
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\n//import java.util.HashMap;\nimport java.util.NoSuchElementException;\n\n\npublic class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic long n;\n\t//static HashMap <Long, Long> map;\n\t\t\n\t\n\tpublic static void main(String[] args) {\n\t\tn = sc.nextLong();\n\t\t\n\t\tlong ans =0;\n\t\t\n\t\tfor (int i=1; i<=n; i++) {\n\t\t\tif (i%3==0 || i%5==0)\n\t\t\t\tcontinue;\n\t\t\tans+=i;\n\t\t}\n\t\tout.println(ans);\n\t\tout.flush();\n\t\t\n\t}\n\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic long n;\n\t//static HashMap <Long, Long> map;\n\t\t\n\t\n\tpublic static void main(String[] args) {\n\t\tn = sc.nextLong();\n\t\t\n\t\tlong ans =0;\n\t\t\n\t\tfor (int i=1; i<=n; i++) {\n\t\t\tif (i%3==0 || i%5==0)\n\t\t\t\tcontinue;\n\t\t\tans+=i;\n\t\t}\n\t\tout.println(ans);\n\t\tout.flush();\n\t\t\n\t}\n\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}",
"Main",
"static FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"static long n;",
"n",
"public static void main(String[] args) {\n\t\tn = sc.nextLong();\n\t\t\n\t\tlong ans =0;\n\t\t\n\t\tfor (int i=1; i<=n; i++) {\n\t\t\tif (i%3==0 || i%5==0)\n\t\t\t\tcontinue;\n\t\t\tans+=i;\n\t\t}\n\t\tout.println(ans);\n\t\tout.flush();\n\t\t\n\t}",
"main",
"{\n\t\tn = sc.nextLong();\n\t\t\n\t\tlong ans =0;\n\t\t\n\t\tfor (int i=1; i<=n; i++) {\n\t\t\tif (i%3==0 || i%5==0)\n\t\t\t\tcontinue;\n\t\t\tans+=i;\n\t\t}\n\t\tout.println(ans);\n\t\tout.flush();\n\t\t\n\t}",
"n = sc.nextLong()",
"n",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long ans =0;",
"ans",
"0",
"for (int i=1; i<=n; i++) {\n\t\t\tif (i%3==0 || i%5==0)\n\t\t\t\tcontinue;\n\t\t\tans+=i;\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif (i%3==0 || i%5==0)\n\t\t\t\tcontinue;\n\t\t\tans+=i;\n\t\t}",
"{\n\t\t\tif (i%3==0 || i%5==0)\n\t\t\t\tcontinue;\n\t\t\tans+=i;\n\t\t}",
"if (i%3==0 || i%5==0)\n\t\t\t\tcontinue;",
"i%3==0 || i%5==0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"continue;",
"ans+=i",
"ans",
"i",
"out.println(ans)",
"out.println",
"out",
"ans",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"static class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }",
"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\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }",
"hasNextByte",
"{\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }",
"if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }",
"ptr < buflen",
"ptr",
"buflen",
"{\n\t return true;\n\t }",
"return true;",
"true",
"{\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }",
"ptr = 0",
"ptr",
"0",
"try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"IOException e",
"{\n\t e.printStackTrace();\n\t }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t buflen = in.read(buffer);\n\t }",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n\t return false;\n\t }",
"buflen <= 0",
"buflen",
"0",
"{\n\t return false;\n\t }",
"return false;",
"false",
"return true;",
"true",
"private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }",
"readByte",
"{\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }",
"if (hasNextByte()) return buffer[ptr++];\n\t else return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }",
"isPrintableChar",
"{\n\t return 33 <= c && c <= 126;\n\t }",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }",
"skipUnprintable",
"{\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }",
"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",
"public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }",
"hasNext",
"{\n\t skipUnprintable();\n\t return hasNextByte();\n\t }",
"skipUnprintable()",
"skipUnprintable",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }",
"next",
"{\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }",
"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\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }",
"nextDouble",
"{\n\t \treturn Double.parseDouble(next());\n\t }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }",
"nextLong",
"{\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }",
"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\t minus = true;\n\t b = readByte();\n\t }",
"b == '-'",
"b",
"'-'",
"{\n\t minus = true;\n\t b = readByte();\n\t }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n\t throw new NumberFormatException();\n\t }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }",
"true",
"{\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }",
"if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n\t n *= 10;\n\t n += b - '0';\n\t }",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t return minus ? -n : n;\n\t }",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n\t throw new NumberFormatException();\n\t }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int nextInt() {\n\t return (int) nextLong();\n\t }",
"nextInt",
"{\n\t return (int) nextLong();\n\t }",
"return (int) nextLong();",
"(int) nextLong()",
"nextLong",
"public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }",
"nextIntArray",
"{\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }",
"if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }",
"oneBased",
"{\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }",
"int[] array = new int[N + 1];",
"array",
"new int[N + 1]",
"N + 1",
"N",
"1",
"for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextInt();\n\t }",
"{\n\t array[i] = sc.nextInt();\n\t }",
"array[i] = sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return array;",
"array",
"{\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }",
"int[] array = new int[N];",
"array",
"new int[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextInt();\n\t }",
"{\n\t array[i] = sc.nextInt();\n\t }",
"array[i] = sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return array;",
"array",
"int N",
"N",
"boolean oneBased",
"oneBased",
"public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }",
"nextLongArray",
"{\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }",
"if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }",
"oneBased",
"{\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }",
"long[] array = new long[N + 1];",
"array",
"new long[N + 1]",
"N + 1",
"N",
"1",
"for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextLong();\n\t }",
"{\n\t array[i] = sc.nextLong();\n\t }",
"array[i] = sc.nextLong()",
"array[i]",
"array",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"return array;",
"array",
"{\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }",
"long[] array = new long[N];",
"array",
"new long[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextLong();\n\t }",
"{\n\t array[i] = sc.nextLong();\n\t }",
"array[i] = sc.nextLong()",
"array[i]",
"array",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"return array;",
"array",
"int N",
"N",
"boolean oneBased",
"oneBased",
"public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic long n;\n\t//static HashMap <Long, Long> map;\n\t\t\n\t\n\tpublic static void main(String[] args) {\n\t\tn = sc.nextLong();\n\t\t\n\t\tlong ans =0;\n\t\t\n\t\tfor (int i=1; i<=n; i++) {\n\t\t\tif (i%3==0 || i%5==0)\n\t\t\t\tcontinue;\n\t\t\tans+=i;\n\t\t}\n\t\tout.println(ans);\n\t\tout.flush();\n\t\t\n\t}\n\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}",
"public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic long n;\n\t//static HashMap <Long, Long> map;\n\t\t\n\t\n\tpublic static void main(String[] args) {\n\t\tn = sc.nextLong();\n\t\t\n\t\tlong ans =0;\n\t\t\n\t\tfor (int i=1; i<=n; i++) {\n\t\t\tif (i%3==0 || i%5==0)\n\t\t\t\tcontinue;\n\t\t\tans+=i;\n\t\t}\n\t\tout.println(ans);\n\t\tout.flush();\n\t\t\n\t}\n\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}",
"Main"
] |
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
//import java.util.HashMap;
import java.util.NoSuchElementException;
public class Main{
static FastScanner sc = new FastScanner();
static PrintWriter out = new PrintWriter(System.out);
static long n;
//static HashMap <Long, Long> map;
public static void main(String[] args) {
n = sc.nextLong();
long ans =0;
for (int i=1; i<=n; i++) {
if (i%3==0 || i%5==0)
continue;
ans+=i;
}
out.println(ans);
out.flush();
}
static 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;
}
private void skipUnprintable() {
while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;
}
public boolean hasNext() {
skipUnprintable();
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 double nextDouble () {
return Double.parseDouble(next());
}
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() {
return (int) nextLong();
}
public int[] nextIntArray(int N, boolean oneBased) {
if (oneBased) {
int[] array = new int[N + 1];
for (int i = 1; i <= N; i++) {
array[i] = sc.nextInt();
}
return array;
} else {
int[] array = new int[N];
for (int i = 0; i < N; i++) {
array[i] = sc.nextInt();
}
return array;
}
}
public long[] nextLongArray(int N, boolean oneBased) {
if (oneBased) {
long[] array = new long[N + 1];
for (int i = 1; i <= N; i++) {
array[i] = sc.nextLong();
}
return array;
} else {
long[] array = new long[N];
for (int i = 0; i < N; i++) {
array[i] = sc.nextLong();
}
return array;
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
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,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
13,
13,
40,
13,
30,
0,
13,
2,
13,
13,
0,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
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
],
[
396,
8
],
[
396,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
396,
14
],
[
14,
15
],
[
14,
16
],
[
396,
17
],
[
17,
18
],
[
17,
19
],
[
396,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
22,
31
],
[
31,
32
],
[
31,
33
],
[
22,
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
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
47,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
22,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
20,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
82,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
87,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
81,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
71,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
113,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
119,
125
],
[
125,
126
],
[
113,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
130,
132
],
[
127,
133
],
[
133,
134
],
[
133,
135
],
[
104,
136
],
[
136,
137
],
[
102,
138
],
[
138,
139
],
[
102,
140
],
[
140,
141
],
[
71,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
150,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
153,
156
],
[
156,
157
],
[
156,
158
],
[
142,
159
],
[
159,
160
],
[
142,
161
],
[
161,
162
],
[
71,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
170,
171
],
[
171,
172
],
[
165,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
174,
177
],
[
177,
178
],
[
177,
179
],
[
163,
180
],
[
180,
181
],
[
163,
182
],
[
182,
183
],
[
71,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
190,
192
],
[
190,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
194,
197
],
[
186,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
186,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
202,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
209,
211
],
[
202,
212
],
[
212,
213
],
[
213,
214
],
[
202,
215
],
[
216,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
221,
222
],
[
222,
223
],
[
221,
224
],
[
186,
225
],
[
225,
226
],
[
184,
227
],
[
227,
228
],
[
71,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
235,
237
],
[
235,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
239,
242
],
[
231,
243
],
[
243,
244
],
[
244,
245
],
[
243,
246
],
[
231,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
247,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
255,
256
],
[
247,
257
],
[
257,
258
],
[
258,
259
],
[
247,
260
],
[
261,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
266,
267
],
[
267,
268
],
[
266,
269
],
[
231,
270
],
[
270,
271
],
[
229,
272
],
[
272,
273
],
[
71,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
280,
282
],
[
280,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
284,
287
],
[
276,
288
],
[
288,
289
],
[
289,
290
],
[
288,
291
],
[
276,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
292,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
299,
301
],
[
292,
302
],
[
302,
303
],
[
303,
304
],
[
292,
305
],
[
306,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
308,
310
],
[
307,
311
],
[
311,
312
],
[
312,
313
],
[
311,
314
],
[
276,
315
],
[
315,
316
],
[
274,
317
],
[
317,
318
],
[
71,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
323,
326
],
[
326,
327
],
[
71,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
330,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
335,
340
],
[
340,
341
],
[
340,
342
],
[
335,
343
],
[
343,
344
],
[
344,
345
],
[
335,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
347,
351
],
[
351,
352
],
[
330,
353
],
[
353,
354
],
[
328,
355
],
[
355,
356
],
[
71,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
360,
361
],
[
361,
362
],
[
362,
363
],
[
361,
364
],
[
364,
365
],
[
71,
366
],
[
366,
367
],
[
366,
368
],
[
368,
369
],
[
369,
370
],
[
369,
371
],
[
368,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
373,
378
],
[
378,
379
],
[
378,
380
],
[
373,
381
],
[
381,
382
],
[
382,
383
],
[
373,
384
],
[
384,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
385,
389
],
[
389,
390
],
[
368,
391
],
[
391,
392
],
[
366,
393
],
[
393,
394
],
[
0,
395
],
[
395,
396
],
[
395,
397
]
] |
[
"//package Atcoder;\n\nimport java.util.*;\nimport java.io.*;\npublic class Main\n{\n\tstatic final int mod=(int)1e9+7;\n\tstatic final int inf=(int)1e9;\n\tstatic final long INF=(long)1e18;\n\tpublic static void main(String[] args)\n\t{\n\t\tFastScanner fs=new FastScanner();\n\t\tint n=fs.nextInt();\n\t\tlong s=0;\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tif(i%3!=0 && i%5!=0)\n\t\t\t{\n\t\t\t\ts+=i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t}\n}\nclass FastScanner \n{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\t\tpublic String next() \n\t\t{\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\t\n\t\t}\n\t\t\n\t\tlong pow(long x,long n)\n\t\t{\n\t\t\tlong res=1;\n\t\t\twhile(n>0)\n\t\t\t{\n\t\t\t \tif(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\t\tint gcd(int a,int b)\n\t\t{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t\tlong longgcd(long a,long b)\n\t\t{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn longgcd(b,a%b);\n\t\t}\n\t\tint[] sort(int arr[])\n\t\t{\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\t\tchar[] charsort(char arr[])\n\t {\n\t \tArrayList<Character> list = new ArrayList<>();\n\t \tfor(char c:arr)list.add(c);\n\t \tCollections.sort(list);\n\t \tfor(int i=0;i<list.size();i++)\n\t \t{\n\t \t\tarr[i]=list.get(i);\n\t \t}\n\t \treturn arr;\n\t }\n\t\tlong[] longsort(long arr[])\n\t\t{\n\t\t\tArrayList<Long> list = new ArrayList<Long>();\n\t\t\tfor(long i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\t\tpublic int nextInt() \n\t\t{\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tpublic int[] readArray(int n)\n\t\t{\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}\t\n\t\tpublic long nextLong()\n\t\t{\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tpublic long[] longreadArray(int n) \n\t\t{\n\t\t\tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n\tstatic final int mod=(int)1e9+7;\n\tstatic final int inf=(int)1e9;\n\tstatic final long INF=(long)1e18;\n\tpublic static void main(String[] args)\n\t{\n\t\tFastScanner fs=new FastScanner();\n\t\tint n=fs.nextInt();\n\t\tlong s=0;\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tif(i%3!=0 && i%5!=0)\n\t\t\t{\n\t\t\t\ts+=i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t}\n}",
"Main",
"static final int mod=(int)1e9+7;",
"mod",
"(int)1e9+7",
"(int)1e9",
"7",
"static final int inf=(int)1e9;",
"inf",
"(int)1e9",
"static final long INF=(long)1e18;",
"INF",
"(long)1e18",
"public static void main(String[] args)\n\t{\n\t\tFastScanner fs=new FastScanner();\n\t\tint n=fs.nextInt();\n\t\tlong s=0;\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tif(i%3!=0 && i%5!=0)\n\t\t\t{\n\t\t\t\ts+=i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t}",
"main",
"{\n\t\tFastScanner fs=new FastScanner();\n\t\tint n=fs.nextInt();\n\t\tlong s=0;\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tif(i%3!=0 && i%5!=0)\n\t\t\t{\n\t\t\t\ts+=i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t}",
"FastScanner fs=new FastScanner();",
"fs",
"new FastScanner()",
"int n=fs.nextInt();",
"n",
"fs.nextInt()",
"fs.nextInt",
"fs",
"long s=0;",
"s",
"0",
"for(int i=1;i<=n;i++)\n\t\t{\n\t\t\tif(i%3!=0 && i%5!=0)\n\t\t\t{\n\t\t\t\ts+=i;\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%3!=0 && i%5!=0)\n\t\t\t{\n\t\t\t\ts+=i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i%3!=0 && i%5!=0)\n\t\t\t{\n\t\t\t\ts+=i;\n\t\t\t}\n\t\t}",
"if(i%3!=0 && i%5!=0)\n\t\t\t{\n\t\t\t\ts+=i;\n\t\t\t}",
"i%3!=0 && i%5!=0",
"i%3!=0",
"i%3",
"i",
"3",
"0",
"i%5!=0",
"i%5",
"i",
"5",
"0",
"{\n\t\t\t\ts+=i;\n\t\t\t}",
"s+=i",
"s",
"i",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"class FastScanner \n{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\t\tpublic String next() \n\t\t{\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\t\n\t\t}\n\t\t\n\t\tlong pow(long x,long n)\n\t\t{\n\t\t\tlong res=1;\n\t\t\twhile(n>0)\n\t\t\t{\n\t\t\t \tif(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\t\tint gcd(int a,int b)\n\t\t{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t\tlong longgcd(long a,long b)\n\t\t{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn longgcd(b,a%b);\n\t\t}\n\t\tint[] sort(int arr[])\n\t\t{\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\t\tchar[] charsort(char arr[])\n\t {\n\t \tArrayList<Character> list = new ArrayList<>();\n\t \tfor(char c:arr)list.add(c);\n\t \tCollections.sort(list);\n\t \tfor(int i=0;i<list.size();i++)\n\t \t{\n\t \t\tarr[i]=list.get(i);\n\t \t}\n\t \treturn arr;\n\t }\n\t\tlong[] longsort(long arr[])\n\t\t{\n\t\t\tArrayList<Long> list = new ArrayList<Long>();\n\t\t\tfor(long i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\t\tpublic int nextInt() \n\t\t{\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tpublic int[] readArray(int n)\n\t\t{\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}\t\n\t\tpublic long nextLong()\n\t\t{\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tpublic long[] longreadArray(int n) \n\t\t{\n\t\t\tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n}",
"FastScanner",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"public String next() \n\t\t{\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\t\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\t\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",
"long pow(long x,long n)\n\t\t{\n\t\t\tlong res=1;\n\t\t\twhile(n>0)\n\t\t\t{\n\t\t\t \tif(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}\n\t\t\t}\n\t\t\treturn res;\n\t\t}",
"pow",
"{\n\t\t\tlong res=1;\n\t\t\twhile(n>0)\n\t\t\t{\n\t\t\t \tif(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}\n\t\t\t}\n\t\t\treturn res;\n\t\t}",
"long res=1;",
"res",
"1",
"while(n>0)\n\t\t\t{\n\t\t\t \tif(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}\n\t\t\t}",
"n>0",
"n",
"0",
"{\n\t\t\t \tif(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}\n\t\t\t}",
"if(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}",
"n%2!=0",
"n%2",
"n",
"2",
"0",
"{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}",
"res=(res*x)",
"res",
"(res*x)",
"res",
"x",
"n--",
"n",
"{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}",
"x=(x*x)",
"x",
"(x*x)",
"x",
"x",
"n/=2",
"n",
"2",
"return res;",
"res",
"long x",
"x",
"long n",
"n",
"int gcd(int a,int b)\n\t\t{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn gcd(b,a%b);\n\t\t}",
"gcd",
"{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn gcd(b,a%b);\n\t\t}",
"if(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}",
"b==0",
"b",
"0",
"{\n\t\t\t\treturn a;\n\t\t\t}",
"return a;",
"a",
"return gcd(b,a%b);",
"gcd(b,a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"long longgcd(long a,long b)\n\t\t{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn longgcd(b,a%b);\n\t\t}",
"longgcd",
"{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn longgcd(b,a%b);\n\t\t}",
"if(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}",
"b==0",
"b",
"0",
"{\n\t\t\t\treturn a;\n\t\t\t}",
"return a;",
"a",
"return longgcd(b,a%b);",
"longgcd(b,a%b)",
"longgcd",
"b",
"a%b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"int[] sort(int arr[])\n\t\t{\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}",
"sort",
"{\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}",
"ArrayList<Integer> list = new ArrayList<Integer>();",
"list",
"new ArrayList<Integer>()",
"for(int i:arr)list.add(i);",
"int i",
"arr",
"list.add(i);",
"list.add(i)",
"list.add",
"list",
"i",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"for(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}",
"{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}",
"arr[i]=list.get(i)",
"arr[i]",
"arr",
"i",
"list.get(i)",
"list.get",
"list",
"i",
"return arr;",
"arr",
"int arr[]",
"arr",
"char[] charsort(char arr[])\n\t {\n\t \tArrayList<Character> list = new ArrayList<>();\n\t \tfor(char c:arr)list.add(c);\n\t \tCollections.sort(list);\n\t \tfor(int i=0;i<list.size();i++)\n\t \t{\n\t \t\tarr[i]=list.get(i);\n\t \t}\n\t \treturn arr;\n\t }",
"charsort",
"{\n\t \tArrayList<Character> list = new ArrayList<>();\n\t \tfor(char c:arr)list.add(c);\n\t \tCollections.sort(list);\n\t \tfor(int i=0;i<list.size();i++)\n\t \t{\n\t \t\tarr[i]=list.get(i);\n\t \t}\n\t \treturn arr;\n\t }",
"ArrayList<Character> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"for(char c:arr)list.add(c);",
"char c",
"arr",
"list.add(c);",
"list.add(c)",
"list.add",
"list",
"c",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"for(int i=0;i<list.size();i++)\n\t \t{\n\t \t\tarr[i]=list.get(i);\n\t \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<list.size()",
"i",
"list.size()",
"list.size",
"list",
"i++",
"i++",
"i",
"{\n\t \t\tarr[i]=list.get(i);\n\t \t}",
"{\n\t \t\tarr[i]=list.get(i);\n\t \t}",
"arr[i]=list.get(i)",
"arr[i]",
"arr",
"i",
"list.get(i)",
"list.get",
"list",
"i",
"return arr;",
"arr",
"char arr[]",
"arr",
"long[] longsort(long arr[])\n\t\t{\n\t\t\tArrayList<Long> list = new ArrayList<Long>();\n\t\t\tfor(long i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}",
"longsort",
"{\n\t\t\tArrayList<Long> list = new ArrayList<Long>();\n\t\t\tfor(long i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}",
"ArrayList<Long> list = new ArrayList<Long>();",
"list",
"new ArrayList<Long>()",
"for(long i:arr)list.add(i);",
"long i",
"arr",
"list.add(i);",
"list.add(i)",
"list.add",
"list",
"i",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"for(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}",
"{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}",
"arr[i]=list.get(i)",
"arr[i]",
"arr",
"i",
"list.get(i)",
"list.get",
"list",
"i",
"return arr;",
"arr",
"long arr[]",
"arr",
"public int nextInt() \n\t\t{\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 int[] readArray(int n)\n\t\t{\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}",
"readArray",
"{\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 long nextLong()\n\t\t{\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 long[] longreadArray(int n) \n\t\t{\n\t\t\tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}",
"longreadArray",
"{\n\t\t\tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}",
"long[] a=new long[n];",
"a",
"new long[n]",
"n",
"for (int i=0; i<n; i++) a[i]=nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextLong();",
"a[i]=nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"public class Main\n{\n\tstatic final int mod=(int)1e9+7;\n\tstatic final int inf=(int)1e9;\n\tstatic final long INF=(long)1e18;\n\tpublic static void main(String[] args)\n\t{\n\t\tFastScanner fs=new FastScanner();\n\t\tint n=fs.nextInt();\n\t\tlong s=0;\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tif(i%3!=0 && i%5!=0)\n\t\t\t{\n\t\t\t\ts+=i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t}\n}",
"public class Main\n{\n\tstatic final int mod=(int)1e9+7;\n\tstatic final int inf=(int)1e9;\n\tstatic final long INF=(long)1e18;\n\tpublic static void main(String[] args)\n\t{\n\t\tFastScanner fs=new FastScanner();\n\t\tint n=fs.nextInt();\n\t\tlong s=0;\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tif(i%3!=0 && i%5!=0)\n\t\t\t{\n\t\t\t\ts+=i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t}\n}",
"Main"
] |
//package Atcoder;
import java.util.*;
import java.io.*;
public class Main
{
static final int mod=(int)1e9+7;
static final int inf=(int)1e9;
static final long INF=(long)1e18;
public static void main(String[] args)
{
FastScanner fs=new FastScanner();
int n=fs.nextInt();
long s=0;
for(int i=1;i<=n;i++)
{
if(i%3!=0 && i%5!=0)
{
s+=i;
}
}
System.out.println(s);
}
}
class FastScanner
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer("");
public String next()
{
while (!st.hasMoreTokens())
try {
st=new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
long pow(long x,long n)
{
long res=1;
while(n>0)
{
if(n%2!=0)
{
res=(res*x);n--;
}
else
{
x=(x*x);n/=2;
}
}
return res;
}
int gcd(int a,int b)
{
if(b==0)
{
return a;
}
return gcd(b,a%b);
}
long longgcd(long a,long b)
{
if(b==0)
{
return a;
}
return longgcd(b,a%b);
}
int[] sort(int arr[])
{
ArrayList<Integer> list = new ArrayList<Integer>();
for(int i:arr)list.add(i);
Collections.sort(list);
for(int i=0;i<arr.length;i++)
{
arr[i]=list.get(i);
}
return arr;
}
char[] charsort(char arr[])
{
ArrayList<Character> list = new ArrayList<>();
for(char c:arr)list.add(c);
Collections.sort(list);
for(int i=0;i<list.size();i++)
{
arr[i]=list.get(i);
}
return arr;
}
long[] longsort(long arr[])
{
ArrayList<Long> list = new ArrayList<Long>();
for(long i:arr)list.add(i);
Collections.sort(list);
for(int i=0;i<arr.length;i++)
{
arr[i]=list.get(i);
}
return arr;
}
public int nextInt()
{
return Integer.parseInt(next());
}
public int[] readArray(int n)
{
int[] arr=new int[n];
for (int i=0; i<n; i++) arr[i]=nextInt();
return arr;
}
public long nextLong()
{
return Long.parseLong(next());
}
public long[] longreadArray(int n)
{
long[] a=new long[n];
for (int i=0; i<n; i++) a[i]=nextLong();
return a;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
9,
30,
0,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
71,
8
],
[
71,
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
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
36,
48
],
[
48,
49
],
[
36,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
11,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
66,
67
],
[
9,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] |
[
"import java.util.*;\nimport java.math.*;\npublic class Main {\npublic static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t// 入力\n\tint a = sc.nextInt();\n\tBigDecimal res = new BigDecimal(\"0\");\n \n for(int i=1;i<=a;i++) {\n if(i%5 == 0 || i%3 == 0) {\n continue;\n } else {\n res = res.add(BigDecimal.valueOf(i));\n }\n }\n\t// 出力\n System.out.print(res.toPlainString());\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main {\npublic static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t// 入力\n\tint a = sc.nextInt();\n\tBigDecimal res = new BigDecimal(\"0\");\n \n for(int i=1;i<=a;i++) {\n if(i%5 == 0 || i%3 == 0) {\n continue;\n } else {\n res = res.add(BigDecimal.valueOf(i));\n }\n }\n\t// 出力\n System.out.print(res.toPlainString());\n\t}\n}",
"Main",
"public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t// 入力\n\tint a = sc.nextInt();\n\tBigDecimal res = new BigDecimal(\"0\");\n \n for(int i=1;i<=a;i++) {\n if(i%5 == 0 || i%3 == 0) {\n continue;\n } else {\n res = res.add(BigDecimal.valueOf(i));\n }\n }\n\t// 出力\n System.out.print(res.toPlainString());\n\t}",
"main",
"{\n\tScanner sc = new Scanner(System.in);\n\t// 入力\n\tint a = sc.nextInt();\n\tBigDecimal res = new BigDecimal(\"0\");\n \n for(int i=1;i<=a;i++) {\n if(i%5 == 0 || i%3 == 0) {\n continue;\n } else {\n res = res.add(BigDecimal.valueOf(i));\n }\n }\n\t// 出力\n System.out.print(res.toPlainString());\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"BigDecimal res = new BigDecimal(\"0\");",
"res",
"new BigDecimal(\"0\")",
"for(int i=1;i<=a;i++) {\n if(i%5 == 0 || i%3 == 0) {\n continue;\n } else {\n res = res.add(BigDecimal.valueOf(i));\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=a",
"i",
"a",
"i++",
"i++",
"i",
"{\n if(i%5 == 0 || i%3 == 0) {\n continue;\n } else {\n res = res.add(BigDecimal.valueOf(i));\n }\n }",
"{\n if(i%5 == 0 || i%3 == 0) {\n continue;\n } else {\n res = res.add(BigDecimal.valueOf(i));\n }\n }",
"if(i%5 == 0 || i%3 == 0) {\n continue;\n } else {\n res = res.add(BigDecimal.valueOf(i));\n }",
"i%5 == 0 || i%3 == 0",
"i%5 == 0",
"i%5",
"i",
"5",
"0",
"i%3 == 0",
"i%3",
"i",
"3",
"0",
"{\n continue;\n }",
"continue;",
"{\n res = res.add(BigDecimal.valueOf(i));\n }",
"res = res.add(BigDecimal.valueOf(i))",
"res",
"res.add(BigDecimal.valueOf(i))",
"res.add",
"res",
"BigDecimal.valueOf(i)",
"BigDecimal.valueOf",
"BigDecimal",
"i",
"System.out.print(res.toPlainString())",
"System.out.print",
"System.out",
"System",
"System.out",
"res.toPlainString()",
"res.toPlainString",
"res",
"String[] args",
"args",
"public class Main {\npublic static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t// 入力\n\tint a = sc.nextInt();\n\tBigDecimal res = new BigDecimal(\"0\");\n \n for(int i=1;i<=a;i++) {\n if(i%5 == 0 || i%3 == 0) {\n continue;\n } else {\n res = res.add(BigDecimal.valueOf(i));\n }\n }\n\t// 出力\n System.out.print(res.toPlainString());\n\t}\n}",
"public class Main {\npublic static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t// 入力\n\tint a = sc.nextInt();\n\tBigDecimal res = new BigDecimal(\"0\");\n \n for(int i=1;i<=a;i++) {\n if(i%5 == 0 || i%3 == 0) {\n continue;\n } else {\n res = res.add(BigDecimal.valueOf(i));\n }\n }\n\t// 出力\n System.out.print(res.toPlainString());\n\t}\n}",
"Main"
] |
import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
BigDecimal res = new BigDecimal("0");
for(int i=1;i<=a;i++) {
if(i%5 == 0 || i%3 == 0) {
continue;
} else {
res = res.add(BigDecimal.valueOf(i));
}
}
// 出力
System.out.print(res.toPlainString());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] |
[
"import java.util.*;\npublic class Main {// Main\n public static void main(String[] args){\n \tScanner s = new Scanner(System.in);\n long a = s.nextLong();\n long count = 0;\n for(int i=1;i<=a;i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n\n } else if(i % 3 == 0) {\n\n } else if(i % 5 == 0) {\n\n } else {\n count += i;\n }\n }\n System.out.println(count);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {// Main\n public static void main(String[] args){\n \tScanner s = new Scanner(System.in);\n long a = s.nextLong();\n long count = 0;\n for(int i=1;i<=a;i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n\n } else if(i % 3 == 0) {\n\n } else if(i % 5 == 0) {\n\n } else {\n count += i;\n }\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner s = new Scanner(System.in);\n long a = s.nextLong();\n long count = 0;\n for(int i=1;i<=a;i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n\n } else if(i % 3 == 0) {\n\n } else if(i % 5 == 0) {\n\n } else {\n count += i;\n }\n }\n System.out.println(count);\n }",
"main",
"{\n \tScanner s = new Scanner(System.in);\n long a = s.nextLong();\n long count = 0;\n for(int i=1;i<=a;i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n\n } else if(i % 3 == 0) {\n\n } else if(i % 5 == 0) {\n\n } else {\n count += i;\n }\n }\n System.out.println(count);\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"long a = s.nextLong();",
"a",
"s.nextLong()",
"s.nextLong",
"s",
"long count = 0;",
"count",
"0",
"for(int i=1;i<=a;i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n\n } else if(i % 3 == 0) {\n\n } else if(i % 5 == 0) {\n\n } else {\n count += i;\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=a",
"i",
"a",
"i++",
"i++",
"i",
"{\n if(i % 3 == 0 && i % 5 == 0) {\n\n } else if(i % 3 == 0) {\n\n } else if(i % 5 == 0) {\n\n } else {\n count += i;\n }\n }",
"{\n if(i % 3 == 0 && i % 5 == 0) {\n\n } else if(i % 3 == 0) {\n\n } else if(i % 5 == 0) {\n\n } else {\n count += i;\n }\n }",
"if(i % 3 == 0 && i % 5 == 0) {\n\n } else if(i % 3 == 0) {\n\n } else if(i % 5 == 0) {\n\n } else {\n count += i;\n }",
"i % 3 == 0 && i % 5 == 0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\n }",
"if(i % 3 == 0) {\n\n } else if(i % 5 == 0) {\n\n } else {\n count += i;\n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\n }",
"if(i % 5 == 0) {\n\n } else {\n count += i;\n }",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\n }",
"{\n count += i;\n }",
"count += i",
"count",
"i",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {// Main\n public static void main(String[] args){\n \tScanner s = new Scanner(System.in);\n long a = s.nextLong();\n long count = 0;\n for(int i=1;i<=a;i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n\n } else if(i % 3 == 0) {\n\n } else if(i % 5 == 0) {\n\n } else {\n count += i;\n }\n }\n System.out.println(count);\n }\n}",
"public class Main {// Main\n public static void main(String[] args){\n \tScanner s = new Scanner(System.in);\n long a = s.nextLong();\n long count = 0;\n for(int i=1;i<=a;i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n\n } else if(i % 3 == 0) {\n\n } else if(i % 5 == 0) {\n\n } else {\n count += i;\n }\n }\n System.out.println(count);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {// Main
public static void main(String[] args){
Scanner s = new Scanner(System.in);
long a = s.nextLong();
long count = 0;
for(int i=1;i<=a;i++) {
if(i % 3 == 0 && i % 5 == 0) {
} else if(i % 3 == 0) {
} else if(i % 5 == 0) {
} else {
count += i;
}
}
System.out.println(count);
}
}
|
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
0,
13,
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
],
[
67,
14
],
[
67,
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
],
[
17,
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
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
42,
54
],
[
42,
55
],
[
55,
56
],
[
55,
57
],
[
17,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
15,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"import java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long num = sc.nextLong();\n\n long sum = 0;\n for (int i=1; i<=num; i++) {\n if (i % 5 == 0 || i % 3 == 0) continue;\n else sum+=i;\n }\n\n System.out.println(sum);\n }\n}",
"import java.io.File;",
"File",
"java.io",
"import java.io.FileInputStream;",
"FileInputStream",
"java.io",
"import java.io.FileNotFoundException;",
"FileNotFoundException",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long num = sc.nextLong();\n\n long sum = 0;\n for (int i=1; i<=num; i++) {\n if (i % 5 == 0 || i % 3 == 0) continue;\n else sum+=i;\n }\n\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long num = sc.nextLong();\n\n long sum = 0;\n for (int i=1; i<=num; i++) {\n if (i % 5 == 0 || i % 3 == 0) continue;\n else sum+=i;\n }\n\n System.out.println(sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long num = sc.nextLong();\n\n long sum = 0;\n for (int i=1; i<=num; i++) {\n if (i % 5 == 0 || i % 3 == 0) continue;\n else sum+=i;\n }\n\n System.out.println(sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long num = sc.nextLong();",
"num",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long sum = 0;",
"sum",
"0",
"for (int i=1; i<=num; i++) {\n if (i % 5 == 0 || i % 3 == 0) continue;\n else sum+=i;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=num",
"i",
"num",
"i++",
"i++",
"i",
"{\n if (i % 5 == 0 || i % 3 == 0) continue;\n else sum+=i;\n }",
"{\n if (i % 5 == 0 || i % 3 == 0) continue;\n else sum+=i;\n }",
"if (i % 5 == 0 || i % 3 == 0) continue;\n else sum+=i;",
"i % 5 == 0 || i % 3 == 0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"continue;",
"sum+=i",
"sum",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long num = sc.nextLong();\n\n long sum = 0;\n for (int i=1; i<=num; i++) {\n if (i % 5 == 0 || i % 3 == 0) continue;\n else sum+=i;\n }\n\n System.out.println(sum);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long num = sc.nextLong();\n\n long sum = 0;\n for (int i=1; i<=num; i++) {\n if (i % 5 == 0 || i % 3 == 0) continue;\n else sum+=i;\n }\n\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
long num = sc.nextLong();
long sum = 0;
for (int i=1; i<=num; i++) {
if (i % 5 == 0 || i % 3 == 0) continue;
else sum+=i;
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
89,
8
],
[
89,
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
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
39,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
11,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
56,
66
],
[
66,
67
],
[
67,
68
],
[
56,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
11,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
11,
83
],
[
83,
84
],
[
84,
85
],
[
9,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] |
[
"\nimport java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tArrayList<Integer>array = new ArrayList<Integer>();\n\t\tlong ans = 0;\n\n\t\tfor(int i=1 ; i<=n ; i++ ) {\n\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\tarray.add(i);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0 ; i<array.size() ; i++) {\n\t\t\tans += array.get(i);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\n\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\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tArrayList<Integer>array = new ArrayList<Integer>();\n\t\tlong ans = 0;\n\n\t\tfor(int i=1 ; i<=n ; i++ ) {\n\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\tarray.add(i);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0 ; i<array.size() ; i++) {\n\t\t\tans += array.get(i);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tArrayList<Integer>array = new ArrayList<Integer>();\n\t\tlong ans = 0;\n\n\t\tfor(int i=1 ; i<=n ; i++ ) {\n\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\tarray.add(i);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0 ; i<array.size() ; i++) {\n\t\t\tans += array.get(i);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\n\n\t}",
"main",
"{\n\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tArrayList<Integer>array = new ArrayList<Integer>();\n\t\tlong ans = 0;\n\n\t\tfor(int i=1 ; i<=n ; i++ ) {\n\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\tarray.add(i);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0 ; i<array.size() ; i++) {\n\t\t\tans += array.get(i);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"ArrayList<Integer>array = new ArrayList<Integer>();",
"array",
"new ArrayList<Integer>()",
"long ans = 0;",
"ans",
"0",
"for(int i=1 ; i<=n ; i++ ) {\n\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\tarray.add(i);\n\t\t\t}\n\t\t}",
"int i=1 ;",
"int i=1 ;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\tarray.add(i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\tarray.add(i);\n\t\t\t}\n\t\t}",
"if(i%3 != 0 && i%5 != 0) {\n\t\t\t\tarray.add(i);\n\t\t\t}",
"i%3 != 0 && i%5 != 0",
"i%3 != 0",
"i%3",
"i",
"3",
"0",
"i%5 != 0",
"i%5",
"i",
"5",
"0",
"{\n\t\t\t\tarray.add(i);\n\t\t\t}",
"array.add(i)",
"array.add",
"array",
"i",
"for(int i=0 ; i<array.size() ; i++) {\n\t\t\tans += array.get(i);\n\t\t}",
"int i=0 ;",
"int i=0 ;",
"i",
"0",
"i<array.size()",
"i",
"array.size()",
"array.size",
"array",
"i++",
"i++",
"i",
"{\n\t\t\tans += array.get(i);\n\t\t}",
"{\n\t\t\tans += array.get(i);\n\t\t}",
"ans += array.get(i)",
"ans",
"array.get(i)",
"array.get",
"array",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tArrayList<Integer>array = new ArrayList<Integer>();\n\t\tlong ans = 0;\n\n\t\tfor(int i=1 ; i<=n ; i++ ) {\n\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\tarray.add(i);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0 ; i<array.size() ; i++) {\n\t\t\tans += array.get(i);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tArrayList<Integer>array = new ArrayList<Integer>();\n\t\tlong ans = 0;\n\n\t\tfor(int i=1 ; i<=n ; i++ ) {\n\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\tarray.add(i);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0 ; i<array.size() ; i++) {\n\t\t\tans += array.get(i);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\n\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 n = sc.nextInt();
ArrayList<Integer>array = new ArrayList<Integer>();
long ans = 0;
for(int i=1 ; i<=n ; i++ ) {
if(i%3 != 0 && i%5 != 0) {
array.add(i);
}
}
for(int i=0 ; i<array.size() ; i++) {
ans += array.get(i);
}
System.out.println(ans);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
40,
2,
2,
13,
17,
17,
40,
2,
2,
13,
17,
17,
40,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
70,
5
],
[
70,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
35,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
35,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
33,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"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\t\n\t\tint max = sc.nextInt();\n\t\t\n\t\tlong result = 0;\n\t\t\n\t\tfor(long l = 1; l <= max; l++){\n\t\t\n\t\t\tif(!(l%15 == 0) && !(l%5 == 0) && !(l%3 == 0)) {\n\t\t\t\t\n\t\t\t\tresult += l;\n\t\t\t\t\n\t\t\t}\n\t\t\n }\n \n\t\tsc.close();\n\t\t\n \tSystem.out.println(result);\n \n\t}\n\t\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\t\n\t\tint max = sc.nextInt();\n\t\t\n\t\tlong result = 0;\n\t\t\n\t\tfor(long l = 1; l <= max; l++){\n\t\t\n\t\t\tif(!(l%15 == 0) && !(l%5 == 0) && !(l%3 == 0)) {\n\t\t\t\t\n\t\t\t\tresult += l;\n\t\t\t\t\n\t\t\t}\n\t\t\n }\n \n\t\tsc.close();\n\t\t\n \tSystem.out.println(result);\n \n\t}\n\t\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint max = sc.nextInt();\n\t\t\n\t\tlong result = 0;\n\t\t\n\t\tfor(long l = 1; l <= max; l++){\n\t\t\n\t\t\tif(!(l%15 == 0) && !(l%5 == 0) && !(l%3 == 0)) {\n\t\t\t\t\n\t\t\t\tresult += l;\n\t\t\t\t\n\t\t\t}\n\t\t\n }\n \n\t\tsc.close();\n\t\t\n \tSystem.out.println(result);\n \n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint max = sc.nextInt();\n\t\t\n\t\tlong result = 0;\n\t\t\n\t\tfor(long l = 1; l <= max; l++){\n\t\t\n\t\t\tif(!(l%15 == 0) && !(l%5 == 0) && !(l%3 == 0)) {\n\t\t\t\t\n\t\t\t\tresult += l;\n\t\t\t\t\n\t\t\t}\n\t\t\n }\n \n\t\tsc.close();\n\t\t\n \tSystem.out.println(result);\n \n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int max = sc.nextInt();",
"max",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long result = 0;",
"result",
"0",
"for(long l = 1; l <= max; l++){\n\t\t\n\t\t\tif(!(l%15 == 0) && !(l%5 == 0) && !(l%3 == 0)) {\n\t\t\t\t\n\t\t\t\tresult += l;\n\t\t\t\t\n\t\t\t}\n\t\t\n }",
"long l = 1;",
"long l = 1;",
"l",
"1",
"l <= max",
"l",
"max",
"l++",
"l++",
"l",
"{\n\t\t\n\t\t\tif(!(l%15 == 0) && !(l%5 == 0) && !(l%3 == 0)) {\n\t\t\t\t\n\t\t\t\tresult += l;\n\t\t\t\t\n\t\t\t}\n\t\t\n }",
"{\n\t\t\n\t\t\tif(!(l%15 == 0) && !(l%5 == 0) && !(l%3 == 0)) {\n\t\t\t\t\n\t\t\t\tresult += l;\n\t\t\t\t\n\t\t\t}\n\t\t\n }",
"if(!(l%15 == 0) && !(l%5 == 0) && !(l%3 == 0)) {\n\t\t\t\t\n\t\t\t\tresult += l;\n\t\t\t\t\n\t\t\t}",
"!(l%15 == 0) && !(l%5 == 0) && !(l%3 == 0)",
"!(l%15 == 0) && !(l%5 == 0) && !(l%3 == 0)",
"!(l%15 == 0)",
"(l%15 == 0)",
"l%15",
"l",
"15",
"0",
"!(l%5 == 0)",
"(l%5 == 0)",
"l%5",
"l",
"5",
"0",
"!(l%3 == 0)",
"(l%3 == 0)",
"l%3",
"l",
"3",
"0",
"{\n\t\t\t\t\n\t\t\t\tresult += l;\n\t\t\t\t\n\t\t\t}",
"result += l",
"result",
"l",
"sc.close()",
"sc.close",
"sc",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"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\t\n\t\tint max = sc.nextInt();\n\t\t\n\t\tlong result = 0;\n\t\t\n\t\tfor(long l = 1; l <= max; l++){\n\t\t\n\t\t\tif(!(l%15 == 0) && !(l%5 == 0) && !(l%3 == 0)) {\n\t\t\t\t\n\t\t\t\tresult += l;\n\t\t\t\t\n\t\t\t}\n\t\t\n }\n \n\t\tsc.close();\n\t\t\n \tSystem.out.println(result);\n \n\t}\n\t\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\t\n\t\tint max = sc.nextInt();\n\t\t\n\t\tlong result = 0;\n\t\t\n\t\tfor(long l = 1; l <= max; l++){\n\t\t\n\t\t\tif(!(l%15 == 0) && !(l%5 == 0) && !(l%3 == 0)) {\n\t\t\t\t\n\t\t\t\tresult += l;\n\t\t\t\t\n\t\t\t}\n\t\t\n }\n \n\t\tsc.close();\n\t\t\n \tSystem.out.println(result);\n \n\t}\n\t\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int max = sc.nextInt();
long result = 0;
for(long l = 1; l <= max; l++){
if(!(l%15 == 0) && !(l%5 == 0) && !(l%3 == 0)) {
result += l;
}
}
sc.close();
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
9,
41,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
9,
0,
13,
13,
4,
18,
18,
13,
13,
17,
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
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
35,
50
],
[
50,
51
],
[
50,
52
],
[
35,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
35,
64
],
[
64,
65
],
[
64,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
67,
73
],
[
6,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
] |
[
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tsc.close();\n\n\t\tlong sum = 0;\n\t\tfor(int i=1; i<=N; i++){\n\t\t\tboolean bFizz = false;\n\t\t\tif(i%3==0){\n\t\t\t\tbFizz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tboolean bBuzz = false;\n\t\t\tif(i%5==0){\n\t\t\t\tbBuzz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsum += i;\n\t\t}\n\t\t\n\t\tSystem.out.printf(\"%d\\n\", sum);\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\tsc.close();\n\n\t\tlong sum = 0;\n\t\tfor(int i=1; i<=N; i++){\n\t\t\tboolean bFizz = false;\n\t\t\tif(i%3==0){\n\t\t\t\tbFizz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tboolean bBuzz = false;\n\t\t\tif(i%5==0){\n\t\t\t\tbBuzz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsum += i;\n\t\t}\n\t\t\n\t\tSystem.out.printf(\"%d\\n\", sum);\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\tsc.close();\n\n\t\tlong sum = 0;\n\t\tfor(int i=1; i<=N; i++){\n\t\t\tboolean bFizz = false;\n\t\t\tif(i%3==0){\n\t\t\t\tbFizz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tboolean bBuzz = false;\n\t\t\tif(i%5==0){\n\t\t\t\tbBuzz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsum += i;\n\t\t}\n\t\t\n\t\tSystem.out.printf(\"%d\\n\", sum);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tsc.close();\n\n\t\tlong sum = 0;\n\t\tfor(int i=1; i<=N; i++){\n\t\t\tboolean bFizz = false;\n\t\t\tif(i%3==0){\n\t\t\t\tbFizz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tboolean bBuzz = false;\n\t\t\tif(i%5==0){\n\t\t\t\tbBuzz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsum += i;\n\t\t}\n\t\t\n\t\tSystem.out.printf(\"%d\\n\", sum);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"long sum = 0;",
"sum",
"0",
"for(int i=1; i<=N; i++){\n\t\t\tboolean bFizz = false;\n\t\t\tif(i%3==0){\n\t\t\t\tbFizz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tboolean bBuzz = false;\n\t\t\tif(i%5==0){\n\t\t\t\tbBuzz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsum += i;\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tboolean bFizz = false;\n\t\t\tif(i%3==0){\n\t\t\t\tbFizz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tboolean bBuzz = false;\n\t\t\tif(i%5==0){\n\t\t\t\tbBuzz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsum += i;\n\t\t}",
"{\n\t\t\tboolean bFizz = false;\n\t\t\tif(i%3==0){\n\t\t\t\tbFizz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tboolean bBuzz = false;\n\t\t\tif(i%5==0){\n\t\t\t\tbBuzz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsum += i;\n\t\t}",
"boolean bFizz = false;",
"bFizz",
"false",
"if(i%3==0){\n\t\t\t\tbFizz = true;\n\t\t\t\tcontinue;\n\t\t\t}",
"i%3==0",
"i%3",
"i",
"3",
"0",
"{\n\t\t\t\tbFizz = true;\n\t\t\t\tcontinue;\n\t\t\t}",
"bFizz = true",
"bFizz",
"true",
"continue;",
"boolean bBuzz = false;",
"bBuzz",
"false",
"if(i%5==0){\n\t\t\t\tbBuzz = true;\n\t\t\t\tcontinue;\n\t\t\t}",
"i%5==0",
"i%5",
"i",
"5",
"0",
"{\n\t\t\t\tbBuzz = true;\n\t\t\t\tcontinue;\n\t\t\t}",
"bBuzz = true",
"bBuzz",
"true",
"continue;",
"sum += i",
"sum",
"i",
"System.out.printf(\"%d\\n\", sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\\n\"",
"sum",
"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\tsc.close();\n\n\t\tlong sum = 0;\n\t\tfor(int i=1; i<=N; i++){\n\t\t\tboolean bFizz = false;\n\t\t\tif(i%3==0){\n\t\t\t\tbFizz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tboolean bBuzz = false;\n\t\t\tif(i%5==0){\n\t\t\t\tbBuzz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsum += i;\n\t\t}\n\t\t\n\t\tSystem.out.printf(\"%d\\n\", sum);\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\tsc.close();\n\n\t\tlong sum = 0;\n\t\tfor(int i=1; i<=N; i++){\n\t\t\tboolean bFizz = false;\n\t\t\tif(i%3==0){\n\t\t\t\tbFizz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tboolean bBuzz = false;\n\t\t\tif(i%5==0){\n\t\t\t\tbBuzz = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsum += i;\n\t\t}\n\t\t\n\t\tSystem.out.printf(\"%d\\n\", sum);\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();
sc.close();
long sum = 0;
for(int i=1; i<=N; i++){
boolean bFizz = false;
if(i%3==0){
bFizz = true;
continue;
}
boolean bBuzz = false;
if(i%5==0){
bBuzz = true;
continue;
}
sum += i;
}
System.out.printf("%d\n", sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
17,
0,
13,
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
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
36,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
32,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
6,
61
],
[
61,
62
]
] |
[
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long count = 0;\n\n for(int i=1;i<=N;i++){\n int a = i;\n if(i%3==0 || i%5==0){\n a = 0;\n }\n count += a;\n }\n System.out.println(count);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long count = 0;\n\n for(int i=1;i<=N;i++){\n int a = i;\n if(i%3==0 || i%5==0){\n a = 0;\n }\n count += a;\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 long count = 0;\n\n for(int i=1;i<=N;i++){\n int a = i;\n if(i%3==0 || i%5==0){\n a = 0;\n }\n count += a;\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long count = 0;\n\n for(int i=1;i<=N;i++){\n int a = i;\n if(i%3==0 || i%5==0){\n a = 0;\n }\n count += a;\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",
"long count = 0;",
"count",
"0",
"for(int i=1;i<=N;i++){\n int a = i;\n if(i%3==0 || i%5==0){\n a = 0;\n }\n count += a;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n int a = i;\n if(i%3==0 || i%5==0){\n a = 0;\n }\n count += a;\n }",
"{\n int a = i;\n if(i%3==0 || i%5==0){\n a = 0;\n }\n count += a;\n }",
"int a = i;",
"a",
"i",
"if(i%3==0 || i%5==0){\n a = 0;\n }",
"i%3==0 || i%5==0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"{\n a = 0;\n }",
"a = 0",
"a",
"0",
"count += a",
"count",
"a",
"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 = sc.nextInt();
long count = 0;
for(int i=1;i<=N;i++){
int a = i;
if(i%3==0 || i%5==0){
a = 0;
}
count += a;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
9,
14,
2,
2,
13,
17,
17,
30,
9,
14,
2,
2,
13,
17,
17,
30,
9,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
78,
5
],
[
78,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
36,
48
],
[
48,
49
],
[
36,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
64,
65
],
[
35,
66
],
[
66,
67
],
[
66,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
6,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
] |
[
"import 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 number = sc.nextInt();\n\t\tsc.close();\n\n\t\tlong result = 0;\n\t\tfor (int i = 1; i <= number; i++) {\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tresult += i;\n\t\t}\n\n\t\tSystem.out.print(result);\n\t}\n\n}",
"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 number = sc.nextInt();\n\t\tsc.close();\n\n\t\tlong result = 0;\n\t\tfor (int i = 1; i <= number; i++) {\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tresult += i;\n\t\t}\n\n\t\tSystem.out.print(result);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint number = sc.nextInt();\n\t\tsc.close();\n\n\t\tlong result = 0;\n\t\tfor (int i = 1; i <= number; i++) {\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tresult += i;\n\t\t}\n\n\t\tSystem.out.print(result);\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint number = sc.nextInt();\n\t\tsc.close();\n\n\t\tlong result = 0;\n\t\tfor (int i = 1; i <= number; i++) {\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tresult += i;\n\t\t}\n\n\t\tSystem.out.print(result);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int number = sc.nextInt();",
"number",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"long result = 0;",
"result",
"0",
"for (int i = 1; i <= number; i++) {\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tresult += i;\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= number",
"i",
"number",
"i++",
"i++",
"i",
"{\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tresult += i;\n\t\t}",
"{\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tresult += i;\n\t\t}",
"if (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}",
"i % 3 == 0 && i % 5 == 0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"if (i % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"if (i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"result += i",
"result",
"i",
"System.out.print(result)",
"System.out.print",
"System.out",
"System",
"System.out",
"result",
"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 number = sc.nextInt();\n\t\tsc.close();\n\n\t\tlong result = 0;\n\t\tfor (int i = 1; i <= number; i++) {\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tresult += i;\n\t\t}\n\n\t\tSystem.out.print(result);\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 number = sc.nextInt();\n\t\tsc.close();\n\n\t\tlong result = 0;\n\t\tfor (int i = 1; i <= number; i++) {\n\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tresult += i;\n\t\t}\n\n\t\tSystem.out.print(result);\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 number = sc.nextInt();
sc.close();
long result = 0;
for (int i = 1; i <= number; i++) {
if (i % 3 == 0 && i % 5 == 0) {
continue;
} else if (i % 3 == 0) {
continue;
} else if (i % 5 == 0) {
continue;
}
result += i;
}
System.out.print(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
17,
29,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
6,
50
],
[
50,
51
],
[
79,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
54,
74
],
[
74,
75
],
[
52,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n long answer = 0;\n for (int i = 1; i <= n; i++) {\n answer += calcFizBuzz(i);\n }\n System.out.println(answer);\n sc.close();\n }\n\n private static int calcFizBuzz(int n) {\n int rtn = n;\n if (((n % 3) == 0) || ((n % 5) == 0)) {\n rtn = 0;\n }\n return rtn;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n long answer = 0;\n for (int i = 1; i <= n; i++) {\n answer += calcFizBuzz(i);\n }\n System.out.println(answer);\n sc.close();\n }\n\n private static int calcFizBuzz(int n) {\n int rtn = n;\n if (((n % 3) == 0) || ((n % 5) == 0)) {\n rtn = 0;\n }\n return rtn;\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n long answer = 0;\n for (int i = 1; i <= n; i++) {\n answer += calcFizBuzz(i);\n }\n System.out.println(answer);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n long answer = 0;\n for (int i = 1; i <= n; i++) {\n answer += calcFizBuzz(i);\n }\n System.out.println(answer);\n sc.close();\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 answer = 0;",
"answer",
"0",
"for (int i = 1; i <= n; i++) {\n answer += calcFizBuzz(i);\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n answer += calcFizBuzz(i);\n }",
"{\n answer += calcFizBuzz(i);\n }",
"answer += calcFizBuzz(i)",
"answer",
"calcFizBuzz(i)",
"calcFizBuzz",
"i",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"private static int calcFizBuzz(int n) {\n int rtn = n;\n if (((n % 3) == 0) || ((n % 5) == 0)) {\n rtn = 0;\n }\n return rtn;\n }",
"calcFizBuzz",
"{\n int rtn = n;\n if (((n % 3) == 0) || ((n % 5) == 0)) {\n rtn = 0;\n }\n return rtn;\n }",
"int rtn = n;",
"rtn",
"n",
"if (((n % 3) == 0) || ((n % 5) == 0)) {\n rtn = 0;\n }",
"((n % 3) == 0) || ((n % 5) == 0)",
"((n % 3) == 0)",
"(n % 3)",
"n",
"3",
"0",
"((n % 5) == 0)",
"(n % 5)",
"n",
"5",
"0",
"{\n rtn = 0;\n }",
"rtn = 0",
"rtn",
"0",
"return rtn;",
"rtn",
"int n",
"n",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n long answer = 0;\n for (int i = 1; i <= n; i++) {\n answer += calcFizBuzz(i);\n }\n System.out.println(answer);\n sc.close();\n }\n\n private static int calcFizBuzz(int n) {\n int rtn = n;\n if (((n % 3) == 0) || ((n % 5) == 0)) {\n rtn = 0;\n }\n return rtn;\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n long answer = 0;\n for (int i = 1; i <= n; i++) {\n answer += calcFizBuzz(i);\n }\n System.out.println(answer);\n sc.close();\n }\n\n private static int calcFizBuzz(int n) {\n int rtn = n;\n if (((n % 3) == 0) || ((n % 5) == 0)) {\n rtn = 0;\n }\n return rtn;\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());
long answer = 0;
for (int i = 1; i <= n; i++) {
answer += calcFizBuzz(i);
}
System.out.println(answer);
sc.close();
}
private static int calcFizBuzz(int n) {
int rtn = n;
if (((n % 3) == 0) || ((n % 5) == 0)) {
rtn = 0;
}
return rtn;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
30,
0,
13,
13,
4,
18,
18,
13,
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
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n\t\tlong te = 0;\n \tfor(int i = 0;i<=num;i++){\n if(i%3==0 || i%5==0){\n }else{\n te += i;\n }\n }\n \tSystem.out.println(te);\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\t\tlong te = 0;\n \tfor(int i = 0;i<=num;i++){\n if(i%3==0 || i%5==0){\n }else{\n te += i;\n }\n }\n \tSystem.out.println(te);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n\t\tlong te = 0;\n \tfor(int i = 0;i<=num;i++){\n if(i%3==0 || i%5==0){\n }else{\n te += i;\n }\n }\n \tSystem.out.println(te);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n\t\tlong te = 0;\n \tfor(int i = 0;i<=num;i++){\n if(i%3==0 || i%5==0){\n }else{\n te += i;\n }\n }\n \tSystem.out.println(te);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long te = 0;",
"te",
"0",
"for(int i = 0;i<=num;i++){\n if(i%3==0 || i%5==0){\n }else{\n te += i;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<=num",
"i",
"num",
"i++",
"i++",
"i",
"{\n if(i%3==0 || i%5==0){\n }else{\n te += i;\n }\n }",
"{\n if(i%3==0 || i%5==0){\n }else{\n te += i;\n }\n }",
"if(i%3==0 || i%5==0){\n }else{\n te += i;\n }",
"i%3==0 || i%5==0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"{\n }",
"{\n te += i;\n }",
"te += i",
"te",
"i",
"System.out.println(te)",
"System.out.println",
"System.out",
"System",
"System.out",
"te",
"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\t\tlong te = 0;\n \tfor(int i = 0;i<=num;i++){\n if(i%3==0 || i%5==0){\n }else{\n te += i;\n }\n }\n \tSystem.out.println(te);\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\t\tlong te = 0;\n \tfor(int i = 0;i<=num;i++){\n if(i%3==0 || i%5==0){\n }else{\n te += i;\n }\n }\n \tSystem.out.println(te);\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 te = 0;
for(int i = 0;i<=num;i++){
if(i%3==0 || i%5==0){
}else{
te += i;
}
}
System.out.println(te);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
9,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
33,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String args[]){\n Scanner sn = new Scanner(System.in);\n long N = sn.nextInt();\n long result = 0;\n\n for(int i=1; i<=N; i++){\n if(i%3 == 0 | i%5 == 0){\n continue;\n }else{\n result += i;\n }\n }\n\n System.out.println(result);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String args[]){\n Scanner sn = new Scanner(System.in);\n long N = sn.nextInt();\n long result = 0;\n\n for(int i=1; i<=N; i++){\n if(i%3 == 0 | i%5 == 0){\n continue;\n }else{\n result += i;\n }\n }\n\n System.out.println(result);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sn = new Scanner(System.in);\n long N = sn.nextInt();\n long result = 0;\n\n for(int i=1; i<=N; i++){\n if(i%3 == 0 | i%5 == 0){\n continue;\n }else{\n result += i;\n }\n }\n\n System.out.println(result);\n }",
"main",
"{\n Scanner sn = new Scanner(System.in);\n long N = sn.nextInt();\n long result = 0;\n\n for(int i=1; i<=N; i++){\n if(i%3 == 0 | i%5 == 0){\n continue;\n }else{\n result += i;\n }\n }\n\n System.out.println(result);\n }",
"Scanner sn = new Scanner(System.in);",
"sn",
"new Scanner(System.in)",
"long N = sn.nextInt();",
"N",
"sn.nextInt()",
"sn.nextInt",
"sn",
"long result = 0;",
"result",
"0",
"for(int i=1; i<=N; i++){\n if(i%3 == 0 | i%5 == 0){\n continue;\n }else{\n result += i;\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if(i%3 == 0 | i%5 == 0){\n continue;\n }else{\n result += i;\n }\n }",
"{\n if(i%3 == 0 | i%5 == 0){\n continue;\n }else{\n result += i;\n }\n }",
"if(i%3 == 0 | i%5 == 0){\n continue;\n }else{\n result += i;\n }",
"i%3 == 0 | i%5 == 0",
"i%3 == 0",
"i%3",
"i",
"3",
"0",
"i%5 == 0",
"i%5",
"i",
"5",
"0",
"{\n continue;\n }",
"continue;",
"{\n result += i;\n }",
"result += i",
"result",
"i",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String args[]",
"args",
"public class Main{\n public static void main(String args[]){\n Scanner sn = new Scanner(System.in);\n long N = sn.nextInt();\n long result = 0;\n\n for(int i=1; i<=N; i++){\n if(i%3 == 0 | i%5 == 0){\n continue;\n }else{\n result += i;\n }\n }\n\n System.out.println(result);\n }\n}",
"public class Main{\n public static void main(String args[]){\n Scanner sn = new Scanner(System.in);\n long N = sn.nextInt();\n long result = 0;\n\n for(int i=1; i<=N; i++){\n if(i%3 == 0 | i%5 == 0){\n continue;\n }else{\n result += i;\n }\n }\n\n System.out.println(result);\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sn = new Scanner(System.in);
long N = sn.nextInt();
long result = 0;
for(int i=1; i<=N; i++){
if(i%3 == 0 | i%5 == 0){
continue;
}else{
result += i;
}
}
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
38,
5,
13,
30,
30,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
9,
30,
0,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
19,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
19,
34
],
[
34,
35
],
[
34,
36
],
[
19,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
50,
62
],
[
62,
63
],
[
50,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
19,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
6,
77
],
[
77,
78
]
] |
[
"import java.io.*;\n\nclass Main\n{\n public static void main(String args[])\n {\n String buf;\n int num;\n long ans;\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n buf = br.readLine();\n num = Integer.parseInt(buf);\n ans = 0;\n for(int i = 1; i <= num; i++){\n if (i % 3 == 0 || i % 5 == 0){\n continue;\n }else{\n ans += i;\n }\n }\n System.out.println(Long.toString(ans));\n } catch(Exception e) {}\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n public static void main(String args[])\n {\n String buf;\n int num;\n long ans;\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n buf = br.readLine();\n num = Integer.parseInt(buf);\n ans = 0;\n for(int i = 1; i <= num; i++){\n if (i % 3 == 0 || i % 5 == 0){\n continue;\n }else{\n ans += i;\n }\n }\n System.out.println(Long.toString(ans));\n } catch(Exception e) {}\n }\n}",
"Main",
"public static void main(String args[])\n {\n String buf;\n int num;\n long ans;\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n buf = br.readLine();\n num = Integer.parseInt(buf);\n ans = 0;\n for(int i = 1; i <= num; i++){\n if (i % 3 == 0 || i % 5 == 0){\n continue;\n }else{\n ans += i;\n }\n }\n System.out.println(Long.toString(ans));\n } catch(Exception e) {}\n }",
"main",
"{\n String buf;\n int num;\n long ans;\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n buf = br.readLine();\n num = Integer.parseInt(buf);\n ans = 0;\n for(int i = 1; i <= num; i++){\n if (i % 3 == 0 || i % 5 == 0){\n continue;\n }else{\n ans += i;\n }\n }\n System.out.println(Long.toString(ans));\n } catch(Exception e) {}\n }",
"String buf;",
"buf",
"int num;",
"num",
"long ans;",
"ans",
"try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n buf = br.readLine();\n num = Integer.parseInt(buf);\n ans = 0;\n for(int i = 1; i <= num; i++){\n if (i % 3 == 0 || i % 5 == 0){\n continue;\n }else{\n ans += i;\n }\n }\n System.out.println(Long.toString(ans));\n } catch(Exception e) {}",
"catch(Exception e) {}",
"Exception e",
"{}",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n buf = br.readLine();\n num = Integer.parseInt(buf);\n ans = 0;\n for(int i = 1; i <= num; i++){\n if (i % 3 == 0 || i % 5 == 0){\n continue;\n }else{\n ans += i;\n }\n }\n System.out.println(Long.toString(ans));\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"buf = br.readLine()",
"buf",
"br.readLine()",
"br.readLine",
"br",
"num = Integer.parseInt(buf)",
"num",
"Integer.parseInt(buf)",
"Integer.parseInt",
"Integer",
"buf",
"ans = 0",
"ans",
"0",
"for(int i = 1; i <= num; i++){\n if (i % 3 == 0 || i % 5 == 0){\n continue;\n }else{\n ans += i;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= num",
"i",
"num",
"i++",
"i++",
"i",
"{\n if (i % 3 == 0 || i % 5 == 0){\n continue;\n }else{\n ans += i;\n }\n }",
"{\n if (i % 3 == 0 || i % 5 == 0){\n continue;\n }else{\n ans += i;\n }\n }",
"if (i % 3 == 0 || i % 5 == 0){\n continue;\n }else{\n ans += i;\n }",
"i % 3 == 0 || i % 5 == 0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n continue;\n }",
"continue;",
"{\n ans += i;\n }",
"ans += i",
"ans",
"i",
"System.out.println(Long.toString(ans))",
"System.out.println",
"System.out",
"System",
"System.out",
"Long.toString(ans)",
"Long.toString",
"Long",
"ans",
"String args[]",
"args"
] |
import java.io.*;
class Main
{
public static void main(String args[])
{
String buf;
int num;
long ans;
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
buf = br.readLine();
num = Integer.parseInt(buf);
ans = 0;
for(int i = 1; i <= num; i++){
if (i % 3 == 0 || i % 5 == 0){
continue;
}else{
ans += i;
}
}
System.out.println(Long.toString(ans));
} catch(Exception e) {}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.util.*;\npublic class Main {\n\n public static void main(String[] args) {\n Scanner yomi = new Scanner(System.in);\n long n = yomi.nextLong();\n long a = 0;\n for(long i = 1;i<=n;i++){\n if (i%3!=0 && i%5!=0){\n a = a+i;\n }\n }\n System.out.println(a);\n\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner yomi = new Scanner(System.in);\n long n = yomi.nextLong();\n long a = 0;\n for(long i = 1;i<=n;i++){\n if (i%3!=0 && i%5!=0){\n a = a+i;\n }\n }\n System.out.println(a);\n\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner yomi = new Scanner(System.in);\n long n = yomi.nextLong();\n long a = 0;\n for(long i = 1;i<=n;i++){\n if (i%3!=0 && i%5!=0){\n a = a+i;\n }\n }\n System.out.println(a);\n\n\n }",
"main",
"{\n Scanner yomi = new Scanner(System.in);\n long n = yomi.nextLong();\n long a = 0;\n for(long i = 1;i<=n;i++){\n if (i%3!=0 && i%5!=0){\n a = a+i;\n }\n }\n System.out.println(a);\n\n\n }",
"Scanner yomi = new Scanner(System.in);",
"yomi",
"new Scanner(System.in)",
"long n = yomi.nextLong();",
"n",
"yomi.nextLong()",
"yomi.nextLong",
"yomi",
"long a = 0;",
"a",
"0",
"for(long i = 1;i<=n;i++){\n if (i%3!=0 && i%5!=0){\n a = a+i;\n }\n }",
"long i = 1;",
"long i = 1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (i%3!=0 && i%5!=0){\n a = a+i;\n }\n }",
"{\n if (i%3!=0 && i%5!=0){\n a = a+i;\n }\n }",
"if (i%3!=0 && i%5!=0){\n a = a+i;\n }",
"i%3!=0 && i%5!=0",
"i%3!=0",
"i%3",
"i",
"3",
"0",
"i%5!=0",
"i%5",
"i",
"5",
"0",
"{\n a = a+i;\n }",
"a = a+i",
"a",
"a+i",
"a",
"i",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner yomi = new Scanner(System.in);\n long n = yomi.nextLong();\n long a = 0;\n for(long i = 1;i<=n;i++){\n if (i%3!=0 && i%5!=0){\n a = a+i;\n }\n }\n System.out.println(a);\n\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner yomi = new Scanner(System.in);\n long n = yomi.nextLong();\n long a = 0;\n for(long i = 1;i<=n;i++){\n if (i%3!=0 && i%5!=0){\n a = a+i;\n }\n }\n System.out.println(a);\n\n\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner yomi = new Scanner(System.in);
long n = yomi.nextLong();
long a = 0;
for(long i = 1;i<=n;i++){
if (i%3!=0 && i%5!=0){
a = a+i;
}
}
System.out.println(a);
}
}
|
[
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,
0,
13,
19,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
0,
13,
13,
4,
18,
18,
13,
13,
13,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
0,
13,
20,
17,
0,
13,
17,
0,
13,
20,
12,
13,
30,
38,
30,
4,
13,
30,
4,
18,
33,
12,
13,
30,
14,
2,
13,
17,
4,
18,
13,
12,
13,
30,
14,
2,
13,
18,
13,
13,
29,
18,
13,
40,
13,
41,
13,
4,
18,
13,
42,
2,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
17,
0,
13,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
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
],
[
208,
20
],
[
208,
21
],
[
21,
22
],
[
208,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
25,
34
],
[
34,
35
],
[
35,
36
],
[
23,
37
],
[
37,
38
],
[
208,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
42,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
49,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
71,
83
],
[
83,
84
],
[
83,
85
],
[
49,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
208,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
92,
96
],
[
96,
97
],
[
92,
98
],
[
98,
99
],
[
92,
100
],
[
100,
101
],
[
100,
102
],
[
92,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
113,
115
],
[
92,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
92,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
92,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
143,
145
],
[
140,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
139,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
139,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
139,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
167,
171
],
[
139,
172
],
[
172,
173
],
[
172,
174
],
[
139,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
92,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
184,
187
],
[
187,
188
],
[
92,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
193,
196
],
[
196,
197
],
[
92,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
202,
205
],
[
205,
206
],
[
0,
207
],
[
207,
208
],
[
207,
209
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\n\npublic class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=N; i++) {\n if(i%3!=0&&i%5!=0) sum+=i;\n }\n\n System.out.println(sum);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=N; i++) {\n if(i%3!=0&&i%5!=0) sum+=i;\n }\n\n System.out.println(sum);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}",
"Main",
"private static Scanner sc;",
"sc",
"public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }",
"main",
"{\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }",
"Main instance = new Main();",
"instance",
"new Main()",
"sc = instance.new Scanner()",
"sc",
"instance.new Scanner()",
"instance",
"instance",
"instance.solve()",
"instance.solve",
"instance",
"String[] args",
"args",
"private void solve() {\n try {\n int N = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=N; i++) {\n if(i%3!=0&&i%5!=0) sum+=i;\n }\n\n System.out.println(sum);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"solve",
"{\n try {\n int N = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=N; i++) {\n if(i%3!=0&&i%5!=0) sum+=i;\n }\n\n System.out.println(sum);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"try {\n int N = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=N; i++) {\n if(i%3!=0&&i%5!=0) sum+=i;\n }\n\n System.out.println(sum);\n } catch (Exception e) {\n e.printStackTrace();\n }",
"catch (Exception e) {\n e.printStackTrace();\n }",
"Exception e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n int N = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=N; i++) {\n if(i%3!=0&&i%5!=0) sum+=i;\n }\n\n System.out.println(sum);\n }",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"for(int i=1; i<=N; i++) {\n if(i%3!=0&&i%5!=0) sum+=i;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if(i%3!=0&&i%5!=0) sum+=i;\n }",
"{\n if(i%3!=0&&i%5!=0) sum+=i;\n }",
"if(i%3!=0&&i%5!=0) sum+=i;",
"i%3!=0&&i%5!=0",
"i%3!=0",
"i%3",
"i",
"3",
"0",
"i%5!=0",
"i%5",
"i",
"5",
"0",
"sum+=i",
"sum",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }",
"Scanner",
"String[] s;",
"s",
"int i;",
"i",
"BufferedReader br;",
"br",
"String regex = \" \";",
"regex",
"\" \"",
"public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"Scanner",
"{\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"s = new String[0]",
"s",
"new String[0]",
"0",
"i = 0",
"i",
"0",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"@Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }",
"finalize",
"{\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }",
"try {\n super.finalize();\n } finally {\n destruction();\n }",
"{\n destruction();\n }",
"destruction()",
"destruction",
"{\n super.finalize();\n }",
"super.finalize()",
"super.finalize",
"super",
"private void destruction() throws IOException {\n if (br != null) br.close();\n }",
"destruction",
"{\n if (br != null) br.close();\n }",
"if (br != null) br.close();",
"br != null",
"br",
"null",
"br.close()",
"br.close",
"br",
"public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }",
"next",
"{\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }",
"if (i < s.length) return s[i++];",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"return s[i++];",
"s[i++]",
"s",
"i++",
"i",
"String st = br.readLine();",
"st",
"br.readLine()",
"br.readLine",
"br",
"while (st == \"\") st = br.readLine();",
"st == \"\"",
"st",
"\"\"",
"st = br.readLine()",
"st",
"br.readLine()",
"br.readLine",
"br",
"s = st.split(regex, 0)",
"s",
"st.split(regex, 0)",
"st.split",
"st",
"regex",
"0",
"i = 0",
"i",
"0",
"return s[i++];",
"s[i++]",
"s",
"i++",
"i",
"public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=N; i++) {\n if(i%3!=0&&i%5!=0) sum+=i;\n }\n\n System.out.println(sum);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}",
"public class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=N; i++) {\n if(i%3!=0&&i%5!=0) sum+=i;\n }\n\n System.out.println(sum);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Main {
private static Scanner sc;
public static void main(String[] args) {
Main instance = new Main();
sc = instance.new Scanner();
instance.solve();
}
private void solve() {
try {
int N = sc.nextInt();
long sum = 0;
for(int i=1; i<=N; i++) {
if(i%3!=0&&i%5!=0) sum+=i;
}
System.out.println(sum);
} catch (Exception e) {
e.printStackTrace();
}
}
private class Scanner {
String[] s;
int i;
BufferedReader br;
String regex = " ";
public Scanner() {
s = new String[0];
i = 0;
br = new BufferedReader(new InputStreamReader(System.in));
}
@Override
protected void finalize() throws Throwable {
try {
super.finalize();
} finally {
destruction();
}
}
private void destruction() throws IOException {
if (br != null) br.close();
}
public String next() throws IOException {
if (i < s.length) return s[i++];
String st = br.readLine();
while (st == "") st = br.readLine();
s = st.split(regex, 0);
i = 0;
return s[i++];
}
public int nextInt() throws NumberFormatException, IOException {
return Integer.parseInt(next());
}
public Long nextLong() throws NumberFormatException, IOException {
return Long.parseLong(next());
}
public Double nextDouble() throws NumberFormatException, IOException {
return Double.parseDouble(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
12,
13,
30,
41,
13,
4,
13,
41,
13,
2,
2,
13,
2,
13,
17,
17,
41,
13,
2,
17,
2,
2,
2,
13,
17,
2,
2,
13,
17,
17,
17,
41,
13,
2,
17,
2,
2,
2,
13,
17,
2,
2,
13,
17,
17,
17,
41,
13,
2,
17,
2,
2,
2,
13,
17,
2,
2,
13,
17,
17,
17,
4,
13,
2,
2,
2,
13,
13,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
4,
18,
13,
12,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
29,
17,
30,
29,
2,
13,
4,
13,
2,
13,
17,
23,
13,
12,
13,
30,
29,
8,
2,
2,
13,
17,
2,
13,
17,
13,
2,
4,
13,
2,
13,
17,
4,
13,
2,
13,
17,
23,
13,
12,
13,
30,
29,
2,
2,
13,
13,
4,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
13,
4,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
410,
5
],
[
410,
6
],
[
6,
7
],
[
6,
8
],
[
410,
9
],
[
9,
10
],
[
9,
11
],
[
410,
12
],
[
12,
13
],
[
12,
14
],
[
410,
15
],
[
15,
16
],
[
15,
17
],
[
410,
18
],
[
18,
19
],
[
18,
20
],
[
410,
21
],
[
21,
22
],
[
21,
23
],
[
410,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
33,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
44,
54
],
[
26,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
59,
69
],
[
26,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
74,
84
],
[
26,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
89,
89
],
[
89,
90
],
[
89,
91
],
[
89,
92
],
[
87,
93
],
[
24,
94
],
[
94,
95
],
[
410,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
410,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
410,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
410,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
410,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
126,
149
],
[
149,
150
],
[
410,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
160,
161
],
[
160,
162
],
[
155,
163
],
[
155,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
167,
169
],
[
164,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
172,
174
],
[
151,
175
],
[
175,
176
],
[
410,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
185,
187
],
[
185,
188
],
[
177,
189
],
[
189,
190
],
[
177,
191
],
[
191,
192
],
[
410,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
201,
203
],
[
201,
204
],
[
193,
205
],
[
205,
206
],
[
193,
207
],
[
207,
208
],
[
410,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
217
],
[
213,
218
],
[
218,
219
],
[
218,
220
],
[
218,
221
],
[
221,
222
],
[
221,
223
],
[
209,
224
],
[
224,
225
],
[
209,
226
],
[
226,
227
],
[
410,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
232,
236
],
[
232,
237
],
[
237,
238
],
[
237,
239
],
[
237,
240
],
[
240,
241
],
[
240,
242
],
[
228,
243
],
[
243,
244
],
[
228,
245
],
[
245,
246
],
[
410,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
250,
255
],
[
247,
256
],
[
256,
257
],
[
410,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
261,
266
],
[
258,
267
],
[
267,
268
],
[
410,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
272,
277
],
[
269,
278
],
[
278,
279
],
[
410,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
283,
288
],
[
280,
289
],
[
289,
290
],
[
410,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
294,
299
],
[
291,
300
],
[
300,
301
],
[
410,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
305,
310
],
[
302,
311
],
[
311,
312
],
[
410,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
316,
321
],
[
313,
322
],
[
322,
323
],
[
410,
324
],
[
324,
325
],
[
324,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
327,
332
],
[
324,
333
],
[
333,
334
],
[
410,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
338,
343
],
[
335,
344
],
[
344,
345
],
[
410,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
349,
350
],
[
350,
351
],
[
351,
352
],
[
351,
353
],
[
349,
354
],
[
346,
355
],
[
355,
356
],
[
410,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
360,
361
],
[
361,
362
],
[
362,
363
],
[
361,
364
],
[
361,
365
],
[
357,
366
],
[
366,
367
],
[
357,
368
],
[
368,
369
],
[
410,
370
],
[
370,
371
],
[
370,
372
],
[
372,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
374,
377
],
[
374,
378
],
[
370,
379
],
[
379,
380
],
[
370,
381
],
[
381,
382
],
[
410,
383
],
[
383,
384
],
[
383,
385
],
[
385,
386
],
[
386,
387
],
[
387,
388
],
[
388,
389
],
[
387,
390
],
[
387,
391
],
[
383,
392
],
[
392,
393
],
[
383,
394
],
[
394,
395
],
[
410,
396
],
[
396,
397
],
[
396,
398
],
[
398,
399
],
[
399,
400
],
[
400,
401
],
[
401,
402
],
[
400,
403
],
[
400,
404
],
[
396,
405
],
[
405,
406
],
[
396,
407
],
[
407,
408
],
[
0,
409
],
[
409,
410
],
[
409,
411
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static String Y = \"Yes\";\n\tpublic static String N = \"No\";\n\tpublic static String I = \"IMPOSSIBLE\";\n\tpublic static String B = \"Bad\";\n\tpublic static String G = \"Good\";\n\tpublic static Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = ni();\n\n\t\tlong sum = n * (n + 1l) / 2l;\n\t\tlong fizzsum = 3l * (n / 3l * (n / 3l + 1l) / 2l);\n\t\tlong buzzsum = 5l * (n / 5l * (n / 5l + 1l) / 2l);\n\t\tlong fizzbuzzsum = 15l * (n / 15l * (n / 15l + 1l) / 2l);\n\t\tout(sum - fizzsum - buzzsum + fizzbuzzsum);\n\n\t}\n\n\t/*\n\t * 以下メソッド集\n\t */\n\tstatic int ni() {\n\t\treturn sc.nextInt();\n\t}\n\n\tstatic long nl() {\n\t\treturn sc.nextLong();\n\t}\n\n\tstatic String n() {\n\t\treturn sc.next();\n\t}\n\n\tstatic char[] nc() {\n\t\treturn sc.next().toCharArray();\n\t}\n\n\tstatic int kaijo(int n) {\n\t\tif (n == 0 || n == 1) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn n * kaijo(n - 1);\n\t\t}\n\t}\n\n\tstatic int fib(int n) {\n\t\treturn (n == 1 || n == 0) ? n : fib(n - 2) + fib(n - 1);\n\t}\n\n\tstatic long lcm(long m, long n) {\n\n\t\treturn m * n / gcd(m, n);\n\t}\n\n\tstatic int lcm(int m, int n) {\n\n\t\treturn m * n / gcd(m, n);\n\t}\n\n\tstatic long gcd(long a, long b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}\n\n\tstatic int gcd(int a, int b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}\n\n\tstatic void out(String info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(int info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(double info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(long info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(char info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void outn(String info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(int info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(double info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(long info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(char info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic int max(int a, int b) {\n\t\treturn Math.max(a, b);\n\t}\n\n\tstatic long max(long a, long b) {\n\t\treturn Math.max(a, b);\n\t}\n\n\tstatic int min(int a, int b) {\n\t\treturn Math.min(a, b);\n\t}\n\n\tstatic long min(long a, long b) {\n\t\treturn Math.min(a, b);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static String Y = \"Yes\";\n\tpublic static String N = \"No\";\n\tpublic static String I = \"IMPOSSIBLE\";\n\tpublic static String B = \"Bad\";\n\tpublic static String G = \"Good\";\n\tpublic static Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = ni();\n\n\t\tlong sum = n * (n + 1l) / 2l;\n\t\tlong fizzsum = 3l * (n / 3l * (n / 3l + 1l) / 2l);\n\t\tlong buzzsum = 5l * (n / 5l * (n / 5l + 1l) / 2l);\n\t\tlong fizzbuzzsum = 15l * (n / 15l * (n / 15l + 1l) / 2l);\n\t\tout(sum - fizzsum - buzzsum + fizzbuzzsum);\n\n\t}\n\n\t/*\n\t * 以下メソッド集\n\t */\n\tstatic int ni() {\n\t\treturn sc.nextInt();\n\t}\n\n\tstatic long nl() {\n\t\treturn sc.nextLong();\n\t}\n\n\tstatic String n() {\n\t\treturn sc.next();\n\t}\n\n\tstatic char[] nc() {\n\t\treturn sc.next().toCharArray();\n\t}\n\n\tstatic int kaijo(int n) {\n\t\tif (n == 0 || n == 1) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn n * kaijo(n - 1);\n\t\t}\n\t}\n\n\tstatic int fib(int n) {\n\t\treturn (n == 1 || n == 0) ? n : fib(n - 2) + fib(n - 1);\n\t}\n\n\tstatic long lcm(long m, long n) {\n\n\t\treturn m * n / gcd(m, n);\n\t}\n\n\tstatic int lcm(int m, int n) {\n\n\t\treturn m * n / gcd(m, n);\n\t}\n\n\tstatic long gcd(long a, long b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}\n\n\tstatic int gcd(int a, int b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}\n\n\tstatic void out(String info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(int info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(double info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(long info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(char info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void outn(String info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(int info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(double info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(long info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(char info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic int max(int a, int b) {\n\t\treturn Math.max(a, b);\n\t}\n\n\tstatic long max(long a, long b) {\n\t\treturn Math.max(a, b);\n\t}\n\n\tstatic int min(int a, int b) {\n\t\treturn Math.min(a, b);\n\t}\n\n\tstatic long min(long a, long b) {\n\t\treturn Math.min(a, b);\n\t}\n}",
"Main",
"public static String Y = \"Yes\";",
"Y",
"\"Yes\"",
"public static String N = \"No\";",
"N",
"\"No\"",
"public static String I = \"IMPOSSIBLE\";",
"I",
"\"IMPOSSIBLE\"",
"public static String B = \"Bad\";",
"B",
"\"Bad\"",
"public static String G = \"Good\";",
"G",
"\"Good\"",
"public static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\n\t\tint n = ni();\n\n\t\tlong sum = n * (n + 1l) / 2l;\n\t\tlong fizzsum = 3l * (n / 3l * (n / 3l + 1l) / 2l);\n\t\tlong buzzsum = 5l * (n / 5l * (n / 5l + 1l) / 2l);\n\t\tlong fizzbuzzsum = 15l * (n / 15l * (n / 15l + 1l) / 2l);\n\t\tout(sum - fizzsum - buzzsum + fizzbuzzsum);\n\n\t}",
"main",
"{\n\n\t\tint n = ni();\n\n\t\tlong sum = n * (n + 1l) / 2l;\n\t\tlong fizzsum = 3l * (n / 3l * (n / 3l + 1l) / 2l);\n\t\tlong buzzsum = 5l * (n / 5l * (n / 5l + 1l) / 2l);\n\t\tlong fizzbuzzsum = 15l * (n / 15l * (n / 15l + 1l) / 2l);\n\t\tout(sum - fizzsum - buzzsum + fizzbuzzsum);\n\n\t}",
"int n = ni();",
"n",
"ni()",
"ni",
"long sum = n * (n + 1l) / 2l;",
"sum",
"n * (n + 1l) / 2l",
"n * (n + 1l)",
"n",
"(n + 1l)",
"n",
"1l",
"2l",
"long fizzsum = 3l * (n / 3l * (n / 3l + 1l) / 2l);",
"fizzsum",
"3l * (n / 3l * (n / 3l + 1l) / 2l)",
"3l",
"(n / 3l * (n / 3l + 1l) / 2l)",
"n / 3l * (n / 3l + 1l)",
"n / 3l",
"n",
"3l",
"(n / 3l + 1l)",
"n / 3l",
"n",
"3l",
"1l",
"2l",
"long buzzsum = 5l * (n / 5l * (n / 5l + 1l) / 2l);",
"buzzsum",
"5l * (n / 5l * (n / 5l + 1l) / 2l)",
"5l",
"(n / 5l * (n / 5l + 1l) / 2l)",
"n / 5l * (n / 5l + 1l)",
"n / 5l",
"n",
"5l",
"(n / 5l + 1l)",
"n / 5l",
"n",
"5l",
"1l",
"2l",
"long fizzbuzzsum = 15l * (n / 15l * (n / 15l + 1l) / 2l);",
"fizzbuzzsum",
"15l * (n / 15l * (n / 15l + 1l) / 2l)",
"15l",
"(n / 15l * (n / 15l + 1l) / 2l)",
"n / 15l * (n / 15l + 1l)",
"n / 15l",
"n",
"15l",
"(n / 15l + 1l)",
"n / 15l",
"n",
"15l",
"1l",
"2l",
"out(sum - fizzsum - buzzsum + fizzbuzzsum)",
"out",
"sum - fizzsum - buzzsum + fizzbuzzsum",
"sum - fizzsum - buzzsum",
"sum - fizzsum - buzzsum",
"sum",
"fizzsum",
"buzzsum",
"fizzbuzzsum",
"String[] args",
"args",
"/*\n\t * 以下メソッド集\n\t */\n\tstatic int ni() {\n\t\treturn sc.nextInt();\n\t}",
"ni",
"{\n\t\treturn sc.nextInt();\n\t}",
"return sc.nextInt();",
"sc.nextInt()",
"sc.nextInt",
"sc",
"static long nl() {\n\t\treturn sc.nextLong();\n\t}",
"nl",
"{\n\t\treturn sc.nextLong();\n\t}",
"return sc.nextLong();",
"sc.nextLong()",
"sc.nextLong",
"sc",
"static String n() {\n\t\treturn sc.next();\n\t}",
"n",
"{\n\t\treturn sc.next();\n\t}",
"return sc.next();",
"sc.next()",
"sc.next",
"sc",
"static char[] nc() {\n\t\treturn sc.next().toCharArray();\n\t}",
"nc",
"{\n\t\treturn sc.next().toCharArray();\n\t}",
"return sc.next().toCharArray();",
"sc.next().toCharArray()",
"sc.next().toCharArray",
"sc.next()",
"sc.next",
"sc",
"static int kaijo(int n) {\n\t\tif (n == 0 || n == 1) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn n * kaijo(n - 1);\n\t\t}\n\t}",
"kaijo",
"{\n\t\tif (n == 0 || n == 1) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn n * kaijo(n - 1);\n\t\t}\n\t}",
"if (n == 0 || n == 1) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn n * kaijo(n - 1);\n\t\t}",
"n == 0 || n == 1",
"n == 0",
"n",
"0",
"n == 1",
"n",
"1",
"{\n\t\t\treturn 1;\n\t\t}",
"return 1;",
"1",
"{\n\t\t\treturn n * kaijo(n - 1);\n\t\t}",
"return n * kaijo(n - 1);",
"n * kaijo(n - 1)",
"n",
"kaijo(n - 1)",
"kaijo",
"n - 1",
"n",
"1",
"int n",
"n",
"static int fib(int n) {\n\t\treturn (n == 1 || n == 0) ? n : fib(n - 2) + fib(n - 1);\n\t}",
"fib",
"{\n\t\treturn (n == 1 || n == 0) ? n : fib(n - 2) + fib(n - 1);\n\t}",
"return (n == 1 || n == 0) ? n : fib(n - 2) + fib(n - 1);",
"(n == 1 || n == 0) ? n : fib(n - 2) + fib(n - 1)",
"(n == 1 || n == 0)",
"n == 1",
"n",
"1",
"n == 0",
"n",
"0",
"n",
"fib(n - 2) + fib(n - 1)",
"fib(n - 2)",
"fib",
"n - 2",
"n",
"2",
"fib(n - 1)",
"fib",
"n - 1",
"n",
"1",
"int n",
"n",
"static long lcm(long m, long n) {\n\n\t\treturn m * n / gcd(m, n);\n\t}",
"lcm",
"{\n\n\t\treturn m * n / gcd(m, n);\n\t}",
"return m * n / gcd(m, n);",
"m * n / gcd(m, n)",
"m * n",
"m",
"n",
"gcd(m, n)",
"gcd",
"m",
"n",
"long m",
"m",
"long n",
"n",
"static int lcm(int m, int n) {\n\n\t\treturn m * n / gcd(m, n);\n\t}",
"lcm",
"{\n\n\t\treturn m * n / gcd(m, n);\n\t}",
"return m * n / gcd(m, n);",
"m * n / gcd(m, n)",
"m * n",
"m",
"n",
"gcd(m, n)",
"gcd",
"m",
"n",
"int m",
"m",
"int n",
"n",
"static long gcd(long a, long b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}",
"gcd",
"{\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}",
"return (b == 0) ? a : gcd(b, a % b);",
"(b == 0) ? a : gcd(b, a % b)",
"(b == 0)",
"b",
"0",
"a",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"static int gcd(int a, int b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}",
"gcd",
"{\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}",
"return (b == 0) ? a : gcd(b, a % b);",
"(b == 0) ? a : gcd(b, a % b)",
"(b == 0)",
"b",
"0",
"a",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static void out(String info) {\n\t\tSystem.out.println(info);\n\t}",
"out",
"{\n\t\tSystem.out.println(info);\n\t}",
"System.out.println(info)",
"System.out.println",
"System.out",
"System",
"System.out",
"info",
"String info",
"info",
"static void out(int info) {\n\t\tSystem.out.println(info);\n\t}",
"out",
"{\n\t\tSystem.out.println(info);\n\t}",
"System.out.println(info)",
"System.out.println",
"System.out",
"System",
"System.out",
"info",
"int info",
"info",
"static void out(double info) {\n\t\tSystem.out.println(info);\n\t}",
"out",
"{\n\t\tSystem.out.println(info);\n\t}",
"System.out.println(info)",
"System.out.println",
"System.out",
"System",
"System.out",
"info",
"double info",
"info",
"static void out(long info) {\n\t\tSystem.out.println(info);\n\t}",
"out",
"{\n\t\tSystem.out.println(info);\n\t}",
"System.out.println(info)",
"System.out.println",
"System.out",
"System",
"System.out",
"info",
"long info",
"info",
"static void out(char info) {\n\t\tSystem.out.println(info);\n\t}",
"out",
"{\n\t\tSystem.out.println(info);\n\t}",
"System.out.println(info)",
"System.out.println",
"System.out",
"System",
"System.out",
"info",
"char info",
"info",
"static void outn(String info) {\n\t\tSystem.out.print(info);\n\t}",
"outn",
"{\n\t\tSystem.out.print(info);\n\t}",
"System.out.print(info)",
"System.out.print",
"System.out",
"System",
"System.out",
"info",
"String info",
"info",
"static void outn(int info) {\n\t\tSystem.out.print(info);\n\t}",
"outn",
"{\n\t\tSystem.out.print(info);\n\t}",
"System.out.print(info)",
"System.out.print",
"System.out",
"System",
"System.out",
"info",
"int info",
"info",
"static void outn(double info) {\n\t\tSystem.out.print(info);\n\t}",
"outn",
"{\n\t\tSystem.out.print(info);\n\t}",
"System.out.print(info)",
"System.out.print",
"System.out",
"System",
"System.out",
"info",
"double info",
"info",
"static void outn(long info) {\n\t\tSystem.out.print(info);\n\t}",
"outn",
"{\n\t\tSystem.out.print(info);\n\t}",
"System.out.print(info)",
"System.out.print",
"System.out",
"System",
"System.out",
"info",
"long info",
"info",
"static void outn(char info) {\n\t\tSystem.out.print(info);\n\t}",
"outn",
"{\n\t\tSystem.out.print(info);\n\t}",
"System.out.print(info)",
"System.out.print",
"System.out",
"System",
"System.out",
"info",
"char info",
"info",
"static int max(int a, int b) {\n\t\treturn Math.max(a, b);\n\t}",
"max",
"{\n\t\treturn Math.max(a, b);\n\t}",
"return Math.max(a, b);",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static long max(long a, long b) {\n\t\treturn Math.max(a, b);\n\t}",
"max",
"{\n\t\treturn Math.max(a, b);\n\t}",
"return Math.max(a, b);",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"long a",
"a",
"long b",
"b",
"static int min(int a, int b) {\n\t\treturn Math.min(a, b);\n\t}",
"min",
"{\n\t\treturn Math.min(a, b);\n\t}",
"return Math.min(a, b);",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static long min(long a, long b) {\n\t\treturn Math.min(a, b);\n\t}",
"min",
"{\n\t\treturn Math.min(a, b);\n\t}",
"return Math.min(a, b);",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"long a",
"a",
"long b",
"b",
"public class Main {\n\n\tpublic static String Y = \"Yes\";\n\tpublic static String N = \"No\";\n\tpublic static String I = \"IMPOSSIBLE\";\n\tpublic static String B = \"Bad\";\n\tpublic static String G = \"Good\";\n\tpublic static Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = ni();\n\n\t\tlong sum = n * (n + 1l) / 2l;\n\t\tlong fizzsum = 3l * (n / 3l * (n / 3l + 1l) / 2l);\n\t\tlong buzzsum = 5l * (n / 5l * (n / 5l + 1l) / 2l);\n\t\tlong fizzbuzzsum = 15l * (n / 15l * (n / 15l + 1l) / 2l);\n\t\tout(sum - fizzsum - buzzsum + fizzbuzzsum);\n\n\t}\n\n\t/*\n\t * 以下メソッド集\n\t */\n\tstatic int ni() {\n\t\treturn sc.nextInt();\n\t}\n\n\tstatic long nl() {\n\t\treturn sc.nextLong();\n\t}\n\n\tstatic String n() {\n\t\treturn sc.next();\n\t}\n\n\tstatic char[] nc() {\n\t\treturn sc.next().toCharArray();\n\t}\n\n\tstatic int kaijo(int n) {\n\t\tif (n == 0 || n == 1) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn n * kaijo(n - 1);\n\t\t}\n\t}\n\n\tstatic int fib(int n) {\n\t\treturn (n == 1 || n == 0) ? n : fib(n - 2) + fib(n - 1);\n\t}\n\n\tstatic long lcm(long m, long n) {\n\n\t\treturn m * n / gcd(m, n);\n\t}\n\n\tstatic int lcm(int m, int n) {\n\n\t\treturn m * n / gcd(m, n);\n\t}\n\n\tstatic long gcd(long a, long b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}\n\n\tstatic int gcd(int a, int b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}\n\n\tstatic void out(String info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(int info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(double info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(long info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(char info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void outn(String info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(int info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(double info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(long info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(char info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic int max(int a, int b) {\n\t\treturn Math.max(a, b);\n\t}\n\n\tstatic long max(long a, long b) {\n\t\treturn Math.max(a, b);\n\t}\n\n\tstatic int min(int a, int b) {\n\t\treturn Math.min(a, b);\n\t}\n\n\tstatic long min(long a, long b) {\n\t\treturn Math.min(a, b);\n\t}\n}",
"public class Main {\n\n\tpublic static String Y = \"Yes\";\n\tpublic static String N = \"No\";\n\tpublic static String I = \"IMPOSSIBLE\";\n\tpublic static String B = \"Bad\";\n\tpublic static String G = \"Good\";\n\tpublic static Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = ni();\n\n\t\tlong sum = n * (n + 1l) / 2l;\n\t\tlong fizzsum = 3l * (n / 3l * (n / 3l + 1l) / 2l);\n\t\tlong buzzsum = 5l * (n / 5l * (n / 5l + 1l) / 2l);\n\t\tlong fizzbuzzsum = 15l * (n / 15l * (n / 15l + 1l) / 2l);\n\t\tout(sum - fizzsum - buzzsum + fizzbuzzsum);\n\n\t}\n\n\t/*\n\t * 以下メソッド集\n\t */\n\tstatic int ni() {\n\t\treturn sc.nextInt();\n\t}\n\n\tstatic long nl() {\n\t\treturn sc.nextLong();\n\t}\n\n\tstatic String n() {\n\t\treturn sc.next();\n\t}\n\n\tstatic char[] nc() {\n\t\treturn sc.next().toCharArray();\n\t}\n\n\tstatic int kaijo(int n) {\n\t\tif (n == 0 || n == 1) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn n * kaijo(n - 1);\n\t\t}\n\t}\n\n\tstatic int fib(int n) {\n\t\treturn (n == 1 || n == 0) ? n : fib(n - 2) + fib(n - 1);\n\t}\n\n\tstatic long lcm(long m, long n) {\n\n\t\treturn m * n / gcd(m, n);\n\t}\n\n\tstatic int lcm(int m, int n) {\n\n\t\treturn m * n / gcd(m, n);\n\t}\n\n\tstatic long gcd(long a, long b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}\n\n\tstatic int gcd(int a, int b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}\n\n\tstatic void out(String info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(int info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(double info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(long info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void out(char info) {\n\t\tSystem.out.println(info);\n\t}\n\n\tstatic void outn(String info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(int info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(double info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(long info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic void outn(char info) {\n\t\tSystem.out.print(info);\n\t}\n\n\tstatic int max(int a, int b) {\n\t\treturn Math.max(a, b);\n\t}\n\n\tstatic long max(long a, long b) {\n\t\treturn Math.max(a, b);\n\t}\n\n\tstatic int min(int a, int b) {\n\t\treturn Math.min(a, b);\n\t}\n\n\tstatic long min(long a, long b) {\n\t\treturn Math.min(a, b);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static String Y = "Yes";
public static String N = "No";
public static String I = "IMPOSSIBLE";
public static String B = "Bad";
public static String G = "Good";
public static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int n = ni();
long sum = n * (n + 1l) / 2l;
long fizzsum = 3l * (n / 3l * (n / 3l + 1l) / 2l);
long buzzsum = 5l * (n / 5l * (n / 5l + 1l) / 2l);
long fizzbuzzsum = 15l * (n / 15l * (n / 15l + 1l) / 2l);
out(sum - fizzsum - buzzsum + fizzbuzzsum);
}
/*
* 以下メソッド集
*/
static int ni() {
return sc.nextInt();
}
static long nl() {
return sc.nextLong();
}
static String n() {
return sc.next();
}
static char[] nc() {
return sc.next().toCharArray();
}
static int kaijo(int n) {
if (n == 0 || n == 1) {
return 1;
} else {
return n * kaijo(n - 1);
}
}
static int fib(int n) {
return (n == 1 || n == 0) ? n : fib(n - 2) + fib(n - 1);
}
static long lcm(long m, long n) {
return m * n / gcd(m, n);
}
static int lcm(int m, int n) {
return m * n / gcd(m, n);
}
static long gcd(long a, long b) {
return (b == 0) ? a : gcd(b, a % b);
}
static int gcd(int a, int b) {
return (b == 0) ? a : gcd(b, a % b);
}
static void out(String info) {
System.out.println(info);
}
static void out(int info) {
System.out.println(info);
}
static void out(double info) {
System.out.println(info);
}
static void out(long info) {
System.out.println(info);
}
static void out(char info) {
System.out.println(info);
}
static void outn(String info) {
System.out.print(info);
}
static void outn(int info) {
System.out.print(info);
}
static void outn(double info) {
System.out.print(info);
}
static void outn(long info) {
System.out.print(info);
}
static void outn(char info) {
System.out.print(info);
}
static int max(int a, int b) {
return Math.max(a, b);
}
static long max(long a, long b) {
return Math.max(a, b);
}
static int min(int a, int b) {
return Math.min(a, b);
}
static long min(long a, long b) {
return Math.min(a, b);
}
}
|
[
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,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
0,
13,
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
],
[
78,
11
],
[
78,
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
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
14,
34
],
[
34,
35
],
[
35,
36
],
[
12,
37
],
[
37,
38
],
[
78,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
57,
69
],
[
57,
70
],
[
70,
71
],
[
70,
72
],
[
41,
73
],
[
73,
74
],
[
39,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tint n = in.nextInt();\n\t\tlong r = solve(n);\n\t\tSystem.out.println(r);\n\t\tin.close();\n\t}\n\n\tprivate static long solve(int n) {\n\t\tlong r = 0;\n\t\tfor (int i = 1; i <= n; i++)\n\t\t\tif (i % 3 == 0 || i % 5 == 0)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\tr += i;\n\t\treturn r;\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tint n = in.nextInt();\n\t\tlong r = solve(n);\n\t\tSystem.out.println(r);\n\t\tin.close();\n\t}\n\n\tprivate static long solve(int n) {\n\t\tlong r = 0;\n\t\tfor (int i = 1; i <= n; i++)\n\t\t\tif (i % 3 == 0 || i % 5 == 0)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\tr += i;\n\t\treturn r;\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tint n = in.nextInt();\n\t\tlong r = solve(n);\n\t\tSystem.out.println(r);\n\t\tin.close();\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tint n = in.nextInt();\n\t\tlong r = solve(n);\n\t\tSystem.out.println(r);\n\t\tin.close();\n\t}",
"Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));",
"in",
"new Scanner(new BufferedReader(new InputStreamReader(System.in)))",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"long r = solve(n);",
"r",
"solve(n)",
"solve",
"n",
"System.out.println(r)",
"System.out.println",
"System.out",
"System",
"System.out",
"r",
"in.close()",
"in.close",
"in",
"String[] args",
"args",
"private static long solve(int n) {\n\t\tlong r = 0;\n\t\tfor (int i = 1; i <= n; i++)\n\t\t\tif (i % 3 == 0 || i % 5 == 0)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\tr += i;\n\t\treturn r;\n\t}",
"solve",
"{\n\t\tlong r = 0;\n\t\tfor (int i = 1; i <= n; i++)\n\t\t\tif (i % 3 == 0 || i % 5 == 0)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\tr += i;\n\t\treturn r;\n\t}",
"long r = 0;",
"r",
"0",
"for (int i = 1; i <= n; i++)\n\t\t\tif (i % 3 == 0 || i % 5 == 0)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\tr += i;",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"if (i % 3 == 0 || i % 5 == 0)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\tr += i;",
"if (i % 3 == 0 || i % 5 == 0)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\tr += i;",
"i % 3 == 0 || i % 5 == 0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"continue;",
"r += i",
"r",
"i",
"return r;",
"r",
"int n",
"n",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tint n = in.nextInt();\n\t\tlong r = solve(n);\n\t\tSystem.out.println(r);\n\t\tin.close();\n\t}\n\n\tprivate static long solve(int n) {\n\t\tlong r = 0;\n\t\tfor (int i = 1; i <= n; i++)\n\t\t\tif (i % 3 == 0 || i % 5 == 0)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\tr += i;\n\t\treturn r;\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tint n = in.nextInt();\n\t\tlong r = solve(n);\n\t\tSystem.out.println(r);\n\t\tin.close();\n\t}\n\n\tprivate static long solve(int n) {\n\t\tlong r = 0;\n\t\tfor (int i = 1; i <= n; i++)\n\t\t\tif (i % 3 == 0 || i % 5 == 0)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\tr += i;\n\t\treturn r;\n\t}\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
int n = in.nextInt();
long r = solve(n);
System.out.println(r);
in.close();
}
private static long solve(int n) {
long r = 0;
for (int i = 1; i <= n; i++)
if (i % 3 == 0 || i % 5 == 0)
continue;
else
r += i;
return r;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
29,
2,
2,
13,
2,
13,
17,
17,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
2,
4,
13,
13,
2,
4,
13,
2,
13,
17,
17,
2,
4,
13,
2,
13,
17,
17,
2,
4,
13,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
68,
5
],
[
68,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
13,
14
],
[
13,
15
],
[
10,
16
],
[
6,
17
],
[
17,
18
],
[
68,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
21,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
38,
44
],
[
34,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
32,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
52,
58
],
[
21,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
19,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
"import java.util.Scanner;\n\npublic class Main {//Risolto in =(1)\n public static long sum(long n) {\n return n * (n + 1) / 2;\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n\n long res = sum(n) - sum(n/3) * 3 - sum(n / 5) * 5 + sum(n / 15) * 15;\n\n System.out.print(res);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {//Risolto in =(1)\n public static long sum(long n) {\n return n * (n + 1) / 2;\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n\n long res = sum(n) - sum(n/3) * 3 - sum(n / 5) * 5 + sum(n / 15) * 15;\n\n System.out.print(res);\n }\n}",
"Main",
"public static long sum(long n) {\n return n * (n + 1) / 2;\n }",
"sum",
"{\n return n * (n + 1) / 2;\n }",
"return n * (n + 1) / 2;",
"n * (n + 1) / 2",
"n * (n + 1)",
"n",
"(n + 1)",
"n",
"1",
"2",
"long n",
"n",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n\n long res = sum(n) - sum(n/3) * 3 - sum(n / 5) * 5 + sum(n / 15) * 15;\n\n System.out.print(res);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n\n long res = sum(n) - sum(n/3) * 3 - sum(n / 5) * 5 + sum(n / 15) * 15;\n\n System.out.print(res);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long res = sum(n) - sum(n/3) * 3 - sum(n / 5) * 5 + sum(n / 15) * 15;",
"res",
"sum(n) - sum(n/3) * 3 - sum(n / 5) * 5 + sum(n / 15) * 15",
"sum(n) - sum(n/3) * 3 - sum(n / 5) * 5",
"sum(n) - sum(n/3) * 3 - sum(n / 5) * 5",
"sum(n)",
"sum",
"n",
"sum(n/3) * 3",
"sum(n/3)",
"sum",
"n/3",
"n",
"3",
"3",
"sum(n / 5) * 5",
"sum(n / 5)",
"sum",
"n / 5",
"n",
"5",
"5",
"sum(n / 15) * 15",
"sum(n / 15)",
"sum",
"n / 15",
"n",
"15",
"15",
"System.out.print(res)",
"System.out.print",
"System.out",
"System",
"System.out",
"res",
"String[] args",
"args",
"public class Main {//Risolto in =(1)\n public static long sum(long n) {\n return n * (n + 1) / 2;\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n\n long res = sum(n) - sum(n/3) * 3 - sum(n / 5) * 5 + sum(n / 15) * 15;\n\n System.out.print(res);\n }\n}",
"public class Main {//Risolto in =(1)\n public static long sum(long n) {\n return n * (n + 1) / 2;\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n\n long res = sum(n) - sum(n/3) * 3 - sum(n / 5) * 5 + sum(n / 15) * 15;\n\n System.out.print(res);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {//Risolto in =(1)
public static long sum(long n) {
return n * (n + 1) / 2;
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextInt();
long res = sum(n) - sum(n/3) * 3 - sum(n / 5) * 5 + sum(n / 15) * 15;
System.out.print(res);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
33,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"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\n\t\tint A = sc.nextInt();\n\t\tlong sum = 0;\n\t\tfor (int i = 1; i <= A; i++) {\n\t\t\tif (i % 15 >0 && i % 5 >0 && i % 3 >0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\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\n\t\tint A = sc.nextInt();\n\t\tlong sum = 0;\n\t\tfor (int i = 1; i <= A; i++) {\n\t\t\tif (i % 15 >0 && i % 5 >0 && i % 3 >0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = sc.nextInt();\n\t\tlong sum = 0;\n\t\tfor (int i = 1; i <= A; i++) {\n\t\t\tif (i % 15 >0 && i % 5 >0 && i % 3 >0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = sc.nextInt();\n\t\tlong sum = 0;\n\t\tfor (int i = 1; i <= A; i++) {\n\t\t\tif (i % 15 >0 && i % 5 >0 && i % 3 >0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"for (int i = 1; i <= A; i++) {\n\t\t\tif (i % 15 >0 && i % 5 >0 && i % 3 >0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= A",
"i",
"A",
"i++",
"i++",
"i",
"{\n\t\t\tif (i % 15 >0 && i % 5 >0 && i % 3 >0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % 15 >0 && i % 5 >0 && i % 3 >0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"if (i % 15 >0 && i % 5 >0 && i % 3 >0) {\n\t\t\t\tsum += i;\n\t\t\t}",
"i % 15 >0 && i % 5 >0 && i % 3 >0",
"i % 15 >0 && i % 5 >0 && i % 3 >0",
"i % 15 >0",
"i % 15",
"i",
"15",
"0",
"i % 5 >0",
"i % 5",
"i",
"5",
"0",
"i % 3 >0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tsum += i;\n\t\t\t}",
"sum += i",
"sum",
"i",
"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\tScanner sc = new Scanner(System.in);\n\n\t\tint A = sc.nextInt();\n\t\tlong sum = 0;\n\t\tfor (int i = 1; i <= A; i++) {\n\t\t\tif (i % 15 >0 && i % 5 >0 && i % 3 >0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = sc.nextInt();\n\t\tlong sum = 0;\n\t\tfor (int i = 1; i <= A; i++) {\n\t\t\tif (i % 15 >0 && i % 5 >0 && i % 3 >0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\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();
long sum = 0;
for (int i = 1; i <= A; i++) {
if (i % 15 >0 && i % 5 >0 && i % 3 >0) {
sum += i;
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
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
],
[
72,
8
],
[
72,
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
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
41,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
11,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
9,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] |
[
"\nimport java.math.BigInteger;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n BigInteger sum = BigInteger.ZERO;\n for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum = sum.add(BigInteger.valueOf(i));\n }\n }\n System.out.println(sum);\n }\n}",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"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 = Integer.parseInt(sc.next());\n BigInteger sum = BigInteger.ZERO;\n for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum = sum.add(BigInteger.valueOf(i));\n }\n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n BigInteger sum = BigInteger.ZERO;\n for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum = sum.add(BigInteger.valueOf(i));\n }\n }\n System.out.println(sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n BigInteger sum = BigInteger.ZERO;\n for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum = sum.add(BigInteger.valueOf(i));\n }\n }\n System.out.println(sum);\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",
"BigInteger sum = BigInteger.ZERO;",
"sum",
"BigInteger.ZERO",
"BigInteger",
"BigInteger.ZERO",
"for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum = sum.add(BigInteger.valueOf(i));\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if (i % 3 != 0 && i % 5 != 0) {\n sum = sum.add(BigInteger.valueOf(i));\n }\n }",
"{\n if (i % 3 != 0 && i % 5 != 0) {\n sum = sum.add(BigInteger.valueOf(i));\n }\n }",
"if (i % 3 != 0 && i % 5 != 0) {\n sum = sum.add(BigInteger.valueOf(i));\n }",
"i % 3 != 0 && i % 5 != 0",
"i % 3 != 0",
"i % 3",
"i",
"3",
"0",
"i % 5 != 0",
"i % 5",
"i",
"5",
"0",
"{\n sum = sum.add(BigInteger.valueOf(i));\n }",
"sum = sum.add(BigInteger.valueOf(i))",
"sum",
"sum.add(BigInteger.valueOf(i))",
"sum.add",
"sum",
"BigInteger.valueOf(i)",
"BigInteger.valueOf",
"BigInteger",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n BigInteger sum = BigInteger.ZERO;\n for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum = sum.add(BigInteger.valueOf(i));\n }\n }\n System.out.println(sum);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n BigInteger sum = BigInteger.ZERO;\n for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum = sum.add(BigInteger.valueOf(i));\n }\n }\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.math.BigInteger;
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());
BigInteger sum = BigInteger.ZERO;
for (int i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum = sum.add(BigInteger.valueOf(i));
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
40,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
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
],
[
16,
19
],
[
19,
20
],
[
20,
21
],
[
10,
22
],
[
22,
23
],
[
22,
24
],
[
10,
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
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
38,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
10,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n int N = Integer.parseInt(sc.next());\n long result = 0;\n for (int i = 0; i <= N; i++) {\n if (!(i % 3 == 0 || i % 5 == 0)) {\n result += i;\n }\n }\n\n System.out.println(result);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n int N = Integer.parseInt(sc.next());\n long result = 0;\n for (int i = 0; i <= N; i++) {\n if (!(i % 3 == 0 || i % 5 == 0)) {\n result += i;\n }\n }\n\n System.out.println(result);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n int N = Integer.parseInt(sc.next());\n long result = 0;\n for (int i = 0; i <= N; i++) {\n if (!(i % 3 == 0 || i % 5 == 0)) {\n result += i;\n }\n }\n\n System.out.println(result);\n }\n }",
"main",
"{\n try (Scanner sc = new Scanner(System.in)) {\n int N = Integer.parseInt(sc.next());\n long result = 0;\n for (int i = 0; i <= N; i++) {\n if (!(i % 3 == 0 || i % 5 == 0)) {\n result += i;\n }\n }\n\n System.out.println(result);\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n int N = Integer.parseInt(sc.next());\n long result = 0;\n for (int i = 0; i <= N; i++) {\n if (!(i % 3 == 0 || i % 5 == 0)) {\n result += i;\n }\n }\n\n System.out.println(result);\n }",
"{\n int N = Integer.parseInt(sc.next());\n long result = 0;\n for (int i = 0; i <= N; i++) {\n if (!(i % 3 == 0 || i % 5 == 0)) {\n result += i;\n }\n }\n\n System.out.println(result);\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int N = Integer.parseInt(sc.next());",
"N",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"long result = 0;",
"result",
"0",
"for (int i = 0; i <= N; i++) {\n if (!(i % 3 == 0 || i % 5 == 0)) {\n result += i;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if (!(i % 3 == 0 || i % 5 == 0)) {\n result += i;\n }\n }",
"{\n if (!(i % 3 == 0 || i % 5 == 0)) {\n result += i;\n }\n }",
"if (!(i % 3 == 0 || i % 5 == 0)) {\n result += i;\n }",
"!(i % 3 == 0 || i % 5 == 0)",
"(i % 3 == 0 || i % 5 == 0)",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n result += i;\n }",
"result += i",
"result",
"i",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n int N = Integer.parseInt(sc.next());\n long result = 0;\n for (int i = 0; i <= N; i++) {\n if (!(i % 3 == 0 || i % 5 == 0)) {\n result += i;\n }\n }\n\n System.out.println(result);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n int N = Integer.parseInt(sc.next());\n long result = 0;\n for (int i = 0; i <= N; i++) {\n if (!(i % 3 == 0 || i % 5 == 0)) {\n result += i;\n }\n }\n\n System.out.println(result);\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
int N = Integer.parseInt(sc.next());
long result = 0;
for (int i = 0; i <= N; i++) {
if (!(i % 3 == 0 || i % 5 == 0)) {
result += i;
}
}
System.out.println(result);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
13,
30,
40,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
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
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
30,
42
],
[
27,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long answer = 0;\n long n = sc.nextLong();\n long i = 0;\n while(i < n){\n i++;\n if(i % 3 == 0 || i % 5 == 0) continue;\n answer += i;\n }\n System.out.println(answer);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long answer = 0;\n long n = sc.nextLong();\n long i = 0;\n while(i < n){\n i++;\n if(i % 3 == 0 || i % 5 == 0) continue;\n answer += i;\n }\n System.out.println(answer);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long answer = 0;\n long n = sc.nextLong();\n long i = 0;\n while(i < n){\n i++;\n if(i % 3 == 0 || i % 5 == 0) continue;\n answer += i;\n }\n System.out.println(answer);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long answer = 0;\n long n = sc.nextLong();\n long i = 0;\n while(i < n){\n i++;\n if(i % 3 == 0 || i % 5 == 0) continue;\n answer += i;\n }\n System.out.println(answer);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long answer = 0;",
"answer",
"0",
"long n = sc.nextLong();",
"n",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long i = 0;",
"i",
"0",
"while(i < n){\n i++;\n if(i % 3 == 0 || i % 5 == 0) continue;\n answer += i;\n }",
"i < n",
"i",
"n",
"{\n i++;\n if(i % 3 == 0 || i % 5 == 0) continue;\n answer += i;\n }",
"i++",
"i",
"if(i % 3 == 0 || i % 5 == 0) continue;",
"i % 3 == 0 || i % 5 == 0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"continue;",
"answer += i",
"answer",
"i",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long answer = 0;\n long n = sc.nextLong();\n long i = 0;\n while(i < n){\n i++;\n if(i % 3 == 0 || i % 5 == 0) continue;\n answer += i;\n }\n System.out.println(answer);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long answer = 0;\n long n = sc.nextLong();\n long i = 0;\n while(i < n){\n i++;\n if(i % 3 == 0 || i % 5 == 0) continue;\n answer += i;\n }\n System.out.println(answer);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long answer = 0;
long n = sc.nextLong();
long i = 0;
while(i < n){
i++;
if(i % 3 == 0 || i % 5 == 0) continue;
answer += i;
}
System.out.println(answer);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
2,
13,
17,
17,
17,
2,
2,
2,
13,
17,
17,
17,
30,
30,
0,
13,
2,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
33,
49
],
[
33,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long ans = 0;\n \n for(int i = 0;i < N;i++){\n if((i+1) % 3 == 0|| (i+1) % 5 == 0){\n \n }else{\n ans = ans + (i + 1);\n }\n //System.out.println(i + \"=\" + ans);\n }\n \n System.out.print(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long ans = 0;\n \n for(int i = 0;i < N;i++){\n if((i+1) % 3 == 0|| (i+1) % 5 == 0){\n \n }else{\n ans = ans + (i + 1);\n }\n //System.out.println(i + \"=\" + ans);\n }\n \n System.out.print(ans);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long ans = 0;\n \n for(int i = 0;i < N;i++){\n if((i+1) % 3 == 0|| (i+1) % 5 == 0){\n \n }else{\n ans = ans + (i + 1);\n }\n //System.out.println(i + \"=\" + ans);\n }\n \n System.out.print(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long ans = 0;\n \n for(int i = 0;i < N;i++){\n if((i+1) % 3 == 0|| (i+1) % 5 == 0){\n \n }else{\n ans = ans + (i + 1);\n }\n //System.out.println(i + \"=\" + ans);\n }\n \n System.out.print(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ans = 0;",
"ans",
"0",
"for(int i = 0;i < N;i++){\n if((i+1) % 3 == 0|| (i+1) % 5 == 0){\n \n }else{\n ans = ans + (i + 1);\n }\n //System.out.println(i + \"=\" + ans);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if((i+1) % 3 == 0|| (i+1) % 5 == 0){\n \n }else{\n ans = ans + (i + 1);\n }\n //System.out.println(i + \"=\" + ans);\n }",
"{\n if((i+1) % 3 == 0|| (i+1) % 5 == 0){\n \n }else{\n ans = ans + (i + 1);\n }\n //System.out.println(i + \"=\" + ans);\n }",
"if((i+1) % 3 == 0|| (i+1) % 5 == 0){\n \n }else{\n ans = ans + (i + 1);\n }",
"(i+1) % 3 == 0|| (i+1) % 5 == 0",
"(i+1) % 3 == 0",
"(i+1) % 3",
"(i+1)",
"i",
"1",
"3",
"0",
"(i+1) % 5 == 0",
"(i+1) % 5",
"(i+1)",
"i",
"1",
"5",
"0",
"{\n \n }",
"{\n ans = ans + (i + 1);\n }",
"ans = ans + (i + 1)",
"ans",
"ans + (i + 1)",
"ans",
"(i + 1)",
"i",
"1",
"System.out.print(ans)",
"System.out.print",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long ans = 0;\n \n for(int i = 0;i < N;i++){\n if((i+1) % 3 == 0|| (i+1) % 5 == 0){\n \n }else{\n ans = ans + (i + 1);\n }\n //System.out.println(i + \"=\" + ans);\n }\n \n System.out.print(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long ans = 0;\n \n for(int i = 0;i < N;i++){\n if((i+1) % 3 == 0|| (i+1) % 5 == 0){\n \n }else{\n ans = ans + (i + 1);\n }\n //System.out.println(i + \"=\" + ans);\n }\n \n System.out.print(ans);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
long ans = 0;
for(int i = 0;i < N;i++){
if((i+1) % 3 == 0|| (i+1) % 5 == 0){
}else{
ans = ans + (i + 1);
}
//System.out.println(i + "=" + ans);
}
System.out.print(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
14,
2,
2,
13,
17,
17,
9,
14,
2,
2,
13,
17,
17,
9,
0,
13,
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
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
36,
48
],
[
35,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
35,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
35,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
6,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
] |
[
"import java.util.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\tsc.close();\n\t\tlong s=0;\n\t\tfor(int i=1; i<=N; i++) {\n\t\t\tif(i%3==0 && i%5==0) continue;\n\t\t\tif(i%3==0) continue;\n\t\t\tif(i%5==0) continue;\n\t\t\ts+=i;\n\t\t}\n\t\tSystem.out.println(s);\n\t}\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\tsc.close();\n\t\tlong s=0;\n\t\tfor(int i=1; i<=N; i++) {\n\t\t\tif(i%3==0 && i%5==0) continue;\n\t\t\tif(i%3==0) continue;\n\t\t\tif(i%5==0) continue;\n\t\t\ts+=i;\n\t\t}\n\t\tSystem.out.println(s);\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\tsc.close();\n\t\tlong s=0;\n\t\tfor(int i=1; i<=N; i++) {\n\t\t\tif(i%3==0 && i%5==0) continue;\n\t\t\tif(i%3==0) continue;\n\t\t\tif(i%5==0) continue;\n\t\t\ts+=i;\n\t\t}\n\t\tSystem.out.println(s);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tsc.close();\n\t\tlong s=0;\n\t\tfor(int i=1; i<=N; i++) {\n\t\t\tif(i%3==0 && i%5==0) continue;\n\t\t\tif(i%3==0) continue;\n\t\t\tif(i%5==0) continue;\n\t\t\ts+=i;\n\t\t}\n\t\tSystem.out.println(s);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"long s=0;",
"s",
"0",
"for(int i=1; i<=N; i++) {\n\t\t\tif(i%3==0 && i%5==0) continue;\n\t\t\tif(i%3==0) continue;\n\t\t\tif(i%5==0) continue;\n\t\t\ts+=i;\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%3==0 && i%5==0) continue;\n\t\t\tif(i%3==0) continue;\n\t\t\tif(i%5==0) continue;\n\t\t\ts+=i;\n\t\t}",
"{\n\t\t\tif(i%3==0 && i%5==0) continue;\n\t\t\tif(i%3==0) continue;\n\t\t\tif(i%5==0) continue;\n\t\t\ts+=i;\n\t\t}",
"if(i%3==0 && i%5==0) continue;",
"i%3==0 && i%5==0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"continue;",
"if(i%3==0) continue;",
"i%3==0",
"i%3",
"i",
"3",
"0",
"continue;",
"if(i%5==0) continue;",
"i%5==0",
"i%5",
"i",
"5",
"0",
"continue;",
"s+=i",
"s",
"i",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"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\tsc.close();\n\t\tlong s=0;\n\t\tfor(int i=1; i<=N; i++) {\n\t\t\tif(i%3==0 && i%5==0) continue;\n\t\t\tif(i%3==0) continue;\n\t\t\tif(i%5==0) continue;\n\t\t\ts+=i;\n\t\t}\n\t\tSystem.out.println(s);\n\t}\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\tsc.close();\n\t\tlong s=0;\n\t\tfor(int i=1; i<=N; i++) {\n\t\t\tif(i%3==0 && i%5==0) continue;\n\t\t\tif(i%3==0) continue;\n\t\t\tif(i%5==0) continue;\n\t\t\ts+=i;\n\t\t}\n\t\tSystem.out.println(s);\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();
sc.close();
long s=0;
for(int i=1; i<=N; i++) {
if(i%3==0 && i%5==0) continue;
if(i%3==0) continue;
if(i%5==0) continue;
s+=i;
}
System.out.println(s);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
2,
13,
17,
17,
41,
13,
2,
2,
13,
17,
17,
14,
2,
13,
13,
9,
0,
13,
17,
0,
13,
17,
0,
13,
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
],
[
79,
8
],
[
79,
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
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
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
],
[
45,
47
],
[
44,
48
],
[
41,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
41,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
41,
61
],
[
61,
62
],
[
61,
63
],
[
41,
64
],
[
64,
65
],
[
64,
66
],
[
41,
67
],
[
67,
68
],
[
67,
69
],
[
11,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
9,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] |
[
"\nimport java.util.*;\nimport java.lang.*;\n\npublic class Main {\n public static void main(String[] args) {\n //コード\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.next());\n\n // 合計値\n List<Integer> total = new ArrayList<Integer>();\n\n long sum = 0L;\n\n for (int i =0; i <= n; i++) {\n boolean fizz = i % 3 == 0;\n boolean buzz = i % 5 == 0;\n if (fizz || buzz) continue;\n\n fizz = false;\n buzz = false;\n sum += i;\n }\n\n\n\n System.out.println(sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n public static void main(String[] args) {\n //コード\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.next());\n\n // 合計値\n List<Integer> total = new ArrayList<Integer>();\n\n long sum = 0L;\n\n for (int i =0; i <= n; i++) {\n boolean fizz = i % 3 == 0;\n boolean buzz = i % 5 == 0;\n if (fizz || buzz) continue;\n\n fizz = false;\n buzz = false;\n sum += i;\n }\n\n\n\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n //コード\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.next());\n\n // 合計値\n List<Integer> total = new ArrayList<Integer>();\n\n long sum = 0L;\n\n for (int i =0; i <= n; i++) {\n boolean fizz = i % 3 == 0;\n boolean buzz = i % 5 == 0;\n if (fizz || buzz) continue;\n\n fizz = false;\n buzz = false;\n sum += i;\n }\n\n\n\n System.out.println(sum);\n }",
"main",
"{\n //コード\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.next());\n\n // 合計値\n List<Integer> total = new ArrayList<Integer>();\n\n long sum = 0L;\n\n for (int i =0; i <= n; i++) {\n boolean fizz = i % 3 == 0;\n boolean buzz = i % 5 == 0;\n if (fizz || buzz) continue;\n\n fizz = false;\n buzz = false;\n sum += i;\n }\n\n\n\n System.out.println(sum);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = Integer.parseInt(scanner.next());",
"n",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"List<Integer> total = new ArrayList<Integer>();",
"total",
"new ArrayList<Integer>()",
"long sum = 0L;",
"sum",
"0L",
"for (int i =0; i <= n; i++) {\n boolean fizz = i % 3 == 0;\n boolean buzz = i % 5 == 0;\n if (fizz || buzz) continue;\n\n fizz = false;\n buzz = false;\n sum += i;\n }",
"int i =0;",
"int i =0;",
"i",
"0",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n boolean fizz = i % 3 == 0;\n boolean buzz = i % 5 == 0;\n if (fizz || buzz) continue;\n\n fizz = false;\n buzz = false;\n sum += i;\n }",
"{\n boolean fizz = i % 3 == 0;\n boolean buzz = i % 5 == 0;\n if (fizz || buzz) continue;\n\n fizz = false;\n buzz = false;\n sum += i;\n }",
"boolean fizz = i % 3 == 0;",
"fizz",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"boolean buzz = i % 5 == 0;",
"buzz",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"if (fizz || buzz) continue;",
"fizz || buzz",
"fizz",
"buzz",
"continue;",
"fizz = false",
"fizz",
"false",
"buzz = false",
"buzz",
"false",
"sum += i",
"sum",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n //コード\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.next());\n\n // 合計値\n List<Integer> total = new ArrayList<Integer>();\n\n long sum = 0L;\n\n for (int i =0; i <= n; i++) {\n boolean fizz = i % 3 == 0;\n boolean buzz = i % 5 == 0;\n if (fizz || buzz) continue;\n\n fizz = false;\n buzz = false;\n sum += i;\n }\n\n\n\n System.out.println(sum);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n //コード\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.next());\n\n // 合計値\n List<Integer> total = new ArrayList<Integer>();\n\n long sum = 0L;\n\n for (int i =0; i <= n; i++) {\n boolean fizz = i % 3 == 0;\n boolean buzz = i % 5 == 0;\n if (fizz || buzz) continue;\n\n fizz = false;\n buzz = false;\n sum += i;\n }\n\n\n\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.util.*;
import java.lang.*;
public class Main {
public static void main(String[] args) {
//コード
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.next());
// 合計値
List<Integer> total = new ArrayList<Integer>();
long sum = 0L;
for (int i =0; i <= n; i++) {
boolean fizz = i % 3 == 0;
boolean buzz = i % 5 == 0;
if (fizz || buzz) continue;
fizz = false;
buzz = false;
sum += i;
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
93,
23
],
[
93,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
26,
35
],
[
35,
36
],
[
35,
37
],
[
26,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
38,
48
],
[
48,
49
],
[
49,
50
],
[
38,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
53,
65
],
[
53,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
66,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
73,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
26,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
24,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] |
[
"import java.io.BufferedReader;\nimport java.io.*;\nimport java.util.*;\nimport java.util.ArrayList;\nimport java.util.Iterator;\nimport java.util.List;\nimport java.util.Collections;\npublic class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long sum = 0;\n \n for(int i = 1 ; i < n + 1 ; i++){\n if(i % 3== 0 && i % 5 == 0){\n\n }else if(i % 3 == 0){\n\n }else if(i % 5 == 0){\n\n }else{\n sum += i;\n }\n \n }\n \n System.out.println(sum);\n}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Iterator;",
"Iterator",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"public class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long sum = 0;\n \n for(int i = 1 ; i < n + 1 ; i++){\n if(i % 3== 0 && i % 5 == 0){\n\n }else if(i % 3 == 0){\n\n }else if(i % 5 == 0){\n\n }else{\n sum += i;\n }\n \n }\n \n System.out.println(sum);\n}\n}",
"Main",
"public static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long sum = 0;\n \n for(int i = 1 ; i < n + 1 ; i++){\n if(i % 3== 0 && i % 5 == 0){\n\n }else if(i % 3 == 0){\n\n }else if(i % 5 == 0){\n\n }else{\n sum += i;\n }\n \n }\n \n System.out.println(sum);\n}",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long sum = 0;\n \n for(int i = 1 ; i < n + 1 ; i++){\n if(i % 3== 0 && i % 5 == 0){\n\n }else if(i % 3 == 0){\n\n }else if(i % 5 == 0){\n\n }else{\n sum += i;\n }\n \n }\n \n System.out.println(sum);\n}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"for(int i = 1 ; i < n + 1 ; i++){\n if(i % 3== 0 && i % 5 == 0){\n\n }else if(i % 3 == 0){\n\n }else if(i % 5 == 0){\n\n }else{\n sum += i;\n }\n \n }",
"int i = 1 ;",
"int i = 1 ;",
"i",
"1",
"i < n + 1",
"i",
"n + 1",
"n",
"1",
"i++",
"i++",
"i",
"{\n if(i % 3== 0 && i % 5 == 0){\n\n }else if(i % 3 == 0){\n\n }else if(i % 5 == 0){\n\n }else{\n sum += i;\n }\n \n }",
"{\n if(i % 3== 0 && i % 5 == 0){\n\n }else if(i % 3 == 0){\n\n }else if(i % 5 == 0){\n\n }else{\n sum += i;\n }\n \n }",
"if(i % 3== 0 && i % 5 == 0){\n\n }else if(i % 3 == 0){\n\n }else if(i % 5 == 0){\n\n }else{\n sum += i;\n }",
"i % 3== 0 && i % 5 == 0",
"i % 3== 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\n }",
"if(i % 3 == 0){\n\n }else if(i % 5 == 0){\n\n }else{\n sum += i;\n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\n }",
"if(i % 5 == 0){\n\n }else{\n sum += i;\n }",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\n }",
"{\n sum += i;\n }",
"sum += i",
"sum",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"final String[] args",
"args",
"public class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long sum = 0;\n \n for(int i = 1 ; i < n + 1 ; i++){\n if(i % 3== 0 && i % 5 == 0){\n\n }else if(i % 3 == 0){\n\n }else if(i % 5 == 0){\n\n }else{\n sum += i;\n }\n \n }\n \n System.out.println(sum);\n}\n}",
"public class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long sum = 0;\n \n for(int i = 1 ; i < n + 1 ; i++){\n if(i % 3== 0 && i % 5 == 0){\n\n }else if(i % 3 == 0){\n\n }else if(i % 5 == 0){\n\n }else{\n sum += i;\n }\n \n }\n \n System.out.println(sum);\n}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
public class Main {
public static void main(final String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long sum = 0;
for(int i = 1 ; i < n + 1 ; i++){
if(i % 3== 0 && i % 5 == 0){
}else if(i % 3 == 0){
}else if(i % 5 == 0){
}else{
sum += i;
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
29,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
8,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = sc.nextInt();\n\n\t\tlong sum = 0;\n\n\t\tfor(int i = 1; i <= A; i++){\n\t\t\tif(i % 3 == 0 || i % 5 == 0){\n\t\t\t} else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(sum);\n\n\treturn;\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = sc.nextInt();\n\n\t\tlong sum = 0;\n\n\t\tfor(int i = 1; i <= A; i++){\n\t\t\tif(i % 3 == 0 || i % 5 == 0){\n\t\t\t} else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(sum);\n\n\treturn;\n\n\t}\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = sc.nextInt();\n\n\t\tlong sum = 0;\n\n\t\tfor(int i = 1; i <= A; i++){\n\t\t\tif(i % 3 == 0 || i % 5 == 0){\n\t\t\t} else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(sum);\n\n\treturn;\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = sc.nextInt();\n\n\t\tlong sum = 0;\n\n\t\tfor(int i = 1; i <= A; i++){\n\t\t\tif(i % 3 == 0 || i % 5 == 0){\n\t\t\t} else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(sum);\n\n\treturn;\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"for(int i = 1; i <= A; i++){\n\t\t\tif(i % 3 == 0 || i % 5 == 0){\n\t\t\t} else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= A",
"i",
"A",
"i++",
"i++",
"i",
"{\n\t\t\tif(i % 3 == 0 || i % 5 == 0){\n\t\t\t} else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i % 3 == 0 || i % 5 == 0){\n\t\t\t} else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"if(i % 3 == 0 || i % 5 == 0){\n\t\t\t} else {\n\t\t\t\tsum += i;\n\t\t\t}",
"i % 3 == 0 || i % 5 == 0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\t\t\t}",
"{\n\t\t\t\tsum += i;\n\t\t\t}",
"sum += i",
"sum",
"i",
"System.out.print(sum)",
"System.out.print",
"System.out",
"System",
"System.out",
"sum",
"return;",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = sc.nextInt();\n\n\t\tlong sum = 0;\n\n\t\tfor(int i = 1; i <= A; i++){\n\t\t\tif(i % 3 == 0 || i % 5 == 0){\n\t\t\t} else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(sum);\n\n\treturn;\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = sc.nextInt();\n\n\t\tlong sum = 0;\n\n\t\tfor(int i = 1; i <= A; i++){\n\t\t\tif(i % 3 == 0 || i % 5 == 0){\n\t\t\t} else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(sum);\n\n\treturn;\n\n\t}\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();
long sum = 0;
for(int i = 1; i <= A; i++){
if(i % 3 == 0 || i % 5 == 0){
} else {
sum += i;
}
}
System.out.print(sum);
return;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
30,
0,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
29,
4,
18,
13,
29,
17,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
29,
17,
0,
13,
20,
29,
17,
12,
13,
30,
29,
20,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
211,
32
],
[
211,
33
],
[
33,
34
],
[
33,
35
],
[
211,
36
],
[
36,
37
],
[
36,
38
],
[
211,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
41,
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
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
63,
75
],
[
63,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
41,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
41,
84
],
[
84,
85
],
[
85,
86
],
[
39,
87
],
[
87,
88
],
[
211,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
89,
93
],
[
93,
94
],
[
89,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
101,
103
],
[
95,
104
],
[
104,
105
],
[
89,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
109,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
119,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
108,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
89,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
140,
141
],
[
89,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
149,
150
],
[
89,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
158,
159
],
[
89,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
163,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
162,
175
],
[
175,
176
],
[
89,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
179,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
197,
198
],
[
198,
199
],
[
179,
200
],
[
200,
201
],
[
200,
202
],
[
179,
203
],
[
203,
204
],
[
89,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
208,
209
],
[
0,
210
],
[
210,
211
],
[
210,
212
]
] |
[
"import java.io.*;\nimport java.lang.*;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.IOException;\nimport java.util.StringTokenizer;\nimport java.math.BigInteger;\n\npublic class Main {\n static InputReader in = new InputReader(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) {\n int n = in.nextInt();\n long sum = 0;\n for(long i = 1; i<=n; i++){\n if(i%3==0 || i%5==0){\n\n }\n else{\n sum+=i;\n }\n }\n out.print(sum);\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }\n}\n",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n static InputReader in = new InputReader(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) {\n int n = in.nextInt();\n long sum = 0;\n for(long i = 1; i<=n; i++){\n if(i%3==0 || i%5==0){\n\n }\n else{\n sum+=i;\n }\n }\n out.print(sum);\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }\n}",
"Main",
"static InputReader in = new InputReader(System.in);",
"in",
"new InputReader(System.in)",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public static void main(String[] args) {\n int n = in.nextInt();\n long sum = 0;\n for(long i = 1; i<=n; i++){\n if(i%3==0 || i%5==0){\n\n }\n else{\n sum+=i;\n }\n }\n out.print(sum);\n out.close();\n }",
"main",
"{\n int n = in.nextInt();\n long sum = 0;\n for(long i = 1; i<=n; i++){\n if(i%3==0 || i%5==0){\n\n }\n else{\n sum+=i;\n }\n }\n out.print(sum);\n out.close();\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"long sum = 0;",
"sum",
"0",
"for(long i = 1; i<=n; i++){\n if(i%3==0 || i%5==0){\n\n }\n else{\n sum+=i;\n }\n }",
"long i = 1;",
"long i = 1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i%3==0 || i%5==0){\n\n }\n else{\n sum+=i;\n }\n }",
"{\n if(i%3==0 || i%5==0){\n\n }\n else{\n sum+=i;\n }\n }",
"if(i%3==0 || i%5==0){\n\n }\n else{\n sum+=i;\n }",
"i%3==0 || i%5==0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"{\n\n }",
"{\n sum+=i;\n }",
"sum+=i",
"sum",
"i",
"out.print(sum)",
"out.print",
"out",
"sum",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream), 32768)",
"reader",
"new BufferedReader(new InputStreamReader(stream), 32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"nextLine",
"{\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }",
"catch (Exception e) {\n e.printStackTrace();\n }",
"Exception e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n return reader.readLine();\n }",
"return reader.readLine();",
"reader.readLine()",
"reader.readLine",
"reader",
"return null;",
"null",
"public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }",
"hasNext",
"{\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }",
"String next = null;",
"next",
"null",
"try {\n next = reader.readLine();\n } catch (Exception e) {\n }",
"catch (Exception e) {\n }",
"Exception e",
"{\n }",
"{\n next = reader.readLine();\n }",
"next = reader.readLine()",
"next",
"reader.readLine()",
"reader.readLine",
"reader",
"if (next == null) {\n return false;\n }",
"next == null",
"next",
"null",
"{\n return false;\n }",
"return false;",
"false",
"tokenizer = new StringTokenizer(next)",
"tokenizer",
"new StringTokenizer(next)",
"return true;",
"true",
"public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }",
"nextBigInteger",
"{\n return new BigInteger(next());\n }",
"return new BigInteger(next());",
"new BigInteger(next())",
"public class Main {\n static InputReader in = new InputReader(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) {\n int n = in.nextInt();\n long sum = 0;\n for(long i = 1; i<=n; i++){\n if(i%3==0 || i%5==0){\n\n }\n else{\n sum+=i;\n }\n }\n out.print(sum);\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }\n}",
"public class Main {\n static InputReader in = new InputReader(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) {\n int n = in.nextInt();\n long sum = 0;\n for(long i = 1; i<=n; i++){\n if(i%3==0 || i%5==0){\n\n }\n else{\n sum+=i;\n }\n }\n out.print(sum);\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.lang.*;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.util.StringTokenizer;
import java.math.BigInteger;
public class Main {
static InputReader in = new InputReader(System.in);
static PrintWriter out = new PrintWriter(System.out);
public static void main(String[] args) {
int n = in.nextInt();
long sum = 0;
for(long i = 1; i<=n; i++){
if(i%3==0 || i%5==0){
}
else{
sum+=i;
}
}
out.print(sum);
out.close();
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public long nextLong() {
return Long.parseLong(next());
}
public double nextDouble() {
return Double.parseDouble(next());
}
public String nextLine() {
try {
return reader.readLine();
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
public boolean hasNext() {
String next = null;
try {
next = reader.readLine();
} catch (Exception e) {
}
if (next == null) {
return false;
}
tokenizer = new StringTokenizer(next);
return true;
}
public BigInteger nextBigInteger() {
return new BigInteger(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
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
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
33,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
]
] |
[
"import java.util.Scanner;\n//import java.util.Random;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner stdIn=new Scanner(System.in);\n\t\t\n\t\tfinal int n=stdIn.nextInt();\n\t\tlong ans=0;\n\t\tfor(int i=1;i<=n;++i){\n\t\t\tif(i%3==0 || i%5==0){}\n\t\t\telse ans+=i;\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args){\n\t\tScanner stdIn=new Scanner(System.in);\n\t\t\n\t\tfinal int n=stdIn.nextInt();\n\t\tlong ans=0;\n\t\tfor(int i=1;i<=n;++i){\n\t\t\tif(i%3==0 || i%5==0){}\n\t\t\telse ans+=i;\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner stdIn=new Scanner(System.in);\n\t\t\n\t\tfinal int n=stdIn.nextInt();\n\t\tlong ans=0;\n\t\tfor(int i=1;i<=n;++i){\n\t\t\tif(i%3==0 || i%5==0){}\n\t\t\telse ans+=i;\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\t\n\t\tfinal int n=stdIn.nextInt();\n\t\tlong ans=0;\n\t\tfor(int i=1;i<=n;++i){\n\t\t\tif(i%3==0 || i%5==0){}\n\t\t\telse ans+=i;\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}",
"Scanner stdIn=new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"final int n=stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"long ans=0;",
"ans",
"0",
"for(int i=1;i<=n;++i){\n\t\t\tif(i%3==0 || i%5==0){}\n\t\t\telse ans+=i;\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"++i",
"++i",
"i",
"{\n\t\t\tif(i%3==0 || i%5==0){}\n\t\t\telse ans+=i;\n\t\t}",
"{\n\t\t\tif(i%3==0 || i%5==0){}\n\t\t\telse ans+=i;\n\t\t}",
"if(i%3==0 || i%5==0){}\n\t\t\telse ans+=i;",
"i%3==0 || i%5==0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"{}",
"ans+=i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
] |
import java.util.Scanner;
//import java.util.Random;
class Main{
public static void main(String[] args){
Scanner stdIn=new Scanner(System.in);
final int n=stdIn.nextInt();
long ans=0;
for(int i=1;i<=n;++i){
if(i%3==0 || i%5==0){}
else ans+=i;
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
41,
13,
4,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
0,
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
],
[
83,
20
],
[
83,
21
],
[
21,
22
],
[
21,
23
],
[
83,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
26,
41
],
[
41,
42
],
[
42,
43
],
[
26,
44
],
[
44,
45
],
[
44,
46
],
[
26,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
60,
72
],
[
59,
73
],
[
73,
74
],
[
73,
75
],
[
26,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
24,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] |
[
"import java.util.*;\nimport java.io.PrintWriter;\nimport static java.lang.Integer.*;\nimport static java.lang.Long.*;\nimport static java.lang.Math.*;\nimport static java.lang.System.*;\n\npublic class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint n = parseInt(sc.next());\n\t\tsc.close();\n\t\tlong sum=0;\n\t\tfor (i = 1; i <= n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tsum+=i;\n\t\t}\n\t\tout.println(sum);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import static java.lang.Integer.*;",
"import static java.lang.Integer.*;",
"import static java.lang.Integer.*;",
"import static java.lang.Long.*;",
"import static java.lang.Long.*;",
"import static java.lang.Long.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"public class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint n = parseInt(sc.next());\n\t\tsc.close();\n\t\tlong sum=0;\n\t\tfor (i = 1; i <= n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tsum+=i;\n\t\t}\n\t\tout.println(sum);\n\t}\n}",
"Main",
"public static final int MOD = 1000000007;",
"MOD",
"1000000007",
"public static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint n = parseInt(sc.next());\n\t\tsc.close();\n\t\tlong sum=0;\n\t\tfor (i = 1; i <= n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tsum+=i;\n\t\t}\n\t\tout.println(sum);\n\t}",
"main",
"{\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint n = parseInt(sc.next());\n\t\tsc.close();\n\t\tlong sum=0;\n\t\tfor (i = 1; i <= n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tsum+=i;\n\t\t}\n\t\tout.println(sum);\n\t}",
"int i",
"i",
"j;",
"j",
"Scanner sc = new Scanner(in);",
"sc",
"new Scanner(in)",
"int n = parseInt(sc.next());",
"n",
"parseInt(sc.next())",
"parseInt",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"long sum=0;",
"sum",
"0",
"for (i = 1; i <= n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tsum+=i;\n\t\t}",
"i = 1;",
"i = 1",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tsum+=i;\n\t\t}",
"{\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tsum+=i;\n\t\t}",
"if(i%3==0||i%5==0) continue;",
"i%3==0||i%5==0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"continue;",
"sum+=i",
"sum",
"i",
"out.println(sum)",
"out.println",
"out",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint n = parseInt(sc.next());\n\t\tsc.close();\n\t\tlong sum=0;\n\t\tfor (i = 1; i <= n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tsum+=i;\n\t\t}\n\t\tout.println(sum);\n\t}\n}",
"public class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint n = parseInt(sc.next());\n\t\tsc.close();\n\t\tlong sum=0;\n\t\tfor (i = 1; i <= n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tsum+=i;\n\t\t}\n\t\tout.println(sum);\n\t}\n}",
"Main"
] |
import java.util.*;
import java.io.PrintWriter;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;
public class Main {
public static final int MOD = 1000000007;
public static void main(String[] args) {
int i,j;
Scanner sc = new Scanner(in);
int n = parseInt(sc.next());
sc.close();
long sum=0;
for (i = 1; i <= n; i++) {
if(i%3==0||i%5==0) continue;
sum+=i;
}
out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
9,
14,
2,
2,
13,
17,
17,
30,
9,
14,
2,
2,
13,
17,
17,
30,
9,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
36,
48
],
[
48,
49
],
[
36,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
64,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n Long inputNum = Long.parseLong(sc.next());\n Long sum = 0L;\n\n for(int i = 1; i <= inputNum; i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if(i % 3 == 0) {\n continue;\n } else if(i % 5 == 0) {\n continue;\n } else {\n sum += i;\n }\n }\n\n System.out.println(sum);\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n Long inputNum = Long.parseLong(sc.next());\n Long sum = 0L;\n\n for(int i = 1; i <= inputNum; i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if(i % 3 == 0) {\n continue;\n } else if(i % 5 == 0) {\n continue;\n } else {\n sum += i;\n }\n }\n\n System.out.println(sum);\n sc.close();\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n Long inputNum = Long.parseLong(sc.next());\n Long sum = 0L;\n\n for(int i = 1; i <= inputNum; i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if(i % 3 == 0) {\n continue;\n } else if(i % 5 == 0) {\n continue;\n } else {\n sum += i;\n }\n }\n\n System.out.println(sum);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n Long inputNum = Long.parseLong(sc.next());\n Long sum = 0L;\n\n for(int i = 1; i <= inputNum; i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if(i % 3 == 0) {\n continue;\n } else if(i % 5 == 0) {\n continue;\n } else {\n sum += i;\n }\n }\n\n System.out.println(sum);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Long inputNum = Long.parseLong(sc.next());",
"inputNum",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"Long sum = 0L;",
"sum",
"0L",
"for(int i = 1; i <= inputNum; i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if(i % 3 == 0) {\n continue;\n } else if(i % 5 == 0) {\n continue;\n } else {\n sum += i;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= inputNum",
"i",
"inputNum",
"i++",
"i++",
"i",
"{\n if(i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if(i % 3 == 0) {\n continue;\n } else if(i % 5 == 0) {\n continue;\n } else {\n sum += i;\n }\n }",
"{\n if(i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if(i % 3 == 0) {\n continue;\n } else if(i % 5 == 0) {\n continue;\n } else {\n sum += i;\n }\n }",
"if(i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if(i % 3 == 0) {\n continue;\n } else if(i % 5 == 0) {\n continue;\n } else {\n sum += i;\n }",
"i % 3 == 0 && i % 5 == 0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n continue;\n }",
"continue;",
"if(i % 3 == 0) {\n continue;\n } else if(i % 5 == 0) {\n continue;\n } else {\n sum += i;\n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n continue;\n }",
"continue;",
"if(i % 5 == 0) {\n continue;\n } else {\n sum += i;\n }",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n continue;\n }",
"continue;",
"{\n sum += i;\n }",
"sum += i",
"sum",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"sc.close()",
"sc.close",
"sc",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n Long inputNum = Long.parseLong(sc.next());\n Long sum = 0L;\n\n for(int i = 1; i <= inputNum; i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if(i % 3 == 0) {\n continue;\n } else if(i % 5 == 0) {\n continue;\n } else {\n sum += i;\n }\n }\n\n System.out.println(sum);\n sc.close();\n }\n}",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n Long inputNum = Long.parseLong(sc.next());\n Long sum = 0L;\n\n for(int i = 1; i <= inputNum; i++) {\n if(i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if(i % 3 == 0) {\n continue;\n } else if(i % 5 == 0) {\n continue;\n } else {\n sum += i;\n }\n }\n\n System.out.println(sum);\n sc.close();\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
Long inputNum = Long.parseLong(sc.next());
Long sum = 0L;
for(int i = 1; i <= inputNum; i++) {
if(i % 3 == 0 && i % 5 == 0) {
continue;
} else if(i % 3 == 0) {
continue;
} else if(i % 5 == 0) {
continue;
} else {
sum += i;
}
}
System.out.println(sum);
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
41,
13,
20,
0,
13,
4,
18,
13,
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
],
[
67,
8
],
[
67,
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
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
36,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
9,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"import java.util.Scanner;\nimport java.math.BigInteger;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n BigInteger sum = new BigInteger(\"0\");\n for(int i = 1; i <= N; i++){\n if((i%3!=0)&&(i%5!=0)){\n BigInteger t = new BigInteger(String.valueOf(i));\n sum = sum.add(t);\n }\n }\n System.out.print(sum);\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n BigInteger sum = new BigInteger(\"0\");\n for(int i = 1; i <= N; i++){\n if((i%3!=0)&&(i%5!=0)){\n BigInteger t = new BigInteger(String.valueOf(i));\n sum = sum.add(t);\n }\n }\n System.out.print(sum);\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n BigInteger sum = new BigInteger(\"0\");\n for(int i = 1; i <= N; i++){\n if((i%3!=0)&&(i%5!=0)){\n BigInteger t = new BigInteger(String.valueOf(i));\n sum = sum.add(t);\n }\n }\n System.out.print(sum);\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n BigInteger sum = new BigInteger(\"0\");\n for(int i = 1; i <= N; i++){\n if((i%3!=0)&&(i%5!=0)){\n BigInteger t = new BigInteger(String.valueOf(i));\n sum = sum.add(t);\n }\n }\n System.out.print(sum);\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int N = in.nextInt();",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"BigInteger sum = new BigInteger(\"0\");",
"sum",
"new BigInteger(\"0\")",
"for(int i = 1; i <= N; i++){\n if((i%3!=0)&&(i%5!=0)){\n BigInteger t = new BigInteger(String.valueOf(i));\n sum = sum.add(t);\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if((i%3!=0)&&(i%5!=0)){\n BigInteger t = new BigInteger(String.valueOf(i));\n sum = sum.add(t);\n }\n }",
"{\n if((i%3!=0)&&(i%5!=0)){\n BigInteger t = new BigInteger(String.valueOf(i));\n sum = sum.add(t);\n }\n }",
"if((i%3!=0)&&(i%5!=0)){\n BigInteger t = new BigInteger(String.valueOf(i));\n sum = sum.add(t);\n }",
"(i%3!=0)&&(i%5!=0)",
"(i%3!=0)",
"i%3",
"i",
"3",
"0",
"(i%5!=0)",
"i%5",
"i",
"5",
"0",
"{\n BigInteger t = new BigInteger(String.valueOf(i));\n sum = sum.add(t);\n }",
"BigInteger t = new BigInteger(String.valueOf(i));",
"t",
"new BigInteger(String.valueOf(i))",
"sum = sum.add(t)",
"sum",
"sum.add(t)",
"sum.add",
"sum",
"t",
"System.out.print(sum)",
"System.out.print",
"System.out",
"System",
"System.out",
"sum",
"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();\n BigInteger sum = new BigInteger(\"0\");\n for(int i = 1; i <= N; i++){\n if((i%3!=0)&&(i%5!=0)){\n BigInteger t = new BigInteger(String.valueOf(i));\n sum = sum.add(t);\n }\n }\n System.out.print(sum);\n }\n\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n BigInteger sum = new BigInteger(\"0\");\n for(int i = 1; i <= N; i++){\n if((i%3!=0)&&(i%5!=0)){\n BigInteger t = new BigInteger(String.valueOf(i));\n sum = sum.add(t);\n }\n }\n System.out.print(sum);\n }\n\n}",
"Main"
] |
import java.util.Scanner;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int N = in.nextInt();
BigInteger sum = new BigInteger("0");
for(int i = 1; i <= N; i++){
if((i%3!=0)&&(i%5!=0)){
BigInteger t = new BigInteger(String.valueOf(i));
sum = sum.add(t);
}
}
System.out.print(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double N = sc.nextDouble();\n long ans = 0;\n for (int i=1; i<=N; i++) {\n if (i%3 != 0 && i%5 != 0)\n ans += i;\n }\n \n \n System.out.println(ans);\n }\n} ",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double N = sc.nextDouble();\n long ans = 0;\n for (int i=1; i<=N; i++) {\n if (i%3 != 0 && i%5 != 0)\n ans += i;\n }\n \n \n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double N = sc.nextDouble();\n long ans = 0;\n for (int i=1; i<=N; i++) {\n if (i%3 != 0 && i%5 != 0)\n ans += i;\n }\n \n \n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n double N = sc.nextDouble();\n long ans = 0;\n for (int i=1; i<=N; i++) {\n if (i%3 != 0 && i%5 != 0)\n ans += i;\n }\n \n \n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double N = sc.nextDouble();",
"N",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"long ans = 0;",
"ans",
"0",
"for (int i=1; i<=N; i++) {\n if (i%3 != 0 && i%5 != 0)\n ans += i;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if (i%3 != 0 && i%5 != 0)\n ans += i;\n }",
"{\n if (i%3 != 0 && i%5 != 0)\n ans += i;\n }",
"if (i%3 != 0 && i%5 != 0)\n ans += i;",
"i%3 != 0 && i%5 != 0",
"i%3 != 0",
"i%3",
"i",
"3",
"0",
"i%5 != 0",
"i%5",
"i",
"5",
"0",
"ans += i",
"ans",
"i",
"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 double N = sc.nextDouble();\n long ans = 0;\n for (int i=1; i<=N; i++) {\n if (i%3 != 0 && i%5 != 0)\n ans += i;\n }\n \n \n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double N = sc.nextDouble();\n long ans = 0;\n for (int i=1; i<=N; i++) {\n if (i%3 != 0 && i%5 != 0)\n ans += i;\n }\n \n \n System.out.println(ans);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double N = sc.nextDouble();
long ans = 0;
for (int i=1; i<=N; i++) {
if (i%3 != 0 && i%5 != 0)
ans += i;
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
33,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
40,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
47,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\t\t\n\t\tint b = a.nextInt();\n\t\tlong sum = 0;\n\t\tfor(int i = 1; i <= b; i++) {\n\t\t\tif(i % 15 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 3 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 5 == 0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\t\t\n\t\tint b = a.nextInt();\n\t\tlong sum = 0;\n\t\tfor(int i = 1; i <= b; i++) {\n\t\t\tif(i % 15 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 3 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 5 == 0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\t\t\n\t\tint b = a.nextInt();\n\t\tlong sum = 0;\n\t\tfor(int i = 1; i <= b; i++) {\n\t\t\tif(i % 15 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 3 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 5 == 0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\tScanner a = new Scanner(System.in);\t\t\n\t\tint b = a.nextInt();\n\t\tlong sum = 0;\n\t\tfor(int i = 1; i <= b; i++) {\n\t\t\tif(i % 15 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 3 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 5 == 0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"Scanner a = new Scanner(System.in);",
"a",
"new Scanner(System.in)",
"int b = a.nextInt();",
"b",
"a.nextInt()",
"a.nextInt",
"a",
"long sum = 0;",
"sum",
"0",
"for(int i = 1; i <= b; i++) {\n\t\t\tif(i % 15 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 3 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 5 == 0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= b",
"i",
"b",
"i++",
"i++",
"i",
"{\n\t\t\tif(i % 15 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 3 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 5 == 0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i % 15 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 3 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 5 == 0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"if(i % 15 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 3 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 5 == 0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tsum += i;\n\t\t\t}",
"i % 15 == 0",
"i % 15",
"i",
"15",
"0",
"{\n\t\t\t\t\n\t\t\t}",
"if(i % 3 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 5 == 0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tsum += i;\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\t\n\t\t\t}",
"if(i % 5 == 0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tsum += i;\n\t\t\t}",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tsum += i;\n\t\t\t}",
"sum += i",
"sum",
"i",
"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\tScanner a = new Scanner(System.in);\t\t\n\t\tint b = a.nextInt();\n\t\tlong sum = 0;\n\t\tfor(int i = 1; i <= b; i++) {\n\t\t\tif(i % 15 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 3 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 5 == 0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\t\t\n\t\tint b = a.nextInt();\n\t\tlong sum = 0;\n\t\tfor(int i = 1; i <= b; i++) {\n\t\t\tif(i % 15 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 3 == 0) {\n\t\t\t\t\n\t\t\t}else if(i % 5 == 0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner a = new Scanner(System.in);
int b = a.nextInt();
long sum = 0;
for(int i = 1; i <= b; i++) {
if(i % 15 == 0) {
}else if(i % 3 == 0) {
}else if(i % 5 == 0) {
}else {
sum += i;
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
8,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
37,
49
],
[
37,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Long N, sum = 0L;\n Scanner sc = new Scanner(System.in);\n N = sc.nextLong();\n for(int i = 1 ; i <= N ; i++)\n {\n sum += (((i%3 ==0) || (i%5==0))? 0 : i);\n }\n System.out.println(sum);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Long N, sum = 0L;\n Scanner sc = new Scanner(System.in);\n N = sc.nextLong();\n for(int i = 1 ; i <= N ; i++)\n {\n sum += (((i%3 ==0) || (i%5==0))? 0 : i);\n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n Long N, sum = 0L;\n Scanner sc = new Scanner(System.in);\n N = sc.nextLong();\n for(int i = 1 ; i <= N ; i++)\n {\n sum += (((i%3 ==0) || (i%5==0))? 0 : i);\n }\n System.out.println(sum);\n }",
"main",
"{\n Long N, sum = 0L;\n Scanner sc = new Scanner(System.in);\n N = sc.nextLong();\n for(int i = 1 ; i <= N ; i++)\n {\n sum += (((i%3 ==0) || (i%5==0))? 0 : i);\n }\n System.out.println(sum);\n }",
"Long N",
"N",
"sum = 0L;",
"sum",
"0L",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"N = sc.nextLong()",
"N",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for(int i = 1 ; i <= N ; i++)\n {\n sum += (((i%3 ==0) || (i%5==0))? 0 : i);\n }",
"int i = 1 ;",
"int i = 1 ;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n sum += (((i%3 ==0) || (i%5==0))? 0 : i);\n }",
"{\n sum += (((i%3 ==0) || (i%5==0))? 0 : i);\n }",
"sum += (((i%3 ==0) || (i%5==0))? 0 : i)",
"sum",
"(((i%3 ==0) || (i%5==0))? 0 : i)",
"((i%3 ==0) || (i%5==0))",
"(i%3 ==0)",
"i%3",
"i",
"3",
"0",
"(i%5==0)",
"i%5",
"i",
"5",
"0",
"0",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Long N, sum = 0L;\n Scanner sc = new Scanner(System.in);\n N = sc.nextLong();\n for(int i = 1 ; i <= N ; i++)\n {\n sum += (((i%3 ==0) || (i%5==0))? 0 : i);\n }\n System.out.println(sum);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Long N, sum = 0L;\n Scanner sc = new Scanner(System.in);\n N = sc.nextLong();\n for(int i = 1 ; i <= N ; i++)\n {\n sum += (((i%3 ==0) || (i%5==0))? 0 : i);\n }\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Long N, sum = 0L;
Scanner sc = new Scanner(System.in);
N = sc.nextLong();
for(int i = 1 ; i <= N ; i++)
{
sum += (((i%3 ==0) || (i%5==0))? 0 : i);
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
0,
13,
13,
4,
13,
2,
13,
17,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
2,
13,
17,
23,
13,
12,
13,
30,
4,
18,
13,
2,
13,
17,
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
],
[
459,
11
],
[
459,
12
],
[
12,
13
],
[
12,
14
],
[
459,
15
],
[
15,
16
],
[
15,
17
],
[
459,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
41,
53
],
[
53,
54
],
[
53,
55
],
[
20,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
20,
61
],
[
61,
62
],
[
62,
63
],
[
20,
64
],
[
64,
65
],
[
65,
66
],
[
18,
67
],
[
67,
68
],
[
459,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
459,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
459,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
459,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
459,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
97,
104
],
[
104,
105
],
[
459,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
112,
114
],
[
106,
115
],
[
115,
116
],
[
459,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
123,
125
],
[
117,
126
],
[
126,
127
],
[
459,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
132,
134
],
[
128,
135
],
[
135,
136
],
[
128,
137
],
[
137,
138
],
[
128,
139
],
[
139,
140
],
[
128,
141
],
[
141,
142
],
[
128,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
145,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
155,
157
],
[
128,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
164,
166
],
[
160,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
170,
172
],
[
158,
173
],
[
173,
174
],
[
128,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
177,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
188,
193
],
[
193,
194
],
[
187,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
195,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
201,
206
],
[
177,
207
],
[
207,
208
],
[
128,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
211,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
211,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
229,
231
],
[
211,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
211,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
240,
245
],
[
239,
246
],
[
246,
247
],
[
246,
248
],
[
238,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
253,
257
],
[
252,
258
],
[
211,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
262,
263
],
[
211,
264
],
[
264,
265
],
[
128,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
268,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
268,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
268,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
286,
288
],
[
268,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
268,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
297,
302
],
[
296,
303
],
[
303,
304
],
[
303,
305
],
[
295,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
309,
315
],
[
268,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
319,
320
],
[
268,
321
],
[
321,
322
],
[
128,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
329,
330
],
[
329,
331
],
[
325,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
325,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
336,
340
],
[
340,
341
],
[
340,
342
],
[
342,
343
],
[
325,
344
],
[
344,
345
],
[
344,
346
],
[
346,
347
],
[
346,
348
],
[
325,
349
],
[
349,
350
],
[
349,
351
],
[
351,
352
],
[
351,
353
],
[
353,
354
],
[
325,
355
],
[
355,
356
],
[
356,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
357,
362
],
[
356,
363
],
[
363,
364
],
[
363,
365
],
[
355,
366
],
[
366,
367
],
[
367,
368
],
[
367,
369
],
[
369,
370
],
[
370,
371
],
[
371,
372
],
[
371,
373
],
[
370,
374
],
[
369,
375
],
[
325,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
376,
380
],
[
380,
381
],
[
381,
382
],
[
382,
383
],
[
383,
384
],
[
384,
385
],
[
384,
386
],
[
386,
387
],
[
383,
388
],
[
382,
389
],
[
389,
390
],
[
389,
391
],
[
381,
392
],
[
392,
393
],
[
393,
394
],
[
393,
395
],
[
395,
396
],
[
396,
397
],
[
396,
398
],
[
395,
399
],
[
399,
400
],
[
399,
401
],
[
325,
402
],
[
402,
403
],
[
402,
404
],
[
404,
405
],
[
405,
406
],
[
325,
407
],
[
407,
408
],
[
128,
409
],
[
409,
410
],
[
409,
411
],
[
411,
412
],
[
412,
413
],
[
412,
414
],
[
414,
415
],
[
415,
416
],
[
414,
417
],
[
414,
418
],
[
418,
419
],
[
418,
420
],
[
414,
421
],
[
411,
422
],
[
422,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
422,
427
],
[
427,
428
],
[
428,
429
],
[
428,
430
],
[
427,
431
],
[
431,
432
],
[
128,
433
],
[
433,
434
],
[
433,
435
],
[
435,
436
],
[
436,
437
],
[
437,
438
],
[
437,
439
],
[
436,
440
],
[
440,
441
],
[
435,
442
],
[
442,
443
],
[
443,
444
],
[
443,
445
],
[
445,
446
],
[
128,
447
],
[
447,
448
],
[
447,
449
],
[
449,
450
],
[
450,
451
],
[
451,
452
],
[
451,
453
],
[
450,
454
],
[
449,
455
],
[
455,
456
],
[
456,
457
],
[
0,
458
],
[
458,
459
],
[
458,
460
]
] |
[
"/*input\n15\n*/\n\n\n\n\nimport java.math.*;\nimport java.io.*;\nimport java.util.*;\npublic class Main\n{\n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead;\npublic Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic 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 }\npublic 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 }\npublic 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');\nif (neg) \n return -ret; \n return ret; \n }\npublic 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 }\npublic 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();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (neg) \n return -ret; \n return ret; \n }\nprivate void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }\nprivate byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }\npublic void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n\n\n\n\n\n static Reader sc=new Reader();\n static BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out));\n\n public static void main(String args[])throws IOException\n {\n /*\n * For integer input: int n=inputInt();\n * For long input: long n=inputLong();\n * For double input: double n=inputDouble();\n * For String input: String s=inputString();\n * Logic goes here\n * For printing without space: print(a+\"\"); where a is a variable of any datatype\n * For printing with space: printSp(a+\"\"); where a is a variable of any datatype\n * For printing with new line: println(a+\"\"); where a is a variable of any datatype\n */\n\n\nint n=inputInt();\nlong sum=0;\nfor(int i=1;i<=n;i++)\n{\n\tif(i%3!=0 && i%5!=0 )\n\t\tsum+=i;\n} \nprintln(sum+\"\");\n bw.flush();\n bw.close();\n\n\t}\n \n\n public static int inputInt()throws IOException\n {\n return sc.nextInt();\n }\n public static long inputLong()throws IOException\n {\n return sc.nextLong();\n }\n public static double inputDouble()throws IOException\n {\n return sc.nextDouble();\n }\n public static String inputString()throws IOException\n {\n return sc.readLine();\n }\n public static void print(String a)throws IOException\n {\n bw.write(a);\n }\n public static void printSp(String a)throws IOException\n {\n bw.write(a+\" \");\n }\n public static void println(String a)throws IOException\n {\n bw.write(a+\"\\n\");\n }\n}",
"import java.math.*;",
"math.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead;\npublic Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic 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 }\npublic 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 }\npublic 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');\nif (neg) \n return -ret; \n return ret; \n }\npublic 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 }\npublic 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();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (neg) \n return -ret; \n return ret; \n }\nprivate void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }\nprivate byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }\npublic void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n\n\n\n\n\n static Reader sc=new Reader();\n static BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out));\n\n public static void main(String args[])throws IOException\n {\n /*\n * For integer input: int n=inputInt();\n * For long input: long n=inputLong();\n * For double input: double n=inputDouble();\n * For String input: String s=inputString();\n * Logic goes here\n * For printing without space: print(a+\"\"); where a is a variable of any datatype\n * For printing with space: printSp(a+\"\"); where a is a variable of any datatype\n * For printing with new line: println(a+\"\"); where a is a variable of any datatype\n */\n\n\nint n=inputInt();\nlong sum=0;\nfor(int i=1;i<=n;i++)\n{\n\tif(i%3!=0 && i%5!=0 )\n\t\tsum+=i;\n} \nprintln(sum+\"\");\n bw.flush();\n bw.close();\n\n\t}\n \n\n public static int inputInt()throws IOException\n {\n return sc.nextInt();\n }\n public static long inputLong()throws IOException\n {\n return sc.nextLong();\n }\n public static double inputDouble()throws IOException\n {\n return sc.nextDouble();\n }\n public static String inputString()throws IOException\n {\n return sc.readLine();\n }\n public static void print(String a)throws IOException\n {\n bw.write(a);\n }\n public static void printSp(String a)throws IOException\n {\n bw.write(a+\" \");\n }\n public static void println(String a)throws IOException\n {\n bw.write(a+\"\\n\");\n }\n}",
"Main",
"static Reader sc=new Reader();",
"sc",
"new Reader()",
"static BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out));",
"bw",
"new BufferedWriter(new OutputStreamWriter(System.out))",
"public static void main(String args[])throws IOException\n {\n /*\n * For integer input: int n=inputInt();\n * For long input: long n=inputLong();\n * For double input: double n=inputDouble();\n * For String input: String s=inputString();\n * Logic goes here\n * For printing without space: print(a+\"\"); where a is a variable of any datatype\n * For printing with space: printSp(a+\"\"); where a is a variable of any datatype\n * For printing with new line: println(a+\"\"); where a is a variable of any datatype\n */\n\n\nint n=inputInt();\nlong sum=0;\nfor(int i=1;i<=n;i++)\n{\n\tif(i%3!=0 && i%5!=0 )\n\t\tsum+=i;\n} \nprintln(sum+\"\");\n bw.flush();\n bw.close();\n\n\t}",
"main",
"{\n /*\n * For integer input: int n=inputInt();\n * For long input: long n=inputLong();\n * For double input: double n=inputDouble();\n * For String input: String s=inputString();\n * Logic goes here\n * For printing without space: print(a+\"\"); where a is a variable of any datatype\n * For printing with space: printSp(a+\"\"); where a is a variable of any datatype\n * For printing with new line: println(a+\"\"); where a is a variable of any datatype\n */\n\n\nint n=inputInt();\nlong sum=0;\nfor(int i=1;i<=n;i++)\n{\n\tif(i%3!=0 && i%5!=0 )\n\t\tsum+=i;\n} \nprintln(sum+\"\");\n bw.flush();\n bw.close();\n\n\t}",
"int n=inputInt();",
"n",
"inputInt()",
"inputInt",
"long sum=0;",
"sum",
"0",
"for(int i=1;i<=n;i++)\n{\n\tif(i%3!=0 && i%5!=0 )\n\t\tsum+=i;\n}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\tif(i%3!=0 && i%5!=0 )\n\t\tsum+=i;\n}",
"{\n\tif(i%3!=0 && i%5!=0 )\n\t\tsum+=i;\n}",
"if(i%3!=0 && i%5!=0 )\n\t\tsum+=i;",
"i%3!=0 && i%5!=0",
"i%3!=0",
"i%3",
"i",
"3",
"0",
"i%5!=0",
"i%5",
"i",
"5",
"0",
"sum+=i",
"sum",
"i",
"println(sum+\"\")",
"println",
"sum+\"\"",
"sum",
"\"\"",
"bw.flush()",
"bw.flush",
"bw",
"bw.close()",
"bw.close",
"bw",
"String args[]",
"args",
"public static int inputInt()throws IOException\n {\n return sc.nextInt();\n }",
"inputInt",
"{\n return sc.nextInt();\n }",
"return sc.nextInt();",
"sc.nextInt()",
"sc.nextInt",
"sc",
"public static long inputLong()throws IOException\n {\n return sc.nextLong();\n }",
"inputLong",
"{\n return sc.nextLong();\n }",
"return sc.nextLong();",
"sc.nextLong()",
"sc.nextLong",
"sc",
"public static double inputDouble()throws IOException\n {\n return sc.nextDouble();\n }",
"inputDouble",
"{\n return sc.nextDouble();\n }",
"return sc.nextDouble();",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"public static String inputString()throws IOException\n {\n return sc.readLine();\n }",
"inputString",
"{\n return sc.readLine();\n }",
"return sc.readLine();",
"sc.readLine()",
"sc.readLine",
"sc",
"public static void print(String a)throws IOException\n {\n bw.write(a);\n }",
"print",
"{\n bw.write(a);\n }",
"bw.write(a)",
"bw.write",
"bw",
"a",
"String a",
"a",
"public static void printSp(String a)throws IOException\n {\n bw.write(a+\" \");\n }",
"printSp",
"{\n bw.write(a+\" \");\n }",
"bw.write(a+\" \")",
"bw.write",
"bw",
"a+\" \"",
"a",
"\" \"",
"String a",
"a",
"public static void println(String a)throws IOException\n {\n bw.write(a+\"\\n\");\n }",
"println",
"{\n bw.write(a+\"\\n\");\n }",
"bw.write(a+\"\\n\")",
"bw.write",
"bw",
"a+\"\\n\"",
"a",
"\"\\n\"",
"String a",
"a",
"static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead;\npublic Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic 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 }\npublic 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 }\npublic 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');\nif (neg) \n return -ret; \n return ret; \n }\npublic 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 }\npublic 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();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (neg) \n return -ret; \n return ret; \n }\nprivate void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }\nprivate byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }\npublic 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');\nif (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');\nif (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();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (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();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (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{\n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead;\npublic Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic 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 }\npublic 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 }\npublic 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');\nif (neg) \n return -ret; \n return ret; \n }\npublic 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 }\npublic 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();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (neg) \n return -ret; \n return ret; \n }\nprivate void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }\nprivate byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }\npublic void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n\n\n\n\n\n static Reader sc=new Reader();\n static BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out));\n\n public static void main(String args[])throws IOException\n {\n /*\n * For integer input: int n=inputInt();\n * For long input: long n=inputLong();\n * For double input: double n=inputDouble();\n * For String input: String s=inputString();\n * Logic goes here\n * For printing without space: print(a+\"\"); where a is a variable of any datatype\n * For printing with space: printSp(a+\"\"); where a is a variable of any datatype\n * For printing with new line: println(a+\"\"); where a is a variable of any datatype\n */\n\n\nint n=inputInt();\nlong sum=0;\nfor(int i=1;i<=n;i++)\n{\n\tif(i%3!=0 && i%5!=0 )\n\t\tsum+=i;\n} \nprintln(sum+\"\");\n bw.flush();\n bw.close();\n\n\t}\n \n\n public static int inputInt()throws IOException\n {\n return sc.nextInt();\n }\n public static long inputLong()throws IOException\n {\n return sc.nextLong();\n }\n public static double inputDouble()throws IOException\n {\n return sc.nextDouble();\n }\n public static String inputString()throws IOException\n {\n return sc.readLine();\n }\n public static void print(String a)throws IOException\n {\n bw.write(a);\n }\n public static void printSp(String a)throws IOException\n {\n bw.write(a+\" \");\n }\n public static void println(String a)throws IOException\n {\n bw.write(a+\"\\n\");\n }\n}",
"public class Main\n{\n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead;\npublic Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic 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 }\npublic 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 }\npublic 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');\nif (neg) \n return -ret; \n return ret; \n }\npublic 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 }\npublic 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();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (neg) \n return -ret; \n return ret; \n }\nprivate void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }\nprivate byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }\npublic void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n\n\n\n\n\n static Reader sc=new Reader();\n static BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out));\n\n public static void main(String args[])throws IOException\n {\n /*\n * For integer input: int n=inputInt();\n * For long input: long n=inputLong();\n * For double input: double n=inputDouble();\n * For String input: String s=inputString();\n * Logic goes here\n * For printing without space: print(a+\"\"); where a is a variable of any datatype\n * For printing with space: printSp(a+\"\"); where a is a variable of any datatype\n * For printing with new line: println(a+\"\"); where a is a variable of any datatype\n */\n\n\nint n=inputInt();\nlong sum=0;\nfor(int i=1;i<=n;i++)\n{\n\tif(i%3!=0 && i%5!=0 )\n\t\tsum+=i;\n} \nprintln(sum+\"\");\n bw.flush();\n bw.close();\n\n\t}\n \n\n public static int inputInt()throws IOException\n {\n return sc.nextInt();\n }\n public static long inputLong()throws IOException\n {\n return sc.nextLong();\n }\n public static double inputDouble()throws IOException\n {\n return sc.nextDouble();\n }\n public static String inputString()throws IOException\n {\n return sc.readLine();\n }\n public static void print(String a)throws IOException\n {\n bw.write(a);\n }\n public static void printSp(String a)throws IOException\n {\n bw.write(a+\" \");\n }\n public static void println(String a)throws IOException\n {\n bw.write(a+\"\\n\");\n }\n}",
"Main"
] |
/*input
15
*/
import java.math.*;
import java.io.*;
import java.util.*;
public class Main
{
static class Reader
{
final private int BUFFER_SIZE = 1 << 16;
private DataInputStream din;
private byte[] buffer;
private int bufferPointer, bytesRead;
public Reader()
{
din = new DataInputStream(System.in);
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public Reader(String file_name) throws IOException
{
din = new DataInputStream(new FileInputStream(file_name));
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public String readLine() throws IOException
{
byte[] buf = new byte[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();
}
}
static Reader sc=new Reader();
static BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out));
public static void main(String args[])throws IOException
{
/*
* For integer input: int n=inputInt();
* For long input: long n=inputLong();
* For double input: double n=inputDouble();
* For String input: String s=inputString();
* Logic goes here
* For printing without space: print(a+""); where a is a variable of any datatype
* For printing with space: printSp(a+""); where a is a variable of any datatype
* For printing with new line: println(a+""); where a is a variable of any datatype
*/
int n=inputInt();
long sum=0;
for(int i=1;i<=n;i++)
{
if(i%3!=0 && i%5!=0 )
sum+=i;
}
println(sum+"");
bw.flush();
bw.close();
}
public static int inputInt()throws IOException
{
return sc.nextInt();
}
public static long inputLong()throws IOException
{
return sc.nextLong();
}
public static double inputDouble()throws IOException
{
return sc.nextDouble();
}
public static String inputString()throws IOException
{
return sc.readLine();
}
public static void print(String a)throws IOException
{
bw.write(a);
}
public static void printSp(String a)throws IOException
{
bw.write(a+" ");
}
public static void println(String a)throws IOException
{
bw.write(a+"\n");
}
}
|
[
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,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
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
] |
[
[
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
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
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
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
42,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
14,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
12,
64
],
[
64,
65
],
[
10,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
66,
70
],
[
70,
71
],
[
66,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
66,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
81,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
91,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
80,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
66,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
66,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
122,
123
],
[
66,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
66,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
139,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
135,
152
],
[
152,
153
]
] |
[
"import java.io.*;\nimport java.util.*;\nimport java.lang.*;\n\nclass Main {\n 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 }\n public static void main(String[] args) {\n FastReader ob = new FastReader();\n int t = ob.nextInt();\n long ans=0;\n int num=3;\n for (int i = 1; i <=t ;i++ ) {\n if(i%3!=0 && i%5!=0){\n ans+=i;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"class Main {\n 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 }\n public static void main(String[] args) {\n FastReader ob = new FastReader();\n int t = ob.nextInt();\n long ans=0;\n int num=3;\n for (int i = 1; i <=t ;i++ ) {\n if(i%3!=0 && i%5!=0){\n ans+=i;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n FastReader ob = new FastReader();\n int t = ob.nextInt();\n long ans=0;\n int num=3;\n for (int i = 1; i <=t ;i++ ) {\n if(i%3!=0 && i%5!=0){\n ans+=i;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n FastReader ob = new FastReader();\n int t = ob.nextInt();\n long ans=0;\n int num=3;\n for (int i = 1; i <=t ;i++ ) {\n if(i%3!=0 && i%5!=0){\n ans+=i;\n }\n }\n System.out.println(ans);\n }",
"FastReader ob = new FastReader();",
"ob",
"new FastReader()",
"int t = ob.nextInt();",
"t",
"ob.nextInt()",
"ob.nextInt",
"ob",
"long ans=0;",
"ans",
"0",
"int num=3;",
"num",
"3",
"for (int i = 1; i <=t ;i++ ) {\n if(i%3!=0 && i%5!=0){\n ans+=i;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <=t",
"i",
"t",
"i++",
"i++",
"i",
"{\n if(i%3!=0 && i%5!=0){\n ans+=i;\n }\n }",
"{\n if(i%3!=0 && i%5!=0){\n ans+=i;\n }\n }",
"if(i%3!=0 && i%5!=0){\n ans+=i;\n }",
"i%3!=0 && i%5!=0",
"i%3!=0",
"i%3",
"i",
"3",
"0",
"i%5!=0",
"i%5",
"i",
"5",
"0",
"{\n ans+=i;\n }",
"ans+=i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"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"
] |
import java.io.*;
import java.util.*;
import java.lang.*;
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 ob = new FastReader();
int t = ob.nextInt();
long ans=0;
int num=3;
for (int i = 1; i <=t ;i++ ) {
if(i%3!=0 && i%5!=0){
ans+=i;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
68,
8
],
[
68,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
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
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
42,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
11,
62
],
[
62,
63
],
[
63,
64
],
[
9,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n int n = Integer.parseInt(br.readLine());\n long ans = 0;\n \n for(int i = 1; i <= n; i++){\n if((i % 3 != 0) && (i % 5 != 0)){\n ans += i;\n }\n }\n \n out.println(ans);\n out.close();\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n int n = Integer.parseInt(br.readLine());\n long ans = 0;\n \n for(int i = 1; i <= n; i++){\n if((i % 3 != 0) && (i % 5 != 0)){\n ans += i;\n }\n }\n \n out.println(ans);\n out.close();\n \n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n int n = Integer.parseInt(br.readLine());\n long ans = 0;\n \n for(int i = 1; i <= n; i++){\n if((i % 3 != 0) && (i % 5 != 0)){\n ans += i;\n }\n }\n \n out.println(ans);\n out.close();\n \n }",
"main",
"{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n int n = Integer.parseInt(br.readLine());\n long ans = 0;\n \n for(int i = 1; i <= n; i++){\n if((i % 3 != 0) && (i % 5 != 0)){\n ans += i;\n }\n }\n \n out.println(ans);\n out.close();\n \n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));",
"out",
"new PrintWriter(new OutputStreamWriter(System.out))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"long ans = 0;",
"ans",
"0",
"for(int i = 1; i <= n; i++){\n if((i % 3 != 0) && (i % 5 != 0)){\n ans += i;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if((i % 3 != 0) && (i % 5 != 0)){\n ans += i;\n }\n }",
"{\n if((i % 3 != 0) && (i % 5 != 0)){\n ans += i;\n }\n }",
"if((i % 3 != 0) && (i % 5 != 0)){\n ans += i;\n }",
"(i % 3 != 0) && (i % 5 != 0)",
"(i % 3 != 0)",
"i % 3",
"i",
"3",
"0",
"(i % 5 != 0)",
"i % 5",
"i",
"5",
"0",
"{\n ans += i;\n }",
"ans += i",
"ans",
"i",
"out.println(ans)",
"out.println",
"out",
"ans",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n int n = Integer.parseInt(br.readLine());\n long ans = 0;\n \n for(int i = 1; i <= n; i++){\n if((i % 3 != 0) && (i % 5 != 0)){\n ans += i;\n }\n }\n \n out.println(ans);\n out.close();\n \n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n int n = Integer.parseInt(br.readLine());\n long ans = 0;\n \n for(int i = 1; i <= n; i++){\n if((i % 3 != 0) && (i % 5 != 0)){\n ans += i;\n }\n }\n \n out.println(ans);\n out.close();\n \n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
int n = Integer.parseInt(br.readLine());
long ans = 0;
for(int i = 1; i <= n; i++){
if((i % 3 != 0) && (i % 5 != 0)){
ans += i;
}
}
out.println(ans);
out.close();
}
}
|
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
2,
2,
2,
13,
17,
17,
2,
13,
17,
2,
13,
17,
29,
17,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
210,
14
],
[
210,
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
],
[
17,
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
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
42,
54
],
[
42,
55
],
[
55,
56
],
[
55,
57
],
[
17,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
15,
64
],
[
64,
65
],
[
210,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
83,
85
],
[
76,
86
],
[
86,
87
],
[
86,
88
],
[
75,
89
],
[
89,
90
],
[
75,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
92,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
92,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
109,
115
],
[
115,
116
],
[
91,
117
],
[
117,
118
],
[
66,
119
],
[
119,
120
],
[
210,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
121,
125
],
[
125,
126
],
[
121,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
121,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
136,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
146,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
135,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
121,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
168,
169
],
[
121,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
174,
177
],
[
177,
178
],
[
121,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
186,
187
],
[
121,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
194,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
190,
207
],
[
207,
208
],
[
0,
209
],
[
209,
210
],
[
209,
211
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n FastReader s = new FastReader();\n int N = s.nextInt();\n long count=0;\n for(int i=1;i<=N;i++){\n if(i%5==0 ||i%3==0)\n continue;\n else\n count+=i;\n }\n System.out.println(count);\n }\n\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}",
"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 public static void main(String[] args) {\n FastReader s = new FastReader();\n int N = s.nextInt();\n long count=0;\n for(int i=1;i<=N;i++){\n if(i%5==0 ||i%3==0)\n continue;\n else\n count+=i;\n }\n System.out.println(count);\n }\n\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}",
"Main",
"public static void main(String[] args) {\n FastReader s = new FastReader();\n int N = s.nextInt();\n long count=0;\n for(int i=1;i<=N;i++){\n if(i%5==0 ||i%3==0)\n continue;\n else\n count+=i;\n }\n System.out.println(count);\n }",
"main",
"{\n FastReader s = new FastReader();\n int N = s.nextInt();\n long count=0;\n for(int i=1;i<=N;i++){\n if(i%5==0 ||i%3==0)\n continue;\n else\n count+=i;\n }\n System.out.println(count);\n }",
"FastReader s = new FastReader();",
"s",
"new FastReader()",
"int N = s.nextInt();",
"N",
"s.nextInt()",
"s.nextInt",
"s",
"long count=0;",
"count",
"0",
"for(int i=1;i<=N;i++){\n if(i%5==0 ||i%3==0)\n continue;\n else\n count+=i;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if(i%5==0 ||i%3==0)\n continue;\n else\n count+=i;\n }",
"{\n if(i%5==0 ||i%3==0)\n continue;\n else\n count+=i;\n }",
"if(i%5==0 ||i%3==0)\n continue;\n else\n count+=i;",
"i%5==0 ||i%3==0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"continue;",
"count+=i",
"count",
"i",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }",
"isPrime",
"{\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }",
"if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"n == 2",
"n",
"2",
"return true;",
"true",
"if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"(n % 2 == 0 && n > 2) || n < 2",
"(n % 2 == 0 && n > 2)",
"n % 2 == 0",
"n % 2",
"n",
"2",
"0",
"n > 2",
"n",
"2",
"n < 2",
"n",
"2",
"return false;",
"false",
"{\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= (int) Math.sqrt(n)",
"i",
"(int) Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"i += 2",
"i += 2",
"i",
"2",
"{\n if (n % i == 0)\n return false;\n }",
"{\n if (n % i == 0)\n return false;\n }",
"if (n % i == 0)\n return false;",
"n % i == 0",
"n % i",
"n",
"i",
"0",
"return false;",
"false",
"return true;",
"true",
"int n",
"n",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n public static void main(String[] args) {\n FastReader s = new FastReader();\n int N = s.nextInt();\n long count=0;\n for(int i=1;i<=N;i++){\n if(i%5==0 ||i%3==0)\n continue;\n else\n count+=i;\n }\n System.out.println(count);\n }\n\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}",
"public class Main {\n public static void main(String[] args) {\n FastReader s = new FastReader();\n int N = s.nextInt();\n long count=0;\n for(int i=1;i<=N;i++){\n if(i%5==0 ||i%3==0)\n continue;\n else\n count+=i;\n }\n System.out.println(count);\n }\n\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}",
"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) {
FastReader s = new FastReader();
int N = s.nextInt();
long count=0;
for(int i=1;i<=N;i++){
if(i%5==0 ||i%3==0)
continue;
else
count+=i;
}
System.out.println(count);
}
private static boolean isPrime(int n) {
if (n == 2)
return true;
else if ((n % 2 == 0 && n > 2) || n < 2)
return false;
else {
for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {
if (n % i == 0)
return false;
}
return true;
}
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
4,
18,
13,
17,
17,
41,
13,
39,
39,
17,
17,
39,
17,
40,
17,
39,
17,
17,
39,
40,
17,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
13,
2,
17,
13,
4,
18,
13,
17,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
42,
2,
13,
13,
30,
4,
13,
13,
13,
13,
40,
13,
40,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
18,
13,
13,
17,
30,
29,
17,
41,
13,
2,
18,
13,
13,
17,
42,
2,
13,
17,
30,
14,
2,
18,
13,
13,
18,
13,
2,
13,
17,
30,
3,
40,
13,
14,
2,
13,
17,
30,
29,
17,
41,
13,
2,
18,
13,
13,
17,
11,
1,
41,
13,
2,
18,
13,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
13,
3,
4,
13,
13,
13,
13,
4,
13,
13,
2,
13,
17,
2,
18,
13,
13,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
13,
17,
29,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
13,
17,
4,
13,
17,
23,
13,
12,
13,
30,
29,
2,
4,
18,
13,
13,
4,
18,
13,
17,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
29,
4,
13,
13,
13,
14,
2,
2,
13,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
444,
14
],
[
444,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
17,
21
],
[
444,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
24,
32
],
[
32,
33
],
[
32,
34
],
[
24,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
444,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
41,
50
],
[
50,
51
],
[
50,
52
],
[
41,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
66,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
41,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
41,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
39,
91
],
[
91,
92
],
[
444,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
95,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
93,
113
],
[
113,
114
],
[
93,
115
],
[
115,
116
],
[
93,
117
],
[
117,
118
],
[
444,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
127,
130
],
[
127,
131
],
[
126,
132
],
[
132,
133
],
[
126,
134
],
[
134,
135
],
[
119,
136
],
[
136,
137
],
[
119,
138
],
[
138,
139
],
[
119,
140
],
[
140,
141
],
[
444,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
145,
151
],
[
151,
152
],
[
152,
153
],
[
144,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
144,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
173,
175
],
[
166,
176
],
[
176,
177
],
[
165,
178
],
[
178,
179
],
[
144,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
184,
185
],
[
185,
186
],
[
144,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
144,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
194,
203
],
[
203,
204
],
[
203,
205
],
[
194,
206
],
[
206,
207
],
[
207,
208
],
[
194,
209
],
[
210,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
216,
217
],
[
216,
218
],
[
211,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
144,
224
],
[
224,
225
],
[
224,
226
],
[
224,
227
],
[
224,
228
],
[
144,
229
],
[
229,
230
],
[
229,
231
],
[
229,
232
],
[
232,
233
],
[
232,
234
],
[
229,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
144,
240
],
[
240,
241
],
[
142,
242
],
[
242,
243
],
[
444,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
251,
256
],
[
256,
257
],
[
256,
258
],
[
251,
259
],
[
259,
260
],
[
260,
261
],
[
251,
262
],
[
263,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
264,
268
],
[
268,
269
],
[
268,
270
],
[
246,
271
],
[
271,
272
],
[
244,
273
],
[
273,
274
],
[
444,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
278,
283
],
[
275,
284
],
[
284,
285
],
[
444,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
289,
292
],
[
293,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
294,
299
],
[
299,
300
],
[
299,
301
],
[
288,
302
],
[
302,
303
],
[
302,
304
],
[
286,
305
],
[
305,
306
],
[
444,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
312,
315
],
[
311,
316
],
[
316,
317
],
[
317,
318
],
[
316,
319
],
[
307,
320
],
[
320,
321
],
[
444,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
331,
334
],
[
324,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
336,
340
],
[
335,
341
],
[
341,
342
],
[
342,
343
],
[
324,
344
],
[
344,
345
],
[
345,
346
],
[
345,
347
],
[
345,
348
],
[
348,
349
],
[
348,
350
],
[
322,
351
],
[
351,
352
],
[
322,
353
],
[
353,
354
],
[
444,
355
],
[
355,
356
],
[
355,
357
],
[
357,
358
],
[
355,
359
],
[
359,
360
],
[
355,
361
],
[
361,
362
],
[
361,
363
],
[
363,
364
],
[
364,
365
],
[
364,
366
],
[
355,
367
],
[
367,
368
],
[
367,
369
],
[
369,
370
],
[
370,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
371,
375
],
[
375,
376
],
[
376,
377
],
[
377,
378
],
[
370,
379
],
[
379,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
380,
387
],
[
387,
388
],
[
388,
389
],
[
388,
390
],
[
369,
391
],
[
391,
392
],
[
392,
393
],
[
393,
394
],
[
355,
395
],
[
395,
396
],
[
395,
397
],
[
397,
398
],
[
398,
399
],
[
399,
400
],
[
400,
401
],
[
399,
402
],
[
402,
403
],
[
355,
404
],
[
404,
405
],
[
404,
406
],
[
406,
407
],
[
407,
408
],
[
408,
409
],
[
409,
410
],
[
408,
411
],
[
411,
412
],
[
355,
413
],
[
413,
414
],
[
413,
415
],
[
415,
416
],
[
416,
417
],
[
417,
418
],
[
418,
419
],
[
417,
420
],
[
420,
421
],
[
355,
422
],
[
422,
423
],
[
422,
424
],
[
424,
425
],
[
425,
426
],
[
425,
427
],
[
424,
428
],
[
428,
429
],
[
429,
430
],
[
429,
431
],
[
431,
432
],
[
432,
433
],
[
433,
434
],
[
428,
435
],
[
435,
436
],
[
436,
437
],
[
436,
438
],
[
438,
439
],
[
439,
440
],
[
424,
441
],
[
441,
442
],
[
0,
443
],
[
443,
444
],
[
443,
445
]
] |
[
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\npublic class Main {\n private static final int MOD = (int) Math.pow(10, 9);\n private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n long sum = 0L;\n\n for (int i = 1; i <= n;i++){\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }\n\n print(\"\"+sum);\n System.exit(0);\n }\n\n static private void swap(int[] nums, int x, int y) {\n int tmp = nums[x];\n nums[x] = nums[y];\n nums[y] = tmp;\n }\n\n static private void reverse(int[] nums, int left, int right) {\n while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }\n }\n\n static private boolean findNextPermutation(int[] nums) {\n if (nums.length <= 1) {\n return false;\n }\n\n int last = nums.length - 2;\n\n while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }\n\n if (last < 0) { return false; }\n int nextGenerater = nums.length - 1;\n\n for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }\n\n swap(nums, nextGenerater, last);\n reverse(nums, last + 1, nums.length - 1);\n return true;\n }\n\n static private int[] generateNArray(int n) {\n int[] res = new int[n];\n\n for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }\n\n return res;\n }\n\n static private void print(String s) {\n System.out.println(s);\n }\n\n static private void printArray(int[] e) {\n for (int s: e) {\n System.out.print(s + \" \");\n }\n print(\"\");\n }\n\n static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }\n\n static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static final int MOD = (int) Math.pow(10, 9);\n private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n long sum = 0L;\n\n for (int i = 1; i <= n;i++){\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }\n\n print(\"\"+sum);\n System.exit(0);\n }\n\n static private void swap(int[] nums, int x, int y) {\n int tmp = nums[x];\n nums[x] = nums[y];\n nums[y] = tmp;\n }\n\n static private void reverse(int[] nums, int left, int right) {\n while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }\n }\n\n static private boolean findNextPermutation(int[] nums) {\n if (nums.length <= 1) {\n return false;\n }\n\n int last = nums.length - 2;\n\n while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }\n\n if (last < 0) { return false; }\n int nextGenerater = nums.length - 1;\n\n for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }\n\n swap(nums, nextGenerater, last);\n reverse(nums, last + 1, nums.length - 1);\n return true;\n }\n\n static private int[] generateNArray(int n) {\n int[] res = new int[n];\n\n for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }\n\n return res;\n }\n\n static private void print(String s) {\n System.out.println(s);\n }\n\n static private void printArray(int[] e) {\n for (int s: e) {\n System.out.print(s + \" \");\n }\n print(\"\");\n }\n\n static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }\n\n static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main",
"private static final int MOD = (int) Math.pow(10, 9);",
"MOD",
"(int) Math.pow(10, 9)",
"Math.pow",
"Math",
"10",
"9",
"private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};",
"DIRS",
"{{0, 1}, {0, -1}, {1, 0}, {-1, 0}}",
"{0, 1}",
"0",
"1",
"{0, -1}",
"0",
"-1",
"1",
"{1, 0}",
"1",
"0",
"{-1, 0}",
"-1",
"1",
"0",
"public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n long sum = 0L;\n\n for (int i = 1; i <= n;i++){\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }\n\n print(\"\"+sum);\n System.exit(0);\n }",
"main",
"{\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n long sum = 0L;\n\n for (int i = 1; i <= n;i++){\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }\n\n print(\"\"+sum);\n System.exit(0);\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0L;",
"sum",
"0L",
"for (int i = 1; i <= n;i++){\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }",
"{\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }",
"if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }",
"i % 3 != 0 && i % 5 != 0",
"i % 3 != 0",
"i % 3",
"i",
"3",
"0",
"i % 5 != 0",
"i % 5",
"i",
"5",
"0",
"{\n sum += i;\n }",
"sum += i",
"sum",
"i",
"print(\"\"+sum)",
"print",
"\"\"+sum",
"\"\"",
"sum",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"static private void swap(int[] nums, int x, int y) {\n int tmp = nums[x];\n nums[x] = nums[y];\n nums[y] = tmp;\n }",
"swap",
"{\n int tmp = nums[x];\n nums[x] = nums[y];\n nums[y] = tmp;\n }",
"int tmp = nums[x];",
"tmp",
"nums[x]",
"nums",
"x",
"nums[x] = nums[y]",
"nums[x]",
"nums",
"x",
"nums[y]",
"nums",
"y",
"nums[y] = tmp",
"nums[y]",
"nums",
"y",
"tmp",
"int[] nums",
"nums",
"int x",
"x",
"int y",
"y",
"static private void reverse(int[] nums, int left, int right) {\n while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }\n }",
"reverse",
"{\n while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }\n }",
"while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }",
"left < right",
"left",
"right",
"{\n swap(nums, left, right);\n left++;\n right--;\n }",
"swap(nums, left, right)",
"swap",
"nums",
"left",
"right",
"left++",
"left",
"right--",
"right",
"int[] nums",
"nums",
"int left",
"left",
"int right",
"right",
"static private boolean findNextPermutation(int[] nums) {\n if (nums.length <= 1) {\n return false;\n }\n\n int last = nums.length - 2;\n\n while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }\n\n if (last < 0) { return false; }\n int nextGenerater = nums.length - 1;\n\n for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }\n\n swap(nums, nextGenerater, last);\n reverse(nums, last + 1, nums.length - 1);\n return true;\n }",
"findNextPermutation",
"{\n if (nums.length <= 1) {\n return false;\n }\n\n int last = nums.length - 2;\n\n while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }\n\n if (last < 0) { return false; }\n int nextGenerater = nums.length - 1;\n\n for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }\n\n swap(nums, nextGenerater, last);\n reverse(nums, last + 1, nums.length - 1);\n return true;\n }",
"if (nums.length <= 1) {\n return false;\n }",
"nums.length <= 1",
"nums.length",
"nums",
"nums.length",
"1",
"{\n return false;\n }",
"return false;",
"false",
"int last = nums.length - 2;",
"last",
"nums.length - 2",
"nums.length",
"nums",
"nums.length",
"2",
"while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }",
"last >= 0",
"last",
"0",
"{\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }",
"if (nums[last] < nums[last + 1]){\n break;\n }",
"nums[last] < nums[last + 1]",
"nums[last]",
"nums",
"last",
"nums[last + 1]",
"nums",
"last + 1",
"last",
"1",
"{\n break;\n }",
"break;",
"last--",
"last",
"if (last < 0) { return false; }",
"last < 0",
"last",
"0",
"{ return false; }",
"return false;",
"false",
"int nextGenerater = nums.length - 1;",
"nextGenerater",
"nums.length - 1",
"nums.length",
"nums",
"nums.length",
"1",
"for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }",
"int i = nums.length - 1;",
"int i = nums.length - 1;",
"i",
"nums.length - 1",
"nums.length",
"nums",
"nums.length",
"1",
"i > last",
"i",
"last",
"i--",
"i--",
"i",
"{\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }",
"{\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }",
"if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }",
"nums[i] > nums[last]",
"nums[i]",
"nums",
"i",
"nums[last]",
"nums",
"last",
"{\n nextGenerater = i;\n break;\n }",
"nextGenerater = i",
"nextGenerater",
"i",
"break;",
"swap(nums, nextGenerater, last)",
"swap",
"nums",
"nextGenerater",
"last",
"reverse(nums, last + 1, nums.length - 1)",
"reverse",
"nums",
"last + 1",
"last",
"1",
"nums.length - 1",
"nums.length",
"nums",
"nums.length",
"1",
"return true;",
"true",
"int[] nums",
"nums",
"static private int[] generateNArray(int n) {\n int[] res = new int[n];\n\n for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }\n\n return res;\n }",
"generateNArray",
"{\n int[] res = new int[n];\n\n for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }\n\n return res;\n }",
"int[] res = new int[n];",
"res",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = i + 1;\n }",
"{\n res[i] = i + 1;\n }",
"res[i] = i + 1",
"res[i]",
"res",
"i",
"i + 1",
"i",
"1",
"return res;",
"res",
"int n",
"n",
"static private void print(String s) {\n System.out.println(s);\n }",
"print",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String s",
"s",
"static private void printArray(int[] e) {\n for (int s: e) {\n System.out.print(s + \" \");\n }\n print(\"\");\n }",
"printArray",
"{\n for (int s: e) {\n System.out.print(s + \" \");\n }\n print(\"\");\n }",
"for (int s: e) {\n System.out.print(s + \" \");\n }",
"int s",
"e",
"{\n System.out.print(s + \" \");\n }",
"{\n System.out.print(s + \" \");\n }",
"System.out.print(s + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"s + \" \"",
"s",
"\" \"",
"print(\"\")",
"print",
"\"\"",
"int[] e",
"e",
"static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }",
"log2",
"{\n return (int)(Math.log(x) / Math.log(2));\n }",
"return (int)(Math.log(x) / Math.log(2));",
"(int)(Math.log(x) / Math.log(2))",
"Math.log(x)",
"Math.log",
"Math",
"x",
"Math.log(2)",
"Math.log",
"Math",
"2",
"int x",
"x",
"static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }",
"gcd",
"{\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }",
"if (m < n) { return gcd(n, m); }",
"m < n",
"m",
"n",
"{ return gcd(n, m); }",
"return gcd(n, m);",
"gcd(n, m)",
"gcd",
"n",
"m",
"if (m % n == 0) { return n; }",
"m % n == 0",
"m % n",
"m",
"n",
"0",
"{ return n; }",
"return n;",
"n",
"return gcd(n, m%n);",
"gcd(n, m%n)",
"gcd",
"n",
"m%n",
"m",
"n",
"long m",
"m",
"long n",
"n",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n private static final int MOD = (int) Math.pow(10, 9);\n private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n long sum = 0L;\n\n for (int i = 1; i <= n;i++){\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }\n\n print(\"\"+sum);\n System.exit(0);\n }\n\n static private void swap(int[] nums, int x, int y) {\n int tmp = nums[x];\n nums[x] = nums[y];\n nums[y] = tmp;\n }\n\n static private void reverse(int[] nums, int left, int right) {\n while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }\n }\n\n static private boolean findNextPermutation(int[] nums) {\n if (nums.length <= 1) {\n return false;\n }\n\n int last = nums.length - 2;\n\n while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }\n\n if (last < 0) { return false; }\n int nextGenerater = nums.length - 1;\n\n for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }\n\n swap(nums, nextGenerater, last);\n reverse(nums, last + 1, nums.length - 1);\n return true;\n }\n\n static private int[] generateNArray(int n) {\n int[] res = new int[n];\n\n for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }\n\n return res;\n }\n\n static private void print(String s) {\n System.out.println(s);\n }\n\n static private void printArray(int[] e) {\n for (int s: e) {\n System.out.print(s + \" \");\n }\n print(\"\");\n }\n\n static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }\n\n static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"public class Main {\n private static final int MOD = (int) Math.pow(10, 9);\n private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n long sum = 0L;\n\n for (int i = 1; i <= n;i++){\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }\n\n print(\"\"+sum);\n System.exit(0);\n }\n\n static private void swap(int[] nums, int x, int y) {\n int tmp = nums[x];\n nums[x] = nums[y];\n nums[y] = tmp;\n }\n\n static private void reverse(int[] nums, int left, int right) {\n while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }\n }\n\n static private boolean findNextPermutation(int[] nums) {\n if (nums.length <= 1) {\n return false;\n }\n\n int last = nums.length - 2;\n\n while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }\n\n if (last < 0) { return false; }\n int nextGenerater = nums.length - 1;\n\n for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }\n\n swap(nums, nextGenerater, last);\n reverse(nums, last + 1, nums.length - 1);\n return true;\n }\n\n static private int[] generateNArray(int n) {\n int[] res = new int[n];\n\n for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }\n\n return res;\n }\n\n static private void print(String s) {\n System.out.println(s);\n }\n\n static private void printArray(int[] e) {\n for (int s: e) {\n System.out.print(s + \" \");\n }\n print(\"\");\n }\n\n static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }\n\n static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
private static final int MOD = (int) Math.pow(10, 9);
private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};
public static void main(String[] args) {
FastReader sc = new FastReader();
int n = sc.nextInt();
long sum = 0L;
for (int i = 1; i <= n;i++){
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
print(""+sum);
System.exit(0);
}
static private void swap(int[] nums, int x, int y) {
int tmp = nums[x];
nums[x] = nums[y];
nums[y] = tmp;
}
static private void reverse(int[] nums, int left, int right) {
while (left < right) {
swap(nums, left, right);
left++;
right--;
}
}
static private boolean findNextPermutation(int[] nums) {
if (nums.length <= 1) {
return false;
}
int last = nums.length - 2;
while (last >= 0) {
if (nums[last] < nums[last + 1]){
break;
}
last--;
}
if (last < 0) { return false; }
int nextGenerater = nums.length - 1;
for (int i = nums.length - 1; i > last; i--) {
if (nums[i] > nums[last]) {
nextGenerater = i;
break;
}
}
swap(nums, nextGenerater, last);
reverse(nums, last + 1, nums.length - 1);
return true;
}
static private int[] generateNArray(int n) {
int[] res = new int[n];
for (int i = 0; i < n; i++) {
res[i] = i + 1;
}
return res;
}
static private void print(String s) {
System.out.println(s);
}
static private void printArray(int[] e) {
for (int s: e) {
System.out.print(s + " ");
}
print("");
}
static private int log2(int x) {
return (int)(Math.log(x) / Math.log(2));
}
static private long gcd(long m, long n) {
if (m < n) { return gcd(n, m); }
if (m % n == 0) { return n; }
return gcd(n, m%n);
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try{
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
32,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.*;\npublic class Main{\n public static void main(String []args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n \n long b = 0;\n for (int i=1;i<=a;i++){\n if ( i % 3 == 0 || i % 5 == 0 ) continue;\n \n b+=i; \n }\n \n System.out.println(b);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String []args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n \n long b = 0;\n for (int i=1;i<=a;i++){\n if ( i % 3 == 0 || i % 5 == 0 ) continue;\n \n b+=i; \n }\n \n System.out.println(b);\n }\n}",
"Main",
"public static void main(String []args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n \n long b = 0;\n for (int i=1;i<=a;i++){\n if ( i % 3 == 0 || i % 5 == 0 ) continue;\n \n b+=i; \n }\n \n System.out.println(b);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n \n long b = 0;\n for (int i=1;i<=a;i++){\n if ( i % 3 == 0 || i % 5 == 0 ) continue;\n \n b+=i; \n }\n \n System.out.println(b);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int a = scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long b = 0;",
"b",
"0",
"for (int i=1;i<=a;i++){\n if ( i % 3 == 0 || i % 5 == 0 ) continue;\n \n b+=i; \n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=a",
"i",
"a",
"i++",
"i++",
"i",
"{\n if ( i % 3 == 0 || i % 5 == 0 ) continue;\n \n b+=i; \n }",
"{\n if ( i % 3 == 0 || i % 5 == 0 ) continue;\n \n b+=i; \n }",
"if ( i % 3 == 0 || i % 5 == 0 ) continue;",
"i % 3 == 0 || i % 5 == 0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"continue;",
"b+=i",
"b",
"i",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"String []args",
"args",
"public class Main{\n public static void main(String []args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n \n long b = 0;\n for (int i=1;i<=a;i++){\n if ( i % 3 == 0 || i % 5 == 0 ) continue;\n \n b+=i; \n }\n \n System.out.println(b);\n }\n}",
"public class Main{\n public static void main(String []args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n \n long b = 0;\n for (int i=1;i<=a;i++){\n if ( i % 3 == 0 || i % 5 == 0 ) continue;\n \n b+=i; \n }\n \n System.out.println(b);\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String []args){
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
long b = 0;
for (int i=1;i<=a;i++){
if ( i % 3 == 0 || i % 5 == 0 ) continue;
b+=i;
}
System.out.println(b);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
0,
13,
13,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
102,
17
],
[
102,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
102,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
55,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
76,
88
],
[
88,
89
],
[
88,
90
],
[
55,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
53,
95
],
[
95,
96
],
[
53,
97
],
[
97,
98
],
[
53,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author silviase\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 BFizzBuzzSum solver = new BFizzBuzzSum();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BFizzBuzzSum {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n long sum = 0;\n for (int i = 1; i <= n; i++) if (i % 3 != 0 && i % 5 != 0) sum += i;\n out.println(sum);\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BFizzBuzzSum solver = new BFizzBuzzSum();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BFizzBuzzSum {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n long sum = 0;\n for (int i = 1; i <= n; i++) if (i % 3 != 0 && i % 5 != 0) sum += i;\n out.println(sum);\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 BFizzBuzzSum solver = new BFizzBuzzSum();\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 BFizzBuzzSum solver = new BFizzBuzzSum();\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)",
"BFizzBuzzSum solver = new BFizzBuzzSum();",
"solver",
"new BFizzBuzzSum()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BFizzBuzzSum {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n long sum = 0;\n for (int i = 1; i <= n; i++) if (i % 3 != 0 && i % 5 != 0) sum += i;\n out.println(sum);\n }\n\n }",
"BFizzBuzzSum",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n long sum = 0;\n for (int i = 1; i <= n; i++) if (i % 3 != 0 && i % 5 != 0) sum += i;\n out.println(sum);\n }",
"solve",
"{\n int n = in.nextInt();\n long sum = 0;\n for (int i = 1; i <= n; i++) if (i % 3 != 0 && i % 5 != 0) sum += i;\n out.println(sum);\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"long sum = 0;",
"sum",
"0",
"for (int i = 1; i <= n; i++) if (i % 3 != 0 && i % 5 != 0) sum += i;",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"if (i % 3 != 0 && i % 5 != 0) sum += i;",
"if (i % 3 != 0 && i % 5 != 0) sum += i;",
"i % 3 != 0 && i % 5 != 0",
"i % 3 != 0",
"i % 3",
"i",
"3",
"0",
"i % 5 != 0",
"i % 5",
"i",
"5",
"0",
"sum += i",
"sum",
"i",
"out.println(sum)",
"out.println",
"out",
"sum",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BFizzBuzzSum solver = new BFizzBuzzSum();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BFizzBuzzSum {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n long sum = 0;\n for (int i = 1; i <= n; i++) if (i % 3 != 0 && i % 5 != 0) sum += i;\n out.println(sum);\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 BFizzBuzzSum solver = new BFizzBuzzSum();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BFizzBuzzSum {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n long sum = 0;\n for (int i = 1; i <= n; i++) if (i % 3 != 0 && i % 5 != 0) sum += i;\n out.println(sum);\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author silviase
*/
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);
BFizzBuzzSum solver = new BFizzBuzzSum();
solver.solve(1, in, out);
out.close();
}
static class BFizzBuzzSum {
public void solve(int testNumber, Scanner in, PrintWriter out) {
int n = in.nextInt();
long sum = 0;
for (int i = 1; i <= n; i++) if (i % 3 != 0 && i % 5 != 0) sum += i;
out.println(sum);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"\n\t\n\n\nimport java.util.*; \n\tpublic class Main {\n\tpublic static void main( String[] args) {\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tScanner in = new Scanner(System.in);\n\t\t\t\t\tlong a = in.nextInt();\n\t\t\t\t\tlong s = 0;\n\t\t\t\t\t\n\t\t\t\t\tfor(long i = 1;i<=a;i++) {\n\t\t\t\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\t\t\t\ts += i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\t\n\t\t\t}}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main( String[] args) {\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tScanner in = new Scanner(System.in);\n\t\t\t\t\tlong a = in.nextInt();\n\t\t\t\t\tlong s = 0;\n\t\t\t\t\t\n\t\t\t\t\tfor(long i = 1;i<=a;i++) {\n\t\t\t\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\t\t\t\ts += i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\t\n\t\t\t}}",
"Main",
"public static void main( String[] args) {\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tScanner in = new Scanner(System.in);\n\t\t\t\t\tlong a = in.nextInt();\n\t\t\t\t\tlong s = 0;\n\t\t\t\t\t\n\t\t\t\t\tfor(long i = 1;i<=a;i++) {\n\t\t\t\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\t\t\t\ts += i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\t\n\t\t\t}",
"main",
"{\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tScanner in = new Scanner(System.in);\n\t\t\t\t\tlong a = in.nextInt();\n\t\t\t\t\tlong s = 0;\n\t\t\t\t\t\n\t\t\t\t\tfor(long i = 1;i<=a;i++) {\n\t\t\t\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\t\t\t\ts += i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\t\n\t\t\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"long a = in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"long s = 0;",
"s",
"0",
"for(long i = 1;i<=a;i++) {\n\t\t\t\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\t\t\t\ts += i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"long i = 1;",
"long i = 1;",
"i",
"1",
"i<=a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\t\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\t\t\t\ts += i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\t\t\t\ts += i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"if(i%3 != 0 && i%5 != 0) {\n\t\t\t\t\t\t\ts += i;\n\t\t\t\t\t\t}",
"i%3 != 0 && i%5 != 0",
"i%3 != 0",
"i%3",
"i",
"3",
"0",
"i%5 != 0",
"i%5",
"i",
"5",
"0",
"{\n\t\t\t\t\t\t\ts += i;\n\t\t\t\t\t\t}",
"s += i",
"s",
"i",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"public class Main {\n\tpublic static void main( String[] args) {\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tScanner in = new Scanner(System.in);\n\t\t\t\t\tlong a = in.nextInt();\n\t\t\t\t\tlong s = 0;\n\t\t\t\t\t\n\t\t\t\t\tfor(long i = 1;i<=a;i++) {\n\t\t\t\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\t\t\t\ts += i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\t\n\t\t\t}}",
"public class Main {\n\tpublic static void main( String[] args) {\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tScanner in = new Scanner(System.in);\n\t\t\t\t\tlong a = in.nextInt();\n\t\t\t\t\tlong s = 0;\n\t\t\t\t\t\n\t\t\t\t\tfor(long i = 1;i<=a;i++) {\n\t\t\t\t\t\tif(i%3 != 0 && i%5 != 0) {\n\t\t\t\t\t\t\ts += i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\t\n\t\t\t}}",
"Main"
] |
import java.util.*;
public class Main {
public static void main( String[] args) {
Scanner in = new Scanner(System.in);
long a = in.nextInt();
long s = 0;
for(long i = 1;i<=a;i++) {
if(i%3 != 0 && i%5 != 0) {
s += i;
}
}
System.out.println(s);
}}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
0,
13,
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
],
[
66,
11
],
[
66,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
41,
53
],
[
41,
54
],
[
54,
55
],
[
54,
56
],
[
14,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
12,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] |
[
"import java.io.*;\nimport java.lang.*;\nimport java.util.*;\npublic class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int N=Integer.parseInt(br.readLine());\n long sum=0;\n for(int i=1;i<=N;i++)\n if(i%3==0 || i%5==0) continue;\n else sum+=i;\n System.out.println(sum);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int N=Integer.parseInt(br.readLine());\n long sum=0;\n for(int i=1;i<=N;i++)\n if(i%3==0 || i%5==0) continue;\n else sum+=i;\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int N=Integer.parseInt(br.readLine());\n long sum=0;\n for(int i=1;i<=N;i++)\n if(i%3==0 || i%5==0) continue;\n else sum+=i;\n System.out.println(sum);\n }",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int N=Integer.parseInt(br.readLine());\n long sum=0;\n for(int i=1;i<=N;i++)\n if(i%3==0 || i%5==0) continue;\n else sum+=i;\n System.out.println(sum);\n }",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int N=Integer.parseInt(br.readLine());",
"N",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"long sum=0;",
"sum",
"0",
"for(int i=1;i<=N;i++)\n if(i%3==0 || i%5==0) continue;\n else sum+=i;",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"if(i%3==0 || i%5==0) continue;\n else sum+=i;",
"if(i%3==0 || i%5==0) continue;\n else sum+=i;",
"i%3==0 || i%5==0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"continue;",
"sum+=i",
"sum",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int N=Integer.parseInt(br.readLine());\n long sum=0;\n for(int i=1;i<=N;i++)\n if(i%3==0 || i%5==0) continue;\n else sum+=i;\n System.out.println(sum);\n }\n}",
"public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int N=Integer.parseInt(br.readLine());\n long sum=0;\n for(int i=1;i<=N;i++)\n if(i%3==0 || i%5==0) continue;\n else sum+=i;\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.io.*;
import java.lang.*;
import java.util.*;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int N=Integer.parseInt(br.readLine());
long sum=0;
for(int i=1;i<=N;i++)
if(i%3==0 || i%5==0) continue;
else sum+=i;
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
17,
17,
14,
2,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
40,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
14,
40,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
22,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
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
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
45,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
59,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
31,
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 \n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n \n\t\t//FizzBuzz列の項目数\n\t\tint N=sc.nextInt();\n\t\tlong count=0;\n\t\tint constraints=(int)Math.pow(10, 6);\n\t\t\n\t\tif(N<=constraints) {\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tif(!(i%3==0&&i%5==0)) {\n\t\t\t\tif(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}\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\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n \n\t\t//FizzBuzz列の項目数\n\t\tint N=sc.nextInt();\n\t\tlong count=0;\n\t\tint constraints=(int)Math.pow(10, 6);\n\t\t\n\t\tif(N<=constraints) {\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tif(!(i%3==0&&i%5==0)) {\n\t\t\t\tif(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}\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\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n \n\t\t//FizzBuzz列の項目数\n\t\tint N=sc.nextInt();\n\t\tlong count=0;\n\t\tint constraints=(int)Math.pow(10, 6);\n\t\t\n\t\tif(N<=constraints) {\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tif(!(i%3==0&&i%5==0)) {\n\t\t\t\tif(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n }",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n \n\t\t//FizzBuzz列の項目数\n\t\tint N=sc.nextInt();\n\t\tlong count=0;\n\t\tint constraints=(int)Math.pow(10, 6);\n\t\t\n\t\tif(N<=constraints) {\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tif(!(i%3==0&&i%5==0)) {\n\t\t\t\tif(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N=sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long count=0;",
"count",
"0",
"int constraints=(int)Math.pow(10, 6);",
"constraints",
"(int)Math.pow(10, 6)",
"Math.pow",
"Math",
"10",
"6",
"if(N<=constraints) {\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tif(!(i%3==0&&i%5==0)) {\n\t\t\t\tif(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"N<=constraints",
"N",
"constraints",
"{\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tif(!(i%3==0&&i%5==0)) {\n\t\t\t\tif(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"for(int i=1;i<=N;i++) {\n\t\t\tif(!(i%3==0&&i%5==0)) {\n\t\t\t\tif(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tif(!(i%3==0&&i%5==0)) {\n\t\t\t\tif(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(!(i%3==0&&i%5==0)) {\n\t\t\t\tif(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if(!(i%3==0&&i%5==0)) {\n\t\t\t\tif(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}\n\t\t\t}",
"!(i%3==0&&i%5==0)",
"(i%3==0&&i%5==0)",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"{\n\t\t\t\tif(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}\n\t\t\t}",
"if(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}",
"!(i%3==0||i%5==0)",
"(i%3==0||i%5==0)",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"{\n\t\t\t\t\tcount+=i;\n\t\t\t\t}",
"count+=i",
"count",
"i",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main{\n \n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n \n\t\t//FizzBuzz列の項目数\n\t\tint N=sc.nextInt();\n\t\tlong count=0;\n\t\tint constraints=(int)Math.pow(10, 6);\n\t\t\n\t\tif(N<=constraints) {\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tif(!(i%3==0&&i%5==0)) {\n\t\t\t\tif(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}\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\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n \n\t\t//FizzBuzz列の項目数\n\t\tint N=sc.nextInt();\n\t\tlong count=0;\n\t\tint constraints=(int)Math.pow(10, 6);\n\t\t\n\t\tif(N<=constraints) {\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tif(!(i%3==0&&i%5==0)) {\n\t\t\t\tif(!(i%3==0||i%5==0)) {\n\t\t\t\t\tcount+=i;\n\t\t\t\t}\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) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc=new Scanner(System.in);
//FizzBuzz列の項目数
int N=sc.nextInt();
long count=0;
int constraints=(int)Math.pow(10, 6);
if(N<=constraints) {
for(int i=1;i<=N;i++) {
if(!(i%3==0&&i%5==0)) {
if(!(i%3==0||i%5==0)) {
count+=i;
}
}
}
System.out.println(count);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
0,
13,
4,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
14,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
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
],
[
142,
8
],
[
142,
9
],
[
9,
10
],
[
9,
11
],
[
142,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
39,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
37,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
14,
59
],
[
59,
60
],
[
59,
61
],
[
12,
62
],
[
62,
63
],
[
142,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
72,
73
],
[
142,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
142,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
142,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
99,
100
],
[
142,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
109,
110
],
[
142,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
111,
128
],
[
128,
129
],
[
142,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
130,
139
],
[
139,
140
],
[
0,
141
],
[
141,
142
],
[
141,
143
]
] |
[
"import java.util.Arrays;\nimport java.util.Scanner;\npublic class Main{\n public static Scanner scan = new Scanner(System.in);\n public static void main(String[]args){\n long n;\n n = nextLong();\n Long sum = 0L;\n for(long i = 1;i<=n;i++){\n if(i%3!=0&&i%5!=0&&i%15!=0){\n sum+=i;\n }\n }\n print(sum);\n }\n\n\n\n public static int nextInt(){\n return Integer.parseInt(scan.next());\n }\n public static long nextLong(){\n return Long.parseLong(scan.next());\n }\n public static String next(){\n return scan.next();\n }\n public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }\n public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }\n\n //Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n public static void print(Object a){\n System.out.println(a);\n }\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static Scanner scan = new Scanner(System.in);\n public static void main(String[]args){\n long n;\n n = nextLong();\n Long sum = 0L;\n for(long i = 1;i<=n;i++){\n if(i%3!=0&&i%5!=0&&i%15!=0){\n sum+=i;\n }\n }\n print(sum);\n }\n\n\n\n public static int nextInt(){\n return Integer.parseInt(scan.next());\n }\n public static long nextLong(){\n return Long.parseLong(scan.next());\n }\n public static String next(){\n return scan.next();\n }\n public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }\n public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }\n\n //Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n public static void print(Object a){\n System.out.println(a);\n }\n}",
"Main",
"public static Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"public static void main(String[]args){\n long n;\n n = nextLong();\n Long sum = 0L;\n for(long i = 1;i<=n;i++){\n if(i%3!=0&&i%5!=0&&i%15!=0){\n sum+=i;\n }\n }\n print(sum);\n }",
"main",
"{\n long n;\n n = nextLong();\n Long sum = 0L;\n for(long i = 1;i<=n;i++){\n if(i%3!=0&&i%5!=0&&i%15!=0){\n sum+=i;\n }\n }\n print(sum);\n }",
"long n;",
"n",
"n = nextLong()",
"n",
"nextLong()",
"nextLong",
"Long sum = 0L;",
"sum",
"0L",
"for(long i = 1;i<=n;i++){\n if(i%3!=0&&i%5!=0&&i%15!=0){\n sum+=i;\n }\n }",
"long i = 1;",
"long i = 1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i%3!=0&&i%5!=0&&i%15!=0){\n sum+=i;\n }\n }",
"{\n if(i%3!=0&&i%5!=0&&i%15!=0){\n sum+=i;\n }\n }",
"if(i%3!=0&&i%5!=0&&i%15!=0){\n sum+=i;\n }",
"i%3!=0&&i%5!=0&&i%15!=0",
"i%3!=0&&i%5!=0&&i%15!=0",
"i%3!=0",
"i%3",
"i",
"3",
"0",
"i%5!=0",
"i%5",
"i",
"5",
"0",
"i%15!=0",
"i%15",
"i",
"15",
"0",
"{\n sum+=i;\n }",
"sum+=i",
"sum",
"i",
"print(sum)",
"print",
"sum",
"String[]args",
"args",
"public static int nextInt(){\n return Integer.parseInt(scan.next());\n }",
"nextInt",
"{\n return Integer.parseInt(scan.next());\n }",
"return Integer.parseInt(scan.next());",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"public static long nextLong(){\n return Long.parseLong(scan.next());\n }",
"nextLong",
"{\n return Long.parseLong(scan.next());\n }",
"return Long.parseLong(scan.next());",
"Long.parseLong(scan.next())",
"Long.parseLong",
"Long",
"scan.next()",
"scan.next",
"scan",
"public static String next(){\n return scan.next();\n }",
"next",
"{\n return scan.next();\n }",
"return scan.next();",
"scan.next()",
"scan.next",
"scan",
"public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }",
"nextDouble",
"{\n return Double.parseDouble(scan.next());\n }",
"return Double.parseDouble(scan.next());",
"Double.parseDouble(scan.next())",
"Double.parseDouble",
"Double",
"scan.next()",
"scan.next",
"scan",
"public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }",
"nextFloat",
"{\n return Float.parseFloat(scan.next());\n }",
"return Float.parseFloat(scan.next());",
"Float.parseFloat(scan.next())",
"Float.parseFloat",
"Float",
"scan.next()",
"scan.next",
"scan",
"//Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"yesNo",
"{\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");",
"flag",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"boolean flag",
"flag",
"public static void print(Object a){\n System.out.println(a);\n }",
"print",
"{\n System.out.println(a);\n }",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"Object a",
"a",
"public class Main{\n public static Scanner scan = new Scanner(System.in);\n public static void main(String[]args){\n long n;\n n = nextLong();\n Long sum = 0L;\n for(long i = 1;i<=n;i++){\n if(i%3!=0&&i%5!=0&&i%15!=0){\n sum+=i;\n }\n }\n print(sum);\n }\n\n\n\n public static int nextInt(){\n return Integer.parseInt(scan.next());\n }\n public static long nextLong(){\n return Long.parseLong(scan.next());\n }\n public static String next(){\n return scan.next();\n }\n public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }\n public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }\n\n //Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n public static void print(Object a){\n System.out.println(a);\n }\n}",
"public class Main{\n public static Scanner scan = new Scanner(System.in);\n public static void main(String[]args){\n long n;\n n = nextLong();\n Long sum = 0L;\n for(long i = 1;i<=n;i++){\n if(i%3!=0&&i%5!=0&&i%15!=0){\n sum+=i;\n }\n }\n print(sum);\n }\n\n\n\n public static int nextInt(){\n return Integer.parseInt(scan.next());\n }\n public static long nextLong(){\n return Long.parseLong(scan.next());\n }\n public static String next(){\n return scan.next();\n }\n public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }\n public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }\n\n //Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n public static void print(Object a){\n System.out.println(a);\n }\n}",
"Main"
] |
import java.util.Arrays;
import java.util.Scanner;
public class Main{
public static Scanner scan = new Scanner(System.in);
public static void main(String[]args){
long n;
n = nextLong();
Long sum = 0L;
for(long i = 1;i<=n;i++){
if(i%3!=0&&i%5!=0&&i%15!=0){
sum+=i;
}
}
print(sum);
}
public static int nextInt(){
return Integer.parseInt(scan.next());
}
public static long nextLong(){
return Long.parseLong(scan.next());
}
public static String next(){
return scan.next();
}
public static double nextDouble(){
return Double.parseDouble(scan.next());
}
public static float nextFloat(){
return Float.parseFloat(scan.next());
}
//Yes or No
public static void yesNo(boolean flag){
if(flag) System.out.println("Yes");
else System.out.println("No");
}
public static void print(Object a){
System.out.println(a);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
30,
9,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
33,
49
],
[
49,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.util.*;\npublic class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tlong N = ob.nextLong();\n\t\tlong sum = 0;\n\t\t\n\t\tfor(long i = 1; i <= N; i++){\n\t\t\tif((i % 3 != 0) && (i % 5 != 0)){\n\t\t\t\tsum += i;\n\t\t\t\t//System.out.println(\"i: \" + i);\n\t\t\t\t//System.out.println(\"Sum: \" + sum);\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tlong N = ob.nextLong();\n\t\tlong sum = 0;\n\t\t\n\t\tfor(long i = 1; i <= N; i++){\n\t\t\tif((i % 3 != 0) && (i % 5 != 0)){\n\t\t\t\tsum += i;\n\t\t\t\t//System.out.println(\"i: \" + i);\n\t\t\t\t//System.out.println(\"Sum: \" + sum);\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tlong N = ob.nextLong();\n\t\tlong sum = 0;\n\t\t\n\t\tfor(long i = 1; i <= N; i++){\n\t\t\tif((i % 3 != 0) && (i % 5 != 0)){\n\t\t\t\tsum += i;\n\t\t\t\t//System.out.println(\"i: \" + i);\n\t\t\t\t//System.out.println(\"Sum: \" + sum);\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tlong N = ob.nextLong();\n\t\tlong sum = 0;\n\t\t\n\t\tfor(long i = 1; i <= N; i++){\n\t\t\tif((i % 3 != 0) && (i % 5 != 0)){\n\t\t\t\tsum += i;\n\t\t\t\t//System.out.println(\"i: \" + i);\n\t\t\t\t//System.out.println(\"Sum: \" + sum);\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"Scanner ob = new Scanner(System.in);",
"ob",
"new Scanner(System.in)",
"long N = ob.nextLong();",
"N",
"ob.nextLong()",
"ob.nextLong",
"ob",
"long sum = 0;",
"sum",
"0",
"for(long i = 1; i <= N; i++){\n\t\t\tif((i % 3 != 0) && (i % 5 != 0)){\n\t\t\t\tsum += i;\n\t\t\t\t//System.out.println(\"i: \" + i);\n\t\t\t\t//System.out.println(\"Sum: \" + sum);\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}",
"long i = 1;",
"long i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tif((i % 3 != 0) && (i % 5 != 0)){\n\t\t\t\tsum += i;\n\t\t\t\t//System.out.println(\"i: \" + i);\n\t\t\t\t//System.out.println(\"Sum: \" + sum);\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif((i % 3 != 0) && (i % 5 != 0)){\n\t\t\t\tsum += i;\n\t\t\t\t//System.out.println(\"i: \" + i);\n\t\t\t\t//System.out.println(\"Sum: \" + sum);\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}",
"if((i % 3 != 0) && (i % 5 != 0)){\n\t\t\t\tsum += i;\n\t\t\t\t//System.out.println(\"i: \" + i);\n\t\t\t\t//System.out.println(\"Sum: \" + sum);\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcontinue;\n\t\t\t}",
"(i % 3 != 0) && (i % 5 != 0)",
"(i % 3 != 0)",
"i % 3",
"i",
"3",
"0",
"(i % 5 != 0)",
"i % 5",
"i",
"5",
"0",
"{\n\t\t\t\tsum += i;\n\t\t\t\t//System.out.println(\"i: \" + i);\n\t\t\t\t//System.out.println(\"Sum: \" + sum);\t\n\t\t\t}",
"sum += i",
"sum",
"i",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tlong N = ob.nextLong();\n\t\tlong sum = 0;\n\t\t\n\t\tfor(long i = 1; i <= N; i++){\n\t\t\tif((i % 3 != 0) && (i % 5 != 0)){\n\t\t\t\tsum += i;\n\t\t\t\t//System.out.println(\"i: \" + i);\n\t\t\t\t//System.out.println(\"Sum: \" + sum);\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tlong N = ob.nextLong();\n\t\tlong sum = 0;\n\t\t\n\t\tfor(long i = 1; i <= N; i++){\n\t\t\tif((i % 3 != 0) && (i % 5 != 0)){\n\t\t\t\tsum += i;\n\t\t\t\t//System.out.println(\"i: \" + i);\n\t\t\t\t//System.out.println(\"Sum: \" + sum);\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String args[]){
Scanner ob = new Scanner(System.in);
long N = ob.nextLong();
long sum = 0;
for(long i = 1; i <= N; i++){
if((i % 3 != 0) && (i % 5 != 0)){
sum += i;
//System.out.println("i: " + i);
//System.out.println("Sum: " + sum);
}
else{
continue;
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
2,
2,
13,
17,
13,
17,
41,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
2,
13,
17,
2,
17,
13,
17,
30,
41,
13,
13,
41,
13,
2,
13,
17,
0,
13,
2,
13,
13,
0,
13,
2,
2,
2,
13,
17,
2,
17,
13,
17,
41,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
2,
13,
17,
2,
17,
13,
17,
30,
41,
13,
13,
41,
13,
2,
13,
17,
0,
13,
2,
13,
13,
0,
13,
2,
2,
2,
13,
17,
2,
17,
13,
17,
41,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
2,
13,
17,
2,
17,
13,
17,
30,
41,
13,
13,
41,
13,
2,
13,
17,
0,
13,
2,
13,
13,
0,
13,
2,
2,
2,
13,
17,
2,
17,
13,
17,
4,
18,
18,
13,
13,
2,
2,
2,
13,
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
],
[
188,
11
],
[
188,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
28,
34
],
[
14,
35
],
[
35,
36
],
[
35,
37
],
[
14,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
38,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
56,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
56,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
14,
81
],
[
81,
82
],
[
81,
83
],
[
14,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
84,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
102,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
102,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
14,
127
],
[
127,
128
],
[
127,
129
],
[
14,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
130,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
144,
146
],
[
139,
147
],
[
130,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
154,
156
],
[
148,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
159,
161
],
[
148,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
169,
170
],
[
169,
171
],
[
164,
172
],
[
14,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
180,
180
],
[
180,
181
],
[
180,
182
],
[
180,
183
],
[
178,
184
],
[
12,
185
],
[
185,
186
],
[
0,
187
],
[
187,
188
],
[
187,
189
]
] |
[
"\nimport java.math.*;\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\npublic static void main(String[] args) throws Exception{\n\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint n = Integer.parseInt(br.readLine());\n \tlong sum = (((long)(n+1)) * n)/(long)2;\n \tlong sum_3 = 0;\n \tif(n % 3 == 0)\n \t{\n \t\tsum_3 = ((long)(n/3) * ((long)3 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_3 = n;\n \t\tint r = count_3 % 3;\n \t\tcount_3 = count_3 - r;\n \t\tsum_3 = ((long)(count_3/3) * ((long)3 + (long)count_3))/(long)2;\n \t}\n \tlong sum_5 = 0;\n \tif(n % 5 == 0)\n \t{\n \t\tsum_5 = ((long)(n/5) * ((long)5 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_5 = n;\n \t\tint r = count_5 % 5;\n \t\tcount_5 = count_5 - r;\n \t\tsum_5 = ((long)(count_5/5) * ((long)5 + (long)count_5))/(long)2;\n \t}\n \tlong sum_15 = 0;\n \tif(n % 15 == 0)\n \t{\n \t\tsum_15 = ((long)(n/15) * ((long)15 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_15 = n;\n \t\tint r = count_15 % 15;\n \t\tcount_15 = count_15 - r;\n \t\tsum_15 = ((long)(count_15/15) * ((long)15 + (long)count_15))/(long)2;\n \t}\n \tSystem.out.println(sum -sum_5 - sum_3 + sum_15);\n }\n\n}\n\n",
"import java.math.*;",
"math.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\npublic static void main(String[] args) throws Exception{\n\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint n = Integer.parseInt(br.readLine());\n \tlong sum = (((long)(n+1)) * n)/(long)2;\n \tlong sum_3 = 0;\n \tif(n % 3 == 0)\n \t{\n \t\tsum_3 = ((long)(n/3) * ((long)3 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_3 = n;\n \t\tint r = count_3 % 3;\n \t\tcount_3 = count_3 - r;\n \t\tsum_3 = ((long)(count_3/3) * ((long)3 + (long)count_3))/(long)2;\n \t}\n \tlong sum_5 = 0;\n \tif(n % 5 == 0)\n \t{\n \t\tsum_5 = ((long)(n/5) * ((long)5 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_5 = n;\n \t\tint r = count_5 % 5;\n \t\tcount_5 = count_5 - r;\n \t\tsum_5 = ((long)(count_5/5) * ((long)5 + (long)count_5))/(long)2;\n \t}\n \tlong sum_15 = 0;\n \tif(n % 15 == 0)\n \t{\n \t\tsum_15 = ((long)(n/15) * ((long)15 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_15 = n;\n \t\tint r = count_15 % 15;\n \t\tcount_15 = count_15 - r;\n \t\tsum_15 = ((long)(count_15/15) * ((long)15 + (long)count_15))/(long)2;\n \t}\n \tSystem.out.println(sum -sum_5 - sum_3 + sum_15);\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint n = Integer.parseInt(br.readLine());\n \tlong sum = (((long)(n+1)) * n)/(long)2;\n \tlong sum_3 = 0;\n \tif(n % 3 == 0)\n \t{\n \t\tsum_3 = ((long)(n/3) * ((long)3 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_3 = n;\n \t\tint r = count_3 % 3;\n \t\tcount_3 = count_3 - r;\n \t\tsum_3 = ((long)(count_3/3) * ((long)3 + (long)count_3))/(long)2;\n \t}\n \tlong sum_5 = 0;\n \tif(n % 5 == 0)\n \t{\n \t\tsum_5 = ((long)(n/5) * ((long)5 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_5 = n;\n \t\tint r = count_5 % 5;\n \t\tcount_5 = count_5 - r;\n \t\tsum_5 = ((long)(count_5/5) * ((long)5 + (long)count_5))/(long)2;\n \t}\n \tlong sum_15 = 0;\n \tif(n % 15 == 0)\n \t{\n \t\tsum_15 = ((long)(n/15) * ((long)15 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_15 = n;\n \t\tint r = count_15 % 15;\n \t\tcount_15 = count_15 - r;\n \t\tsum_15 = ((long)(count_15/15) * ((long)15 + (long)count_15))/(long)2;\n \t}\n \tSystem.out.println(sum -sum_5 - sum_3 + sum_15);\n }",
"main",
"{\n\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint n = Integer.parseInt(br.readLine());\n \tlong sum = (((long)(n+1)) * n)/(long)2;\n \tlong sum_3 = 0;\n \tif(n % 3 == 0)\n \t{\n \t\tsum_3 = ((long)(n/3) * ((long)3 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_3 = n;\n \t\tint r = count_3 % 3;\n \t\tcount_3 = count_3 - r;\n \t\tsum_3 = ((long)(count_3/3) * ((long)3 + (long)count_3))/(long)2;\n \t}\n \tlong sum_5 = 0;\n \tif(n % 5 == 0)\n \t{\n \t\tsum_5 = ((long)(n/5) * ((long)5 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_5 = n;\n \t\tint r = count_5 % 5;\n \t\tcount_5 = count_5 - r;\n \t\tsum_5 = ((long)(count_5/5) * ((long)5 + (long)count_5))/(long)2;\n \t}\n \tlong sum_15 = 0;\n \tif(n % 15 == 0)\n \t{\n \t\tsum_15 = ((long)(n/15) * ((long)15 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_15 = n;\n \t\tint r = count_15 % 15;\n \t\tcount_15 = count_15 - r;\n \t\tsum_15 = ((long)(count_15/15) * ((long)15 + (long)count_15))/(long)2;\n \t}\n \tSystem.out.println(sum -sum_5 - sum_3 + sum_15);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"long sum = (((long)(n+1)) * n)/(long)2;",
"sum",
"(((long)(n+1)) * n)/(long)2",
"(((long)(n+1)) * n)",
"((long)(n+1))",
"n",
"1",
"n",
"(long)2",
"long sum_3 = 0;",
"sum_3",
"0",
"if(n % 3 == 0)\n \t{\n \t\tsum_3 = ((long)(n/3) * ((long)3 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_3 = n;\n \t\tint r = count_3 % 3;\n \t\tcount_3 = count_3 - r;\n \t\tsum_3 = ((long)(count_3/3) * ((long)3 + (long)count_3))/(long)2;\n \t}",
"n % 3 == 0",
"n % 3",
"n",
"3",
"0",
"{\n \t\tsum_3 = ((long)(n/3) * ((long)3 + (long)n))/(long)2;\n \t}",
"sum_3 = ((long)(n/3) * ((long)3 + (long)n))/(long)2",
"sum_3",
"((long)(n/3) * ((long)3 + (long)n))/(long)2",
"((long)(n/3) * ((long)3 + (long)n))",
"(long)(n/3)",
"n",
"3",
"((long)3 + (long)n)",
"(long)3",
"(long)n",
"(long)2",
"{\n \t\tint count_3 = n;\n \t\tint r = count_3 % 3;\n \t\tcount_3 = count_3 - r;\n \t\tsum_3 = ((long)(count_3/3) * ((long)3 + (long)count_3))/(long)2;\n \t}",
"int count_3 = n;",
"count_3",
"n",
"int r = count_3 % 3;",
"r",
"count_3 % 3",
"count_3",
"3",
"count_3 = count_3 - r",
"count_3",
"count_3 - r",
"count_3",
"r",
"sum_3 = ((long)(count_3/3) * ((long)3 + (long)count_3))/(long)2",
"sum_3",
"((long)(count_3/3) * ((long)3 + (long)count_3))/(long)2",
"((long)(count_3/3) * ((long)3 + (long)count_3))",
"(long)(count_3/3)",
"count_3",
"3",
"((long)3 + (long)count_3)",
"(long)3",
"(long)count_3",
"(long)2",
"long sum_5 = 0;",
"sum_5",
"0",
"if(n % 5 == 0)\n \t{\n \t\tsum_5 = ((long)(n/5) * ((long)5 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_5 = n;\n \t\tint r = count_5 % 5;\n \t\tcount_5 = count_5 - r;\n \t\tsum_5 = ((long)(count_5/5) * ((long)5 + (long)count_5))/(long)2;\n \t}",
"n % 5 == 0",
"n % 5",
"n",
"5",
"0",
"{\n \t\tsum_5 = ((long)(n/5) * ((long)5 + (long)n))/(long)2;\n \t}",
"sum_5 = ((long)(n/5) * ((long)5 + (long)n))/(long)2",
"sum_5",
"((long)(n/5) * ((long)5 + (long)n))/(long)2",
"((long)(n/5) * ((long)5 + (long)n))",
"(long)(n/5)",
"n",
"5",
"((long)5 + (long)n)",
"(long)5",
"(long)n",
"(long)2",
"{\n \t\tint count_5 = n;\n \t\tint r = count_5 % 5;\n \t\tcount_5 = count_5 - r;\n \t\tsum_5 = ((long)(count_5/5) * ((long)5 + (long)count_5))/(long)2;\n \t}",
"int count_5 = n;",
"count_5",
"n",
"int r = count_5 % 5;",
"r",
"count_5 % 5",
"count_5",
"5",
"count_5 = count_5 - r",
"count_5",
"count_5 - r",
"count_5",
"r",
"sum_5 = ((long)(count_5/5) * ((long)5 + (long)count_5))/(long)2",
"sum_5",
"((long)(count_5/5) * ((long)5 + (long)count_5))/(long)2",
"((long)(count_5/5) * ((long)5 + (long)count_5))",
"(long)(count_5/5)",
"count_5",
"5",
"((long)5 + (long)count_5)",
"(long)5",
"(long)count_5",
"(long)2",
"long sum_15 = 0;",
"sum_15",
"0",
"if(n % 15 == 0)\n \t{\n \t\tsum_15 = ((long)(n/15) * ((long)15 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_15 = n;\n \t\tint r = count_15 % 15;\n \t\tcount_15 = count_15 - r;\n \t\tsum_15 = ((long)(count_15/15) * ((long)15 + (long)count_15))/(long)2;\n \t}",
"n % 15 == 0",
"n % 15",
"n",
"15",
"0",
"{\n \t\tsum_15 = ((long)(n/15) * ((long)15 + (long)n))/(long)2;\n \t}",
"sum_15 = ((long)(n/15) * ((long)15 + (long)n))/(long)2",
"sum_15",
"((long)(n/15) * ((long)15 + (long)n))/(long)2",
"((long)(n/15) * ((long)15 + (long)n))",
"(long)(n/15)",
"n",
"15",
"((long)15 + (long)n)",
"(long)15",
"(long)n",
"(long)2",
"{\n \t\tint count_15 = n;\n \t\tint r = count_15 % 15;\n \t\tcount_15 = count_15 - r;\n \t\tsum_15 = ((long)(count_15/15) * ((long)15 + (long)count_15))/(long)2;\n \t}",
"int count_15 = n;",
"count_15",
"n",
"int r = count_15 % 15;",
"r",
"count_15 % 15",
"count_15",
"15",
"count_15 = count_15 - r",
"count_15",
"count_15 - r",
"count_15",
"r",
"sum_15 = ((long)(count_15/15) * ((long)15 + (long)count_15))/(long)2",
"sum_15",
"((long)(count_15/15) * ((long)15 + (long)count_15))/(long)2",
"((long)(count_15/15) * ((long)15 + (long)count_15))",
"(long)(count_15/15)",
"count_15",
"15",
"((long)15 + (long)count_15)",
"(long)15",
"(long)count_15",
"(long)2",
"System.out.println(sum -sum_5 - sum_3 + sum_15)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum -sum_5 - sum_3 + sum_15",
"sum -sum_5 - sum_3",
"sum -sum_5 - sum_3",
"sum",
"sum_5",
"sum_3",
"sum_15",
"String[] args",
"args",
"public class Main {\npublic static void main(String[] args) throws Exception{\n\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint n = Integer.parseInt(br.readLine());\n \tlong sum = (((long)(n+1)) * n)/(long)2;\n \tlong sum_3 = 0;\n \tif(n % 3 == 0)\n \t{\n \t\tsum_3 = ((long)(n/3) * ((long)3 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_3 = n;\n \t\tint r = count_3 % 3;\n \t\tcount_3 = count_3 - r;\n \t\tsum_3 = ((long)(count_3/3) * ((long)3 + (long)count_3))/(long)2;\n \t}\n \tlong sum_5 = 0;\n \tif(n % 5 == 0)\n \t{\n \t\tsum_5 = ((long)(n/5) * ((long)5 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_5 = n;\n \t\tint r = count_5 % 5;\n \t\tcount_5 = count_5 - r;\n \t\tsum_5 = ((long)(count_5/5) * ((long)5 + (long)count_5))/(long)2;\n \t}\n \tlong sum_15 = 0;\n \tif(n % 15 == 0)\n \t{\n \t\tsum_15 = ((long)(n/15) * ((long)15 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_15 = n;\n \t\tint r = count_15 % 15;\n \t\tcount_15 = count_15 - r;\n \t\tsum_15 = ((long)(count_15/15) * ((long)15 + (long)count_15))/(long)2;\n \t}\n \tSystem.out.println(sum -sum_5 - sum_3 + sum_15);\n }\n\n}",
"public class Main {\npublic static void main(String[] args) throws Exception{\n\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint n = Integer.parseInt(br.readLine());\n \tlong sum = (((long)(n+1)) * n)/(long)2;\n \tlong sum_3 = 0;\n \tif(n % 3 == 0)\n \t{\n \t\tsum_3 = ((long)(n/3) * ((long)3 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_3 = n;\n \t\tint r = count_3 % 3;\n \t\tcount_3 = count_3 - r;\n \t\tsum_3 = ((long)(count_3/3) * ((long)3 + (long)count_3))/(long)2;\n \t}\n \tlong sum_5 = 0;\n \tif(n % 5 == 0)\n \t{\n \t\tsum_5 = ((long)(n/5) * ((long)5 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_5 = n;\n \t\tint r = count_5 % 5;\n \t\tcount_5 = count_5 - r;\n \t\tsum_5 = ((long)(count_5/5) * ((long)5 + (long)count_5))/(long)2;\n \t}\n \tlong sum_15 = 0;\n \tif(n % 15 == 0)\n \t{\n \t\tsum_15 = ((long)(n/15) * ((long)15 + (long)n))/(long)2;\n \t}\n \telse\n \t{\n \t\tint count_15 = n;\n \t\tint r = count_15 % 15;\n \t\tcount_15 = count_15 - r;\n \t\tsum_15 = ((long)(count_15/15) * ((long)15 + (long)count_15))/(long)2;\n \t}\n \tSystem.out.println(sum -sum_5 - sum_3 + sum_15);\n }\n\n}",
"Main"
] |
import java.math.*;
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));
int n = Integer.parseInt(br.readLine());
long sum = (((long)(n+1)) * n)/(long)2;
long sum_3 = 0;
if(n % 3 == 0)
{
sum_3 = ((long)(n/3) * ((long)3 + (long)n))/(long)2;
}
else
{
int count_3 = n;
int r = count_3 % 3;
count_3 = count_3 - r;
sum_3 = ((long)(count_3/3) * ((long)3 + (long)count_3))/(long)2;
}
long sum_5 = 0;
if(n % 5 == 0)
{
sum_5 = ((long)(n/5) * ((long)5 + (long)n))/(long)2;
}
else
{
int count_5 = n;
int r = count_5 % 5;
count_5 = count_5 - r;
sum_5 = ((long)(count_5/5) * ((long)5 + (long)count_5))/(long)2;
}
long sum_15 = 0;
if(n % 15 == 0)
{
sum_15 = ((long)(n/15) * ((long)15 + (long)n))/(long)2;
}
else
{
int count_15 = n;
int r = count_15 % 15;
count_15 = count_15 - r;
sum_15 = ((long)(count_15/15) * ((long)15 + (long)count_15))/(long)2;
}
System.out.println(sum -sum_5 - sum_3 + sum_15);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
29,
2,
2,
13,
2,
13,
17,
17,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
0,
13,
4,
13,
13,
41,
13,
2,
17,
4,
13,
2,
13,
17,
0,
13,
13,
0,
13,
2,
17,
4,
13,
2,
13,
17,
0,
13,
13,
0,
13,
2,
17,
4,
13,
2,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
13,
14
],
[
13,
15
],
[
10,
16
],
[
6,
17
],
[
17,
18
],
[
86,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
21,
30
],
[
30,
31
],
[
31,
32
],
[
21,
33
],
[
33,
34
],
[
33,
35
],
[
21,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
21,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
21,
50
],
[
50,
51
],
[
50,
52
],
[
21,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
21,
62
],
[
62,
63
],
[
62,
64
],
[
21,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
21,
74
],
[
74,
75
],
[
74,
76
],
[
21,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
19,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] |
[
"import java.util.*;\n\npublic class Main {\n\n\tpublic static long total(int n) {\n\t\treturn (long)n * (long)(n + 1) / 2;\n\t}\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.close();\n\t\tlong ans = 0;\n\t\tans = total(n);\n\t\tlong rest = 3 * total(n / 3);\n\t\tans -= rest;\n\t\trest = 5 * total(n / 5);\n\t\tans -= rest;\n\t\trest = 15 * total(n / 15);\n\t\tans += rest;\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static long total(int n) {\n\t\treturn (long)n * (long)(n + 1) / 2;\n\t}\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.close();\n\t\tlong ans = 0;\n\t\tans = total(n);\n\t\tlong rest = 3 * total(n / 3);\n\t\tans -= rest;\n\t\trest = 5 * total(n / 5);\n\t\tans -= rest;\n\t\trest = 15 * total(n / 15);\n\t\tans += rest;\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static long total(int n) {\n\t\treturn (long)n * (long)(n + 1) / 2;\n\t}",
"total",
"{\n\t\treturn (long)n * (long)(n + 1) / 2;\n\t}",
"return (long)n * (long)(n + 1) / 2;",
"(long)n * (long)(n + 1) / 2",
"(long)n * (long)(n + 1)",
"(long)n",
"(long)(n + 1)",
"n",
"1",
"2",
"int n",
"n",
"public static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.close();\n\t\tlong ans = 0;\n\t\tans = total(n);\n\t\tlong rest = 3 * total(n / 3);\n\t\tans -= rest;\n\t\trest = 5 * total(n / 5);\n\t\tans -= rest;\n\t\trest = 15 * total(n / 15);\n\t\tans += rest;\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.close();\n\t\tlong ans = 0;\n\t\tans = total(n);\n\t\tlong rest = 3 * total(n / 3);\n\t\tans -= rest;\n\t\trest = 5 * total(n / 5);\n\t\tans -= rest;\n\t\trest = 15 * total(n / 15);\n\t\tans += rest;\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",
"sc.close()",
"sc.close",
"sc",
"long ans = 0;",
"ans",
"0",
"ans = total(n)",
"ans",
"total(n)",
"total",
"n",
"long rest = 3 * total(n / 3);",
"rest",
"3 * total(n / 3)",
"3",
"total(n / 3)",
"total",
"n / 3",
"n",
"3",
"ans -= rest",
"ans",
"rest",
"rest = 5 * total(n / 5)",
"rest",
"5 * total(n / 5)",
"5",
"total(n / 5)",
"total",
"n / 5",
"n",
"5",
"ans -= rest",
"ans",
"rest",
"rest = 15 * total(n / 15)",
"rest",
"15 * total(n / 15)",
"15",
"total(n / 15)",
"total",
"n / 15",
"n",
"15",
"ans += rest",
"ans",
"rest",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args",
"public class Main {\n\n\tpublic static long total(int n) {\n\t\treturn (long)n * (long)(n + 1) / 2;\n\t}\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.close();\n\t\tlong ans = 0;\n\t\tans = total(n);\n\t\tlong rest = 3 * total(n / 3);\n\t\tans -= rest;\n\t\trest = 5 * total(n / 5);\n\t\tans -= rest;\n\t\trest = 15 * total(n / 15);\n\t\tans += rest;\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\n\tpublic static long total(int n) {\n\t\treturn (long)n * (long)(n + 1) / 2;\n\t}\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.close();\n\t\tlong ans = 0;\n\t\tans = total(n);\n\t\tlong rest = 3 * total(n / 3);\n\t\tans -= rest;\n\t\trest = 5 * total(n / 5);\n\t\tans -= rest;\n\t\trest = 15 * total(n / 15);\n\t\tans += rest;\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static long total(int n) {
return (long)n * (long)(n + 1) / 2;
}
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.close();
long ans = 0;
ans = total(n);
long rest = 3 * total(n / 3);
ans -= rest;
rest = 5 * total(n / 5);
ans -= rest;
rest = 15 * total(n / 15);
ans += rest;
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
2,
17,
17,
12,
13,
30,
4,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
9,
0,
13,
13,
4,
18,
13,
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,
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,
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,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
227,
11
],
[
227,
12
],
[
12,
13
],
[
12,
14
],
[
227,
15
],
[
15,
16
],
[
15,
17
],
[
227,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
20,
22
],
[
227,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
23,
31
],
[
31,
32
],
[
227,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
35,
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
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
57,
69
],
[
69,
70
],
[
56,
71
],
[
71,
72
],
[
71,
73
],
[
35,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
227,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
78,
82
],
[
82,
83
],
[
78,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
84,
90
],
[
90,
91
],
[
78,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
95,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
105,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
94,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
78,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
78,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
136,
137
],
[
78,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
145,
146
],
[
78,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
153,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
149,
166
],
[
166,
167
],
[
78,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
180,
181
],
[
180,
182
],
[
175,
183
],
[
183,
184
],
[
184,
185
],
[
175,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
170,
193
],
[
193,
194
],
[
168,
195
],
[
195,
196
],
[
78,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
209,
210
],
[
209,
211
],
[
204,
212
],
[
212,
213
],
[
213,
214
],
[
204,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
216,
220
],
[
220,
221
],
[
199,
222
],
[
222,
223
],
[
197,
224
],
[
224,
225
],
[
0,
226
],
[
226,
227
],
[
226,
228
]
] |
[
"import java.awt.*;\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n private static FastReader in = new FastReader(System.in);\n private static PrintWriter out = new PrintWriter(System.out);\n\n private static final long MOD = (long) 1e9 + 7;\n\n public static void main(String[] args) {\n solve();\n out.flush();\n }\n\n private static void solve() {\n int n = in.nextInt();\n long ans = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n ans += i;\n }\n out.println(ans);\n }\n\n // https://www.geeksforgeeks.org/fast-io-in-java-in-competitive-programming/\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n FastReader(InputStream inputStream) {\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n // https://qiita.com/masakinpo/items/5f77f2a879578a85a0bb\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 public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n}",
"import java.awt.*;",
"awt.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n private static FastReader in = new FastReader(System.in);\n private static PrintWriter out = new PrintWriter(System.out);\n\n private static final long MOD = (long) 1e9 + 7;\n\n public static void main(String[] args) {\n solve();\n out.flush();\n }\n\n private static void solve() {\n int n = in.nextInt();\n long ans = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n ans += i;\n }\n out.println(ans);\n }\n\n // https://www.geeksforgeeks.org/fast-io-in-java-in-competitive-programming/\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n FastReader(InputStream inputStream) {\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n // https://qiita.com/masakinpo/items/5f77f2a879578a85a0bb\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 public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n}",
"Main",
"private static FastReader in = new FastReader(System.in);",
"in",
"new FastReader(System.in)",
"private static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"private static final long MOD = (long) 1e9 + 7;",
"MOD",
"(long) 1e9 + 7",
"(long) 1e9",
"7",
"public static void main(String[] args) {\n solve();\n out.flush();\n }",
"main",
"{\n solve();\n out.flush();\n }",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"private static void solve() {\n int n = in.nextInt();\n long ans = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n ans += i;\n }\n out.println(ans);\n }",
"solve",
"{\n int n = in.nextInt();\n long ans = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n ans += i;\n }\n out.println(ans);\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"long ans = 0;",
"ans",
"0",
"for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n ans += i;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n ans += i;\n }",
"{\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n ans += i;\n }",
"if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }",
"i % 3 == 0 || i % 5 == 0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n continue;\n }",
"continue;",
"ans += i",
"ans",
"i",
"out.println(ans)",
"out.println",
"out",
"ans",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n FastReader(InputStream inputStream) {\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n // https://qiita.com/masakinpo/items/5f77f2a879578a85a0bb\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 public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"FastReader(InputStream inputStream) {\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }",
"br = new BufferedReader(new\n InputStreamReader(inputStream))",
"br",
"new BufferedReader(new\n InputStreamReader(inputStream))",
"InputStream inputStream",
"inputStream",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"// https://qiita.com/masakinpo/items/5f77f2a879578a85a0bb\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 }",
"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 long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }",
"nextLongArray",
"{\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextLong();",
"a[i] = nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"public class Main {\n\n private static FastReader in = new FastReader(System.in);\n private static PrintWriter out = new PrintWriter(System.out);\n\n private static final long MOD = (long) 1e9 + 7;\n\n public static void main(String[] args) {\n solve();\n out.flush();\n }\n\n private static void solve() {\n int n = in.nextInt();\n long ans = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n ans += i;\n }\n out.println(ans);\n }\n\n // https://www.geeksforgeeks.org/fast-io-in-java-in-competitive-programming/\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n FastReader(InputStream inputStream) {\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n // https://qiita.com/masakinpo/items/5f77f2a879578a85a0bb\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 public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n}",
"public class Main {\n\n private static FastReader in = new FastReader(System.in);\n private static PrintWriter out = new PrintWriter(System.out);\n\n private static final long MOD = (long) 1e9 + 7;\n\n public static void main(String[] args) {\n solve();\n out.flush();\n }\n\n private static void solve() {\n int n = in.nextInt();\n long ans = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n ans += i;\n }\n out.println(ans);\n }\n\n // https://www.geeksforgeeks.org/fast-io-in-java-in-competitive-programming/\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n FastReader(InputStream inputStream) {\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n // https://qiita.com/masakinpo/items/5f77f2a879578a85a0bb\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 public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n}",
"Main"
] |
import java.awt.*;
import java.io.*;
import java.util.*;
public class Main {
private static FastReader in = new FastReader(System.in);
private static PrintWriter out = new PrintWriter(System.out);
private static final long MOD = (long) 1e9 + 7;
public static void main(String[] args) {
solve();
out.flush();
}
private static void solve() {
int n = in.nextInt();
long ans = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
ans += i;
}
out.println(ans);
}
// https://www.geeksforgeeks.org/fast-io-in-java-in-competitive-programming/
static class FastReader {
BufferedReader br;
StringTokenizer st;
FastReader(InputStream inputStream) {
br = new BufferedReader(new
InputStreamReader(inputStream));
}
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;
}
// https://qiita.com/masakinpo/items/5f77f2a879578a85a0bb
public int[] nextIntArray(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
public long[] nextLongArray(int n) {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nextLong();
return a;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
9,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
33,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\n//\t入力の読み込み\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong count = 0;\n\n//\t3でも5でも割り切れないときに、countにその数を足す\n\t\tfor(int i=1 ; i<=n ; i++) {\n\t\t\tif(i%3==0 || i%5==0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount += i;\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\tpublic static void main(String[] args) {\n\n//\t入力の読み込み\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong count = 0;\n\n//\t3でも5でも割り切れないときに、countにその数を足す\n\t\tfor(int i=1 ; i<=n ; i++) {\n\t\t\tif(i%3==0 || i%5==0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n//\t入力の読み込み\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong count = 0;\n\n//\t3でも5でも割り切れないときに、countにその数を足す\n\t\tfor(int i=1 ; i<=n ; i++) {\n\t\t\tif(i%3==0 || i%5==0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\n//\t入力の読み込み\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong count = 0;\n\n//\t3でも5でも割り切れないときに、countにその数を足す\n\t\tfor(int i=1 ; i<=n ; i++) {\n\t\t\tif(i%3==0 || i%5==0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount += i;\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 count = 0;",
"count",
"0",
"for(int i=1 ; i<=n ; i++) {\n\t\t\tif(i%3==0 || i%5==0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}",
"int i=1 ;",
"int i=1 ;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%3==0 || i%5==0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i%3==0 || i%5==0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}",
"if(i%3==0 || i%5==0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount += i;\n\t\t\t}",
"i%3==0 || i%5==0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"{\n\t\t\t\tcount += i;\n\t\t\t}",
"count += i",
"count",
"i",
"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\n//\t入力の読み込み\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong count = 0;\n\n//\t3でも5でも割り切れないときに、countにその数を足す\n\t\tfor(int i=1 ; i<=n ; i++) {\n\t\t\tif(i%3==0 || i%5==0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\n//\t入力の読み込み\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong count = 0;\n\n//\t3でも5でも割り切れないときに、countにその数を足す\n\t\tfor(int i=1 ; i<=n ; i++) {\n\t\t\tif(i%3==0 || i%5==0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount += i;\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 sc = new Scanner(System.in);
int n = sc.nextInt();
long count = 0;
// 3でも5でも割り切れないときに、countにその数を足す
for(int i=1 ; i<=n ; i++) {
if(i%3==0 || i%5==0) {
continue;
}
else {
count += i;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
40,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
18,
18,
13,
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
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
6,
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 sc = new Scanner(System.in);\n int a = sc.nextInt();\n long ans = 0;\n for(int i = 1;i <= a;i++){\n if(!(i % 3 == 0 || i % 5 == 0)){\n ans += i;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n long ans = 0;\n for(int i = 1;i <= a;i++){\n if(!(i % 3 == 0 || i % 5 == 0)){\n ans += i;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n long ans = 0;\n for(int i = 1;i <= a;i++){\n if(!(i % 3 == 0 || i % 5 == 0)){\n ans += i;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n long ans = 0;\n for(int i = 1;i <= a;i++){\n if(!(i % 3 == 0 || i % 5 == 0)){\n ans += i;\n }\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ans = 0;",
"ans",
"0",
"for(int i = 1;i <= a;i++){\n if(!(i % 3 == 0 || i % 5 == 0)){\n ans += i;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= a",
"i",
"a",
"i++",
"i++",
"i",
"{\n if(!(i % 3 == 0 || i % 5 == 0)){\n ans += i;\n }\n }",
"{\n if(!(i % 3 == 0 || i % 5 == 0)){\n ans += i;\n }\n }",
"if(!(i % 3 == 0 || i % 5 == 0)){\n ans += i;\n }",
"!(i % 3 == 0 || i % 5 == 0)",
"(i % 3 == 0 || i % 5 == 0)",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n ans += i;\n }",
"ans += i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args",
"public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n long ans = 0;\n for(int i = 1;i <= a;i++){\n if(!(i % 3 == 0 || i % 5 == 0)){\n ans += i;\n }\n }\n System.out.println(ans);\n }\n}",
"public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n long ans = 0;\n for(int i = 1;i <= a;i++){\n if(!(i % 3 == 0 || i % 5 == 0)){\n ans += i;\n }\n }\n System.out.println(ans);\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();
long ans = 0;
for(int i = 1;i <= a;i++){
if(!(i % 3 == 0 || i % 5 == 0)){
ans += i;
}
}
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,
17,
11,
1,
41,
13,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
30,
0,
13,
2,
13,
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
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
36,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
43,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
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;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tlong N = scn.nextInt();\n\t\tscn.close();\n\t\tlong sum = 0;\n\t\tfor(long i = N;i>0;i--) {\n\t\t\tif(i%3 == 0) {\n\t\t\t}else if(i%5 == 0){\n\t\t\t}else {\n\t\t\tsum =sum+i;\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\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tlong N = scn.nextInt();\n\t\tscn.close();\n\t\tlong sum = 0;\n\t\tfor(long i = N;i>0;i--) {\n\t\t\tif(i%3 == 0) {\n\t\t\t}else if(i%5 == 0){\n\t\t\t}else {\n\t\t\tsum =sum+i;\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\tScanner scn = new Scanner(System.in);\n\t\tlong N = scn.nextInt();\n\t\tscn.close();\n\t\tlong sum = 0;\n\t\tfor(long i = N;i>0;i--) {\n\t\t\tif(i%3 == 0) {\n\t\t\t}else if(i%5 == 0){\n\t\t\t}else {\n\t\t\tsum =sum+i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\tScanner scn = new Scanner(System.in);\n\t\tlong N = scn.nextInt();\n\t\tscn.close();\n\t\tlong sum = 0;\n\t\tfor(long i = N;i>0;i--) {\n\t\t\tif(i%3 == 0) {\n\t\t\t}else if(i%5 == 0){\n\t\t\t}else {\n\t\t\tsum =sum+i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"long N = scn.nextInt();",
"N",
"scn.nextInt()",
"scn.nextInt",
"scn",
"scn.close()",
"scn.close",
"scn",
"long sum = 0;",
"sum",
"0",
"for(long i = N;i>0;i--) {\n\t\t\tif(i%3 == 0) {\n\t\t\t}else if(i%5 == 0){\n\t\t\t}else {\n\t\t\tsum =sum+i;\n\t\t\t}\n\t\t}",
"long i = N;",
"long i = N;",
"i",
"N",
"i>0",
"i",
"0",
"i--",
"i--",
"i",
"{\n\t\t\tif(i%3 == 0) {\n\t\t\t}else if(i%5 == 0){\n\t\t\t}else {\n\t\t\tsum =sum+i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i%3 == 0) {\n\t\t\t}else if(i%5 == 0){\n\t\t\t}else {\n\t\t\tsum =sum+i;\n\t\t\t}\n\t\t}",
"if(i%3 == 0) {\n\t\t\t}else if(i%5 == 0){\n\t\t\t}else {\n\t\t\tsum =sum+i;\n\t\t\t}",
"i%3 == 0",
"i%3",
"i",
"3",
"0",
"{\n\t\t\t}",
"if(i%5 == 0){\n\t\t\t}else {\n\t\t\tsum =sum+i;\n\t\t\t}",
"i%5 == 0",
"i%5",
"i",
"5",
"0",
"{\n\t\t\t}",
"{\n\t\t\tsum =sum+i;\n\t\t\t}",
"sum =sum+i",
"sum",
"sum+i",
"sum",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tlong N = scn.nextInt();\n\t\tscn.close();\n\t\tlong sum = 0;\n\t\tfor(long i = N;i>0;i--) {\n\t\t\tif(i%3 == 0) {\n\t\t\t}else if(i%5 == 0){\n\t\t\t}else {\n\t\t\tsum =sum+i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tlong N = scn.nextInt();\n\t\tscn.close();\n\t\tlong sum = 0;\n\t\tfor(long i = N;i>0;i--) {\n\t\t\tif(i%3 == 0) {\n\t\t\t}else if(i%5 == 0){\n\t\t\t}else {\n\t\t\tsum =sum+i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
long N = scn.nextInt();
scn.close();
long sum = 0;
for(long i = N;i>0;i--) {
if(i%3 == 0) {
}else if(i%5 == 0){
}else {
sum =sum+i;
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
2,
4,
13,
17,
13,
4,
13,
17,
13,
4,
13,
17,
13,
4,
13,
17,
13,
29,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
2,
2,
13,
13,
13,
2,
13,
13,
17,
23,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
27,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
28,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
27,
36
],
[
36,
37
],
[
36,
38
],
[
36,
39
],
[
25,
40
],
[
40,
41
],
[
40,
42
],
[
40,
43
],
[
8,
44
],
[
6,
45
],
[
45,
46
],
[
69,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
52,
60
],
[
60,
61
],
[
60,
62
],
[
51,
63
],
[
47,
64
],
[
64,
65
],
[
47,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"import java.io.*;\n\npublic class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n long N = Long.parseLong (reader.readLine());\n System.out.println (calc (1, N) - calc (3, N) - calc (5, N) +\n calc (15, N));\n return;\n }\n\n static long calc (long n, long N) {\n return (n + N / n * n) * (N / n) / 2;\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 long N = Long.parseLong (reader.readLine());\n System.out.println (calc (1, N) - calc (3, N) - calc (5, N) +\n calc (15, N));\n return;\n }\n\n static long calc (long n, long N) {\n return (n + N / n * n) * (N / n) / 2;\n }\n}",
"Main",
"public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n long N = Long.parseLong (reader.readLine());\n System.out.println (calc (1, N) - calc (3, N) - calc (5, N) +\n calc (15, N));\n return;\n }",
"main",
"{\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n long N = Long.parseLong (reader.readLine());\n System.out.println (calc (1, N) - calc (3, N) - calc (5, N) +\n calc (15, N));\n return;\n }",
"BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));",
"reader",
"new BufferedReader (new InputStreamReader (System.in))",
"long N = Long.parseLong (reader.readLine());",
"N",
"Long.parseLong (reader.readLine())",
"Long.parseLong",
"Long",
"reader.readLine()",
"reader.readLine",
"reader",
"System.out.println (calc (1, N) - calc (3, N) - calc (5, N) +\n calc (15, N))",
"System.out.println",
"System.out",
"System",
"System.out",
"calc (1, N) - calc (3, N) - calc (5, N) +\n calc (15, N)",
"calc (1, N) - calc (3, N) - calc (5, N)",
"calc (1, N) - calc (3, N) - calc (5, N)",
"calc (1, N)",
"calc",
"1",
"N",
"calc (3, N)",
"calc",
"3",
"N",
"calc (5, N)",
"calc",
"5",
"N",
"calc (15, N)",
"calc",
"15",
"N",
"return;",
"String[] args",
"args",
"static long calc (long n, long N) {\n return (n + N / n * n) * (N / n) / 2;\n }",
"calc",
"{\n return (n + N / n * n) * (N / n) / 2;\n }",
"return (n + N / n * n) * (N / n) / 2;",
"(n + N / n * n) * (N / n) / 2",
"(n + N / n * n) * (N / n)",
"(n + N / n * n)",
"n",
"N / n * n",
"N / n",
"N",
"n",
"n",
"(N / n)",
"N",
"n",
"2",
"long n",
"n",
"long 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 long N = Long.parseLong (reader.readLine());\n System.out.println (calc (1, N) - calc (3, N) - calc (5, N) +\n calc (15, N));\n return;\n }\n\n static long calc (long n, long N) {\n return (n + N / n * n) * (N / n) / 2;\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 long N = Long.parseLong (reader.readLine());\n System.out.println (calc (1, N) - calc (3, N) - calc (5, N) +\n calc (15, N));\n return;\n }\n\n static long calc (long n, long N) {\n return (n + N / n * n) * (N / n) / 2;\n }\n}",
"Main"
] |
import java.io.*;
public class Main {
public static void main (String[] args) throws Exception {
BufferedReader reader =
new BufferedReader (new InputStreamReader (System.in));
long N = Long.parseLong (reader.readLine());
System.out.println (calc (1, N) - calc (3, N) - calc (5, N) +
calc (15, N));
return;
}
static long calc (long n, long N) {
return (n + N / n * n) * (N / n) / 2;
}
}
|
[
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,
20,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
4,
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,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
12,
13,
30,
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
],
[
101,
14
],
[
101,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
28,
29
],
[
17,
30
],
[
30,
31
],
[
31,
32
],
[
15,
33
],
[
33,
34
],
[
101,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
40,
45
],
[
37,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
37,
54
],
[
54,
55
],
[
54,
56
],
[
37,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
70,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
37,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
35,
92
],
[
92,
93
],
[
101,
94
],
[
94,
95
],
[
94,
96
],
[
101,
97
],
[
97,
98
],
[
97,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
] |
[
"\nimport java.util.*;\nimport java.util.stream.Collectors;\nimport java.io.*;\nimport java.nio.charset.StandardCharsets;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint N = Integer.parseInt(tokens[0]);\n\t\tlong sum = 0L;\n\t\tfor (int i = 1; i <= N; ++i) {\n\t\t\tif ((i % 3 != 0) && (i % 5 != 0)) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.stream.Collectors;",
"Collectors",
"java.util.stream",
"import java.io.*;",
"io.*",
"java",
"import java.nio.charset.StandardCharsets;",
"StandardCharsets",
"java.nio.charset",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint N = Integer.parseInt(tokens[0]);\n\t\tlong sum = 0L;\n\t\tfor (int i = 1; i <= N; ++i) {\n\t\t\tif ((i % 3 != 0) && (i % 5 != 0)) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}",
"main",
"{\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\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)",
"Main ins = new Main(in);",
"ins",
"new Main(in)",
"ins.calc()",
"ins.calc",
"ins",
"ins.showResult()",
"ins.showResult",
"ins",
"String[] args",
"args",
"Main(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint N = Integer.parseInt(tokens[0]);\n\t\tlong sum = 0L;\n\t\tfor (int i = 1; i <= N; ++i) {\n\t\t\tif ((i % 3 != 0) && (i % 5 != 0)) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"Main",
"{\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint N = Integer.parseInt(tokens[0]);\n\t\tlong sum = 0L;\n\t\tfor (int i = 1; i <= N; ++i) {\n\t\t\tif ((i % 3 != 0) && (i % 5 != 0)) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"String[] tokens = in.readLine().split(\" \");",
"tokens",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int N = Integer.parseInt(tokens[0]);",
"N",
"Integer.parseInt(tokens[0])",
"Integer.parseInt",
"Integer",
"tokens[0]",
"tokens",
"0",
"long sum = 0L;",
"sum",
"0L",
"for (int i = 1; i <= N; ++i) {\n\t\t\tif ((i % 3 != 0) && (i % 5 != 0)) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"++i",
"++i",
"i",
"{\n\t\t\tif ((i % 3 != 0) && (i % 5 != 0)) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif ((i % 3 != 0) && (i % 5 != 0)) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"if ((i % 3 != 0) && (i % 5 != 0)) {\n\t\t\t\tsum += i;\n\t\t\t}",
"(i % 3 != 0) && (i % 5 != 0)",
"(i % 3 != 0)",
"i % 3",
"i",
"3",
"0",
"(i % 5 != 0)",
"i % 5",
"i",
"5",
"0",
"{\n\t\t\t\tsum += i;\n\t\t\t}",
"sum += i",
"sum",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"BufferedReader in",
"in",
"void calc() {\n\t}",
"calc",
"{\n\t}",
"void showResult() {\n\t}",
"showResult",
"{\n\t}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint N = Integer.parseInt(tokens[0]);\n\t\tlong sum = 0L;\n\t\tfor (int i = 1; i <= N; ++i) {\n\t\t\tif ((i % 3 != 0) && (i % 5 != 0)) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint N = Integer.parseInt(tokens[0]);\n\t\tlong sum = 0L;\n\t\tfor (int i = 1; i <= N; ++i) {\n\t\t\tif ((i % 3 != 0) && (i % 5 != 0)) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n}",
"Main"
] |
import java.util.*;
import java.util.stream.Collectors;
import java.io.*;
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);
Main ins = new Main(in);
ins.calc();
ins.showResult();
}
Main(BufferedReader in) throws IOException {
String[] tokens = in.readLine().split(" ");
int N = Integer.parseInt(tokens[0]);
long sum = 0L;
for (int i = 1; i <= N; ++i) {
if ((i % 3 != 0) && (i % 5 != 0)) {
sum += i;
}
}
System.out.println(sum);
}
void calc() {
}
void showResult() {
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
2,
13,
17,
41,
13,
2,
13,
17,
0,
13,
2,
2,
2,
13,
2,
13,
17,
17,
2,
17,
13,
41,
13,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
2,
2,
13,
17,
13,
17,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
2,
2,
2,
2,
2,
13,
17,
13,
17,
13,
17,
13,
17,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
2,
2,
2,
2,
2,
2,
13,
17,
13,
17,
13,
17,
13,
17,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
13,
17,
13,
17,
13,
17,
13,
17,
13,
17,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
13,
17,
13,
17,
13,
17,
13,
17,
13,
17,
13,
17,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
17,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
260,
5
],
[
260,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
33,
39
],
[
32,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
56,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
79,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
79,
83
],
[
66,
84
],
[
84,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
86,
93
],
[
93,
94
],
[
93,
95
],
[
84,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
103,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
100,
108
],
[
103,
109
],
[
84,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
123,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
121,
127
],
[
120,
128
],
[
119,
129
],
[
118,
130
],
[
123,
131
],
[
110,
132
],
[
132,
133
],
[
134,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
134,
141
],
[
141,
142
],
[
141,
143
],
[
132,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
155,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
153,
159
],
[
152,
160
],
[
151,
161
],
[
150,
162
],
[
149,
163
],
[
148,
164
],
[
155,
165
],
[
132,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
171,
173
],
[
166,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
187,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
185,
191
],
[
184,
192
],
[
183,
193
],
[
182,
194
],
[
181,
195
],
[
180,
196
],
[
179,
197
],
[
178,
198
],
[
187,
199
],
[
166,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
219,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
217,
223
],
[
216,
224
],
[
215,
225
],
[
214,
226
],
[
213,
227
],
[
212,
228
],
[
211,
229
],
[
210,
230
],
[
209,
231
],
[
208,
232
],
[
219,
233
],
[
200,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
244,
246
],
[
241,
247
],
[
8,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
248,
253
],
[
8,
254
],
[
254,
255
],
[
255,
256
],
[
6,
257
],
[
257,
258
],
[
0,
259
],
[
259,
260
],
[
259,
261
]
] |
[
"import 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\n\t\tint a = sc.nextInt();\n\n\t\tlong ans = 0;\n\n\t\tlong b = a / 15;\n\t\tlong c = a % 15;\n\n\t\tans += ((b * (b + 1)) * 60 - 60 * b);\n\n\t\tlong x = b * 15;\n\n\t\tif(c == 0) {\n\t\t\tans += 0;\n\t\t} else if(c == 1) {\n\t\t\tans += x + 1;\n\t\t} else if(c == 2 || c == 3) {\n\t\t\tans += x + 1 + x + 2;\n\t\t} else if(c == 4 || c == 5 || c == 6) {\n\t\t\tans += x + 1 + x + 2 + x + 4;\n\t\t} else if(c == 7) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7;\n\t\t} else if(c == 8 || c == 9 || c == 10) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;\n\t\t} else if(c == 11 || c == 12) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t} else if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n}",
"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\n\t\tint a = sc.nextInt();\n\n\t\tlong ans = 0;\n\n\t\tlong b = a / 15;\n\t\tlong c = a % 15;\n\n\t\tans += ((b * (b + 1)) * 60 - 60 * b);\n\n\t\tlong x = b * 15;\n\n\t\tif(c == 0) {\n\t\t\tans += 0;\n\t\t} else if(c == 1) {\n\t\t\tans += x + 1;\n\t\t} else if(c == 2 || c == 3) {\n\t\t\tans += x + 1 + x + 2;\n\t\t} else if(c == 4 || c == 5 || c == 6) {\n\t\t\tans += x + 1 + x + 2 + x + 4;\n\t\t} else if(c == 7) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7;\n\t\t} else if(c == 8 || c == 9 || c == 10) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;\n\t\t} else if(c == 11 || c == 12) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t} else if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\n\t\tlong ans = 0;\n\n\t\tlong b = a / 15;\n\t\tlong c = a % 15;\n\n\t\tans += ((b * (b + 1)) * 60 - 60 * b);\n\n\t\tlong x = b * 15;\n\n\t\tif(c == 0) {\n\t\t\tans += 0;\n\t\t} else if(c == 1) {\n\t\t\tans += x + 1;\n\t\t} else if(c == 2 || c == 3) {\n\t\t\tans += x + 1 + x + 2;\n\t\t} else if(c == 4 || c == 5 || c == 6) {\n\t\t\tans += x + 1 + x + 2 + x + 4;\n\t\t} else if(c == 7) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7;\n\t\t} else if(c == 8 || c == 9 || c == 10) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;\n\t\t} else if(c == 11 || c == 12) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t} else if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\n\t\tlong ans = 0;\n\n\t\tlong b = a / 15;\n\t\tlong c = a % 15;\n\n\t\tans += ((b * (b + 1)) * 60 - 60 * b);\n\n\t\tlong x = b * 15;\n\n\t\tif(c == 0) {\n\t\t\tans += 0;\n\t\t} else if(c == 1) {\n\t\t\tans += x + 1;\n\t\t} else if(c == 2 || c == 3) {\n\t\t\tans += x + 1 + x + 2;\n\t\t} else if(c == 4 || c == 5 || c == 6) {\n\t\t\tans += x + 1 + x + 2 + x + 4;\n\t\t} else if(c == 7) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7;\n\t\t} else if(c == 8 || c == 9 || c == 10) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;\n\t\t} else if(c == 11 || c == 12) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t} else if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ans = 0;",
"ans",
"0",
"long b = a / 15;",
"b",
"a / 15",
"a",
"15",
"long c = a % 15;",
"c",
"a % 15",
"a",
"15",
"ans += ((b * (b + 1)) * 60 - 60 * b)",
"ans",
"((b * (b + 1)) * 60 - 60 * b)",
"(b * (b + 1)) * 60",
"(b * (b + 1))",
"b",
"(b + 1)",
"b",
"1",
"60",
"60 * b",
"60",
"b",
"long x = b * 15;",
"x",
"b * 15",
"b",
"15",
"if(c == 0) {\n\t\t\tans += 0;\n\t\t} else if(c == 1) {\n\t\t\tans += x + 1;\n\t\t} else if(c == 2 || c == 3) {\n\t\t\tans += x + 1 + x + 2;\n\t\t} else if(c == 4 || c == 5 || c == 6) {\n\t\t\tans += x + 1 + x + 2 + x + 4;\n\t\t} else if(c == 7) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7;\n\t\t} else if(c == 8 || c == 9 || c == 10) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;\n\t\t} else if(c == 11 || c == 12) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t} else if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}",
"c == 0",
"c",
"0",
"{\n\t\t\tans += 0;\n\t\t}",
"ans += 0",
"ans",
"0",
"if(c == 1) {\n\t\t\tans += x + 1;\n\t\t} else if(c == 2 || c == 3) {\n\t\t\tans += x + 1 + x + 2;\n\t\t} else if(c == 4 || c == 5 || c == 6) {\n\t\t\tans += x + 1 + x + 2 + x + 4;\n\t\t} else if(c == 7) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7;\n\t\t} else if(c == 8 || c == 9 || c == 10) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;\n\t\t} else if(c == 11 || c == 12) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t} else if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}",
"c == 1",
"c",
"1",
"{\n\t\t\tans += x + 1;\n\t\t}",
"ans += x + 1",
"ans",
"x + 1",
"x",
"1",
"if(c == 2 || c == 3) {\n\t\t\tans += x + 1 + x + 2;\n\t\t} else if(c == 4 || c == 5 || c == 6) {\n\t\t\tans += x + 1 + x + 2 + x + 4;\n\t\t} else if(c == 7) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7;\n\t\t} else if(c == 8 || c == 9 || c == 10) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;\n\t\t} else if(c == 11 || c == 12) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t} else if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}",
"c == 2 || c == 3",
"c == 2",
"c",
"2",
"c == 3",
"c",
"3",
"{\n\t\t\tans += x + 1 + x + 2;\n\t\t}",
"ans += x + 1 + x + 2",
"ans",
"x + 1 + x + 2",
"x",
"x + 1 + x + 2",
"x",
"1",
"x",
"2",
"if(c == 4 || c == 5 || c == 6) {\n\t\t\tans += x + 1 + x + 2 + x + 4;\n\t\t} else if(c == 7) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7;\n\t\t} else if(c == 8 || c == 9 || c == 10) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;\n\t\t} else if(c == 11 || c == 12) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t} else if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}",
"c == 4 || c == 5 || c == 6",
"c == 4 || c == 5 || c == 6",
"c == 4",
"c",
"4",
"c == 5",
"c",
"5",
"c == 6",
"c",
"6",
"{\n\t\t\tans += x + 1 + x + 2 + x + 4;\n\t\t}",
"ans += x + 1 + x + 2 + x + 4",
"ans",
"x + 1 + x + 2 + x + 4",
"x",
"2",
"x",
"x + 1 + x + 2 + x + 4",
"x",
"1",
"x",
"2",
"x",
"4",
"if(c == 7) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7;\n\t\t} else if(c == 8 || c == 9 || c == 10) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;\n\t\t} else if(c == 11 || c == 12) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t} else if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}",
"c == 7",
"c",
"7",
"{\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7;\n\t\t}",
"ans += x + 1 + x + 2 + x + 4 + x + 7",
"ans",
"x + 1 + x + 2 + x + 4 + x + 7",
"x",
"4",
"x",
"2",
"x",
"x + 1 + x + 2 + x + 4 + x + 7",
"x",
"1",
"x",
"2",
"x",
"4",
"x",
"7",
"if(c == 8 || c == 9 || c == 10) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;\n\t\t} else if(c == 11 || c == 12) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t} else if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}",
"c == 8 || c == 9 || c == 10",
"c == 8 || c == 9 || c == 10",
"c == 8",
"c",
"8",
"c == 9",
"c",
"9",
"c == 10",
"c",
"10",
"{\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;\n\t\t}",
"ans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8",
"ans",
"x + 1 + x + 2 + x + 4 + x + 7 + x + 8",
"x",
"7",
"x",
"4",
"x",
"2",
"x",
"x + 1 + x + 2 + x + 4 + x + 7 + x + 8",
"x",
"1",
"x",
"2",
"x",
"4",
"x",
"7",
"x",
"8",
"if(c == 11 || c == 12) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t} else if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}",
"c == 11 || c == 12",
"c == 11",
"c",
"11",
"c == 12",
"c",
"12",
"{\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t}",
"ans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11",
"ans",
"x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11",
"x",
"8",
"x",
"7",
"x",
"4",
"x",
"2",
"x",
"x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11",
"x",
"1",
"x",
"2",
"x",
"4",
"x",
"7",
"x",
"8",
"x",
"11",
"if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}",
"c == 13",
"c",
"13",
"{\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t}",
"ans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13",
"ans",
"x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13",
"x",
"11",
"x",
"8",
"x",
"7",
"x",
"4",
"x",
"2",
"x",
"x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13",
"x",
"1",
"x",
"2",
"x",
"4",
"x",
"7",
"x",
"8",
"x",
"11",
"x",
"13",
"if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}",
"c == 14",
"c",
"14",
"{\n\t\t\tans += (120*(b+1) - 60);\n\t\t}",
"ans += (120*(b+1) - 60)",
"ans",
"(120*(b+1) - 60)",
"120*(b+1)",
"120",
"(b+1)",
"b",
"1",
"60",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\n\t\tlong ans = 0;\n\n\t\tlong b = a / 15;\n\t\tlong c = a % 15;\n\n\t\tans += ((b * (b + 1)) * 60 - 60 * b);\n\n\t\tlong x = b * 15;\n\n\t\tif(c == 0) {\n\t\t\tans += 0;\n\t\t} else if(c == 1) {\n\t\t\tans += x + 1;\n\t\t} else if(c == 2 || c == 3) {\n\t\t\tans += x + 1 + x + 2;\n\t\t} else if(c == 4 || c == 5 || c == 6) {\n\t\t\tans += x + 1 + x + 2 + x + 4;\n\t\t} else if(c == 7) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7;\n\t\t} else if(c == 8 || c == 9 || c == 10) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;\n\t\t} else if(c == 11 || c == 12) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t} else if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\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\n\t\tint a = sc.nextInt();\n\n\t\tlong ans = 0;\n\n\t\tlong b = a / 15;\n\t\tlong c = a % 15;\n\n\t\tans += ((b * (b + 1)) * 60 - 60 * b);\n\n\t\tlong x = b * 15;\n\n\t\tif(c == 0) {\n\t\t\tans += 0;\n\t\t} else if(c == 1) {\n\t\t\tans += x + 1;\n\t\t} else if(c == 2 || c == 3) {\n\t\t\tans += x + 1 + x + 2;\n\t\t} else if(c == 4 || c == 5 || c == 6) {\n\t\t\tans += x + 1 + x + 2 + x + 4;\n\t\t} else if(c == 7) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7;\n\t\t} else if(c == 8 || c == 9 || c == 10) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;\n\t\t} else if(c == 11 || c == 12) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;\n\t\t} else if(c == 13) {\n\t\t\tans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;\n\t\t} else if(c == 14) {\n\t\t\tans += (120*(b+1) - 60);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\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 a = sc.nextInt();
long ans = 0;
long b = a / 15;
long c = a % 15;
ans += ((b * (b + 1)) * 60 - 60 * b);
long x = b * 15;
if(c == 0) {
ans += 0;
} else if(c == 1) {
ans += x + 1;
} else if(c == 2 || c == 3) {
ans += x + 1 + x + 2;
} else if(c == 4 || c == 5 || c == 6) {
ans += x + 1 + x + 2 + x + 4;
} else if(c == 7) {
ans += x + 1 + x + 2 + x + 4 + x + 7;
} else if(c == 8 || c == 9 || c == 10) {
ans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8;
} else if(c == 11 || c == 12) {
ans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11;
} else if(c == 13) {
ans += x + 1 + x + 2 + x + 4 + x + 7 + x + 8 + x + 11 + x + 13;
} else if(c == 14) {
ans += (120*(b+1) - 60);
}
System.out.println(ans);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t long N =sc.nextLong();\n \n long a =0;\n\t\tfor(long i=1;i<=N;i++) {\n\t\t\tif(i%3!=0&&i%5!=0) {\n a +=i;\n }\n }\n System.out.println(a);\n\t\t}\n\t}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t long N =sc.nextLong();\n \n long a =0;\n\t\tfor(long i=1;i<=N;i++) {\n\t\t\tif(i%3!=0&&i%5!=0) {\n a +=i;\n }\n }\n System.out.println(a);\n\t\t}\n\t}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t long N =sc.nextLong();\n \n long a =0;\n\t\tfor(long i=1;i<=N;i++) {\n\t\t\tif(i%3!=0&&i%5!=0) {\n a +=i;\n }\n }\n System.out.println(a);\n\t\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t long N =sc.nextLong();\n \n long a =0;\n\t\tfor(long i=1;i<=N;i++) {\n\t\t\tif(i%3!=0&&i%5!=0) {\n a +=i;\n }\n }\n System.out.println(a);\n\t\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long N =sc.nextLong();",
"N",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long a =0;",
"a",
"0",
"for(long i=1;i<=N;i++) {\n\t\t\tif(i%3!=0&&i%5!=0) {\n a +=i;\n }\n }",
"long i=1;",
"long i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%3!=0&&i%5!=0) {\n a +=i;\n }\n }",
"{\n\t\t\tif(i%3!=0&&i%5!=0) {\n a +=i;\n }\n }",
"if(i%3!=0&&i%5!=0) {\n a +=i;\n }",
"i%3!=0&&i%5!=0",
"i%3!=0",
"i%3",
"i",
"3",
"0",
"i%5!=0",
"i%5",
"i",
"5",
"0",
"{\n a +=i;\n }",
"a +=i",
"a",
"i",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t long N =sc.nextLong();\n \n long a =0;\n\t\tfor(long i=1;i<=N;i++) {\n\t\t\tif(i%3!=0&&i%5!=0) {\n a +=i;\n }\n }\n System.out.println(a);\n\t\t}\n\t}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t long N =sc.nextLong();\n \n long a =0;\n\t\tfor(long i=1;i<=N;i++) {\n\t\t\tif(i%3!=0&&i%5!=0) {\n a +=i;\n }\n }\n System.out.println(a);\n\t\t}\n\t}",
"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 a =0;
for(long i=1;i<=N;i++) {
if(i%3!=0&&i%5!=0) {
a +=i;
}
}
System.out.println(a);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
9,
14,
2,
2,
13,
17,
17,
30,
9,
14,
2,
2,
13,
17,
17,
30,
9,
30,
0,
13,
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
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
33,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
64,
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\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tLong N = sc.nextLong();\n\t\tLong total = 0L;\n\t\tfor(int i = 1; i <= N; ++i){\n\t if(i % 3 == 0 && i % 5 == 0){\n\t \tcontinue;\n\t }else if(i % 3 == 0){\n\t continue;\n\t }else if(i % 5 == 0){\n\t \tcontinue;\n\t }else{\n\t total += i;\n\t }\n\t }\n\t\tSystem.out.println(total);\n\t}\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 total = 0L;\n\t\tfor(int i = 1; i <= N; ++i){\n\t if(i % 3 == 0 && i % 5 == 0){\n\t \tcontinue;\n\t }else if(i % 3 == 0){\n\t continue;\n\t }else if(i % 5 == 0){\n\t \tcontinue;\n\t }else{\n\t total += i;\n\t }\n\t }\n\t\tSystem.out.println(total);\n\t}\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 total = 0L;\n\t\tfor(int i = 1; i <= N; ++i){\n\t if(i % 3 == 0 && i % 5 == 0){\n\t \tcontinue;\n\t }else if(i % 3 == 0){\n\t continue;\n\t }else if(i % 5 == 0){\n\t \tcontinue;\n\t }else{\n\t total += i;\n\t }\n\t }\n\t\tSystem.out.println(total);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tLong N = sc.nextLong();\n\t\tLong total = 0L;\n\t\tfor(int i = 1; i <= N; ++i){\n\t if(i % 3 == 0 && i % 5 == 0){\n\t \tcontinue;\n\t }else if(i % 3 == 0){\n\t continue;\n\t }else if(i % 5 == 0){\n\t \tcontinue;\n\t }else{\n\t total += i;\n\t }\n\t }\n\t\tSystem.out.println(total);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Long N = sc.nextLong();",
"N",
"sc.nextLong()",
"sc.nextLong",
"sc",
"Long total = 0L;",
"total",
"0L",
"for(int i = 1; i <= N; ++i){\n\t if(i % 3 == 0 && i % 5 == 0){\n\t \tcontinue;\n\t }else if(i % 3 == 0){\n\t continue;\n\t }else if(i % 5 == 0){\n\t \tcontinue;\n\t }else{\n\t total += i;\n\t }\n\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"++i",
"++i",
"i",
"{\n\t if(i % 3 == 0 && i % 5 == 0){\n\t \tcontinue;\n\t }else if(i % 3 == 0){\n\t continue;\n\t }else if(i % 5 == 0){\n\t \tcontinue;\n\t }else{\n\t total += i;\n\t }\n\t }",
"{\n\t if(i % 3 == 0 && i % 5 == 0){\n\t \tcontinue;\n\t }else if(i % 3 == 0){\n\t continue;\n\t }else if(i % 5 == 0){\n\t \tcontinue;\n\t }else{\n\t total += i;\n\t }\n\t }",
"if(i % 3 == 0 && i % 5 == 0){\n\t \tcontinue;\n\t }else if(i % 3 == 0){\n\t continue;\n\t }else if(i % 5 == 0){\n\t \tcontinue;\n\t }else{\n\t total += i;\n\t }",
"i % 3 == 0 && i % 5 == 0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\t \tcontinue;\n\t }",
"continue;",
"if(i % 3 == 0){\n\t continue;\n\t }else if(i % 5 == 0){\n\t \tcontinue;\n\t }else{\n\t total += i;\n\t }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t continue;\n\t }",
"continue;",
"if(i % 5 == 0){\n\t \tcontinue;\n\t }else{\n\t total += i;\n\t }",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\t \tcontinue;\n\t }",
"continue;",
"{\n\t total += i;\n\t }",
"total += i",
"total",
"i",
"System.out.println(total)",
"System.out.println",
"System.out",
"System",
"System.out",
"total",
"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 total = 0L;\n\t\tfor(int i = 1; i <= N; ++i){\n\t if(i % 3 == 0 && i % 5 == 0){\n\t \tcontinue;\n\t }else if(i % 3 == 0){\n\t continue;\n\t }else if(i % 5 == 0){\n\t \tcontinue;\n\t }else{\n\t total += i;\n\t }\n\t }\n\t\tSystem.out.println(total);\n\t}\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 total = 0L;\n\t\tfor(int i = 1; i <= N; ++i){\n\t if(i % 3 == 0 && i % 5 == 0){\n\t \tcontinue;\n\t }else if(i % 3 == 0){\n\t continue;\n\t }else if(i % 5 == 0){\n\t \tcontinue;\n\t }else{\n\t total += i;\n\t }\n\t }\n\t\tSystem.out.println(total);\n\t}\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 total = 0L;
for(int i = 1; i <= N; ++i){
if(i % 3 == 0 && i % 5 == 0){
continue;
}else if(i % 3 == 0){
continue;
}else if(i % 5 == 0){
continue;
}else{
total += i;
}
}
System.out.println(total);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
33,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner a= new Scanner(System.in);\n int j = a.nextInt();\n long ans = 0;\n for(int i = 1; i <= j; i++){\n if(i%3==0 || i%5 == 0)\n continue;\n else\n ans+=i;\n }\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner a= new Scanner(System.in);\n int j = a.nextInt();\n long ans = 0;\n for(int i = 1; i <= j; i++){\n if(i%3==0 || i%5 == 0)\n continue;\n else\n ans+=i;\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner a= new Scanner(System.in);\n int j = a.nextInt();\n long ans = 0;\n for(int i = 1; i <= j; i++){\n if(i%3==0 || i%5 == 0)\n continue;\n else\n ans+=i;\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner a= new Scanner(System.in);\n int j = a.nextInt();\n long ans = 0;\n for(int i = 1; i <= j; i++){\n if(i%3==0 || i%5 == 0)\n continue;\n else\n ans+=i;\n }\n System.out.println(ans);\n }",
"Scanner a= new Scanner(System.in);",
"a",
"new Scanner(System.in)",
"int j = a.nextInt();",
"j",
"a.nextInt()",
"a.nextInt",
"a",
"long ans = 0;",
"ans",
"0",
"for(int i = 1; i <= j; i++){\n if(i%3==0 || i%5 == 0)\n continue;\n else\n ans+=i;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= j",
"i",
"j",
"i++",
"i++",
"i",
"{\n if(i%3==0 || i%5 == 0)\n continue;\n else\n ans+=i;\n }",
"{\n if(i%3==0 || i%5 == 0)\n continue;\n else\n ans+=i;\n }",
"if(i%3==0 || i%5 == 0)\n continue;\n else\n ans+=i;",
"i%3==0 || i%5 == 0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5 == 0",
"i%5",
"i",
"5",
"0",
"continue;",
"ans+=i",
"ans",
"i",
"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 a= new Scanner(System.in);\n int j = a.nextInt();\n long ans = 0;\n for(int i = 1; i <= j; i++){\n if(i%3==0 || i%5 == 0)\n continue;\n else\n ans+=i;\n }\n System.out.println(ans);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner a= new Scanner(System.in);\n int j = a.nextInt();\n long ans = 0;\n for(int i = 1; i <= j; i++){\n if(i%3==0 || i%5 == 0)\n continue;\n else\n ans+=i;\n }\n System.out.println(ans);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner a= new Scanner(System.in);
int j = a.nextInt();
long ans = 0;
for(int i = 1; i <= j; i++){
if(i%3==0 || i%5 == 0)
continue;
else
ans+=i;
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
77,
5
],
[
77,
6
],
[
6,
7
],
[
77,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
77,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
21,
30
],
[
30,
31
],
[
31,
32
],
[
21,
33
],
[
33,
34
],
[
77,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
54,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
37,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }\n \n // 変数一覧\n int n;\n\n public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n sc.close();\n\n // 解答処理\n solve();\n }\n \n private void solve() {\n long ans = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n ans += i;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }\n \n // 変数一覧\n int n;\n\n public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n sc.close();\n\n // 解答処理\n solve();\n }\n \n private void solve() {\n long ans = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n ans += i;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"// 変数一覧\n int n;",
"n",
"public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }",
"main",
"{\n Main main = new Main();\n main.run();\n }",
"Main main = new Main();",
"main",
"new Main()",
"main.run()",
"main.run",
"main",
"String[] args",
"args",
"public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n sc.close();\n\n // 解答処理\n solve();\n }",
"run",
"{\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n sc.close();\n\n // 解答処理\n solve();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"solve()",
"solve",
"private void solve() {\n long ans = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n ans += i;\n }\n }\n System.out.println(ans);\n }",
"solve",
"{\n long ans = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n ans += i;\n }\n }\n System.out.println(ans);\n }",
"long ans = 0;",
"ans",
"0",
"for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n ans += i;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (i % 3 != 0 && i % 5 != 0) {\n ans += i;\n }\n }",
"{\n if (i % 3 != 0 && i % 5 != 0) {\n ans += i;\n }\n }",
"if (i % 3 != 0 && i % 5 != 0) {\n ans += i;\n }",
"i % 3 != 0 && i % 5 != 0",
"i % 3 != 0",
"i % 3",
"i",
"3",
"0",
"i % 5 != 0",
"i % 5",
"i",
"5",
"0",
"{\n ans += i;\n }",
"ans += i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }\n \n // 変数一覧\n int n;\n\n public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n sc.close();\n\n // 解答処理\n solve();\n }\n \n private void solve() {\n long ans = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n ans += i;\n }\n }\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }\n \n // 変数一覧\n int n;\n\n public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n sc.close();\n\n // 解答処理\n solve();\n }\n \n private void solve() {\n long ans = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n ans += i;\n }\n }\n System.out.println(ans);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Main main = new Main();
main.run();
}
// 変数一覧
int n;
public void run() {
// 入力情報取得
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
sc.close();
// 解答処理
solve();
}
private void solve() {
long ans = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
ans += i;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long yono = 0;\n for(int i = 1 ; i <= n ; i++){\n if(i % 3 != 0 && i % 5 != 0){\n yono += i;\n }\n }\n System.out.println(yono);\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 long yono = 0;\n for(int i = 1 ; i <= n ; i++){\n if(i % 3 != 0 && i % 5 != 0){\n yono += i;\n }\n }\n System.out.println(yono);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long yono = 0;\n for(int i = 1 ; i <= n ; i++){\n if(i % 3 != 0 && i % 5 != 0){\n yono += i;\n }\n }\n System.out.println(yono);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long yono = 0;\n for(int i = 1 ; i <= n ; i++){\n if(i % 3 != 0 && i % 5 != 0){\n yono += i;\n }\n }\n System.out.println(yono);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long yono = 0;",
"yono",
"0",
"for(int i = 1 ; i <= n ; i++){\n if(i % 3 != 0 && i % 5 != 0){\n yono += i;\n }\n }",
"int i = 1 ;",
"int i = 1 ;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i % 3 != 0 && i % 5 != 0){\n yono += i;\n }\n }",
"{\n if(i % 3 != 0 && i % 5 != 0){\n yono += i;\n }\n }",
"if(i % 3 != 0 && i % 5 != 0){\n yono += i;\n }",
"i % 3 != 0 && i % 5 != 0",
"i % 3 != 0",
"i % 3",
"i",
"3",
"0",
"i % 5 != 0",
"i % 5",
"i",
"5",
"0",
"{\n yono += i;\n }",
"yono += i",
"yono",
"i",
"System.out.println(yono)",
"System.out.println",
"System.out",
"System",
"System.out",
"yono",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long yono = 0;\n for(int i = 1 ; i <= n ; i++){\n if(i % 3 != 0 && i % 5 != 0){\n yono += i;\n }\n }\n System.out.println(yono);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long yono = 0;\n for(int i = 1 ; i <= n ; i++){\n if(i % 3 != 0 && i % 5 != 0){\n yono += i;\n }\n }\n System.out.println(yono);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long yono = 0;
for(int i = 1 ; i <= n ; i++){
if(i % 3 != 0 && i % 5 != 0){
yono += i;
}
}
System.out.println(yono);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
39,
17,
40,
17,
17,
17,
41,
13,
39,
17,
17,
40,
17,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
0,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
18,
13,
13,
2,
18,
13,
2,
13,
17,
13,
30,
0,
18,
13,
13,
18,
13,
2,
13,
17,
4,
18,
13,
18,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
17,
17,
23,
13,
12,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
29,
17,
29,
17,
23,
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
],
[
277,
11
],
[
277,
12
],
[
12,
13
],
[
12,
14
],
[
277,
15
],
[
15,
16
],
[
15,
17
],
[
277,
18
],
[
18,
19
],
[
277,
20
],
[
20,
21
],
[
20,
22
],
[
277,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
25,
29
],
[
25,
30
],
[
277,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
33,
36
],
[
36,
37
],
[
33,
38
],
[
277,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
50,
51
],
[
50,
52
],
[
41,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
41,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
71,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
88,
94
],
[
71,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
41,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
108,
110
],
[
41,
111
],
[
111,
112
],
[
112,
113
],
[
41,
114
],
[
114,
115
],
[
115,
116
],
[
39,
117
],
[
117,
118
],
[
277,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
119,
128
],
[
128,
129
],
[
277,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
136,
138
],
[
132,
139
],
[
139,
140
],
[
139,
141
],
[
130,
142
],
[
142,
143
],
[
130,
144
],
[
144,
145
],
[
277,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
148,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
148,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
164,
166
],
[
157,
167
],
[
167,
168
],
[
168,
169
],
[
157,
170
],
[
171,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
177,
178
],
[
177,
179
],
[
172,
180
],
[
180,
181
],
[
148,
182
],
[
182,
183
],
[
146,
184
],
[
184,
185
],
[
146,
186
],
[
186,
187
],
[
277,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
188,
192
],
[
192,
193
],
[
188,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
188,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
203,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
213,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
202,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
188,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
232,
235
],
[
235,
236
],
[
188,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
241,
244
],
[
244,
245
],
[
188,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
250,
253
],
[
253,
254
],
[
188,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
261,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
272,
273
],
[
257,
274
],
[
274,
275
],
[
0,
276
],
[
276,
277
],
[
276,
278
]
] |
[
"import java.io.*;\nimport java.math.*;\nimport java.util.*;\n\n\n\n\n\npublic class Main {\n\n static MyScanner in = new MyScanner();\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n int N;\n static int max = 200001;\n static int [] dr = {1,-1,0,0};\n static int [] dc={0,0,-1,1};\n public static void main(String args[]) throws IOException {\n int N = in.nextInt();\n long [] prefx = new long[N+1];\n prefx[1] = 1;\n for(int i=2;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n prefx[i] = prefx[i-1]+i;\n }else{\n prefx[i] = prefx[i-1];\n }\n }\n out.println(prefx[N]);\n out.flush();\n\n\n out.flush();\n }\n static boolean isEven(long a){\n return (a&1)==0;\n }\n static void swap (int a, int b){\n\n int temmp = b;\n b=a;\n a = temmp;\n }\n static boolean same(int [] arr,int [] temp){\n Arrays.sort(arr);\n Arrays.sort(temp);\n for(int i=0;i<arr.length;i++){\n if(temp[i]!=arr[i])\n return false;\n }\n return true;\n }\n\n \n \n\n\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n \n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n static MyScanner in = new MyScanner();\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n int N;\n static int max = 200001;\n static int [] dr = {1,-1,0,0};\n static int [] dc={0,0,-1,1};\n public static void main(String args[]) throws IOException {\n int N = in.nextInt();\n long [] prefx = new long[N+1];\n prefx[1] = 1;\n for(int i=2;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n prefx[i] = prefx[i-1]+i;\n }else{\n prefx[i] = prefx[i-1];\n }\n }\n out.println(prefx[N]);\n out.flush();\n\n\n out.flush();\n }\n static boolean isEven(long a){\n return (a&1)==0;\n }\n static void swap (int a, int b){\n\n int temmp = b;\n b=a;\n a = temmp;\n }\n static boolean same(int [] arr,int [] temp){\n Arrays.sort(arr);\n Arrays.sort(temp);\n for(int i=0;i<arr.length;i++){\n if(temp[i]!=arr[i])\n return false;\n }\n return true;\n }\n\n \n \n\n\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n \n }\n}",
"Main",
"static MyScanner in = new MyScanner();",
"in",
"new MyScanner()",
"static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));",
"out",
"new PrintWriter(new OutputStreamWriter(System.out))",
"int N;",
"N",
"static int max = 200001;",
"max",
"200001",
"static int [] dr = {1,-1,0,0};",
"dr",
"{1,-1,0,0}",
"1",
"-1",
"1",
"0",
"0",
"static int [] dc={0,0,-1,1};",
"dc",
"{0,0,-1,1}",
"0",
"0",
"-1",
"1",
"1",
"public static void main(String args[]) throws IOException {\n int N = in.nextInt();\n long [] prefx = new long[N+1];\n prefx[1] = 1;\n for(int i=2;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n prefx[i] = prefx[i-1]+i;\n }else{\n prefx[i] = prefx[i-1];\n }\n }\n out.println(prefx[N]);\n out.flush();\n\n\n out.flush();\n }",
"main",
"{\n int N = in.nextInt();\n long [] prefx = new long[N+1];\n prefx[1] = 1;\n for(int i=2;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n prefx[i] = prefx[i-1]+i;\n }else{\n prefx[i] = prefx[i-1];\n }\n }\n out.println(prefx[N]);\n out.flush();\n\n\n out.flush();\n }",
"int N = in.nextInt();",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"long [] prefx = new long[N+1];",
"prefx",
"new long[N+1]",
"N+1",
"N",
"1",
"prefx[1] = 1",
"prefx[1]",
"prefx",
"1",
"1",
"for(int i=2;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n prefx[i] = prefx[i-1]+i;\n }else{\n prefx[i] = prefx[i-1];\n }\n }",
"int i=2;",
"int i=2;",
"i",
"2",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if(i%3!=0&&i%5!=0){\n prefx[i] = prefx[i-1]+i;\n }else{\n prefx[i] = prefx[i-1];\n }\n }",
"{\n if(i%3!=0&&i%5!=0){\n prefx[i] = prefx[i-1]+i;\n }else{\n prefx[i] = prefx[i-1];\n }\n }",
"if(i%3!=0&&i%5!=0){\n prefx[i] = prefx[i-1]+i;\n }else{\n prefx[i] = prefx[i-1];\n }",
"i%3!=0&&i%5!=0",
"i%3!=0",
"i%3",
"i",
"3",
"0",
"i%5!=0",
"i%5",
"i",
"5",
"0",
"{\n prefx[i] = prefx[i-1]+i;\n }",
"prefx[i] = prefx[i-1]+i",
"prefx[i]",
"prefx",
"i",
"prefx[i-1]+i",
"prefx[i-1]",
"prefx",
"i-1",
"i",
"1",
"i",
"{\n prefx[i] = prefx[i-1];\n }",
"prefx[i] = prefx[i-1]",
"prefx[i]",
"prefx",
"i",
"prefx[i-1]",
"prefx",
"i-1",
"i",
"1",
"out.println(prefx[N])",
"out.println",
"out",
"prefx[N]",
"prefx",
"N",
"out.flush()",
"out.flush",
"out",
"out.flush()",
"out.flush",
"out",
"String args[]",
"args",
"static boolean isEven(long a){\n return (a&1)==0;\n }",
"isEven",
"{\n return (a&1)==0;\n }",
"return (a&1)==0;",
"(a&1)==0",
"(a&1)",
"a",
"1",
"0",
"long a",
"a",
"static void swap (int a, int b){\n\n int temmp = b;\n b=a;\n a = temmp;\n }",
"swap",
"{\n\n int temmp = b;\n b=a;\n a = temmp;\n }",
"int temmp = b;",
"temmp",
"b",
"b=a",
"b",
"a",
"a = temmp",
"a",
"temmp",
"int a",
"a",
"int b",
"b",
"static boolean same(int [] arr,int [] temp){\n Arrays.sort(arr);\n Arrays.sort(temp);\n for(int i=0;i<arr.length;i++){\n if(temp[i]!=arr[i])\n return false;\n }\n return true;\n }",
"same",
"{\n Arrays.sort(arr);\n Arrays.sort(temp);\n for(int i=0;i<arr.length;i++){\n if(temp[i]!=arr[i])\n return false;\n }\n return true;\n }",
"Arrays.sort(arr)",
"Arrays.sort",
"Arrays",
"arr",
"Arrays.sort(temp)",
"Arrays.sort",
"Arrays",
"temp",
"for(int i=0;i<arr.length;i++){\n if(temp[i]!=arr[i])\n return false;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"{\n if(temp[i]!=arr[i])\n return false;\n }",
"{\n if(temp[i]!=arr[i])\n return false;\n }",
"if(temp[i]!=arr[i])\n return false;",
"temp[i]!=arr[i]",
"temp[i]",
"temp",
"i",
"arr[i]",
"arr",
"i",
"return false;",
"false",
"return true;",
"true",
"int [] arr",
"arr",
"int [] temp",
"temp",
"public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n \n }",
"MyScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"MyScanner",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\n static MyScanner in = new MyScanner();\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n int N;\n static int max = 200001;\n static int [] dr = {1,-1,0,0};\n static int [] dc={0,0,-1,1};\n public static void main(String args[]) throws IOException {\n int N = in.nextInt();\n long [] prefx = new long[N+1];\n prefx[1] = 1;\n for(int i=2;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n prefx[i] = prefx[i-1]+i;\n }else{\n prefx[i] = prefx[i-1];\n }\n }\n out.println(prefx[N]);\n out.flush();\n\n\n out.flush();\n }\n static boolean isEven(long a){\n return (a&1)==0;\n }\n static void swap (int a, int b){\n\n int temmp = b;\n b=a;\n a = temmp;\n }\n static boolean same(int [] arr,int [] temp){\n Arrays.sort(arr);\n Arrays.sort(temp);\n for(int i=0;i<arr.length;i++){\n if(temp[i]!=arr[i])\n return false;\n }\n return true;\n }\n\n \n \n\n\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n \n }\n}",
"public class Main {\n\n static MyScanner in = new MyScanner();\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n int N;\n static int max = 200001;\n static int [] dr = {1,-1,0,0};\n static int [] dc={0,0,-1,1};\n public static void main(String args[]) throws IOException {\n int N = in.nextInt();\n long [] prefx = new long[N+1];\n prefx[1] = 1;\n for(int i=2;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n prefx[i] = prefx[i-1]+i;\n }else{\n prefx[i] = prefx[i-1];\n }\n }\n out.println(prefx[N]);\n out.flush();\n\n\n out.flush();\n }\n static boolean isEven(long a){\n return (a&1)==0;\n }\n static void swap (int a, int b){\n\n int temmp = b;\n b=a;\n a = temmp;\n }\n static boolean same(int [] arr,int [] temp){\n Arrays.sort(arr);\n Arrays.sort(temp);\n for(int i=0;i<arr.length;i++){\n if(temp[i]!=arr[i])\n return false;\n }\n return true;\n }\n\n \n \n\n\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n \n }\n}",
"Main"
] |
import java.io.*;
import java.math.*;
import java.util.*;
public class Main {
static MyScanner in = new MyScanner();
static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
int N;
static int max = 200001;
static int [] dr = {1,-1,0,0};
static int [] dc={0,0,-1,1};
public static void main(String args[]) throws IOException {
int N = in.nextInt();
long [] prefx = new long[N+1];
prefx[1] = 1;
for(int i=2;i<=N;i++){
if(i%3!=0&&i%5!=0){
prefx[i] = prefx[i-1]+i;
}else{
prefx[i] = prefx[i-1];
}
}
out.println(prefx[N]);
out.flush();
out.flush();
}
static boolean isEven(long a){
return (a&1)==0;
}
static void swap (int a, int b){
int temmp = b;
b=a;
a = temmp;
}
static boolean same(int [] arr,int [] temp){
Arrays.sort(arr);
Arrays.sort(temp);
for(int i=0;i<arr.length;i++){
if(temp[i]!=arr[i])
return false;
}
return true;
}
public static class MyScanner {
BufferedReader br;
StringTokenizer st;
public MyScanner() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine(){
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
0,
13,
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
],
[
67,
11
],
[
67,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
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
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
42,
54
],
[
42,
55
],
[
55,
56
],
[
55,
57
],
[
14,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
12,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(reader.readLine());\n long count=0;\n for (int i = 1; i <=n ; i++) {\n if(i%3==0 || i%5==0)\n continue;\n else\n count+=i;\n }\n System.out.println(count);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(reader.readLine());\n long count=0;\n for (int i = 1; i <=n ; i++) {\n if(i%3==0 || i%5==0)\n continue;\n else\n count+=i;\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(reader.readLine());\n long count=0;\n for (int i = 1; i <=n ; i++) {\n if(i%3==0 || i%5==0)\n continue;\n else\n count+=i;\n }\n System.out.println(count);\n }",
"main",
"{\n BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(reader.readLine());\n long count=0;\n for (int i = 1; i <=n ; i++) {\n if(i%3==0 || i%5==0)\n continue;\n else\n count+=i;\n }\n System.out.println(count);\n }",
"BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"int n=Integer.parseInt(reader.readLine());",
"n",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"long count=0;",
"count",
"0",
"for (int i = 1; i <=n ; i++) {\n if(i%3==0 || i%5==0)\n continue;\n else\n count+=i;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i%3==0 || i%5==0)\n continue;\n else\n count+=i;\n }",
"{\n if(i%3==0 || i%5==0)\n continue;\n else\n count+=i;\n }",
"if(i%3==0 || i%5==0)\n continue;\n else\n count+=i;",
"i%3==0 || i%5==0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"continue;",
"count+=i",
"count",
"i",
"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 IOException {\n BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(reader.readLine());\n long count=0;\n for (int i = 1; i <=n ; i++) {\n if(i%3==0 || i%5==0)\n continue;\n else\n count+=i;\n }\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(reader.readLine());\n long count=0;\n for (int i = 1; i <=n ; i++) {\n if(i%3==0 || i%5==0)\n continue;\n else\n count+=i;\n }\n System.out.println(count);\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(reader.readLine());
long count=0;
for (int i = 1; i <=n ; i++) {
if(i%3==0 || i%5==0)
continue;
else
count+=i;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
29,
13,
30,
29,
17,
23,
13,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
74,
5
],
[
74,
6
],
[
6,
7
],
[
74,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
12,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
74,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
33,
42
],
[
42,
43
],
[
42,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
33,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
31,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\tstatic int N;\n\tpublic static int dfs(int a) {\n\t\tif(a%3!=0&&a%5!=0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}\n\tpublic static void main(String args[]) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tN=sc.nextInt();\n\t\tlong ans=0;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tans+=dfs(N-i);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic int N;\n\tpublic static int dfs(int a) {\n\t\tif(a%3!=0&&a%5!=0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}\n\tpublic static void main(String args[]) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tN=sc.nextInt();\n\t\tlong ans=0;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tans+=dfs(N-i);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"static int N;",
"N",
"public static int dfs(int a) {\n\t\tif(a%3!=0&&a%5!=0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}",
"dfs",
"{\n\t\tif(a%3!=0&&a%5!=0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}",
"if(a%3!=0&&a%5!=0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}",
"a%3!=0&&a%5!=0",
"a%3!=0",
"a%3",
"a",
"3",
"0",
"a%5!=0",
"a%5",
"a",
"5",
"0",
"{\n\t\t\treturn a;\n\t\t}",
"return a;",
"a",
"{\n\t\t\treturn 0;\n\t\t}",
"return 0;",
"0",
"int a",
"a",
"public static void main(String args[]) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tN=sc.nextInt();\n\t\tlong ans=0;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tans+=dfs(N-i);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tN=sc.nextInt();\n\t\tlong ans=0;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tans+=dfs(N-i);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"N=sc.nextInt()",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ans=0;",
"ans",
"0",
"for(int i=0;i<N;i++) {\n\t\t\tans+=dfs(N-i);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tans+=dfs(N-i);\n\t\t}",
"{\n\t\t\tans+=dfs(N-i);\n\t\t}",
"ans+=dfs(N-i)",
"ans",
"dfs(N-i)",
"dfs",
"N-i",
"N",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args",
"public class Main {\n\tstatic int N;\n\tpublic static int dfs(int a) {\n\t\tif(a%3!=0&&a%5!=0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}\n\tpublic static void main(String args[]) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tN=sc.nextInt();\n\t\tlong ans=0;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tans+=dfs(N-i);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\tstatic int N;\n\tpublic static int dfs(int a) {\n\t\tif(a%3!=0&&a%5!=0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}\n\tpublic static void main(String args[]) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tN=sc.nextInt();\n\t\tlong ans=0;\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tans+=dfs(N-i);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static int N;
public static int dfs(int a) {
if(a%3!=0&&a%5!=0) {
return a;
}
else {
return 0;
}
}
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
N=sc.nextInt();
long ans=0;
for(int i=0;i<N;i++) {
ans+=dfs(N-i);
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
17,
17,
41,
13,
41,
13,
41,
13,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
41,
13,
2,
2,
2,
2,
2,
17,
2,
13,
17,
13,
17,
2,
2,
2,
17,
2,
13,
17,
13,
17,
2,
2,
2,
17,
2,
13,
17,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
90,
5
],
[
90,
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
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
19,
25
],
[
8,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
53,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
51,
59
],
[
50,
60
],
[
60,
61
],
[
62,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
60,
68
],
[
49,
69
],
[
69,
70
],
[
71,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
69,
77
],
[
8,
78
],
[
78,
79
],
[
78,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
6,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n long ans = n * (n+1) / 2;\n long num3, num5, num15;\n num3 = n / 3;\n num5 = n / 5;\n num15 = n / 15;\n long sub = 3*(num3+1)*num3/2 + 5 * (num5+1)*num5/2 - 15*(num15+1)*num15/2;\n ans -= sub;\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n long ans = n * (n+1) / 2;\n long num3, num5, num15;\n num3 = n / 3;\n num5 = n / 5;\n num15 = n / 15;\n long sub = 3*(num3+1)*num3/2 + 5 * (num5+1)*num5/2 - 15*(num15+1)*num15/2;\n ans -= sub;\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n long ans = n * (n+1) / 2;\n long num3, num5, num15;\n num3 = n / 3;\n num5 = n / 5;\n num15 = n / 15;\n long sub = 3*(num3+1)*num3/2 + 5 * (num5+1)*num5/2 - 15*(num15+1)*num15/2;\n ans -= sub;\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n long ans = n * (n+1) / 2;\n long num3, num5, num15;\n num3 = n / 3;\n num5 = n / 5;\n num15 = n / 15;\n long sub = 3*(num3+1)*num3/2 + 5 * (num5+1)*num5/2 - 15*(num15+1)*num15/2;\n ans -= sub;\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n = sc.nextLong();",
"n",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long ans = n * (n+1) / 2;",
"ans",
"n * (n+1) / 2",
"n * (n+1)",
"n",
"(n+1)",
"n",
"1",
"2",
"long num3",
"num3",
"num5",
"num5",
"num15;",
"num15",
"num3 = n / 3",
"num3",
"n / 3",
"n",
"3",
"num5 = n / 5",
"num5",
"n / 5",
"n",
"5",
"num15 = n / 15",
"num15",
"n / 15",
"n",
"15",
"long sub = 3*(num3+1)*num3/2 + 5 * (num5+1)*num5/2 - 15*(num15+1)*num15/2;",
"sub",
"3*(num3+1)*num3/2 + 5 * (num5+1)*num5/2 - 15*(num15+1)*num15/2",
"3*(num3+1)*num3/2 + 5 * (num5+1)*num5/2",
"3*(num3+1)*num3/2",
"3*(num3+1)*num3",
"3*(num3+1)*num3",
"3",
"(num3+1)",
"num3",
"1",
"num3",
"2",
"5 * (num5+1)*num5/2",
"5 * (num5+1)*num5",
"5 * (num5+1)*num5",
"5",
"(num5+1)",
"num5",
"1",
"num5",
"2",
"15*(num15+1)*num15/2",
"15*(num15+1)*num15",
"15*(num15+1)*num15",
"15",
"(num15+1)",
"num15",
"1",
"num15",
"2",
"ans -= sub",
"ans",
"sub",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n long ans = n * (n+1) / 2;\n long num3, num5, num15;\n num3 = n / 3;\n num5 = n / 5;\n num15 = n / 15;\n long sub = 3*(num3+1)*num3/2 + 5 * (num5+1)*num5/2 - 15*(num15+1)*num15/2;\n ans -= sub;\n System.out.println(ans);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n long ans = n * (n+1) / 2;\n long num3, num5, num15;\n num3 = n / 3;\n num5 = n / 5;\n num15 = n / 15;\n long sub = 3*(num3+1)*num3/2 + 5 * (num5+1)*num5/2 - 15*(num15+1)*num15/2;\n ans -= sub;\n System.out.println(ans);\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 ans = n * (n+1) / 2;
long num3, num5, num15;
num3 = n / 3;
num5 = n / 5;
num15 = n / 15;
long sub = 3*(num3+1)*num3/2 + 5 * (num5+1)*num5/2 - 15*(num15+1)*num15/2;
ans -= sub;
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
30,
0,
13,
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
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
14,
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
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
46,
58
],
[
46,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
59,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
66,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
14,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
12,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main{\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(in.readLine());\n String[] fizzBuzz = new String[n];\n long sum = 0;\n for(int i = 1; i<=n; i++){\n if(i%3==0 && i%5==0){\n// fizzBuzz[i-1] = \"FizzBuzz\";\n } else if(i%3==0){\n// fizzBuzz[i-1] = \"Fizz\";\n } else if(i%5==0){\n// fizzBuzz[i-1] = \"Buzz\";\n } else {\n sum += (long)i;\n }\n }\n System.out.println(sum);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"public class Main{\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(in.readLine());\n String[] fizzBuzz = new String[n];\n long sum = 0;\n for(int i = 1; i<=n; i++){\n if(i%3==0 && i%5==0){\n// fizzBuzz[i-1] = \"FizzBuzz\";\n } else if(i%3==0){\n// fizzBuzz[i-1] = \"Fizz\";\n } else if(i%5==0){\n// fizzBuzz[i-1] = \"Buzz\";\n } else {\n sum += (long)i;\n }\n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(in.readLine());\n String[] fizzBuzz = new String[n];\n long sum = 0;\n for(int i = 1; i<=n; i++){\n if(i%3==0 && i%5==0){\n// fizzBuzz[i-1] = \"FizzBuzz\";\n } else if(i%3==0){\n// fizzBuzz[i-1] = \"Fizz\";\n } else if(i%5==0){\n// fizzBuzz[i-1] = \"Buzz\";\n } else {\n sum += (long)i;\n }\n }\n System.out.println(sum);\n }",
"main",
"{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(in.readLine());\n String[] fizzBuzz = new String[n];\n long sum = 0;\n for(int i = 1; i<=n; i++){\n if(i%3==0 && i%5==0){\n// fizzBuzz[i-1] = \"FizzBuzz\";\n } else if(i%3==0){\n// fizzBuzz[i-1] = \"Fizz\";\n } else if(i%5==0){\n// fizzBuzz[i-1] = \"Buzz\";\n } else {\n sum += (long)i;\n }\n }\n System.out.println(sum);\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(in.readLine());",
"n",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"String[] fizzBuzz = new String[n];",
"fizzBuzz",
"new String[n]",
"n",
"long sum = 0;",
"sum",
"0",
"for(int i = 1; i<=n; i++){\n if(i%3==0 && i%5==0){\n// fizzBuzz[i-1] = \"FizzBuzz\";\n } else if(i%3==0){\n// fizzBuzz[i-1] = \"Fizz\";\n } else if(i%5==0){\n// fizzBuzz[i-1] = \"Buzz\";\n } else {\n sum += (long)i;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i%3==0 && i%5==0){\n// fizzBuzz[i-1] = \"FizzBuzz\";\n } else if(i%3==0){\n// fizzBuzz[i-1] = \"Fizz\";\n } else if(i%5==0){\n// fizzBuzz[i-1] = \"Buzz\";\n } else {\n sum += (long)i;\n }\n }",
"{\n if(i%3==0 && i%5==0){\n// fizzBuzz[i-1] = \"FizzBuzz\";\n } else if(i%3==0){\n// fizzBuzz[i-1] = \"Fizz\";\n } else if(i%5==0){\n// fizzBuzz[i-1] = \"Buzz\";\n } else {\n sum += (long)i;\n }\n }",
"if(i%3==0 && i%5==0){\n// fizzBuzz[i-1] = \"FizzBuzz\";\n } else if(i%3==0){\n// fizzBuzz[i-1] = \"Fizz\";\n } else if(i%5==0){\n// fizzBuzz[i-1] = \"Buzz\";\n } else {\n sum += (long)i;\n }",
"i%3==0 && i%5==0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"{\n// fizzBuzz[i-1] = \"FizzBuzz\";\n }",
"if(i%3==0){\n// fizzBuzz[i-1] = \"Fizz\";\n } else if(i%5==0){\n// fizzBuzz[i-1] = \"Buzz\";\n } else {\n sum += (long)i;\n }",
"i%3==0",
"i%3",
"i",
"3",
"0",
"{\n// fizzBuzz[i-1] = \"Fizz\";\n }",
"if(i%5==0){\n// fizzBuzz[i-1] = \"Buzz\";\n } else {\n sum += (long)i;\n }",
"i%5==0",
"i%5",
"i",
"5",
"0",
"{\n// fizzBuzz[i-1] = \"Buzz\";\n }",
"{\n sum += (long)i;\n }",
"sum += (long)i",
"sum",
"(long)i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"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 int n = Integer.parseInt(in.readLine());\n String[] fizzBuzz = new String[n];\n long sum = 0;\n for(int i = 1; i<=n; i++){\n if(i%3==0 && i%5==0){\n// fizzBuzz[i-1] = \"FizzBuzz\";\n } else if(i%3==0){\n// fizzBuzz[i-1] = \"Fizz\";\n } else if(i%5==0){\n// fizzBuzz[i-1] = \"Buzz\";\n } else {\n sum += (long)i;\n }\n }\n System.out.println(sum);\n }\n}",
"public class Main{\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(in.readLine());\n String[] fizzBuzz = new String[n];\n long sum = 0;\n for(int i = 1; i<=n; i++){\n if(i%3==0 && i%5==0){\n// fizzBuzz[i-1] = \"FizzBuzz\";\n } else if(i%3==0){\n// fizzBuzz[i-1] = \"Fizz\";\n } else if(i%5==0){\n// fizzBuzz[i-1] = \"Buzz\";\n } else {\n sum += (long)i;\n }\n }\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main{
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(in.readLine());
String[] fizzBuzz = new String[n];
long sum = 0;
for(int i = 1; i<=n; i++){
if(i%3==0 && i%5==0){
// fizzBuzz[i-1] = "FizzBuzz";
} else if(i%3==0){
// fizzBuzz[i-1] = "Fizz";
} else if(i%5==0){
// fizzBuzz[i-1] = "Buzz";
} else {
sum += (long)i;
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
61,
5
],
[
61,
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
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
36,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long num = Long.parseLong(scanner.nextLine());\n long total = 0;\n for (long i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n total += i;\n }\n }\n System.out.println(total);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long num = Long.parseLong(scanner.nextLine());\n long total = 0;\n for (long i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n total += i;\n }\n }\n System.out.println(total);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long num = Long.parseLong(scanner.nextLine());\n long total = 0;\n for (long i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n total += i;\n }\n }\n System.out.println(total);\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n long num = Long.parseLong(scanner.nextLine());\n long total = 0;\n for (long i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n total += i;\n }\n }\n System.out.println(total);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"long num = Long.parseLong(scanner.nextLine());",
"num",
"Long.parseLong(scanner.nextLine())",
"Long.parseLong",
"Long",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"long total = 0;",
"total",
"0",
"for (long i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n total += i;\n }\n }",
"long i = 1;",
"long i = 1;",
"i",
"1",
"i <= num",
"i",
"num",
"i++",
"i++",
"i",
"{\n if (i % 3 != 0 && i % 5 != 0) {\n total += i;\n }\n }",
"{\n if (i % 3 != 0 && i % 5 != 0) {\n total += i;\n }\n }",
"if (i % 3 != 0 && i % 5 != 0) {\n total += i;\n }",
"i % 3 != 0 && i % 5 != 0",
"i % 3 != 0",
"i % 3",
"i",
"3",
"0",
"i % 5 != 0",
"i % 5",
"i",
"5",
"0",
"{\n total += i;\n }",
"total += i",
"total",
"i",
"System.out.println(total)",
"System.out.println",
"System.out",
"System",
"System.out",
"total",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long num = Long.parseLong(scanner.nextLine());\n long total = 0;\n for (long i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n total += i;\n }\n }\n System.out.println(total);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long num = Long.parseLong(scanner.nextLine());\n long total = 0;\n for (long i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n total += i;\n }\n }\n System.out.println(total);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
long num = Long.parseLong(scanner.nextLine());
long total = 0;
for (long i = 1; i <= num; i++) {
if (i % 3 != 0 && i % 5 != 0) {
total += i;
}
}
System.out.println(total);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
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
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
12,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
19,
31
],
[
31,
32
],
[
31,
33
],
[
19,
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
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
47,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
19,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
9,
69
],
[
69,
70
]
] |
[
"import java.util.*;\nimport java.math.*;\n \nclass Main{\n public static void main(String[] args) {\n \n try(Scanner sc = new Scanner(System.in)){\n \n int n = Integer.parseInt(sc.next());\n long ans = 0;\n\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0){\n ans += i;\n }\n }\n\n System.out.println(ans);\n \n\n }catch(Exception e){\n e.printStackTrace();\n } \n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"class Main{\n public static void main(String[] args) {\n \n try(Scanner sc = new Scanner(System.in)){\n \n int n = Integer.parseInt(sc.next());\n long ans = 0;\n\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0){\n ans += i;\n }\n }\n\n System.out.println(ans);\n \n\n }catch(Exception e){\n e.printStackTrace();\n } \n }\n}",
"Main",
"public static void main(String[] args) {\n \n try(Scanner sc = new Scanner(System.in)){\n \n int n = Integer.parseInt(sc.next());\n long ans = 0;\n\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0){\n ans += i;\n }\n }\n\n System.out.println(ans);\n \n\n }catch(Exception e){\n e.printStackTrace();\n } \n }",
"main",
"{\n \n try(Scanner sc = new Scanner(System.in)){\n \n int n = Integer.parseInt(sc.next());\n long ans = 0;\n\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0){\n ans += i;\n }\n }\n\n System.out.println(ans);\n \n\n }catch(Exception e){\n e.printStackTrace();\n } \n }",
"try(Scanner sc = new Scanner(System.in)){\n \n int n = Integer.parseInt(sc.next());\n long ans = 0;\n\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0){\n ans += i;\n }\n }\n\n System.out.println(ans);\n \n\n }catch(Exception e){\n e.printStackTrace();\n }",
"catch(Exception e){\n e.printStackTrace();\n }",
"Exception e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n \n int n = Integer.parseInt(sc.next());\n long ans = 0;\n\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0){\n ans += i;\n }\n }\n\n System.out.println(ans);\n \n\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"long ans = 0;",
"ans",
"0",
"for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0){\n ans += i;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i % 3 != 0 && i % 5 != 0){\n ans += i;\n }\n }",
"{\n if(i % 3 != 0 && i % 5 != 0){\n ans += i;\n }\n }",
"if(i % 3 != 0 && i % 5 != 0){\n ans += i;\n }",
"i % 3 != 0 && i % 5 != 0",
"i % 3 != 0",
"i % 3",
"i",
"3",
"0",
"i % 5 != 0",
"i % 5",
"i",
"5",
"0",
"{\n ans += i;\n }",
"ans += i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
] |
import java.util.*;
import java.math.*;
class Main{
public static void main(String[] args) {
try(Scanner sc = new Scanner(System.in)){
int n = Integer.parseInt(sc.next());
long ans = 0;
for(int i = 1; i <= n; i++){
if(i % 3 != 0 && i % 5 != 0){
ans += i;
}
}
System.out.println(ans);
}catch(Exception e){
e.printStackTrace();
}
}
}
|
[
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,
4,
18,
13,
4,
18,
13,
17,
5,
13,
30,
4,
18,
13,
4,
18,
13,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
9,
14,
2,
2,
13,
17,
17,
30,
9,
14,
2,
2,
13,
17,
17,
30,
9,
30,
4,
18,
13,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
2,
13,
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
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
21,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
21,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
42,
54
],
[
54,
55
],
[
54,
56
],
[
42,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
70,
82
],
[
82,
83
],
[
70,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
42,
105
],
[
105,
106
],
[
105,
107
],
[
42,
108
],
[
108,
109
],
[
108,
110
],
[
108,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
42,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
18,
124
],
[
124,
125
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\nclass Main {\n\n public static void main(String[] args) throws Exception {\n\n try {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n long count = Integer.parseInt(br.readLine());\n List<Long> numberList = new ArrayList<>();\n for (long i = 1; i <= count; i++) {\n if (i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if (i % 3 == 0) {\n continue;\n } else if (i % 5 == 0) {\n continue;\n } else {\n numberList.add(i);\n }\n }\n\n long result = 0;\n for (long number : numberList) {\n result = result + number;\n }\n System.out.println(result);\n } catch (IOException | NumberFormatException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (final Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"class Main {\n\n public static void main(String[] args) throws Exception {\n\n try {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n long count = Integer.parseInt(br.readLine());\n List<Long> numberList = new ArrayList<>();\n for (long i = 1; i <= count; i++) {\n if (i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if (i % 3 == 0) {\n continue;\n } else if (i % 5 == 0) {\n continue;\n } else {\n numberList.add(i);\n }\n }\n\n long result = 0;\n for (long number : numberList) {\n result = result + number;\n }\n System.out.println(result);\n } catch (IOException | NumberFormatException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (final Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\n try {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n long count = Integer.parseInt(br.readLine());\n List<Long> numberList = new ArrayList<>();\n for (long i = 1; i <= count; i++) {\n if (i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if (i % 3 == 0) {\n continue;\n } else if (i % 5 == 0) {\n continue;\n } else {\n numberList.add(i);\n }\n }\n\n long result = 0;\n for (long number : numberList) {\n result = result + number;\n }\n System.out.println(result);\n } catch (IOException | NumberFormatException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (final Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n }",
"main",
"{\n\n try {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n long count = Integer.parseInt(br.readLine());\n List<Long> numberList = new ArrayList<>();\n for (long i = 1; i <= count; i++) {\n if (i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if (i % 3 == 0) {\n continue;\n } else if (i % 5 == 0) {\n continue;\n } else {\n numberList.add(i);\n }\n }\n\n long result = 0;\n for (long number : numberList) {\n result = result + number;\n }\n System.out.println(result);\n } catch (IOException | NumberFormatException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (final Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n }",
"try {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n long count = Integer.parseInt(br.readLine());\n List<Long> numberList = new ArrayList<>();\n for (long i = 1; i <= count; i++) {\n if (i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if (i % 3 == 0) {\n continue;\n } else if (i % 5 == 0) {\n continue;\n } else {\n numberList.add(i);\n }\n }\n\n long result = 0;\n for (long number : numberList) {\n result = result + number;\n }\n System.out.println(result);\n } catch (IOException | NumberFormatException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (final Exception e) {\n e.printStackTrace();\n System.exit(0);\n }",
"catch (IOException | NumberFormatException e) {\n e.printStackTrace();\n System.exit(0);\n }",
"IOException | NumberFormatException e",
"{\n e.printStackTrace();\n System.exit(0);\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"System.exit(0)",
"System.exit",
"System",
"0",
"catch (final Exception e) {\n e.printStackTrace();\n System.exit(0);\n }",
"final Exception e",
"{\n e.printStackTrace();\n System.exit(0);\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"System.exit(0)",
"System.exit",
"System",
"0",
"{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n long count = Integer.parseInt(br.readLine());\n List<Long> numberList = new ArrayList<>();\n for (long i = 1; i <= count; i++) {\n if (i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if (i % 3 == 0) {\n continue;\n } else if (i % 5 == 0) {\n continue;\n } else {\n numberList.add(i);\n }\n }\n\n long result = 0;\n for (long number : numberList) {\n result = result + number;\n }\n System.out.println(result);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"long count = Integer.parseInt(br.readLine());",
"count",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"List<Long> numberList = new ArrayList<>();",
"numberList",
"new ArrayList<>()",
"for (long i = 1; i <= count; i++) {\n if (i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if (i % 3 == 0) {\n continue;\n } else if (i % 5 == 0) {\n continue;\n } else {\n numberList.add(i);\n }\n }",
"long i = 1;",
"long i = 1;",
"i",
"1",
"i <= count",
"i",
"count",
"i++",
"i++",
"i",
"{\n if (i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if (i % 3 == 0) {\n continue;\n } else if (i % 5 == 0) {\n continue;\n } else {\n numberList.add(i);\n }\n }",
"{\n if (i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if (i % 3 == 0) {\n continue;\n } else if (i % 5 == 0) {\n continue;\n } else {\n numberList.add(i);\n }\n }",
"if (i % 3 == 0 && i % 5 == 0) {\n continue;\n } else if (i % 3 == 0) {\n continue;\n } else if (i % 5 == 0) {\n continue;\n } else {\n numberList.add(i);\n }",
"i % 3 == 0 && i % 5 == 0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n continue;\n }",
"continue;",
"if (i % 3 == 0) {\n continue;\n } else if (i % 5 == 0) {\n continue;\n } else {\n numberList.add(i);\n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n continue;\n }",
"continue;",
"if (i % 5 == 0) {\n continue;\n } else {\n numberList.add(i);\n }",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n continue;\n }",
"continue;",
"{\n numberList.add(i);\n }",
"numberList.add(i)",
"numberList.add",
"numberList",
"i",
"long result = 0;",
"result",
"0",
"for (long number : numberList) {\n result = result + number;\n }",
"long number",
"numberList",
"{\n result = result + number;\n }",
"{\n result = result + number;\n }",
"result = result + number",
"result",
"result + number",
"result",
"number",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
class Main {
public static void main(String[] args) throws Exception {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
long count = Integer.parseInt(br.readLine());
List<Long> numberList = new ArrayList<>();
for (long i = 1; i <= count; i++) {
if (i % 3 == 0 && i % 5 == 0) {
continue;
} else if (i % 3 == 0) {
continue;
} else if (i % 5 == 0) {
continue;
} else {
numberList.add(i);
}
}
long result = 0;
for (long number : numberList) {
result = result + number;
}
System.out.println(result);
} catch (IOException | NumberFormatException e) {
e.printStackTrace();
System.exit(0);
} catch (final Exception e) {
e.printStackTrace();
System.exit(0);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
4,
18,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
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
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
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
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
66,
78
],
[
78,
79
],
[
79,
80
],
[
78,
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.math.BigInteger;\nimport java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int sum = 0;\n for (int i = 1; i <= K; i++) {\n for (int j = 1; j <= K; j++) {\n for (int k = 1; k <= K; k++) {\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }\n }\n }\n System.out.println(sum);\n }\n}",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int sum = 0;\n for (int i = 1; i <= K; i++) {\n for (int j = 1; j <= K; j++) {\n for (int k = 1; k <= K; k++) {\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }\n }\n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int sum = 0;\n for (int i = 1; i <= K; i++) {\n for (int j = 1; j <= K; j++) {\n for (int k = 1; k <= K; k++) {\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }\n }\n }\n System.out.println(sum);\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int sum = 0;\n for (int i = 1; i <= K; i++) {\n for (int j = 1; j <= K; j++) {\n for (int k = 1; k <= K; k++) {\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }\n }\n }\n System.out.println(sum);\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int K = in.nextInt();",
"K",
"in.nextInt()",
"in.nextInt",
"in",
"int sum = 0;",
"sum",
"0",
"for (int i = 1; i <= K; i++) {\n for (int j = 1; j <= K; j++) {\n for (int k = 1; k <= K; k++) {\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= K",
"i",
"K",
"i++",
"i++",
"i",
"{\n for (int j = 1; j <= K; j++) {\n for (int k = 1; k <= K; k++) {\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }\n }\n }",
"{\n for (int j = 1; j <= K; j++) {\n for (int k = 1; k <= K; k++) {\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }\n }\n }",
"for (int j = 1; j <= K; j++) {\n for (int k = 1; k <= K; k++) {\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }\n }",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= K",
"j",
"K",
"j++",
"j++",
"j",
"{\n for (int k = 1; k <= K; k++) {\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }\n }",
"{\n for (int k = 1; k <= K; k++) {\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }\n }",
"for (int k = 1; k <= K; k++) {\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }",
"int k = 1;",
"int k = 1;",
"k",
"1",
"k <= K",
"k",
"K",
"k++",
"k++",
"k",
"{\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }",
"{\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }",
"sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue()",
"sum",
"BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue()",
"BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue",
"BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k))",
"BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd",
"BigInteger.valueOf(i).gcd(BigInteger.valueOf(j))",
"BigInteger.valueOf(i).gcd",
"BigInteger.valueOf(i)",
"BigInteger.valueOf",
"BigInteger",
"i",
"BigInteger.valueOf(j)",
"BigInteger.valueOf",
"BigInteger",
"j",
"BigInteger.valueOf(k)",
"BigInteger.valueOf",
"BigInteger",
"k",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int sum = 0;\n for (int i = 1; i <= K; i++) {\n for (int j = 1; j <= K; j++) {\n for (int k = 1; k <= K; k++) {\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }\n }\n }\n System.out.println(sum);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int sum = 0;\n for (int i = 1; i <= K; i++) {\n for (int j = 1; j <= K; j++) {\n for (int k = 1; k <= K; k++) {\n sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();\n }\n }\n }\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.math.BigInteger;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int K = in.nextInt();
int sum = 0;
for (int i = 1; i <= K; i++) {
for (int j = 1; j <= K; j++) {
for (int k = 1; k <= K; k++) {
sum += BigInteger.valueOf(i).gcd(BigInteger.valueOf(j)).gcd(BigInteger.valueOf(k)).intValue();
}
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
13,
0,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
14,
2,
13,
17,
29,
13,
14,
2,
13,
17,
29,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
29,
4,
13,
2,
13,
13,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
126,
5
],
[
126,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
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
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
64,
67
],
[
61,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
70,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
6,
80
],
[
80,
81
],
[
126,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
84,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
84,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
104,
111
],
[
111,
112
],
[
111,
113
],
[
84,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
82,
121
],
[
121,
122
],
[
82,
123
],
[
123,
124
],
[
0,
125
],
[
125,
126
],
[
125,
127
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n long sum = 0;\n int tmpGcd = 0;\n for (int i = 1; i <= K; i++){\n for (int j = 1; j <= K; j++){\n for (int k = 1; k <= K; k++){\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }\n }\n }\n System.out.println(sum);\n\n }\n\n public static int gcd (int a, int b){\n int tmp = 0;\n if (a == 0) return b;\n if (b == 0) return a;\n if (a > b){\n tmp = a;\n a = b;\n b = tmp;\n }\n return gcd(b % a, a);\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 K = sc.nextInt();\n long sum = 0;\n int tmpGcd = 0;\n for (int i = 1; i <= K; i++){\n for (int j = 1; j <= K; j++){\n for (int k = 1; k <= K; k++){\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }\n }\n }\n System.out.println(sum);\n\n }\n\n public static int gcd (int a, int b){\n int tmp = 0;\n if (a == 0) return b;\n if (b == 0) return a;\n if (a > b){\n tmp = a;\n a = b;\n b = tmp;\n }\n return gcd(b % a, a);\n }\n}",
"Main",
"public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n long sum = 0;\n int tmpGcd = 0;\n for (int i = 1; i <= K; i++){\n for (int j = 1; j <= K; j++){\n for (int k = 1; k <= K; k++){\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }\n }\n }\n System.out.println(sum);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n long sum = 0;\n int tmpGcd = 0;\n for (int i = 1; i <= K; i++){\n for (int j = 1; j <= K; j++){\n for (int k = 1; k <= K; k++){\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }\n }\n }\n System.out.println(sum);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"int tmpGcd = 0;",
"tmpGcd",
"0",
"for (int i = 1; i <= K; i++){\n for (int j = 1; j <= K; j++){\n for (int k = 1; k <= K; k++){\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= K",
"i",
"K",
"i++",
"i++",
"i",
"{\n for (int j = 1; j <= K; j++){\n for (int k = 1; k <= K; k++){\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }\n }\n }",
"{\n for (int j = 1; j <= K; j++){\n for (int k = 1; k <= K; k++){\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }\n }\n }",
"for (int j = 1; j <= K; j++){\n for (int k = 1; k <= K; k++){\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }\n }",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= K",
"j",
"K",
"j++",
"j++",
"j",
"{\n for (int k = 1; k <= K; k++){\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }\n }",
"{\n for (int k = 1; k <= K; k++){\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }\n }",
"for (int k = 1; k <= K; k++){\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }",
"int k = 1;",
"int k = 1;",
"k",
"1",
"k <= K",
"k",
"K",
"k++",
"k++",
"k",
"{\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }",
"{\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }",
"tmpGcd = gcd(i, j)",
"tmpGcd",
"gcd(i, j)",
"gcd",
"i",
"j",
"sum += gcd(tmpGcd, k)",
"sum",
"gcd(tmpGcd, k)",
"gcd",
"tmpGcd",
"k",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public static int gcd (int a, int b){\n int tmp = 0;\n if (a == 0) return b;\n if (b == 0) return a;\n if (a > b){\n tmp = a;\n a = b;\n b = tmp;\n }\n return gcd(b % a, a);\n }",
"gcd",
"{\n int tmp = 0;\n if (a == 0) return b;\n if (b == 0) return a;\n if (a > b){\n tmp = a;\n a = b;\n b = tmp;\n }\n return gcd(b % a, a);\n }",
"int tmp = 0;",
"tmp",
"0",
"if (a == 0) return b;",
"a == 0",
"a",
"0",
"return b;",
"b",
"if (b == 0) return a;",
"b == 0",
"b",
"0",
"return a;",
"a",
"if (a > b){\n tmp = a;\n a = b;\n b = tmp;\n }",
"a > b",
"a",
"b",
"{\n tmp = a;\n a = b;\n b = tmp;\n }",
"tmp = a",
"tmp",
"a",
"a = b",
"a",
"b",
"b = tmp",
"b",
"tmp",
"return gcd(b % a, a);",
"gcd(b % a, a)",
"gcd",
"b % a",
"b",
"a",
"a",
"int a",
"a",
"int b",
"b",
"public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n long sum = 0;\n int tmpGcd = 0;\n for (int i = 1; i <= K; i++){\n for (int j = 1; j <= K; j++){\n for (int k = 1; k <= K; k++){\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }\n }\n }\n System.out.println(sum);\n\n }\n\n public static int gcd (int a, int b){\n int tmp = 0;\n if (a == 0) return b;\n if (b == 0) return a;\n if (a > b){\n tmp = a;\n a = b;\n b = tmp;\n }\n return gcd(b % a, a);\n }\n}",
"public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n long sum = 0;\n int tmpGcd = 0;\n for (int i = 1; i <= K; i++){\n for (int j = 1; j <= K; j++){\n for (int k = 1; k <= K; k++){\n tmpGcd = gcd(i, j);\n sum += gcd(tmpGcd, k);\n }\n }\n }\n System.out.println(sum);\n\n }\n\n public static int gcd (int a, int b){\n int tmp = 0;\n if (a == 0) return b;\n if (b == 0) return a;\n if (a > b){\n tmp = a;\n a = b;\n b = tmp;\n }\n return gcd(b % a, a);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
long sum = 0;
int tmpGcd = 0;
for (int i = 1; i <= K; i++){
for (int j = 1; j <= K; j++){
for (int k = 1; k <= K; k++){
tmpGcd = gcd(i, j);
sum += gcd(tmpGcd, k);
}
}
}
System.out.println(sum);
}
public static int gcd (int a, int b){
int tmp = 0;
if (a == 0) return b;
if (b == 0) return a;
if (a > b){
tmp = a;
a = b;
b = tmp;
}
return gcd(b % a, a);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
13,
0,
13,
13,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
30,
0,
13,
13,
0,
13,
13,
42,
2,
0,
13,
2,
13,
13,
17,
30,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
30,
0,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
158,
8
],
[
158,
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
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
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
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
57,
60
],
[
54,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
76,
79
],
[
73,
80
],
[
80,
81
],
[
80,
82
],
[
41,
83
],
[
83,
84
],
[
83,
85
],
[
41,
86
],
[
86,
87
],
[
86,
88
],
[
11,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
9,
95
],
[
95,
96
],
[
158,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
99,
106
],
[
106,
107
],
[
106,
108
],
[
99,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
117,
119
],
[
109,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
124,
126
],
[
99,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
128,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
144,
146
],
[
136,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
99,
151
],
[
151,
152
],
[
97,
153
],
[
153,
154
],
[
97,
155
],
[
155,
156
],
[
0,
157
],
[
157,
158
],
[
157,
159
]
] |
[
"import java.util.*;\nimport java.math.*;\npublic class Main {\n \npublic static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t// 入力\n\tint a = sc.nextInt();\n\tint res = 0;\n\tint gcd1 = 0;\n\tint gcd2 = 0;\n \n for(int i=1;i<=a;i++) {\n for(int j=1;j<=a;j++) {\n gcd1 = gcd(i, j);\n for(int k=1;k<=a;k++) {\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }\n }\n gcd1 = 0; //初期化\n gcd2 = 0; //初期化\n }\n\t// 出力\n System.out.println(res);\n\t}\n\t\n\t//最大公約数算出\n\tpublic static int gcd(int m, int n) {\n\t int r = 0;\n\t int a = 0;\n\t int b = 0;\n\t if(m >= n) {\n\t a = m;\n\t b = n;\n\t } else {\n\t a = n;\n\t b = m;\n\t }\n while( (r = a % b) != 0 ) {\n if(r != a) { \n a = b;\n b = r;\n } else {\n b = a;\n }\n }\n return b;\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main {\n \npublic static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t// 入力\n\tint a = sc.nextInt();\n\tint res = 0;\n\tint gcd1 = 0;\n\tint gcd2 = 0;\n \n for(int i=1;i<=a;i++) {\n for(int j=1;j<=a;j++) {\n gcd1 = gcd(i, j);\n for(int k=1;k<=a;k++) {\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }\n }\n gcd1 = 0; //初期化\n gcd2 = 0; //初期化\n }\n\t// 出力\n System.out.println(res);\n\t}\n\t\n\t//最大公約数算出\n\tpublic static int gcd(int m, int n) {\n\t int r = 0;\n\t int a = 0;\n\t int b = 0;\n\t if(m >= n) {\n\t a = m;\n\t b = n;\n\t } else {\n\t a = n;\n\t b = m;\n\t }\n while( (r = a % b) != 0 ) {\n if(r != a) { \n a = b;\n b = r;\n } else {\n b = a;\n }\n }\n return b;\n }\n}",
"Main",
"public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t// 入力\n\tint a = sc.nextInt();\n\tint res = 0;\n\tint gcd1 = 0;\n\tint gcd2 = 0;\n \n for(int i=1;i<=a;i++) {\n for(int j=1;j<=a;j++) {\n gcd1 = gcd(i, j);\n for(int k=1;k<=a;k++) {\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }\n }\n gcd1 = 0; //初期化\n gcd2 = 0; //初期化\n }\n\t// 出力\n System.out.println(res);\n\t}",
"main",
"{\n\tScanner sc = new Scanner(System.in);\n\t// 入力\n\tint a = sc.nextInt();\n\tint res = 0;\n\tint gcd1 = 0;\n\tint gcd2 = 0;\n \n for(int i=1;i<=a;i++) {\n for(int j=1;j<=a;j++) {\n gcd1 = gcd(i, j);\n for(int k=1;k<=a;k++) {\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }\n }\n gcd1 = 0; //初期化\n gcd2 = 0; //初期化\n }\n\t// 出力\n System.out.println(res);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int res = 0;",
"res",
"0",
"int gcd1 = 0;",
"gcd1",
"0",
"int gcd2 = 0;",
"gcd2",
"0",
"for(int i=1;i<=a;i++) {\n for(int j=1;j<=a;j++) {\n gcd1 = gcd(i, j);\n for(int k=1;k<=a;k++) {\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }\n }\n gcd1 = 0; //初期化\n gcd2 = 0; //初期化\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=a",
"i",
"a",
"i++",
"i++",
"i",
"{\n for(int j=1;j<=a;j++) {\n gcd1 = gcd(i, j);\n for(int k=1;k<=a;k++) {\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }\n }\n gcd1 = 0; //初期化\n gcd2 = 0; //初期化\n }",
"{\n for(int j=1;j<=a;j++) {\n gcd1 = gcd(i, j);\n for(int k=1;k<=a;k++) {\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }\n }\n gcd1 = 0; //初期化\n gcd2 = 0; //初期化\n }",
"for(int j=1;j<=a;j++) {\n gcd1 = gcd(i, j);\n for(int k=1;k<=a;k++) {\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }\n }",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=a",
"j",
"a",
"j++",
"j++",
"j",
"{\n gcd1 = gcd(i, j);\n for(int k=1;k<=a;k++) {\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }\n }",
"{\n gcd1 = gcd(i, j);\n for(int k=1;k<=a;k++) {\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }\n }",
"gcd1 = gcd(i, j)",
"gcd1",
"gcd(i, j)",
"gcd",
"i",
"j",
"for(int k=1;k<=a;k++) {\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }",
"int k=1;",
"int k=1;",
"k",
"1",
"k<=a",
"k",
"a",
"k++",
"k++",
"k",
"{\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }",
"{\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }",
"gcd2 = gcd(gcd1, k)",
"gcd2",
"gcd(gcd1, k)",
"gcd",
"gcd1",
"k",
"res += gcd2",
"res",
"gcd2",
"gcd1 = 0",
"gcd1",
"0",
"gcd2 = 0",
"gcd2",
"0",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"String[] args",
"args",
"//最大公約数算出\n\tpublic static int gcd(int m, int n) {\n\t int r = 0;\n\t int a = 0;\n\t int b = 0;\n\t if(m >= n) {\n\t a = m;\n\t b = n;\n\t } else {\n\t a = n;\n\t b = m;\n\t }\n while( (r = a % b) != 0 ) {\n if(r != a) { \n a = b;\n b = r;\n } else {\n b = a;\n }\n }\n return b;\n }",
"gcd",
"{\n\t int r = 0;\n\t int a = 0;\n\t int b = 0;\n\t if(m >= n) {\n\t a = m;\n\t b = n;\n\t } else {\n\t a = n;\n\t b = m;\n\t }\n while( (r = a % b) != 0 ) {\n if(r != a) { \n a = b;\n b = r;\n } else {\n b = a;\n }\n }\n return b;\n }",
"int r = 0;",
"r",
"0",
"int a = 0;",
"a",
"0",
"int b = 0;",
"b",
"0",
"if(m >= n) {\n\t a = m;\n\t b = n;\n\t } else {\n\t a = n;\n\t b = m;\n\t }",
"m >= n",
"m",
"n",
"{\n\t a = m;\n\t b = n;\n\t }",
"a = m",
"a",
"m",
"b = n",
"b",
"n",
"{\n\t a = n;\n\t b = m;\n\t }",
"a = n",
"a",
"n",
"b = m",
"b",
"m",
"while( (r = a % b) != 0 ) {\n if(r != a) { \n a = b;\n b = r;\n } else {\n b = a;\n }\n }",
"(r = a % b) != 0",
"(r = a % b)",
"r",
"a % b",
"a",
"b",
"0",
"{\n if(r != a) { \n a = b;\n b = r;\n } else {\n b = a;\n }\n }",
"if(r != a) { \n a = b;\n b = r;\n } else {\n b = a;\n }",
"r != a",
"r",
"a",
"{ \n a = b;\n b = r;\n }",
"a = b",
"a",
"b",
"b = r",
"b",
"r",
"{\n b = a;\n }",
"b = a",
"b",
"a",
"return b;",
"b",
"int m",
"m",
"int n",
"n",
"public class Main {\n \npublic static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t// 入力\n\tint a = sc.nextInt();\n\tint res = 0;\n\tint gcd1 = 0;\n\tint gcd2 = 0;\n \n for(int i=1;i<=a;i++) {\n for(int j=1;j<=a;j++) {\n gcd1 = gcd(i, j);\n for(int k=1;k<=a;k++) {\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }\n }\n gcd1 = 0; //初期化\n gcd2 = 0; //初期化\n }\n\t// 出力\n System.out.println(res);\n\t}\n\t\n\t//最大公約数算出\n\tpublic static int gcd(int m, int n) {\n\t int r = 0;\n\t int a = 0;\n\t int b = 0;\n\t if(m >= n) {\n\t a = m;\n\t b = n;\n\t } else {\n\t a = n;\n\t b = m;\n\t }\n while( (r = a % b) != 0 ) {\n if(r != a) { \n a = b;\n b = r;\n } else {\n b = a;\n }\n }\n return b;\n }\n}",
"public class Main {\n \npublic static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t// 入力\n\tint a = sc.nextInt();\n\tint res = 0;\n\tint gcd1 = 0;\n\tint gcd2 = 0;\n \n for(int i=1;i<=a;i++) {\n for(int j=1;j<=a;j++) {\n gcd1 = gcd(i, j);\n for(int k=1;k<=a;k++) {\n gcd2 = gcd(gcd1, k);\n res += gcd2;\n }\n }\n gcd1 = 0; //初期化\n gcd2 = 0; //初期化\n }\n\t// 出力\n System.out.println(res);\n\t}\n\t\n\t//最大公約数算出\n\tpublic static int gcd(int m, int n) {\n\t int r = 0;\n\t int a = 0;\n\t int b = 0;\n\t if(m >= n) {\n\t a = m;\n\t b = n;\n\t } else {\n\t a = n;\n\t b = m;\n\t }\n while( (r = a % b) != 0 ) {\n if(r != a) { \n a = b;\n b = r;\n } else {\n b = a;\n }\n }\n return b;\n }\n}",
"Main"
] |
import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
int res = 0;
int gcd1 = 0;
int gcd2 = 0;
for(int i=1;i<=a;i++) {
for(int j=1;j<=a;j++) {
gcd1 = gcd(i, j);
for(int k=1;k<=a;k++) {
gcd2 = gcd(gcd1, k);
res += gcd2;
}
}
gcd1 = 0; //初期化
gcd2 = 0; //初期化
}
// 出力
System.out.println(res);
}
//最大公約数算出
public static int gcd(int m, int n) {
int r = 0;
int a = 0;
int b = 0;
if(m >= n) {
a = m;
b = n;
} else {
a = n;
b = m;
}
while( (r = a % b) != 0 ) {
if(r != a) {
a = b;
b = r;
} else {
b = a;
}
}
return b;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
2,
13,
13,
13,
23,
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,
12,
13,
30,
4,
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,
29,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
14,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
14,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
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
],
[
491,
14
],
[
491,
15
],
[
15,
16
],
[
15,
17
],
[
491,
18
],
[
18,
19
],
[
18,
20
],
[
491,
21
],
[
21,
22
],
[
491,
23
],
[
23,
24
],
[
491,
25
],
[
25,
26
],
[
25,
27
],
[
491,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
36,
38
],
[
30,
39
],
[
39,
40
],
[
39,
41
],
[
30,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
70,
73
],
[
67,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
89,
92
],
[
30,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
30,
97
],
[
97,
98
],
[
98,
99
],
[
28,
100
],
[
100,
101
],
[
491,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
104,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
102,
118
],
[
118,
119
],
[
102,
120
],
[
120,
121
],
[
491,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
122,
129
],
[
129,
130
],
[
129,
131
],
[
122,
133
],
[
133,
134
],
[
133,
135
],
[
122,
136
],
[
136,
137
],
[
136,
138
],
[
122,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
147,
148
],
[
142,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
153,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
149,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
141,
174
],
[
174,
175
],
[
122,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
179,
187
],
[
187,
188
],
[
188,
189
],
[
122,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
198,
199
],
[
198,
200
],
[
190,
201
],
[
201,
202
],
[
122,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
207,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
213,
215
],
[
206,
216
],
[
216,
217
],
[
122,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
220,
223
],
[
223,
224
],
[
224,
225
],
[
122,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
229,
233
],
[
233,
234
],
[
228,
235
],
[
235,
236
],
[
235,
237
],
[
228,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
228,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
242,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
247,
250
],
[
246,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
228,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
122,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
262,
266
],
[
266,
267
],
[
261,
268
],
[
268,
269
],
[
268,
270
],
[
261,
271
],
[
271,
272
],
[
271,
273
],
[
261,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
261,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
278,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
261,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
291,
295
],
[
295,
296
],
[
295,
297
],
[
290,
298
],
[
298,
299
],
[
299,
300
],
[
261,
301
],
[
301,
302
],
[
301,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
305,
309
],
[
309,
310
],
[
309,
311
],
[
304,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
312,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
318,
320
],
[
304,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
322,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
321,
331
],
[
331,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
335,
336
],
[
333,
337
],
[
321,
338
],
[
338,
339
],
[
339,
340
],
[
303,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
122,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
348,
349
],
[
349,
350
],
[
122,
351
],
[
351,
352
],
[
351,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
355,
358
],
[
358,
359
],
[
122,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
369,
370
],
[
369,
371
],
[
365,
372
],
[
372,
373
],
[
373,
374
],
[
374,
375
],
[
374,
376
],
[
372,
377
],
[
377,
378
],
[
377,
379
],
[
372,
380
],
[
380,
381
],
[
381,
382
],
[
372,
383
],
[
384,
384
],
[
384,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
385,
389
],
[
389,
390
],
[
390,
391
],
[
365,
392
],
[
392,
393
],
[
363,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
394,
399
],
[
399,
400
],
[
400,
401
],
[
401,
402
],
[
401,
403
],
[
399,
404
],
[
404,
405
],
[
404,
406
],
[
399,
407
],
[
407,
408
],
[
408,
409
],
[
399,
410
],
[
411,
411
],
[
411,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
412,
416
],
[
416,
417
],
[
417,
418
],
[
394,
419
],
[
419,
420
],
[
360,
421
],
[
421,
422
],
[
360,
423
],
[
423,
424
],
[
122,
425
],
[
425,
426
],
[
425,
427
],
[
427,
428
],
[
428,
429
],
[
428,
430
],
[
430,
431
],
[
431,
432
],
[
431,
433
],
[
434,
435
],
[
434,
436
],
[
430,
437
],
[
437,
438
],
[
438,
439
],
[
439,
440
],
[
439,
441
],
[
437,
442
],
[
442,
443
],
[
442,
444
],
[
437,
445
],
[
445,
446
],
[
446,
447
],
[
437,
448
],
[
449,
449
],
[
449,
450
],
[
450,
451
],
[
451,
452
],
[
451,
453
],
[
450,
454
],
[
454,
455
],
[
455,
456
],
[
430,
457
],
[
457,
458
],
[
428,
459
],
[
459,
460
],
[
460,
461
],
[
460,
462
],
[
459,
464
],
[
464,
465
],
[
465,
466
],
[
466,
467
],
[
466,
468
],
[
464,
469
],
[
469,
470
],
[
469,
471
],
[
464,
472
],
[
472,
473
],
[
473,
474
],
[
464,
475
],
[
476,
476
],
[
476,
477
],
[
477,
478
],
[
478,
479
],
[
478,
480
],
[
477,
481
],
[
481,
482
],
[
482,
483
],
[
459,
484
],
[
484,
485
],
[
425,
486
],
[
486,
487
],
[
425,
488
],
[
488,
489
],
[
0,
490
],
[
490,
491
],
[
490,
492
]
] |
[
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.NoSuchElementException;\n\npublic class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic String S;\n\tstatic int n;\n\t\n\tfinal static int mod = 1_000_000_007;\n\t//static LinkedList <Integer> adj []; \n\t//static boolean visited [][];\n\t//static TreeMap <Long, Integer> map;\n\t//static HashMap <Long, Integer> map;\n\t//static Queue <Long> q;\n\t//static Deque<Long> deque;\n\t\n\tpublic static void main(String[] args) {\n\t\tint k = sc.nextInt();\n\t\t\n\t\tlong ans = 0;\n\t\tlong now = 0;\n\t\tfor (int i=1; i<=k; i++) {\n\t\t\tfor (int j=1; j<=k; j++) {\n\t\t\t\tnow = gcd(i,j);\n\t\t\t\t\n\t\t\t\tfor (int l=1; l<=k; l++) {\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tout.println(ans);\n\t\tout.flush();\n\t}\n\t\n\tstatic long gcd (long a, long b) { \n if (a==0) \n return b; \n return gcd(b%a,a); \n } \n \n\t\n\t\tstatic class FastScanner {\n\t\t private final InputStream in = System.in;\n\t\t private final byte[] buffer = new byte[1024];\n\t\t private int ptr = 0;\n\t\t private int buflen = 0;\n\n\t\t private boolean hasNextByte() {\n\t\t if (ptr < buflen) {\n\t\t return true;\n\t\t } else {\n\t\t ptr = 0;\n\t\t try {\n\t\t buflen = in.read(buffer);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t if (buflen <= 0) {\n\t\t return false;\n\t\t }\n\t\t }\n\t\t return true;\n\t\t }\n\n\t\t private int readByte() {\n\t\t if (hasNextByte()) return buffer[ptr++];\n\t\t else return -1;\n\t\t }\n\n\t\t private static boolean isPrintableChar(int c) {\n\t\t return 33 <= c && c <= 126;\n\t\t }\n\n\t\t private void skipUnprintable() {\n\t\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t\t }\n\n\t\t public boolean hasNext() {\n\t\t skipUnprintable();\n\t\t return hasNextByte();\n\t\t }\n\n\t\t public String next() {\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int b = readByte();\n\t\t while (isPrintableChar(b)) {\n\t\t sb.appendCodePoint(b);\n\t\t b = readByte();\n\t\t }\n\t\t return sb.toString();\n\t\t }\n\n\t\t public long nextLong() {\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t long n = 0;\n\t\t boolean minus = false;\n\t\t int b = readByte();\n\t\t if (b == '-') {\n\t\t minus = true;\n\t\t b = readByte();\n\t\t }\n\t\t if (b < '0' || '9' < b) {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t while (true) {\n\t\t if ('0' <= b && b <= '9') {\n\t\t n *= 10;\n\t\t n += b - '0';\n\t\t } else if (b == -1 || !isPrintableChar(b)) {\n\t\t return minus ? -n : n;\n\t\t } else {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t b = readByte();\n\t\t }\n\t\t }\n\n\t\t public int nextInt() {\n\t\t return (int) nextLong();\n\t\t }\n\t\t \n\t\t public double nextDouble(){\n\t\t \treturn Double.parseDouble(next());\n\t\t }\n\n\t\t public int[] nextIntArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t int[] array = new int[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t int[] array = new int[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\n\t\t public long[] nextLongArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t long[] array = new long[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t long[] array = new long[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t }\n\n\t\t}\t \n\n\n",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic String S;\n\tstatic int n;\n\t\n\tfinal static int mod = 1_000_000_007;\n\t//static LinkedList <Integer> adj []; \n\t//static boolean visited [][];\n\t//static TreeMap <Long, Integer> map;\n\t//static HashMap <Long, Integer> map;\n\t//static Queue <Long> q;\n\t//static Deque<Long> deque;\n\t\n\tpublic static void main(String[] args) {\n\t\tint k = sc.nextInt();\n\t\t\n\t\tlong ans = 0;\n\t\tlong now = 0;\n\t\tfor (int i=1; i<=k; i++) {\n\t\t\tfor (int j=1; j<=k; j++) {\n\t\t\t\tnow = gcd(i,j);\n\t\t\t\t\n\t\t\t\tfor (int l=1; l<=k; l++) {\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tout.println(ans);\n\t\tout.flush();\n\t}\n\t\n\tstatic long gcd (long a, long b) { \n if (a==0) \n return b; \n return gcd(b%a,a); \n } \n \n\t\n\t\tstatic class FastScanner {\n\t\t private final InputStream in = System.in;\n\t\t private final byte[] buffer = new byte[1024];\n\t\t private int ptr = 0;\n\t\t private int buflen = 0;\n\n\t\t private boolean hasNextByte() {\n\t\t if (ptr < buflen) {\n\t\t return true;\n\t\t } else {\n\t\t ptr = 0;\n\t\t try {\n\t\t buflen = in.read(buffer);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t if (buflen <= 0) {\n\t\t return false;\n\t\t }\n\t\t }\n\t\t return true;\n\t\t }\n\n\t\t private int readByte() {\n\t\t if (hasNextByte()) return buffer[ptr++];\n\t\t else return -1;\n\t\t }\n\n\t\t private static boolean isPrintableChar(int c) {\n\t\t return 33 <= c && c <= 126;\n\t\t }\n\n\t\t private void skipUnprintable() {\n\t\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t\t }\n\n\t\t public boolean hasNext() {\n\t\t skipUnprintable();\n\t\t return hasNextByte();\n\t\t }\n\n\t\t public String next() {\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int b = readByte();\n\t\t while (isPrintableChar(b)) {\n\t\t sb.appendCodePoint(b);\n\t\t b = readByte();\n\t\t }\n\t\t return sb.toString();\n\t\t }\n\n\t\t public long nextLong() {\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t long n = 0;\n\t\t boolean minus = false;\n\t\t int b = readByte();\n\t\t if (b == '-') {\n\t\t minus = true;\n\t\t b = readByte();\n\t\t }\n\t\t if (b < '0' || '9' < b) {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t while (true) {\n\t\t if ('0' <= b && b <= '9') {\n\t\t n *= 10;\n\t\t n += b - '0';\n\t\t } else if (b == -1 || !isPrintableChar(b)) {\n\t\t return minus ? -n : n;\n\t\t } else {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t b = readByte();\n\t\t }\n\t\t }\n\n\t\t public int nextInt() {\n\t\t return (int) nextLong();\n\t\t }\n\t\t \n\t\t public double nextDouble(){\n\t\t \treturn Double.parseDouble(next());\n\t\t }\n\n\t\t public int[] nextIntArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t int[] array = new int[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t int[] array = new int[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\n\t\t public long[] nextLongArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t long[] array = new long[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t long[] array = new long[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t }\n\n\t\t}",
"Main",
"static FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"static String S;",
"S",
"static int n;",
"n",
"final static int mod = 1_000_000_007;",
"mod",
"1_000_000_007",
"public static void main(String[] args) {\n\t\tint k = sc.nextInt();\n\t\t\n\t\tlong ans = 0;\n\t\tlong now = 0;\n\t\tfor (int i=1; i<=k; i++) {\n\t\t\tfor (int j=1; j<=k; j++) {\n\t\t\t\tnow = gcd(i,j);\n\t\t\t\t\n\t\t\t\tfor (int l=1; l<=k; l++) {\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tout.println(ans);\n\t\tout.flush();\n\t}",
"main",
"{\n\t\tint k = sc.nextInt();\n\t\t\n\t\tlong ans = 0;\n\t\tlong now = 0;\n\t\tfor (int i=1; i<=k; i++) {\n\t\t\tfor (int j=1; j<=k; j++) {\n\t\t\t\tnow = gcd(i,j);\n\t\t\t\t\n\t\t\t\tfor (int l=1; l<=k; l++) {\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tout.println(ans);\n\t\tout.flush();\n\t}",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ans = 0;",
"ans",
"0",
"long now = 0;",
"now",
"0",
"for (int i=1; i<=k; i++) {\n\t\t\tfor (int j=1; j<=k; j++) {\n\t\t\t\tnow = gcd(i,j);\n\t\t\t\t\n\t\t\t\tfor (int l=1; l<=k; l++) {\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j=1; j<=k; j++) {\n\t\t\t\tnow = gcd(i,j);\n\t\t\t\t\n\t\t\t\tfor (int l=1; l<=k; l++) {\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j=1; j<=k; j++) {\n\t\t\t\tnow = gcd(i,j);\n\t\t\t\t\n\t\t\t\tfor (int l=1; l<=k; l++) {\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"for (int j=1; j<=k; j++) {\n\t\t\t\tnow = gcd(i,j);\n\t\t\t\t\n\t\t\t\tfor (int l=1; l<=k; l++) {\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=k",
"j",
"k",
"j++",
"j++",
"j",
"{\n\t\t\t\tnow = gcd(i,j);\n\t\t\t\t\n\t\t\t\tfor (int l=1; l<=k; l++) {\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tnow = gcd(i,j);\n\t\t\t\t\n\t\t\t\tfor (int l=1; l<=k; l++) {\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"now = gcd(i,j)",
"now",
"gcd(i,j)",
"gcd",
"i",
"j",
"for (int l=1; l<=k; l++) {\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}",
"int l=1;",
"int l=1;",
"l",
"1",
"l<=k",
"l",
"k",
"l++",
"l++",
"l",
"{\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}",
"{\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}",
"ans+=gcd(now,l)",
"ans",
"gcd(now,l)",
"gcd",
"now",
"l",
"out.println(ans)",
"out.println",
"out",
"ans",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"static long gcd (long a, long b) { \n if (a==0) \n return b; \n return gcd(b%a,a); \n }",
"gcd",
"{ \n if (a==0) \n return b; \n return gcd(b%a,a); \n }",
"if (a==0) \n return b;",
"a==0",
"a",
"0",
"return b;",
"b",
"return gcd(b%a,a);",
"gcd(b%a,a)",
"gcd",
"b%a",
"b",
"a",
"a",
"long a",
"a",
"long b",
"b",
"static class FastScanner {\n\t\t private final InputStream in = System.in;\n\t\t private final byte[] buffer = new byte[1024];\n\t\t private int ptr = 0;\n\t\t private int buflen = 0;\n\n\t\t private boolean hasNextByte() {\n\t\t if (ptr < buflen) {\n\t\t return true;\n\t\t } else {\n\t\t ptr = 0;\n\t\t try {\n\t\t buflen = in.read(buffer);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t if (buflen <= 0) {\n\t\t return false;\n\t\t }\n\t\t }\n\t\t return true;\n\t\t }\n\n\t\t private int readByte() {\n\t\t if (hasNextByte()) return buffer[ptr++];\n\t\t else return -1;\n\t\t }\n\n\t\t private static boolean isPrintableChar(int c) {\n\t\t return 33 <= c && c <= 126;\n\t\t }\n\n\t\t private void skipUnprintable() {\n\t\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t\t }\n\n\t\t public boolean hasNext() {\n\t\t skipUnprintable();\n\t\t return hasNextByte();\n\t\t }\n\n\t\t public String next() {\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int b = readByte();\n\t\t while (isPrintableChar(b)) {\n\t\t sb.appendCodePoint(b);\n\t\t b = readByte();\n\t\t }\n\t\t return sb.toString();\n\t\t }\n\n\t\t public long nextLong() {\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t long n = 0;\n\t\t boolean minus = false;\n\t\t int b = readByte();\n\t\t if (b == '-') {\n\t\t minus = true;\n\t\t b = readByte();\n\t\t }\n\t\t if (b < '0' || '9' < b) {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t while (true) {\n\t\t if ('0' <= b && b <= '9') {\n\t\t n *= 10;\n\t\t n += b - '0';\n\t\t } else if (b == -1 || !isPrintableChar(b)) {\n\t\t return minus ? -n : n;\n\t\t } else {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t b = readByte();\n\t\t }\n\t\t }\n\n\t\t public int nextInt() {\n\t\t return (int) nextLong();\n\t\t }\n\t\t \n\t\t public double nextDouble(){\n\t\t \treturn Double.parseDouble(next());\n\t\t }\n\n\t\t public int[] nextIntArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t int[] array = new int[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t int[] array = new int[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\n\t\t public long[] nextLongArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t long[] array = new long[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t long[] array = new long[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t }",
"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\t\t if (ptr < buflen) {\n\t\t return true;\n\t\t } else {\n\t\t ptr = 0;\n\t\t try {\n\t\t buflen = in.read(buffer);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t if (buflen <= 0) {\n\t\t return false;\n\t\t }\n\t\t }\n\t\t return true;\n\t\t }",
"hasNextByte",
"{\n\t\t if (ptr < buflen) {\n\t\t return true;\n\t\t } else {\n\t\t ptr = 0;\n\t\t try {\n\t\t buflen = in.read(buffer);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t if (buflen <= 0) {\n\t\t return false;\n\t\t }\n\t\t }\n\t\t return true;\n\t\t }",
"if (ptr < buflen) {\n\t\t return true;\n\t\t } else {\n\t\t ptr = 0;\n\t\t try {\n\t\t buflen = in.read(buffer);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t if (buflen <= 0) {\n\t\t return false;\n\t\t }\n\t\t }",
"ptr < buflen",
"ptr",
"buflen",
"{\n\t\t return true;\n\t\t }",
"return true;",
"true",
"{\n\t\t ptr = 0;\n\t\t try {\n\t\t buflen = in.read(buffer);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t if (buflen <= 0) {\n\t\t return false;\n\t\t }\n\t\t }",
"ptr = 0",
"ptr",
"0",
"try {\n\t\t buflen = in.read(buffer);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }",
"catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }",
"IOException e",
"{\n\t\t e.printStackTrace();\n\t\t }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t buflen = in.read(buffer);\n\t\t }",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n\t\t return false;\n\t\t }",
"buflen <= 0",
"buflen",
"0",
"{\n\t\t return false;\n\t\t }",
"return false;",
"false",
"return true;",
"true",
"private int readByte() {\n\t\t if (hasNextByte()) return buffer[ptr++];\n\t\t else return -1;\n\t\t }",
"readByte",
"{\n\t\t if (hasNextByte()) return buffer[ptr++];\n\t\t else return -1;\n\t\t }",
"if (hasNextByte()) return buffer[ptr++];\n\t\t else return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) {\n\t\t return 33 <= c && c <= 126;\n\t\t }",
"isPrintableChar",
"{\n\t\t return 33 <= c && c <= 126;\n\t\t }",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"private void skipUnprintable() {\n\t\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t\t }",
"skipUnprintable",
"{\n\t\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t\t }",
"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",
"public boolean hasNext() {\n\t\t skipUnprintable();\n\t\t return hasNextByte();\n\t\t }",
"hasNext",
"{\n\t\t skipUnprintable();\n\t\t return hasNextByte();\n\t\t }",
"skipUnprintable()",
"skipUnprintable",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int b = readByte();\n\t\t while (isPrintableChar(b)) {\n\t\t sb.appendCodePoint(b);\n\t\t b = readByte();\n\t\t }\n\t\t return sb.toString();\n\t\t }",
"next",
"{\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int b = readByte();\n\t\t while (isPrintableChar(b)) {\n\t\t sb.appendCodePoint(b);\n\t\t b = readByte();\n\t\t }\n\t\t return sb.toString();\n\t\t }",
"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\t\t sb.appendCodePoint(b);\n\t\t b = readByte();\n\t\t }",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t\t sb.appendCodePoint(b);\n\t\t b = readByte();\n\t\t }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public long nextLong() {\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t long n = 0;\n\t\t boolean minus = false;\n\t\t int b = readByte();\n\t\t if (b == '-') {\n\t\t minus = true;\n\t\t b = readByte();\n\t\t }\n\t\t if (b < '0' || '9' < b) {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t while (true) {\n\t\t if ('0' <= b && b <= '9') {\n\t\t n *= 10;\n\t\t n += b - '0';\n\t\t } else if (b == -1 || !isPrintableChar(b)) {\n\t\t return minus ? -n : n;\n\t\t } else {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t b = readByte();\n\t\t }\n\t\t }",
"nextLong",
"{\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t long n = 0;\n\t\t boolean minus = false;\n\t\t int b = readByte();\n\t\t if (b == '-') {\n\t\t minus = true;\n\t\t b = readByte();\n\t\t }\n\t\t if (b < '0' || '9' < b) {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t while (true) {\n\t\t if ('0' <= b && b <= '9') {\n\t\t n *= 10;\n\t\t n += b - '0';\n\t\t } else if (b == -1 || !isPrintableChar(b)) {\n\t\t return minus ? -n : n;\n\t\t } else {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t b = readByte();\n\t\t }\n\t\t }",
"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\t\t minus = true;\n\t\t b = readByte();\n\t\t }",
"b == '-'",
"b",
"'-'",
"{\n\t\t minus = true;\n\t\t b = readByte();\n\t\t }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n\t\t throw new NumberFormatException();\n\t\t }",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n\t\t throw new NumberFormatException();\n\t\t }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while (true) {\n\t\t if ('0' <= b && b <= '9') {\n\t\t n *= 10;\n\t\t n += b - '0';\n\t\t } else if (b == -1 || !isPrintableChar(b)) {\n\t\t return minus ? -n : n;\n\t\t } else {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t b = readByte();\n\t\t }",
"true",
"{\n\t\t if ('0' <= b && b <= '9') {\n\t\t n *= 10;\n\t\t n += b - '0';\n\t\t } else if (b == -1 || !isPrintableChar(b)) {\n\t\t return minus ? -n : n;\n\t\t } else {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t b = readByte();\n\t\t }",
"if ('0' <= b && b <= '9') {\n\t\t n *= 10;\n\t\t n += b - '0';\n\t\t } else if (b == -1 || !isPrintableChar(b)) {\n\t\t return minus ? -n : n;\n\t\t } else {\n\t\t throw new NumberFormatException();\n\t\t }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n\t\t n *= 10;\n\t\t n += b - '0';\n\t\t }",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if (b == -1 || !isPrintableChar(b)) {\n\t\t return minus ? -n : n;\n\t\t } else {\n\t\t throw new NumberFormatException();\n\t\t }",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t\t return minus ? -n : n;\n\t\t }",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n\t\t throw new NumberFormatException();\n\t\t }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int nextInt() {\n\t\t return (int) nextLong();\n\t\t }",
"nextInt",
"{\n\t\t return (int) nextLong();\n\t\t }",
"return (int) nextLong();",
"(int) nextLong()",
"nextLong",
"public double nextDouble(){\n\t\t \treturn Double.parseDouble(next());\n\t\t }",
"nextDouble",
"{\n\t\t \treturn Double.parseDouble(next());\n\t\t }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public int[] nextIntArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t int[] array = new int[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t int[] array = new int[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }",
"nextIntArray",
"{\n\t\t if (oneBased) {\n\t\t int[] array = new int[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t int[] array = new int[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }",
"if (oneBased) {\n\t\t int[] array = new int[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t int[] array = new int[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t }",
"oneBased",
"{\n\t\t int[] array = new int[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t }",
"int[] array = new int[N + 1];",
"array",
"new int[N + 1]",
"N + 1",
"N",
"1",
"for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t array[i] = sc.nextInt();\n\t\t }",
"{\n\t\t array[i] = sc.nextInt();\n\t\t }",
"array[i] = sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return array;",
"array",
"{\n\t\t int[] array = new int[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t }",
"int[] array = new int[N];",
"array",
"new int[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t array[i] = sc.nextInt();\n\t\t }",
"{\n\t\t array[i] = sc.nextInt();\n\t\t }",
"array[i] = sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return array;",
"array",
"int N",
"N",
"boolean oneBased",
"oneBased",
"public long[] nextLongArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t long[] array = new long[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t long[] array = new long[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }",
"nextLongArray",
"{\n\t\t if (oneBased) {\n\t\t long[] array = new long[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t long[] array = new long[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }",
"if (oneBased) {\n\t\t long[] array = new long[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t long[] array = new long[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t }",
"oneBased",
"{\n\t\t long[] array = new long[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t }",
"long[] array = new long[N + 1];",
"array",
"new long[N + 1]",
"N + 1",
"N",
"1",
"for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t array[i] = sc.nextLong();\n\t\t }",
"{\n\t\t array[i] = sc.nextLong();\n\t\t }",
"array[i] = sc.nextLong()",
"array[i]",
"array",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"return array;",
"array",
"{\n\t\t long[] array = new long[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t }",
"long[] array = new long[N];",
"array",
"new long[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t array[i] = sc.nextLong();\n\t\t }",
"{\n\t\t array[i] = sc.nextLong();\n\t\t }",
"array[i] = sc.nextLong()",
"array[i]",
"array",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"return array;",
"array",
"int N",
"N",
"boolean oneBased",
"oneBased",
"public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic String S;\n\tstatic int n;\n\t\n\tfinal static int mod = 1_000_000_007;\n\t//static LinkedList <Integer> adj []; \n\t//static boolean visited [][];\n\t//static TreeMap <Long, Integer> map;\n\t//static HashMap <Long, Integer> map;\n\t//static Queue <Long> q;\n\t//static Deque<Long> deque;\n\t\n\tpublic static void main(String[] args) {\n\t\tint k = sc.nextInt();\n\t\t\n\t\tlong ans = 0;\n\t\tlong now = 0;\n\t\tfor (int i=1; i<=k; i++) {\n\t\t\tfor (int j=1; j<=k; j++) {\n\t\t\t\tnow = gcd(i,j);\n\t\t\t\t\n\t\t\t\tfor (int l=1; l<=k; l++) {\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tout.println(ans);\n\t\tout.flush();\n\t}\n\t\n\tstatic long gcd (long a, long b) { \n if (a==0) \n return b; \n return gcd(b%a,a); \n } \n \n\t\n\t\tstatic class FastScanner {\n\t\t private final InputStream in = System.in;\n\t\t private final byte[] buffer = new byte[1024];\n\t\t private int ptr = 0;\n\t\t private int buflen = 0;\n\n\t\t private boolean hasNextByte() {\n\t\t if (ptr < buflen) {\n\t\t return true;\n\t\t } else {\n\t\t ptr = 0;\n\t\t try {\n\t\t buflen = in.read(buffer);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t if (buflen <= 0) {\n\t\t return false;\n\t\t }\n\t\t }\n\t\t return true;\n\t\t }\n\n\t\t private int readByte() {\n\t\t if (hasNextByte()) return buffer[ptr++];\n\t\t else return -1;\n\t\t }\n\n\t\t private static boolean isPrintableChar(int c) {\n\t\t return 33 <= c && c <= 126;\n\t\t }\n\n\t\t private void skipUnprintable() {\n\t\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t\t }\n\n\t\t public boolean hasNext() {\n\t\t skipUnprintable();\n\t\t return hasNextByte();\n\t\t }\n\n\t\t public String next() {\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int b = readByte();\n\t\t while (isPrintableChar(b)) {\n\t\t sb.appendCodePoint(b);\n\t\t b = readByte();\n\t\t }\n\t\t return sb.toString();\n\t\t }\n\n\t\t public long nextLong() {\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t long n = 0;\n\t\t boolean minus = false;\n\t\t int b = readByte();\n\t\t if (b == '-') {\n\t\t minus = true;\n\t\t b = readByte();\n\t\t }\n\t\t if (b < '0' || '9' < b) {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t while (true) {\n\t\t if ('0' <= b && b <= '9') {\n\t\t n *= 10;\n\t\t n += b - '0';\n\t\t } else if (b == -1 || !isPrintableChar(b)) {\n\t\t return minus ? -n : n;\n\t\t } else {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t b = readByte();\n\t\t }\n\t\t }\n\n\t\t public int nextInt() {\n\t\t return (int) nextLong();\n\t\t }\n\t\t \n\t\t public double nextDouble(){\n\t\t \treturn Double.parseDouble(next());\n\t\t }\n\n\t\t public int[] nextIntArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t int[] array = new int[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t int[] array = new int[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\n\t\t public long[] nextLongArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t long[] array = new long[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t long[] array = new long[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t }\n\n\t\t}",
"public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic String S;\n\tstatic int n;\n\t\n\tfinal static int mod = 1_000_000_007;\n\t//static LinkedList <Integer> adj []; \n\t//static boolean visited [][];\n\t//static TreeMap <Long, Integer> map;\n\t//static HashMap <Long, Integer> map;\n\t//static Queue <Long> q;\n\t//static Deque<Long> deque;\n\t\n\tpublic static void main(String[] args) {\n\t\tint k = sc.nextInt();\n\t\t\n\t\tlong ans = 0;\n\t\tlong now = 0;\n\t\tfor (int i=1; i<=k; i++) {\n\t\t\tfor (int j=1; j<=k; j++) {\n\t\t\t\tnow = gcd(i,j);\n\t\t\t\t\n\t\t\t\tfor (int l=1; l<=k; l++) {\n\t\t\t\t\tans+=gcd(now,l);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tout.println(ans);\n\t\tout.flush();\n\t}\n\t\n\tstatic long gcd (long a, long b) { \n if (a==0) \n return b; \n return gcd(b%a,a); \n } \n \n\t\n\t\tstatic class FastScanner {\n\t\t private final InputStream in = System.in;\n\t\t private final byte[] buffer = new byte[1024];\n\t\t private int ptr = 0;\n\t\t private int buflen = 0;\n\n\t\t private boolean hasNextByte() {\n\t\t if (ptr < buflen) {\n\t\t return true;\n\t\t } else {\n\t\t ptr = 0;\n\t\t try {\n\t\t buflen = in.read(buffer);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t if (buflen <= 0) {\n\t\t return false;\n\t\t }\n\t\t }\n\t\t return true;\n\t\t }\n\n\t\t private int readByte() {\n\t\t if (hasNextByte()) return buffer[ptr++];\n\t\t else return -1;\n\t\t }\n\n\t\t private static boolean isPrintableChar(int c) {\n\t\t return 33 <= c && c <= 126;\n\t\t }\n\n\t\t private void skipUnprintable() {\n\t\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t\t }\n\n\t\t public boolean hasNext() {\n\t\t skipUnprintable();\n\t\t return hasNextByte();\n\t\t }\n\n\t\t public String next() {\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int b = readByte();\n\t\t while (isPrintableChar(b)) {\n\t\t sb.appendCodePoint(b);\n\t\t b = readByte();\n\t\t }\n\t\t return sb.toString();\n\t\t }\n\n\t\t public long nextLong() {\n\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t long n = 0;\n\t\t boolean minus = false;\n\t\t int b = readByte();\n\t\t if (b == '-') {\n\t\t minus = true;\n\t\t b = readByte();\n\t\t }\n\t\t if (b < '0' || '9' < b) {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t while (true) {\n\t\t if ('0' <= b && b <= '9') {\n\t\t n *= 10;\n\t\t n += b - '0';\n\t\t } else if (b == -1 || !isPrintableChar(b)) {\n\t\t return minus ? -n : n;\n\t\t } else {\n\t\t throw new NumberFormatException();\n\t\t }\n\t\t b = readByte();\n\t\t }\n\t\t }\n\n\t\t public int nextInt() {\n\t\t return (int) nextLong();\n\t\t }\n\t\t \n\t\t public double nextDouble(){\n\t\t \treturn Double.parseDouble(next());\n\t\t }\n\n\t\t public int[] nextIntArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t int[] array = new int[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t int[] array = new int[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextInt();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\n\t\t public long[] nextLongArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t long[] array = new long[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t long[] array = new long[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextLong();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t }\n\n\t\t}",
"Main"
] |
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.NoSuchElementException;
public class Main{
static FastScanner sc = new FastScanner();
static PrintWriter out = new PrintWriter(System.out);
static String S;
static int n;
final static int mod = 1_000_000_007;
//static LinkedList <Integer> adj [];
//static boolean visited [][];
//static TreeMap <Long, Integer> map;
//static HashMap <Long, Integer> map;
//static Queue <Long> q;
//static Deque<Long> deque;
public static void main(String[] args) {
int k = sc.nextInt();
long ans = 0;
long now = 0;
for (int i=1; i<=k; i++) {
for (int j=1; j<=k; j++) {
now = gcd(i,j);
for (int l=1; l<=k; l++) {
ans+=gcd(now,l);
}
}
}
out.println(ans);
out.flush();
}
static long gcd (long a, long b) {
if (a==0)
return b;
return gcd(b%a,a);
}
static 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;
}
private void skipUnprintable() {
while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;
}
public boolean hasNext() {
skipUnprintable();
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() {
return (int) nextLong();
}
public double nextDouble(){
return Double.parseDouble(next());
}
public int[] nextIntArray(int N, boolean oneBased) {
if (oneBased) {
int[] array = new int[N + 1];
for (int i = 1; i <= N; i++) {
array[i] = sc.nextInt();
}
return array;
} else {
int[] array = new int[N];
for (int i = 0; i < N; i++) {
array[i] = sc.nextInt();
}
return array;
}
}
public long[] nextLongArray(int N, boolean oneBased) {
if (oneBased) {
long[] array = new long[N + 1];
for (int i = 1; i <= N; i++) {
array[i] = sc.nextLong();
}
return array;
} else {
long[] array = new long[N];
for (int i = 0; i < N; i++) {
array[i] = sc.nextLong();
}
return array;
}
}
}
}
|
[
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,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
41,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
4,
13,
13,
13,
4,
18,
13,
13,
12,
13,
30,
41,
13,
17,
41,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
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,
42,
2,
13,
17,
30,
41,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
0,
13,
8,
4,
18,
13,
18,
13,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
4,
13,
4,
18,
13,
14,
40,
4,
18,
13,
4,
13,
2,
2,
4,
18,
13,
13,
17,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
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,
18,
13,
4,
13,
12,
13,
30,
29,
4,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
41,
13,
4,
13,
41,
13,
17,
42,
2,
13,
13,
30,
14,
40,
4,
13,
13,
0,
18,
13,
40,
13,
13,
0,
13,
4,
13,
29,
8,
2,
13,
13,
13,
4,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
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,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
17,
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,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
30,
29,
8,
13,
40,
13,
13,
0,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
17,
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,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
30,
29,
8,
13,
40,
13,
13,
0,
13,
4,
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
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
725,
29
],
[
725,
30
],
[
30,
31
],
[
30,
32
],
[
725,
33
],
[
33,
34
],
[
33,
35
],
[
725,
36
],
[
36,
37
],
[
36,
38
],
[
725,
39
],
[
39,
40
],
[
725,
41
],
[
41,
42
],
[
725,
43
],
[
43,
44
],
[
43,
45
],
[
725,
46
],
[
46,
47
],
[
46,
48
],
[
725,
49
],
[
49,
50
],
[
49,
51
],
[
725,
53
],
[
53,
54
],
[
53,
55
],
[
725,
56
],
[
56,
57
],
[
56,
58
],
[
725,
59
],
[
59,
60
],
[
725,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
83,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
98,
101
],
[
95,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
116,
119
],
[
63,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
725,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
130,
132
],
[
126,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
138,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
137,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
137,
159
],
[
159,
160
],
[
159,
161
],
[
126,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
124,
166
],
[
166,
167
],
[
124,
168
],
[
168,
169
],
[
725,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
180,
182
],
[
177,
183
],
[
183,
184
],
[
183,
185
],
[
177,
186
],
[
186,
187
],
[
186,
188
],
[
172,
189
],
[
189,
190
],
[
170,
191
],
[
191,
192
],
[
170,
193
],
[
193,
194
],
[
725,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
200,
204
],
[
204,
205
],
[
204,
206
],
[
200,
207
],
[
197,
208
],
[
208,
209
],
[
208,
210
],
[
197,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
197,
216
],
[
216,
217
],
[
197,
218
],
[
218,
219
],
[
219,
220
],
[
197,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
221,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
229,
233
],
[
228,
234
],
[
725,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
235,
241
],
[
241,
242
],
[
725,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
246,
251
],
[
251,
252
],
[
245,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
253,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
265,
266
],
[
261,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
271,
272
],
[
270,
273
],
[
257,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
278,
279
],
[
279,
280
],
[
245,
281
],
[
281,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
725,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
291,
295
],
[
295,
296
],
[
295,
297
],
[
286,
298
],
[
298,
299
],
[
725,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
303,
304
],
[
302,
305
],
[
305,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
307,
312
],
[
312,
313
],
[
306,
314
],
[
314,
315
],
[
314,
316
],
[
302,
317
],
[
317,
318
],
[
725,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
323,
326
],
[
326,
327
],
[
725,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
331,
332
],
[
332,
333
],
[
725,
334
],
[
334,
335
],
[
334,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
336,
341
],
[
341,
342
],
[
341,
343
],
[
336,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
344,
349
],
[
349,
350
],
[
350,
351
],
[
351,
352
],
[
350,
353
],
[
349,
354
],
[
354,
355
],
[
354,
356
],
[
356,
357
],
[
336,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
725,
362
],
[
362,
363
],
[
362,
364
],
[
364,
365
],
[
365,
366
],
[
365,
367
],
[
364,
369
],
[
369,
370
],
[
369,
371
],
[
371,
372
],
[
364,
373
],
[
373,
374
],
[
373,
375
],
[
364,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
376,
380
],
[
380,
381
],
[
381,
382
],
[
382,
383
],
[
383,
384
],
[
383,
385
],
[
381,
386
],
[
386,
387
],
[
387,
388
],
[
387,
389
],
[
389,
390
],
[
386,
391
],
[
380,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
364,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
398,
400
],
[
397,
401
],
[
397,
402
],
[
402,
403
],
[
403,
404
],
[
402,
405
],
[
402,
406
],
[
362,
407
],
[
407,
408
],
[
725,
409
],
[
409,
410
],
[
409,
411
],
[
411,
412
],
[
412,
413
],
[
412,
414
],
[
411,
416
],
[
416,
417
],
[
417,
418
],
[
418,
419
],
[
418,
420
],
[
416,
421
],
[
421,
422
],
[
421,
423
],
[
416,
424
],
[
424,
425
],
[
425,
426
],
[
416,
427
],
[
427,
428
],
[
428,
429
],
[
429,
430
],
[
429,
431
],
[
428,
432
],
[
432,
433
],
[
432,
434
],
[
411,
435
],
[
435,
436
],
[
409,
437
],
[
437,
438
],
[
409,
439
],
[
439,
440
],
[
725,
441
],
[
441,
442
],
[
441,
443
],
[
443,
444
],
[
444,
445
],
[
444,
446
],
[
443,
448
],
[
448,
449
],
[
449,
450
],
[
450,
451
],
[
450,
452
],
[
448,
453
],
[
453,
454
],
[
453,
455
],
[
448,
456
],
[
456,
457
],
[
457,
458
],
[
448,
459
],
[
459,
460
],
[
460,
461
],
[
461,
462
],
[
461,
463
],
[
460,
464
],
[
464,
465
],
[
443,
466
],
[
466,
467
],
[
441,
468
],
[
468,
469
],
[
725,
470
],
[
470,
471
],
[
470,
472
],
[
472,
473
],
[
473,
474
],
[
473,
475
],
[
472,
476
],
[
476,
477
],
[
477,
478
],
[
478,
479
],
[
478,
480
],
[
476,
481
],
[
481,
482
],
[
481,
483
],
[
476,
484
],
[
484,
485
],
[
485,
486
],
[
476,
487
],
[
487,
488
],
[
488,
489
],
[
489,
490
],
[
488,
491
],
[
491,
492
],
[
472,
493
],
[
493,
494
],
[
470,
495
],
[
495,
496
],
[
725,
497
],
[
497,
498
],
[
497,
499
],
[
499,
500
],
[
500,
501
],
[
500,
502
],
[
499,
504
],
[
504,
505
],
[
505,
506
],
[
506,
507
],
[
506,
508
],
[
504,
509
],
[
509,
510
],
[
509,
511
],
[
504,
512
],
[
512,
513
],
[
513,
514
],
[
504,
515
],
[
515,
516
],
[
516,
517
],
[
517,
518
],
[
517,
519
],
[
516,
520
],
[
520,
521
],
[
520,
522
],
[
499,
523
],
[
523,
524
],
[
497,
525
],
[
525,
526
],
[
497,
527
],
[
527,
528
],
[
725,
529
],
[
529,
530
],
[
529,
531
],
[
531,
532
],
[
532,
533
],
[
532,
534
],
[
531,
535
],
[
535,
536
],
[
531,
537
],
[
537,
538
],
[
537,
539
],
[
531,
540
],
[
540,
541
],
[
541,
542
],
[
542,
543
],
[
543,
544
],
[
543,
545
],
[
545,
546
],
[
542,
547
],
[
547,
548
],
[
541,
549
],
[
549,
550
],
[
550,
551
],
[
551,
552
],
[
552,
553
],
[
552,
554
],
[
551,
555
],
[
555,
556
],
[
555,
557
],
[
550,
558
],
[
558,
559
],
[
558,
560
],
[
531,
561
],
[
561,
562
],
[
562,
563
],
[
562,
564
],
[
561,
565
],
[
565,
566
],
[
566,
567
],
[
566,
568
],
[
565,
569
],
[
569,
570
],
[
569,
571
],
[
571,
572
],
[
531,
573
],
[
573,
574
],
[
573,
575
],
[
575,
576
],
[
576,
577
],
[
577,
578
],
[
578,
579
],
[
578,
580
],
[
577,
581
],
[
581,
582
],
[
581,
583
],
[
576,
584
],
[
584,
585
],
[
585,
586
],
[
585,
587
],
[
587,
588
],
[
588,
589
],
[
588,
590
],
[
587,
591
],
[
591,
592
],
[
591,
593
],
[
576,
594
],
[
594,
595
],
[
595,
596
],
[
596,
597
],
[
596,
598
],
[
598,
599
],
[
596,
600
],
[
575,
601
],
[
601,
602
],
[
601,
603
],
[
603,
604
],
[
725,
605
],
[
605,
606
],
[
605,
607
],
[
607,
608
],
[
608,
609
],
[
608,
610
],
[
607,
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
],
[
625,
627
],
[
624,
628
],
[
628,
629
],
[
607,
630
],
[
630,
631
],
[
605,
632
],
[
632,
633
],
[
725,
634
],
[
634,
635
],
[
634,
636
],
[
636,
637
],
[
637,
638
],
[
637,
639
],
[
636,
640
],
[
640,
641
],
[
636,
642
],
[
642,
643
],
[
642,
644
],
[
636,
645
],
[
645,
646
],
[
646,
647
],
[
647,
648
],
[
648,
649
],
[
648,
650
],
[
650,
651
],
[
647,
652
],
[
652,
653
],
[
646,
654
],
[
654,
655
],
[
655,
656
],
[
656,
657
],
[
657,
658
],
[
657,
659
],
[
656,
660
],
[
660,
661
],
[
660,
662
],
[
655,
663
],
[
663,
664
],
[
663,
665
],
[
636,
666
],
[
666,
667
],
[
667,
668
],
[
667,
669
],
[
666,
670
],
[
670,
671
],
[
671,
672
],
[
671,
673
],
[
670,
674
],
[
674,
675
],
[
674,
676
],
[
676,
677
],
[
636,
678
],
[
678,
679
],
[
678,
680
],
[
680,
681
],
[
681,
682
],
[
682,
683
],
[
683,
684
],
[
683,
685
],
[
682,
686
],
[
686,
687
],
[
686,
688
],
[
681,
689
],
[
689,
690
],
[
690,
691
],
[
690,
692
],
[
692,
693
],
[
693,
694
],
[
693,
695
],
[
692,
696
],
[
696,
697
],
[
696,
698
],
[
681,
699
],
[
699,
700
],
[
700,
701
],
[
701,
702
],
[
701,
703
],
[
703,
704
],
[
701,
705
],
[
680,
706
],
[
706,
707
],
[
706,
708
],
[
708,
709
],
[
725,
710
],
[
710,
711
],
[
710,
712
],
[
712,
713
],
[
713,
714
],
[
714,
715
],
[
715,
716
],
[
715,
717
],
[
713,
718
],
[
718,
719
],
[
719,
720
],
[
718,
721
],
[
710,
722
],
[
722,
723
],
[
0,
724
],
[
724,
725
],
[
724,
726
]
] |
[
"import java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.InputMismatchException;\nimport java.util.List;\n\npublic class Main {\n\n\tprivate static final int MAXN = 5000;\n\tprivate static final String NO = \"NO\";\n\tprivate static final String YES = \"YES\";\n\tInputStream is;\n\tPrintWriter out;\n\tString INPUT = \"\";\n\n\tprivate static final long MOD = 1000000007L;\n\n\tvoid solve() {\n\t\tint N = ni();\n\t\tlong ans = 0;\n\t\tfor (int i = 1; i <= N; i++)\n\t\t\tfor (int j = 1; j <= N; j++) {\n\t\t\t\tlong g = gcd(i, j);\n\t\t\t\tfor (int k = 1; k <= N; k++)\n\t\t\t\t\tans += gcd(g, k);\n\t\t\t}\n\t\tout.println(ans);\n\t}\n\n\tlong power(long a, long b) {\n\t\tlong x = 1, y = a;\n\t\twhile (b > 0) {\n\t\t\tif (b % 2 != 0) {\n\t\t\t\tx = (x * y) % MOD;\n\t\t\t}\n\t\t\ty = (y * y) % MOD;\n\t\t\tb /= 2;\n\t\t}\n\t\treturn x % MOD;\n\t}\n\n\tprivate long gcd(long a, long b) {\n\t\twhile (a != 0) {\n\t\t\tlong tmp = b % a;\n\t\t\tb = a;\n\t\t\ta = tmp;\n\t\t}\n\t\treturn b;\n\t}\n\n\tvoid run() throws Exception {\n\t\tis = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n\t\tout = new PrintWriter(System.out);\n\n\t\tlong s = System.currentTimeMillis();\n\t\tsolve();\n\t\tout.flush();\n\t\tif (!INPUT.isEmpty())\n\t\t\ttr(System.currentTimeMillis() - s + \"ms\");\n\t}\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tnew Main().run();\n\t}\n\n\tprivate byte[] inbuf = new byte[1024];\n\tpublic int lenbuf = 0, ptrbuf = 0;\n\tprivate boolean vis[];\n\n\tprivate int readByte() {\n\t\tif (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();\n\t\tif (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}\n\t\treturn inbuf[ptrbuf++];\n\t}\n\n\tprivate boolean isSpaceChar(int c) {\n\t\treturn !(c >= 33 && c <= 126);\n\t}\n\n\tprivate int skip() {\n\t\tint b;\n\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t;\n\t\treturn b;\n\t}\n\n\tprivate double nd() {\n\t\treturn Double.parseDouble(ns());\n\t}\n\n\tprivate char nc() {\n\t\treturn (char) skip();\n\t}\n\n\tprivate String ns() {\n\t\tint b = skip();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (!(isSpaceChar(b))) { // when nextLine, (isSpaceChar(b) && b != '\n\t\t\t\t\t\t\t\t\t// ')\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tprivate char[] ns(int n) {\n\t\tchar[] buf = new char[n];\n\t\tint b = skip(), p = 0;\n\t\twhile (p < n) {\n\t\t\tif (!(isSpaceChar(b)))\n\t\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}\n\t\treturn n == p ? buf : Arrays.copyOf(buf, p);\n\t}\n\n\tprivate char[][] nm(int n, int m) {\n\t\tchar[][] map = new char[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);\n\t\treturn map;\n\t}\n\n\tprivate int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\n\tprivate List<Integer> na2(int n) {\n\t\tList<Integer> a = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta.add(ni());\n\t\treturn a;\n\t}\n\n\tprivate int[][] na(int n, int m) {\n\t\tint[][] a = new int[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = na(m);\n\t\treturn a;\n\t}\n\n\tprivate int ni() {\n\t\tint num = 0, b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tprivate long[] nl(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n\n\tprivate long nl() {\n\t\tlong num = 0;\n\t\tint b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tprivate static void tr(Object... o) {\n\t\tSystem.out.println(Arrays.deepToString(o));\n\t}\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.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n\n\tprivate static final int MAXN = 5000;\n\tprivate static final String NO = \"NO\";\n\tprivate static final String YES = \"YES\";\n\tInputStream is;\n\tPrintWriter out;\n\tString INPUT = \"\";\n\n\tprivate static final long MOD = 1000000007L;\n\n\tvoid solve() {\n\t\tint N = ni();\n\t\tlong ans = 0;\n\t\tfor (int i = 1; i <= N; i++)\n\t\t\tfor (int j = 1; j <= N; j++) {\n\t\t\t\tlong g = gcd(i, j);\n\t\t\t\tfor (int k = 1; k <= N; k++)\n\t\t\t\t\tans += gcd(g, k);\n\t\t\t}\n\t\tout.println(ans);\n\t}\n\n\tlong power(long a, long b) {\n\t\tlong x = 1, y = a;\n\t\twhile (b > 0) {\n\t\t\tif (b % 2 != 0) {\n\t\t\t\tx = (x * y) % MOD;\n\t\t\t}\n\t\t\ty = (y * y) % MOD;\n\t\t\tb /= 2;\n\t\t}\n\t\treturn x % MOD;\n\t}\n\n\tprivate long gcd(long a, long b) {\n\t\twhile (a != 0) {\n\t\t\tlong tmp = b % a;\n\t\t\tb = a;\n\t\t\ta = tmp;\n\t\t}\n\t\treturn b;\n\t}\n\n\tvoid run() throws Exception {\n\t\tis = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n\t\tout = new PrintWriter(System.out);\n\n\t\tlong s = System.currentTimeMillis();\n\t\tsolve();\n\t\tout.flush();\n\t\tif (!INPUT.isEmpty())\n\t\t\ttr(System.currentTimeMillis() - s + \"ms\");\n\t}\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tnew Main().run();\n\t}\n\n\tprivate byte[] inbuf = new byte[1024];\n\tpublic int lenbuf = 0, ptrbuf = 0;\n\tprivate boolean vis[];\n\n\tprivate int readByte() {\n\t\tif (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();\n\t\tif (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}\n\t\treturn inbuf[ptrbuf++];\n\t}\n\n\tprivate boolean isSpaceChar(int c) {\n\t\treturn !(c >= 33 && c <= 126);\n\t}\n\n\tprivate int skip() {\n\t\tint b;\n\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t;\n\t\treturn b;\n\t}\n\n\tprivate double nd() {\n\t\treturn Double.parseDouble(ns());\n\t}\n\n\tprivate char nc() {\n\t\treturn (char) skip();\n\t}\n\n\tprivate String ns() {\n\t\tint b = skip();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (!(isSpaceChar(b))) { // when nextLine, (isSpaceChar(b) && b != '\n\t\t\t\t\t\t\t\t\t// ')\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tprivate char[] ns(int n) {\n\t\tchar[] buf = new char[n];\n\t\tint b = skip(), p = 0;\n\t\twhile (p < n) {\n\t\t\tif (!(isSpaceChar(b)))\n\t\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}\n\t\treturn n == p ? buf : Arrays.copyOf(buf, p);\n\t}\n\n\tprivate char[][] nm(int n, int m) {\n\t\tchar[][] map = new char[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);\n\t\treturn map;\n\t}\n\n\tprivate int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\n\tprivate List<Integer> na2(int n) {\n\t\tList<Integer> a = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta.add(ni());\n\t\treturn a;\n\t}\n\n\tprivate int[][] na(int n, int m) {\n\t\tint[][] a = new int[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = na(m);\n\t\treturn a;\n\t}\n\n\tprivate int ni() {\n\t\tint num = 0, b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tprivate long[] nl(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n\n\tprivate long nl() {\n\t\tlong num = 0;\n\t\tint b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tprivate static void tr(Object... o) {\n\t\tSystem.out.println(Arrays.deepToString(o));\n\t}\n}",
"Main",
"private static final int MAXN = 5000;",
"MAXN",
"5000",
"private static final String NO = \"NO\";",
"NO",
"\"NO\"",
"private static final String YES = \"YES\";",
"YES",
"\"YES\"",
"InputStream is;",
"is",
"PrintWriter out;",
"out",
"String INPUT = \"\";",
"INPUT",
"\"\"",
"private static final long MOD = 1000000007L;",
"MOD",
"1000000007L",
"private byte[] inbuf = new byte[1024];",
"inbuf",
"new byte[1024]",
"1024",
"public int lenbuf = 0",
"lenbuf",
"0",
"ptrbuf = 0;",
"ptrbuf",
"0",
"private boolean vis[];",
"vis",
"void solve() {\n\t\tint N = ni();\n\t\tlong ans = 0;\n\t\tfor (int i = 1; i <= N; i++)\n\t\t\tfor (int j = 1; j <= N; j++) {\n\t\t\t\tlong g = gcd(i, j);\n\t\t\t\tfor (int k = 1; k <= N; k++)\n\t\t\t\t\tans += gcd(g, k);\n\t\t\t}\n\t\tout.println(ans);\n\t}",
"solve",
"{\n\t\tint N = ni();\n\t\tlong ans = 0;\n\t\tfor (int i = 1; i <= N; i++)\n\t\t\tfor (int j = 1; j <= N; j++) {\n\t\t\t\tlong g = gcd(i, j);\n\t\t\t\tfor (int k = 1; k <= N; k++)\n\t\t\t\t\tans += gcd(g, k);\n\t\t\t}\n\t\tout.println(ans);\n\t}",
"int N = ni();",
"N",
"ni()",
"ni",
"long ans = 0;",
"ans",
"0",
"for (int i = 1; i <= N; i++)\n\t\t\tfor (int j = 1; j <= N; j++) {\n\t\t\t\tlong g = gcd(i, j);\n\t\t\t\tfor (int k = 1; k <= N; k++)\n\t\t\t\t\tans += gcd(g, k);\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"for (int j = 1; j <= N; j++) {\n\t\t\t\tlong g = gcd(i, j);\n\t\t\t\tfor (int k = 1; k <= N; k++)\n\t\t\t\t\tans += gcd(g, k);\n\t\t\t}",
"for (int j = 1; j <= N; j++) {\n\t\t\t\tlong g = gcd(i, j);\n\t\t\t\tfor (int k = 1; k <= N; k++)\n\t\t\t\t\tans += gcd(g, k);\n\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= N",
"j",
"N",
"j++",
"j++",
"j",
"{\n\t\t\t\tlong g = gcd(i, j);\n\t\t\t\tfor (int k = 1; k <= N; k++)\n\t\t\t\t\tans += gcd(g, k);\n\t\t\t}",
"{\n\t\t\t\tlong g = gcd(i, j);\n\t\t\t\tfor (int k = 1; k <= N; k++)\n\t\t\t\t\tans += gcd(g, k);\n\t\t\t}",
"long g = gcd(i, j);",
"g",
"gcd(i, j)",
"gcd",
"i",
"j",
"for (int k = 1; k <= N; k++)\n\t\t\t\t\tans += gcd(g, k);",
"int k = 1;",
"int k = 1;",
"k",
"1",
"k <= N",
"k",
"N",
"k++",
"k++",
"k",
"ans += gcd(g, k);",
"ans += gcd(g, k)",
"ans",
"gcd(g, k)",
"gcd",
"g",
"k",
"out.println(ans)",
"out.println",
"out",
"ans",
"long power(long a, long b) {\n\t\tlong x = 1, y = a;\n\t\twhile (b > 0) {\n\t\t\tif (b % 2 != 0) {\n\t\t\t\tx = (x * y) % MOD;\n\t\t\t}\n\t\t\ty = (y * y) % MOD;\n\t\t\tb /= 2;\n\t\t}\n\t\treturn x % MOD;\n\t}",
"power",
"{\n\t\tlong x = 1, y = a;\n\t\twhile (b > 0) {\n\t\t\tif (b % 2 != 0) {\n\t\t\t\tx = (x * y) % MOD;\n\t\t\t}\n\t\t\ty = (y * y) % MOD;\n\t\t\tb /= 2;\n\t\t}\n\t\treturn x % MOD;\n\t}",
"long x = 1",
"x",
"1",
"y = a;",
"y",
"a",
"while (b > 0) {\n\t\t\tif (b % 2 != 0) {\n\t\t\t\tx = (x * y) % MOD;\n\t\t\t}\n\t\t\ty = (y * y) % MOD;\n\t\t\tb /= 2;\n\t\t}",
"b > 0",
"b",
"0",
"{\n\t\t\tif (b % 2 != 0) {\n\t\t\t\tx = (x * y) % MOD;\n\t\t\t}\n\t\t\ty = (y * y) % MOD;\n\t\t\tb /= 2;\n\t\t}",
"if (b % 2 != 0) {\n\t\t\t\tx = (x * y) % MOD;\n\t\t\t}",
"b % 2 != 0",
"b % 2",
"b",
"2",
"0",
"{\n\t\t\t\tx = (x * y) % MOD;\n\t\t\t}",
"x = (x * y) % MOD",
"x",
"(x * y) % MOD",
"(x * y)",
"x",
"y",
"MOD",
"y = (y * y) % MOD",
"y",
"(y * y) % MOD",
"(y * y)",
"y",
"y",
"MOD",
"b /= 2",
"b",
"2",
"return x % MOD;",
"x % MOD",
"x",
"MOD",
"long a",
"a",
"long b",
"b",
"private long gcd(long a, long b) {\n\t\twhile (a != 0) {\n\t\t\tlong tmp = b % a;\n\t\t\tb = a;\n\t\t\ta = tmp;\n\t\t}\n\t\treturn b;\n\t}",
"gcd",
"{\n\t\twhile (a != 0) {\n\t\t\tlong tmp = b % a;\n\t\t\tb = a;\n\t\t\ta = tmp;\n\t\t}\n\t\treturn b;\n\t}",
"while (a != 0) {\n\t\t\tlong tmp = b % a;\n\t\t\tb = a;\n\t\t\ta = tmp;\n\t\t}",
"a != 0",
"a",
"0",
"{\n\t\t\tlong tmp = b % a;\n\t\t\tb = a;\n\t\t\ta = tmp;\n\t\t}",
"long tmp = b % a;",
"tmp",
"b % a",
"b",
"a",
"b = a",
"b",
"a",
"a = tmp",
"a",
"tmp",
"return b;",
"b",
"long a",
"a",
"long b",
"b",
"void run() throws Exception {\n\t\tis = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n\t\tout = new PrintWriter(System.out);\n\n\t\tlong s = System.currentTimeMillis();\n\t\tsolve();\n\t\tout.flush();\n\t\tif (!INPUT.isEmpty())\n\t\t\ttr(System.currentTimeMillis() - s + \"ms\");\n\t}",
"run",
"{\n\t\tis = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n\t\tout = new PrintWriter(System.out);\n\n\t\tlong s = System.currentTimeMillis();\n\t\tsolve();\n\t\tout.flush();\n\t\tif (!INPUT.isEmpty())\n\t\t\ttr(System.currentTimeMillis() - s + \"ms\");\n\t}",
"is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes())",
"is",
"INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes())",
"INPUT.isEmpty()",
"INPUT.isEmpty",
"INPUT",
"System.in",
"System",
"System.in",
"new ByteArrayInputStream(INPUT.getBytes())",
"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",
"if (!INPUT.isEmpty())\n\t\t\ttr(System.currentTimeMillis() - s + \"ms\");",
"!INPUT.isEmpty()",
"INPUT.isEmpty()",
"INPUT.isEmpty",
"INPUT",
"tr(System.currentTimeMillis() - s + \"ms\")",
"tr",
"System.currentTimeMillis() - s + \"ms\"",
"System.currentTimeMillis() - s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"s",
"\"ms\"",
"public static void main(String[] args) throws Exception {\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",
"private int readByte() {\n\t\tif (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();\n\t\tif (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}\n\t\treturn inbuf[ptrbuf++];\n\t}",
"readByte",
"{\n\t\tif (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();\n\t\tif (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}\n\t\treturn inbuf[ptrbuf++];\n\t}",
"if (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();",
"lenbuf == -1",
"lenbuf",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}",
"ptrbuf >= lenbuf",
"ptrbuf",
"lenbuf",
"{\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}",
"ptrbuf = 0",
"ptrbuf",
"0",
"try {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t}",
"lenbuf = is.read(inbuf)",
"lenbuf",
"is.read(inbuf)",
"is.read",
"is",
"inbuf",
"if (lenbuf <= 0)\n\t\t\t\treturn -1;",
"lenbuf <= 0",
"lenbuf",
"0",
"return -1;",
"-1",
"1",
"return inbuf[ptrbuf++];",
"inbuf[ptrbuf++]",
"inbuf",
"ptrbuf++",
"ptrbuf",
"private boolean isSpaceChar(int c) {\n\t\treturn !(c >= 33 && c <= 126);\n\t}",
"isSpaceChar",
"{\n\t\treturn !(c >= 33 && c <= 126);\n\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",
"private int skip() {\n\t\tint b;\n\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t;\n\t\treturn b;\n\t}",
"skip",
"{\n\t\tint b;\n\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t;\n\t\treturn b;\n\t}",
"int b;",
"b",
"while ((b = readByte()) != -1 && isSpaceChar(b))\n\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",
"private double nd() {\n\t\treturn Double.parseDouble(ns());\n\t}",
"nd",
"{\n\t\treturn Double.parseDouble(ns());\n\t}",
"return Double.parseDouble(ns());",
"Double.parseDouble(ns())",
"Double.parseDouble",
"Double",
"ns()",
"ns",
"private char nc() {\n\t\treturn (char) skip();\n\t}",
"nc",
"{\n\t\treturn (char) skip();\n\t}",
"return (char) skip();",
"(char) skip()",
"skip",
"private String ns() {\n\t\tint b = skip();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (!(isSpaceChar(b))) { // when nextLine, (isSpaceChar(b) && b != '\n\t\t\t\t\t\t\t\t\t// ')\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}",
"ns",
"{\n\t\tint b = skip();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (!(isSpaceChar(b))) { // when nextLine, (isSpaceChar(b) && b != '\n\t\t\t\t\t\t\t\t\t// ')\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}",
"int b = skip();",
"b",
"skip()",
"skip",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while (!(isSpaceChar(b))) { // when nextLine, (isSpaceChar(b) && b != '\n\t\t\t\t\t\t\t\t\t// ')\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}",
"!(isSpaceChar(b))",
"(isSpaceChar(b))",
"isSpaceChar",
"b",
"{ // when nextLine, (isSpaceChar(b) && b != '\n\t\t\t\t\t\t\t\t\t// ')\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"private char[] ns(int n) {\n\t\tchar[] buf = new char[n];\n\t\tint b = skip(), p = 0;\n\t\twhile (p < n) {\n\t\t\tif (!(isSpaceChar(b)))\n\t\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}\n\t\treturn n == p ? buf : Arrays.copyOf(buf, p);\n\t}",
"ns",
"{\n\t\tchar[] buf = new char[n];\n\t\tint b = skip(), p = 0;\n\t\twhile (p < n) {\n\t\t\tif (!(isSpaceChar(b)))\n\t\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}\n\t\treturn n == p ? buf : Arrays.copyOf(buf, p);\n\t}",
"char[] buf = new char[n];",
"buf",
"new char[n]",
"n",
"int b = skip()",
"b",
"skip()",
"skip",
"p = 0;",
"p",
"0",
"while (p < n) {\n\t\t\tif (!(isSpaceChar(b)))\n\t\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}",
"p < n",
"p",
"n",
"{\n\t\t\tif (!(isSpaceChar(b)))\n\t\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}",
"if (!(isSpaceChar(b)))\n\t\t\t\tbuf[p++] = (char) b;",
"!(isSpaceChar(b))",
"(isSpaceChar(b))",
"isSpaceChar",
"b",
"buf[p++] = (char) b",
"buf[p++]",
"buf",
"p++",
"p",
"(char) b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return n == p ? buf : Arrays.copyOf(buf, p);",
"n == p ? buf : Arrays.copyOf(buf, p)",
"n == p",
"n",
"p",
"buf",
"Arrays.copyOf(buf, p)",
"Arrays.copyOf",
"Arrays",
"buf",
"p",
"int n",
"n",
"private char[][] nm(int n, int m) {\n\t\tchar[][] map = new char[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);\n\t\treturn map;\n\t}",
"nm",
"{\n\t\tchar[][] map = new char[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);\n\t\treturn map;\n\t}",
"char[][] map = new char[n][];",
"map",
"new char[n][]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"map[i] = ns(m);",
"map[i] = ns(m)",
"map[i]",
"map",
"i",
"ns(m)",
"ns",
"m",
"return map;",
"map",
"int n",
"n",
"int m",
"m",
"private int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}",
"na",
"{\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = ni();",
"a[i] = ni()",
"a[i]",
"a",
"i",
"ni()",
"ni",
"return a;",
"a",
"int n",
"n",
"private List<Integer> na2(int n) {\n\t\tList<Integer> a = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta.add(ni());\n\t\treturn a;\n\t}",
"na2",
"{\n\t\tList<Integer> a = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta.add(ni());\n\t\treturn a;\n\t}",
"List<Integer> a = new ArrayList<Integer>();",
"a",
"new ArrayList<Integer>()",
"for (int i = 0; i < n; i++)\n\t\t\ta.add(ni());",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a.add(ni());",
"a.add(ni())",
"a.add",
"a",
"ni()",
"ni",
"return a;",
"a",
"int n",
"n",
"private int[][] na(int n, int m) {\n\t\tint[][] a = new int[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = na(m);\n\t\treturn a;\n\t}",
"na",
"{\n\t\tint[][] a = new int[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = na(m);\n\t\treturn a;\n\t}",
"int[][] a = new int[n][];",
"a",
"new int[n][]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\ta[i] = na(m);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = na(m);",
"a[i] = na(m)",
"a[i]",
"a",
"i",
"na(m)",
"na",
"m",
"return a;",
"a",
"int n",
"n",
"int m",
"m",
"private int ni() {\n\t\tint num = 0, b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"ni",
"{\n\t\tint num = 0, b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"int num = 0",
"num",
"0",
"b;",
"b",
"boolean minus = false;",
"minus",
"false",
"while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\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\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"b == '-'",
"b",
"'-'",
"{\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"while (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"true",
"{\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"if (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\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}",
"num = num * 10 + (b - '0')",
"num",
"num * 10 + (b - '0')",
"num * 10",
"num",
"10",
"(b - '0')",
"b",
"'0'",
"{\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}",
"return minus ? -num : num;",
"minus ? -num : num",
"minus",
"-num",
"num",
"num",
"b = readByte()",
"b",
"readByte()",
"readByte",
"private long[] nl(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}",
"nl",
"{\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nl();",
"a[i] = nl()",
"a[i]",
"a",
"i",
"nl()",
"nl",
"return a;",
"a",
"int n",
"n",
"private long nl() {\n\t\tlong num = 0;\n\t\tint b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"nl",
"{\n\t\tlong num = 0;\n\t\tint b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"long num = 0;",
"num",
"0",
"int b;",
"b",
"boolean minus = false;",
"minus",
"false",
"while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\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\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"b == '-'",
"b",
"'-'",
"{\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"while (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"true",
"{\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"if (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\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}",
"num = num * 10 + (b - '0')",
"num",
"num * 10 + (b - '0')",
"num * 10",
"num",
"10",
"(b - '0')",
"b",
"'0'",
"{\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}",
"return minus ? -num : num;",
"minus ? -num : num",
"minus",
"-num",
"num",
"num",
"b = readByte()",
"b",
"readByte()",
"readByte",
"private static void tr(Object... o) {\n\t\tSystem.out.println(Arrays.deepToString(o));\n\t}",
"tr",
"{\n\t\tSystem.out.println(Arrays.deepToString(o));\n\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\n\tprivate static final int MAXN = 5000;\n\tprivate static final String NO = \"NO\";\n\tprivate static final String YES = \"YES\";\n\tInputStream is;\n\tPrintWriter out;\n\tString INPUT = \"\";\n\n\tprivate static final long MOD = 1000000007L;\n\n\tvoid solve() {\n\t\tint N = ni();\n\t\tlong ans = 0;\n\t\tfor (int i = 1; i <= N; i++)\n\t\t\tfor (int j = 1; j <= N; j++) {\n\t\t\t\tlong g = gcd(i, j);\n\t\t\t\tfor (int k = 1; k <= N; k++)\n\t\t\t\t\tans += gcd(g, k);\n\t\t\t}\n\t\tout.println(ans);\n\t}\n\n\tlong power(long a, long b) {\n\t\tlong x = 1, y = a;\n\t\twhile (b > 0) {\n\t\t\tif (b % 2 != 0) {\n\t\t\t\tx = (x * y) % MOD;\n\t\t\t}\n\t\t\ty = (y * y) % MOD;\n\t\t\tb /= 2;\n\t\t}\n\t\treturn x % MOD;\n\t}\n\n\tprivate long gcd(long a, long b) {\n\t\twhile (a != 0) {\n\t\t\tlong tmp = b % a;\n\t\t\tb = a;\n\t\t\ta = tmp;\n\t\t}\n\t\treturn b;\n\t}\n\n\tvoid run() throws Exception {\n\t\tis = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n\t\tout = new PrintWriter(System.out);\n\n\t\tlong s = System.currentTimeMillis();\n\t\tsolve();\n\t\tout.flush();\n\t\tif (!INPUT.isEmpty())\n\t\t\ttr(System.currentTimeMillis() - s + \"ms\");\n\t}\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tnew Main().run();\n\t}\n\n\tprivate byte[] inbuf = new byte[1024];\n\tpublic int lenbuf = 0, ptrbuf = 0;\n\tprivate boolean vis[];\n\n\tprivate int readByte() {\n\t\tif (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();\n\t\tif (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}\n\t\treturn inbuf[ptrbuf++];\n\t}\n\n\tprivate boolean isSpaceChar(int c) {\n\t\treturn !(c >= 33 && c <= 126);\n\t}\n\n\tprivate int skip() {\n\t\tint b;\n\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t;\n\t\treturn b;\n\t}\n\n\tprivate double nd() {\n\t\treturn Double.parseDouble(ns());\n\t}\n\n\tprivate char nc() {\n\t\treturn (char) skip();\n\t}\n\n\tprivate String ns() {\n\t\tint b = skip();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (!(isSpaceChar(b))) { // when nextLine, (isSpaceChar(b) && b != '\n\t\t\t\t\t\t\t\t\t// ')\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tprivate char[] ns(int n) {\n\t\tchar[] buf = new char[n];\n\t\tint b = skip(), p = 0;\n\t\twhile (p < n) {\n\t\t\tif (!(isSpaceChar(b)))\n\t\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}\n\t\treturn n == p ? buf : Arrays.copyOf(buf, p);\n\t}\n\n\tprivate char[][] nm(int n, int m) {\n\t\tchar[][] map = new char[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);\n\t\treturn map;\n\t}\n\n\tprivate int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\n\tprivate List<Integer> na2(int n) {\n\t\tList<Integer> a = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta.add(ni());\n\t\treturn a;\n\t}\n\n\tprivate int[][] na(int n, int m) {\n\t\tint[][] a = new int[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = na(m);\n\t\treturn a;\n\t}\n\n\tprivate int ni() {\n\t\tint num = 0, b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tprivate long[] nl(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n\n\tprivate long nl() {\n\t\tlong num = 0;\n\t\tint b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tprivate static void tr(Object... o) {\n\t\tSystem.out.println(Arrays.deepToString(o));\n\t}\n}",
"public class Main {\n\n\tprivate static final int MAXN = 5000;\n\tprivate static final String NO = \"NO\";\n\tprivate static final String YES = \"YES\";\n\tInputStream is;\n\tPrintWriter out;\n\tString INPUT = \"\";\n\n\tprivate static final long MOD = 1000000007L;\n\n\tvoid solve() {\n\t\tint N = ni();\n\t\tlong ans = 0;\n\t\tfor (int i = 1; i <= N; i++)\n\t\t\tfor (int j = 1; j <= N; j++) {\n\t\t\t\tlong g = gcd(i, j);\n\t\t\t\tfor (int k = 1; k <= N; k++)\n\t\t\t\t\tans += gcd(g, k);\n\t\t\t}\n\t\tout.println(ans);\n\t}\n\n\tlong power(long a, long b) {\n\t\tlong x = 1, y = a;\n\t\twhile (b > 0) {\n\t\t\tif (b % 2 != 0) {\n\t\t\t\tx = (x * y) % MOD;\n\t\t\t}\n\t\t\ty = (y * y) % MOD;\n\t\t\tb /= 2;\n\t\t}\n\t\treturn x % MOD;\n\t}\n\n\tprivate long gcd(long a, long b) {\n\t\twhile (a != 0) {\n\t\t\tlong tmp = b % a;\n\t\t\tb = a;\n\t\t\ta = tmp;\n\t\t}\n\t\treturn b;\n\t}\n\n\tvoid run() throws Exception {\n\t\tis = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n\t\tout = new PrintWriter(System.out);\n\n\t\tlong s = System.currentTimeMillis();\n\t\tsolve();\n\t\tout.flush();\n\t\tif (!INPUT.isEmpty())\n\t\t\ttr(System.currentTimeMillis() - s + \"ms\");\n\t}\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tnew Main().run();\n\t}\n\n\tprivate byte[] inbuf = new byte[1024];\n\tpublic int lenbuf = 0, ptrbuf = 0;\n\tprivate boolean vis[];\n\n\tprivate int readByte() {\n\t\tif (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();\n\t\tif (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}\n\t\treturn inbuf[ptrbuf++];\n\t}\n\n\tprivate boolean isSpaceChar(int c) {\n\t\treturn !(c >= 33 && c <= 126);\n\t}\n\n\tprivate int skip() {\n\t\tint b;\n\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t;\n\t\treturn b;\n\t}\n\n\tprivate double nd() {\n\t\treturn Double.parseDouble(ns());\n\t}\n\n\tprivate char nc() {\n\t\treturn (char) skip();\n\t}\n\n\tprivate String ns() {\n\t\tint b = skip();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (!(isSpaceChar(b))) { // when nextLine, (isSpaceChar(b) && b != '\n\t\t\t\t\t\t\t\t\t// ')\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tprivate char[] ns(int n) {\n\t\tchar[] buf = new char[n];\n\t\tint b = skip(), p = 0;\n\t\twhile (p < n) {\n\t\t\tif (!(isSpaceChar(b)))\n\t\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}\n\t\treturn n == p ? buf : Arrays.copyOf(buf, p);\n\t}\n\n\tprivate char[][] nm(int n, int m) {\n\t\tchar[][] map = new char[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);\n\t\treturn map;\n\t}\n\n\tprivate int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\n\tprivate List<Integer> na2(int n) {\n\t\tList<Integer> a = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta.add(ni());\n\t\treturn a;\n\t}\n\n\tprivate int[][] na(int n, int m) {\n\t\tint[][] a = new int[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = na(m);\n\t\treturn a;\n\t}\n\n\tprivate int ni() {\n\t\tint num = 0, b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tprivate long[] nl(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n\n\tprivate long nl() {\n\t\tlong num = 0;\n\t\tint b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tprivate static void tr(Object... o) {\n\t\tSystem.out.println(Arrays.deepToString(o));\n\t}\n}",
"Main"
] |
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.InputMismatchException;
import java.util.List;
public class Main {
private static final int MAXN = 5000;
private static final String NO = "NO";
private static final String YES = "YES";
InputStream is;
PrintWriter out;
String INPUT = "";
private static final long MOD = 1000000007L;
void solve() {
int N = ni();
long ans = 0;
for (int i = 1; i <= N; i++)
for (int j = 1; j <= N; j++) {
long g = gcd(i, j);
for (int k = 1; k <= N; k++)
ans += gcd(g, k);
}
out.println(ans);
}
long power(long a, long b) {
long x = 1, y = a;
while (b > 0) {
if (b % 2 != 0) {
x = (x * y) % MOD;
}
y = (y * y) % MOD;
b /= 2;
}
return x % MOD;
}
private long gcd(long a, long b) {
while (a != 0) {
long tmp = b % a;
b = a;
a = tmp;
}
return b;
}
void run() throws Exception {
is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());
out = new PrintWriter(System.out);
long s = System.currentTimeMillis();
solve();
out.flush();
if (!INPUT.isEmpty())
tr(System.currentTimeMillis() - s + "ms");
}
public static void main(String[] args) throws Exception {
new Main().run();
}
private byte[] inbuf = new byte[1024];
public int lenbuf = 0, ptrbuf = 0;
private boolean vis[];
private int readByte() {
if (lenbuf == -1)
throw new InputMismatchException();
if (ptrbuf >= lenbuf) {
ptrbuf = 0;
try {
lenbuf = is.read(inbuf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (lenbuf <= 0)
return -1;
}
return inbuf[ptrbuf++];
}
private boolean isSpaceChar(int c) {
return !(c >= 33 && c <= 126);
}
private int skip() {
int b;
while ((b = readByte()) != -1 && isSpaceChar(b))
;
return b;
}
private double nd() {
return Double.parseDouble(ns());
}
private char nc() {
return (char) skip();
}
private String ns() {
int b = skip();
StringBuilder sb = new StringBuilder();
while (!(isSpaceChar(b))) { // when nextLine, (isSpaceChar(b) && b != '
// ')
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
private char[] ns(int n) {
char[] buf = new char[n];
int b = skip(), p = 0;
while (p < n) {
if (!(isSpaceChar(b)))
buf[p++] = (char) b;
b = readByte();
}
return n == p ? buf : Arrays.copyOf(buf, p);
}
private char[][] nm(int n, int m) {
char[][] map = new char[n][];
for (int i = 0; i < n; i++)
map[i] = ns(m);
return map;
}
private int[] na(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = ni();
return a;
}
private List<Integer> na2(int n) {
List<Integer> a = new ArrayList<Integer>();
for (int i = 0; i < n; i++)
a.add(ni());
return a;
}
private int[][] na(int n, int m) {
int[][] a = new int[n][];
for (int i = 0; i < n; i++)
a[i] = na(m);
return a;
}
private int ni() {
int num = 0, b;
boolean minus = false;
while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))
;
if (b == '-') {
minus = true;
b = readByte();
}
while (true) {
if (b >= '0' && b <= '9') {
num = num * 10 + (b - '0');
} else {
return minus ? -num : num;
}
b = readByte();
}
}
private long[] nl(int n) {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nl();
return a;
}
private long nl() {
long num = 0;
int b;
boolean minus = false;
while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))
;
if (b == '-') {
minus = true;
b = readByte();
}
while (true) {
if (b >= '0' && b <= '9') {
num = num * 10 + (b - '0');
} else {
return minus ? -num : num;
}
b = readByte();
}
}
private static void tr(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,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
0,
13,
17,
9,
30,
0,
13,
4,
13,
4,
13,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
125,
5
],
[
125,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
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
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
64,
71
],
[
71,
72
],
[
71,
73
],
[
62,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
62,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
84,
87
],
[
82,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
6,
95
],
[
95,
96
],
[
125,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
106,
112
],
[
112,
113
],
[
112,
114
],
[
106,
115
],
[
115,
116
],
[
115,
117
],
[
99,
118
],
[
118,
119
],
[
97,
120
],
[
120,
121
],
[
97,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
]
] |
[
"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\tint num = sc.nextInt();\n\t\tlong sum = 0;\n\t\tint gcd = 1;\n\t for(int i = 1; i <= num; i++){\n\t \tfor(int j = 1; j <= num; j++){\n\t \t\tfor(int k = 1; k <= num; k++){\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }\n\t\t }\n\t }\n\t System.out.println(sum);\n\t}\n\n\tpublic static int gcd(int m, int n) {\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\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\tint num = sc.nextInt();\n\t\tlong sum = 0;\n\t\tint gcd = 1;\n\t for(int i = 1; i <= num; i++){\n\t \tfor(int j = 1; j <= num; j++){\n\t \t\tfor(int k = 1; k <= num; k++){\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }\n\t\t }\n\t }\n\t System.out.println(sum);\n\t}\n\n\tpublic static int gcd(int m, int n) {\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n }\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\tlong sum = 0;\n\t\tint gcd = 1;\n\t for(int i = 1; i <= num; i++){\n\t \tfor(int j = 1; j <= num; j++){\n\t \t\tfor(int k = 1; k <= num; k++){\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }\n\t\t }\n\t }\n\t System.out.println(sum);\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\tlong sum = 0;\n\t\tint gcd = 1;\n\t for(int i = 1; i <= num; i++){\n\t \tfor(int j = 1; j <= num; j++){\n\t \t\tfor(int k = 1; k <= num; k++){\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }\n\t\t }\n\t }\n\t System.out.println(sum);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"int gcd = 1;",
"gcd",
"1",
"for(int i = 1; i <= num; i++){\n\t \tfor(int j = 1; j <= num; j++){\n\t \t\tfor(int k = 1; k <= num; k++){\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }\n\t\t }\n\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t \tfor(int j = 1; j <= num; j++){\n\t \t\tfor(int k = 1; k <= num; k++){\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }\n\t\t }\n\t }",
"{\n\t \tfor(int j = 1; j <= num; j++){\n\t \t\tfor(int k = 1; k <= num; k++){\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }\n\t\t }\n\t }",
"for(int j = 1; j <= num; j++){\n\t \t\tfor(int k = 1; k <= num; k++){\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }\n\t\t }",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= num",
"j",
"num",
"j++",
"j++",
"j",
"{\n\t \t\tfor(int k = 1; k <= num; k++){\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }\n\t\t }",
"{\n\t \t\tfor(int k = 1; k <= num; k++){\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }\n\t\t }",
"for(int k = 1; k <= num; k++){\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }",
"int k = 1;",
"int k = 1;",
"k",
"1",
"k <= num",
"k",
"num",
"k++",
"k++",
"k",
"{\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }",
"{\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }",
"if(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}",
"i == 1 || j == 1 || k == 1",
"i == 1 || j == 1 || k == 1",
"i == 1",
"i",
"1",
"j == 1",
"j",
"1",
"k == 1",
"k",
"1",
"{\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}",
"sum += 1",
"sum",
"1",
"continue;",
"{\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}",
"sum += gcd(gcd(i,j),k)",
"sum",
"gcd(gcd(i,j),k)",
"gcd",
"gcd(i,j)",
"gcd",
"i",
"j",
"k",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public static int gcd(int m, int n) {\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n }",
"gcd",
"{\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n }",
"int r;",
"r",
"while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }",
"n > 0",
"n",
"0",
"{\n r = m % n;\n m = n;\n n = r;\n }",
"r = m % n",
"r",
"m % n",
"m",
"n",
"m = n",
"m",
"n",
"n = r",
"n",
"r",
"return m;",
"m",
"int m",
"m",
"int 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\tint num = sc.nextInt();\n\t\tlong sum = 0;\n\t\tint gcd = 1;\n\t for(int i = 1; i <= num; i++){\n\t \tfor(int j = 1; j <= num; j++){\n\t \t\tfor(int k = 1; k <= num; k++){\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }\n\t\t }\n\t }\n\t System.out.println(sum);\n\t}\n\n\tpublic static int gcd(int m, int n) {\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\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\tint num = sc.nextInt();\n\t\tlong sum = 0;\n\t\tint gcd = 1;\n\t for(int i = 1; i <= num; i++){\n\t \tfor(int j = 1; j <= num; j++){\n\t \t\tfor(int k = 1; k <= num; k++){\n\t \t \tif(i == 1 || j == 1 || k == 1) {\n\t \t \t\tsum += 1;\n\t \t \t\tcontinue;\n\t \t \t}else {\n\t \t \t\tsum += gcd(gcd(i,j),k);\n\t \t \t}\n\t \t }\n\t\t }\n\t }\n\t System.out.println(sum);\n\t}\n\n\tpublic static int gcd(int m, int n) {\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
long sum = 0;
int gcd = 1;
for(int i = 1; i <= num; i++){
for(int j = 1; j <= num; j++){
for(int k = 1; k <= num; k++){
if(i == 1 || j == 1 || k == 1) {
sum += 1;
continue;
}else {
sum += gcd(gcd(i,j),k);
}
}
}
}
System.out.println(sum);
}
public static int gcd(int m, int n) {
int r;
while (n > 0) {
r = m % n;
m = n;
n = r;
}
return m;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
39,
13,
13,
13,
0,
13,
4,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
4,
13,
13,
2,
13,
13,
30,
29,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
166,
23
],
[
166,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
26,
35
],
[
35,
36
],
[
35,
37
],
[
26,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
42,
49
],
[
26,
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
],
[
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
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
91,
94
],
[
88,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
26,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
24,
106
],
[
106,
107
],
[
166,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
110,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
116,
126
],
[
126,
127
],
[
127,
128
],
[
116,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
133,
135
],
[
133,
136
],
[
136,
137
],
[
136,
138
],
[
110,
139
],
[
139,
140
],
[
108,
141
],
[
141,
142
],
[
166,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
152,
155
],
[
155,
156
],
[
155,
157
],
[
146,
158
],
[
158,
159
],
[
159,
160
],
[
143,
161
],
[
161,
162
],
[
143,
163
],
[
163,
164
],
[
0,
165
],
[
165,
166
],
[
165,
167
]
] |
[
"import java.io.*;\nimport java.math.BigInteger;\nimport java.util.Scanner;\nimport java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Queue;\n\npublic class Main {\n\n public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int num = sc.nextInt();\n int sum = 0;\n\n if (num == 1) {\n System.out.println('1');\n return;\n }\n\n for (int i = 1; i <= num; i++) {\n for (int j = 1; j <= num; j++) {\n for (int k = 1; k <= num; k++) {\n int[] test = {i, j, k};\n sum += gcd(test);\n }\n }\n }\n\n System.out.println(sum);\n }\n\n private static int gcd(int[] num) {\n int ans = num[0];\n\n for (int i = 1; i < num.length; i++) {\n ans = func(ans, num[i]);\n }\n return ans;\n }\n\n private static int func(int a, int b) {\n\n if (b != 0) {\n return func(b, a % b);\n } else {\n return a;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayDeque;",
"ArrayDeque",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Queue;",
"Queue",
"java.util",
"public class Main {\n\n public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int num = sc.nextInt();\n int sum = 0;\n\n if (num == 1) {\n System.out.println('1');\n return;\n }\n\n for (int i = 1; i <= num; i++) {\n for (int j = 1; j <= num; j++) {\n for (int k = 1; k <= num; k++) {\n int[] test = {i, j, k};\n sum += gcd(test);\n }\n }\n }\n\n System.out.println(sum);\n }\n\n private static int gcd(int[] num) {\n int ans = num[0];\n\n for (int i = 1; i < num.length; i++) {\n ans = func(ans, num[i]);\n }\n return ans;\n }\n\n private static int func(int a, int b) {\n\n if (b != 0) {\n return func(b, a % b);\n } else {\n return a;\n }\n }\n}",
"Main",
"public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int num = sc.nextInt();\n int sum = 0;\n\n if (num == 1) {\n System.out.println('1');\n return;\n }\n\n for (int i = 1; i <= num; i++) {\n for (int j = 1; j <= num; j++) {\n for (int k = 1; k <= num; k++) {\n int[] test = {i, j, k};\n sum += gcd(test);\n }\n }\n }\n\n System.out.println(sum);\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n\n int num = sc.nextInt();\n int sum = 0;\n\n if (num == 1) {\n System.out.println('1');\n return;\n }\n\n for (int i = 1; i <= num; i++) {\n for (int j = 1; j <= num; j++) {\n for (int k = 1; k <= num; k++) {\n int[] test = {i, j, k};\n sum += gcd(test);\n }\n }\n }\n\n System.out.println(sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sum = 0;",
"sum",
"0",
"if (num == 1) {\n System.out.println('1');\n return;\n }",
"num == 1",
"num",
"1",
"{\n System.out.println('1');\n return;\n }",
"System.out.println('1')",
"System.out.println",
"System.out",
"System",
"System.out",
"'1'",
"return;",
"for (int i = 1; i <= num; i++) {\n for (int j = 1; j <= num; j++) {\n for (int k = 1; k <= num; k++) {\n int[] test = {i, j, k};\n sum += gcd(test);\n }\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= num",
"i",
"num",
"i++",
"i++",
"i",
"{\n for (int j = 1; j <= num; j++) {\n for (int k = 1; k <= num; k++) {\n int[] test = {i, j, k};\n sum += gcd(test);\n }\n }\n }",
"{\n for (int j = 1; j <= num; j++) {\n for (int k = 1; k <= num; k++) {\n int[] test = {i, j, k};\n sum += gcd(test);\n }\n }\n }",
"for (int j = 1; j <= num; j++) {\n for (int k = 1; k <= num; k++) {\n int[] test = {i, j, k};\n sum += gcd(test);\n }\n }",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= num",
"j",
"num",
"j++",
"j++",
"j",
"{\n for (int k = 1; k <= num; k++) {\n int[] test = {i, j, k};\n sum += gcd(test);\n }\n }",
"{\n for (int k = 1; k <= num; k++) {\n int[] test = {i, j, k};\n sum += gcd(test);\n }\n }",
"for (int k = 1; k <= num; k++) {\n int[] test = {i, j, k};\n sum += gcd(test);\n }",
"int k = 1;",
"int k = 1;",
"k",
"1",
"k <= num",
"k",
"num",
"k++",
"k++",
"k",
"{\n int[] test = {i, j, k};\n sum += gcd(test);\n }",
"{\n int[] test = {i, j, k};\n sum += gcd(test);\n }",
"int[] test = {i, j, k};",
"test",
"{i, j, k}",
"i",
"j",
"k",
"sum += gcd(test)",
"sum",
"gcd(test)",
"gcd",
"test",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"final String[] args",
"args",
"private static int gcd(int[] num) {\n int ans = num[0];\n\n for (int i = 1; i < num.length; i++) {\n ans = func(ans, num[i]);\n }\n return ans;\n }",
"gcd",
"{\n int ans = num[0];\n\n for (int i = 1; i < num.length; i++) {\n ans = func(ans, num[i]);\n }\n return ans;\n }",
"int ans = num[0];",
"ans",
"num[0]",
"num",
"0",
"for (int i = 1; i < num.length; i++) {\n ans = func(ans, num[i]);\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < num.length",
"i",
"num.length",
"num",
"num.length",
"i++",
"i++",
"i",
"{\n ans = func(ans, num[i]);\n }",
"{\n ans = func(ans, num[i]);\n }",
"ans = func(ans, num[i])",
"ans",
"func(ans, num[i])",
"func",
"ans",
"num[i]",
"num",
"i",
"return ans;",
"ans",
"int[] num",
"num",
"private static int func(int a, int b) {\n\n if (b != 0) {\n return func(b, a % b);\n } else {\n return a;\n }\n }",
"func",
"{\n\n if (b != 0) {\n return func(b, a % b);\n } else {\n return a;\n }\n }",
"if (b != 0) {\n return func(b, a % b);\n } else {\n return a;\n }",
"b != 0",
"b",
"0",
"{\n return func(b, a % b);\n }",
"return func(b, a % b);",
"func(b, a % b)",
"func",
"b",
"a % b",
"a",
"b",
"{\n return a;\n }",
"return a;",
"a",
"int a",
"a",
"int b",
"b",
"public class Main {\n\n public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int num = sc.nextInt();\n int sum = 0;\n\n if (num == 1) {\n System.out.println('1');\n return;\n }\n\n for (int i = 1; i <= num; i++) {\n for (int j = 1; j <= num; j++) {\n for (int k = 1; k <= num; k++) {\n int[] test = {i, j, k};\n sum += gcd(test);\n }\n }\n }\n\n System.out.println(sum);\n }\n\n private static int gcd(int[] num) {\n int ans = num[0];\n\n for (int i = 1; i < num.length; i++) {\n ans = func(ans, num[i]);\n }\n return ans;\n }\n\n private static int func(int a, int b) {\n\n if (b != 0) {\n return func(b, a % b);\n } else {\n return a;\n }\n }\n}",
"public class Main {\n\n public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int num = sc.nextInt();\n int sum = 0;\n\n if (num == 1) {\n System.out.println('1');\n return;\n }\n\n for (int i = 1; i <= num; i++) {\n for (int j = 1; j <= num; j++) {\n for (int k = 1; k <= num; k++) {\n int[] test = {i, j, k};\n sum += gcd(test);\n }\n }\n }\n\n System.out.println(sum);\n }\n\n private static int gcd(int[] num) {\n int ans = num[0];\n\n for (int i = 1; i < num.length; i++) {\n ans = func(ans, num[i]);\n }\n return ans;\n }\n\n private static int func(int a, int b) {\n\n if (b != 0) {\n return func(b, a % b);\n } else {\n return a;\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.math.BigInteger;
import java.util.Scanner;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Queue;
public class Main {
public static void main(final String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
int sum = 0;
if (num == 1) {
System.out.println('1');
return;
}
for (int i = 1; i <= num; i++) {
for (int j = 1; j <= num; j++) {
for (int k = 1; k <= num; k++) {
int[] test = {i, j, k};
sum += gcd(test);
}
}
}
System.out.println(sum);
}
private static int gcd(int[] num) {
int ans = num[0];
for (int i = 1; i < num.length; i++) {
ans = func(ans, num[i]);
}
return ans;
}
private static int func(int a, int b) {
if (b != 0) {
return func(b, a % b);
} else {
return a;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
14,
2,
13,
13,
30,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
13,
30,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
30,
0,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
144,
5
],
[
144,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
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
],
[
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
],
[
61,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
64,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
6,
74
],
[
74,
75
],
[
144,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
78,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
94,
100
],
[
100,
101
],
[
100,
102
],
[
94,
103
],
[
103,
104
],
[
103,
105
],
[
89,
106
],
[
106,
107
],
[
106,
108
],
[
85,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
118,
124
],
[
124,
125
],
[
124,
126
],
[
118,
127
],
[
127,
128
],
[
127,
129
],
[
113,
130
],
[
130,
131
],
[
130,
132
],
[
109,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
78,
137
],
[
137,
138
],
[
76,
139
],
[
139,
140
],
[
76,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
] |
[
"\n\nimport java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint ans = 0;\n\n\t\tfor (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\tprivate static int gcd(int a, int b) {\n\t\tint c = 0;\n\t\tint r = 1;\n\n\t\tif (a > b) {\n\n\t\t\twhile (r > 0) {\n\t\t\t\tr = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\t\t\t}\n\t\t\tc = a;\n\n\t\t} else if (b > a) {\n\t\t\twhile (r > 0) {\n\t\t\t\tr = b % a;\n\t\t\t\tb = a;\n\t\t\t\ta = r;\n\t\t\t}\n\t\t\tc = b;\n\t\t} else {\n\t\t\tc = a;\n\t\t}\n\n\t\treturn c;\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint ans = 0;\n\n\t\tfor (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\tprivate static int gcd(int a, int b) {\n\t\tint c = 0;\n\t\tint r = 1;\n\n\t\tif (a > b) {\n\n\t\t\twhile (r > 0) {\n\t\t\t\tr = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\t\t\t}\n\t\t\tc = a;\n\n\t\t} else if (b > a) {\n\t\t\twhile (r > 0) {\n\t\t\t\tr = b % a;\n\t\t\t\tb = a;\n\t\t\t\ta = r;\n\t\t\t}\n\t\t\tc = b;\n\t\t} else {\n\t\t\tc = a;\n\t\t}\n\n\t\treturn c;\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint ans = 0;\n\n\t\tfor (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint ans = 0;\n\n\t\tfor (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = 0;",
"ans",
"0",
"for (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}\n\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= k",
"j",
"k",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}\n\t\t\t}",
"for (int l = 1; l <= k; l++) {\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}",
"int l = 1;",
"int l = 1;",
"l",
"1",
"l <= k",
"l",
"k",
"l++",
"l++",
"l",
"{\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}",
"{\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}",
"ans += gcd(i, gcd(j, l))",
"ans",
"gcd(i, gcd(j, l))",
"gcd",
"i",
"gcd(j, l)",
"gcd",
"j",
"l",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"private static int gcd(int a, int b) {\n\t\tint c = 0;\n\t\tint r = 1;\n\n\t\tif (a > b) {\n\n\t\t\twhile (r > 0) {\n\t\t\t\tr = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\t\t\t}\n\t\t\tc = a;\n\n\t\t} else if (b > a) {\n\t\t\twhile (r > 0) {\n\t\t\t\tr = b % a;\n\t\t\t\tb = a;\n\t\t\t\ta = r;\n\t\t\t}\n\t\t\tc = b;\n\t\t} else {\n\t\t\tc = a;\n\t\t}\n\n\t\treturn c;\n\t}",
"gcd",
"{\n\t\tint c = 0;\n\t\tint r = 1;\n\n\t\tif (a > b) {\n\n\t\t\twhile (r > 0) {\n\t\t\t\tr = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\t\t\t}\n\t\t\tc = a;\n\n\t\t} else if (b > a) {\n\t\t\twhile (r > 0) {\n\t\t\t\tr = b % a;\n\t\t\t\tb = a;\n\t\t\t\ta = r;\n\t\t\t}\n\t\t\tc = b;\n\t\t} else {\n\t\t\tc = a;\n\t\t}\n\n\t\treturn c;\n\t}",
"int c = 0;",
"c",
"0",
"int r = 1;",
"r",
"1",
"if (a > b) {\n\n\t\t\twhile (r > 0) {\n\t\t\t\tr = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\t\t\t}\n\t\t\tc = a;\n\n\t\t} else if (b > a) {\n\t\t\twhile (r > 0) {\n\t\t\t\tr = b % a;\n\t\t\t\tb = a;\n\t\t\t\ta = r;\n\t\t\t}\n\t\t\tc = b;\n\t\t} else {\n\t\t\tc = a;\n\t\t}",
"a > b",
"a",
"b",
"{\n\n\t\t\twhile (r > 0) {\n\t\t\t\tr = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\t\t\t}\n\t\t\tc = a;\n\n\t\t}",
"while (r > 0) {\n\t\t\t\tr = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\t\t\t}",
"r > 0",
"r",
"0",
"{\n\t\t\t\tr = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\t\t\t}",
"r = a % b",
"r",
"a % b",
"a",
"b",
"a = b",
"a",
"b",
"b = r",
"b",
"r",
"c = a",
"c",
"a",
"if (b > a) {\n\t\t\twhile (r > 0) {\n\t\t\t\tr = b % a;\n\t\t\t\tb = a;\n\t\t\t\ta = r;\n\t\t\t}\n\t\t\tc = b;\n\t\t} else {\n\t\t\tc = a;\n\t\t}",
"b > a",
"b",
"a",
"{\n\t\t\twhile (r > 0) {\n\t\t\t\tr = b % a;\n\t\t\t\tb = a;\n\t\t\t\ta = r;\n\t\t\t}\n\t\t\tc = b;\n\t\t}",
"while (r > 0) {\n\t\t\t\tr = b % a;\n\t\t\t\tb = a;\n\t\t\t\ta = r;\n\t\t\t}",
"r > 0",
"r",
"0",
"{\n\t\t\t\tr = b % a;\n\t\t\t\tb = a;\n\t\t\t\ta = r;\n\t\t\t}",
"r = b % a",
"r",
"b % a",
"b",
"a",
"b = a",
"b",
"a",
"a = r",
"a",
"r",
"c = b",
"c",
"b",
"{\n\t\t\tc = a;\n\t\t}",
"c = a",
"c",
"a",
"return c;",
"c",
"int a",
"a",
"int b",
"b",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint ans = 0;\n\n\t\tfor (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\tprivate static int gcd(int a, int b) {\n\t\tint c = 0;\n\t\tint r = 1;\n\n\t\tif (a > b) {\n\n\t\t\twhile (r > 0) {\n\t\t\t\tr = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\t\t\t}\n\t\t\tc = a;\n\n\t\t} else if (b > a) {\n\t\t\twhile (r > 0) {\n\t\t\t\tr = b % a;\n\t\t\t\tb = a;\n\t\t\t\ta = r;\n\t\t\t}\n\t\t\tc = b;\n\t\t} else {\n\t\t\tc = a;\n\t\t}\n\n\t\treturn c;\n\t}\n\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint ans = 0;\n\n\t\tfor (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tans += gcd(i, gcd(j, l));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\tprivate static int gcd(int a, int b) {\n\t\tint c = 0;\n\t\tint r = 1;\n\n\t\tif (a > b) {\n\n\t\t\twhile (r > 0) {\n\t\t\t\tr = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\t\t\t}\n\t\t\tc = a;\n\n\t\t} else if (b > a) {\n\t\t\twhile (r > 0) {\n\t\t\t\tr = b % a;\n\t\t\t\tb = a;\n\t\t\t\ta = r;\n\t\t\t}\n\t\t\tc = b;\n\t\t} else {\n\t\t\tc = a;\n\t\t}\n\n\t\treturn c;\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 k = sc.nextInt();
int ans = 0;
for (int i = 1; i <= k; i++) {
for (int j = 1; j <= k; j++) {
for (int l = 1; l <= k; l++) {
ans += gcd(i, gcd(j, l));
}
}
}
System.out.println(ans);
}
private static int gcd(int a, int b) {
int c = 0;
int r = 1;
if (a > b) {
while (r > 0) {
r = a % b;
a = b;
b = r;
}
c = a;
} else if (b > a) {
while (r > 0) {
r = b % a;
b = a;
a = r;
}
c = b;
} else {
c = a;
}
return c;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
100,
5
],
[
100,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
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
],
[
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
],
[
61,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
64,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
6,
74
],
[
74,
75
],
[
100,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
76,
95
],
[
95,
96
],
[
76,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tint sum = 0;\n\n\t\tfor (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int h = 1; h <= K; h++) {\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}\n\n\tpublic static int gcd(int p, int q) {\n\n\t\tif (p % q == 0) {\n\t\t\treturn q;\n\t\t}\n\t\treturn gcd(q, p % q);\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 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tint sum = 0;\n\n\t\tfor (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int h = 1; h <= K; h++) {\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}\n\n\tpublic static int gcd(int p, int q) {\n\n\t\tif (p % q == 0) {\n\t\t\treturn q;\n\t\t}\n\t\treturn gcd(q, p % q);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tint sum = 0;\n\n\t\tfor (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int h = 1; h <= K; h++) {\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tint sum = 0;\n\n\t\tfor (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int h = 1; h <= K; h++) {\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sum = 0;",
"sum",
"0",
"for (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int h = 1; h <= K; h++) {\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int h = 1; h <= K; h++) {\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int h = 1; h <= K; h++) {\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int h = 1; h <= K; h++) {\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}\n\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= K",
"j",
"K",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int h = 1; h <= K; h++) {\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int h = 1; h <= K; h++) {\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}\n\t\t\t}",
"for (int h = 1; h <= K; h++) {\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}",
"int h = 1;",
"int h = 1;",
"h",
"1",
"h <= K",
"h",
"K",
"h++",
"h++",
"h",
"{\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}",
"{\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}",
"sum += gcd(i, gcd(j, h))",
"sum",
"gcd(i, gcd(j, h))",
"gcd",
"i",
"gcd(j, h)",
"gcd",
"j",
"h",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public static int gcd(int p, int q) {\n\n\t\tif (p % q == 0) {\n\t\t\treturn q;\n\t\t}\n\t\treturn gcd(q, p % q);\n\t}",
"gcd",
"{\n\n\t\tif (p % q == 0) {\n\t\t\treturn q;\n\t\t}\n\t\treturn gcd(q, p % q);\n\t}",
"if (p % q == 0) {\n\t\t\treturn q;\n\t\t}",
"p % q == 0",
"p % q",
"p",
"q",
"0",
"{\n\t\t\treturn q;\n\t\t}",
"return q;",
"q",
"return gcd(q, p % q);",
"gcd(q, p % q)",
"gcd",
"q",
"p % q",
"p",
"q",
"int p",
"p",
"int q",
"q",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tint sum = 0;\n\n\t\tfor (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int h = 1; h <= K; h++) {\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}\n\n\tpublic static int gcd(int p, int q) {\n\n\t\tif (p % q == 0) {\n\t\t\treturn q;\n\t\t}\n\t\treturn gcd(q, p % q);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tint sum = 0;\n\n\t\tfor (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int h = 1; h <= K; h++) {\n\n\t\t\t\t\tsum += gcd(i, gcd(j, h));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}\n\n\tpublic static int gcd(int p, int q) {\n\n\t\tif (p % q == 0) {\n\t\t\treturn q;\n\t\t}\n\t\treturn gcd(q, p % q);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int sum = 0;
for (int i = 1; i <= K; i++) {
for (int j = 1; j <= K; j++) {
for (int h = 1; h <= K; h++) {
sum += gcd(i, gcd(j, h));
}
}
}
System.out.println(sum);
}
public static int gcd(int p, int q) {
if (p % q == 0) {
return q;
}
return gcd(q, p % q);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
20,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
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,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
4,
13,
18,
13,
13,
12,
13,
30,
0,
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,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
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,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
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,
12,
13,
30,
29,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
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
],
[
443,
11
],
[
443,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
12,
16
],
[
16,
17
],
[
443,
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
],
[
20,
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
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
76,
79
],
[
20,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
20,
86
],
[
86,
87
],
[
87,
88
],
[
443,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
91,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
99,
102
],
[
102,
103
],
[
102,
104
],
[
89,
105
],
[
105,
106
],
[
89,
107
],
[
107,
108
],
[
443,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
109,
117
],
[
117,
118
],
[
109,
119
],
[
119,
120
],
[
109,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
109,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
129,
135
],
[
135,
136
],
[
109,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
140,
145
],
[
145,
146
],
[
139,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
155,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
151,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
173,
174
],
[
139,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
109,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
182,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
182,
195
],
[
195,
196
],
[
195,
197
],
[
182,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
198,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
204,
207
],
[
203,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
182,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
109,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
218,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
218,
231
],
[
231,
232
],
[
231,
233
],
[
218,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
234,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
240,
243
],
[
239,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
218,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
109,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
254,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
254,
267
],
[
267,
268
],
[
267,
269
],
[
254,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
270,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
274,
279
],
[
279,
280
],
[
279,
281
],
[
281,
282
],
[
254,
283
],
[
283,
284
],
[
283,
285
],
[
254,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
286,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
293,
297
],
[
297,
298
],
[
297,
299
],
[
292,
300
],
[
300,
301
],
[
291,
302
],
[
302,
303
],
[
302,
304
],
[
291,
305
],
[
305,
306
],
[
305,
307
],
[
307,
308
],
[
307,
309
],
[
291,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
254,
314
],
[
314,
315
],
[
315,
316
],
[
315,
317
],
[
109,
318
],
[
318,
319
],
[
318,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
320,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
329,
330
],
[
329,
331
],
[
331,
332
],
[
320,
333
],
[
333,
334
],
[
333,
335
],
[
320,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
336,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
340,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
320,
349
],
[
349,
350
],
[
349,
351
],
[
320,
352
],
[
352,
353
],
[
353,
354
],
[
354,
355
],
[
354,
356
],
[
352,
357
],
[
357,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
359,
363
],
[
363,
364
],
[
363,
365
],
[
358,
366
],
[
366,
367
],
[
357,
368
],
[
368,
369
],
[
368,
370
],
[
357,
371
],
[
371,
372
],
[
371,
373
],
[
373,
374
],
[
373,
375
],
[
357,
376
],
[
376,
377
],
[
376,
378
],
[
378,
379
],
[
320,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
109,
384
],
[
384,
385
],
[
384,
386
],
[
386,
387
],
[
387,
388
],
[
391,
389
],
[
401,
390
],
[
398,
391
],
[
391,
392
],
[
392,
393
],
[
392,
394
],
[
391,
395
],
[
395,
396
],
[
395,
397
],
[
398,
398
],
[
398,
399
],
[
398,
400
],
[
401,
401
],
[
401,
402
],
[
401,
403
],
[
391,
404
],
[
404,
405
],
[
404,
406
],
[
406,
407
],
[
384,
408
],
[
408,
409
],
[
109,
410
],
[
410,
411
],
[
410,
412
],
[
412,
413
],
[
413,
414
],
[
415,
415
],
[
415,
416
],
[
416,
417
],
[
416,
418
],
[
415,
419
],
[
419,
420
],
[
419,
421
],
[
415,
422
],
[
422,
423
],
[
422,
424
],
[
424,
425
],
[
410,
426
],
[
426,
427
],
[
109,
428
],
[
428,
429
],
[
428,
430
],
[
430,
431
],
[
431,
432
],
[
432,
433
],
[
432,
434
],
[
434,
435
],
[
435,
436
],
[
436,
437
],
[
431,
438
],
[
438,
439
],
[
439,
440
],
[
440,
441
],
[
0,
442
],
[
442,
443
],
[
442,
444
]
] |
[
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.util.InputMismatchException;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main();\n\t}\n\n\tpublic Main() {\n\t\tFasterScanner sc = new FasterScanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint sol = 0;\n\t\tfor (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(sol);\n\t\t\n\t\tsc.close();\n\t}\n\t\n\tprivate int gcd(int a, int b) {\n\t\tif (b == 0) return a;\n\t\treturn gcd(b, a%b);\n\t}\n\t\n\tclass FasterScanner {\n\t\tprivate InputStream mIs;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\n\t\tpublic FasterScanner() {\n\t\t\tthis(System.in);\n\t\t}\n\n\t\tpublic FasterScanner(InputStream is) {\n\t\t\tmIs = is;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = mIs.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isEndOfLine(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic String nextString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tpublic boolean isEndOfLine(int c) {\n\t\t\treturn c == '\\n' || c == '\\r' || c == -1;\n\t\t}\n\n\t\tpublic void close() {\n\t\t\ttry {\n\t\t\t\tmIs.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main();\n\t}\n\n\tpublic Main() {\n\t\tFasterScanner sc = new FasterScanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint sol = 0;\n\t\tfor (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(sol);\n\t\t\n\t\tsc.close();\n\t}\n\t\n\tprivate int gcd(int a, int b) {\n\t\tif (b == 0) return a;\n\t\treturn gcd(b, a%b);\n\t}\n\t\n\tclass FasterScanner {\n\t\tprivate InputStream mIs;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\n\t\tpublic FasterScanner() {\n\t\t\tthis(System.in);\n\t\t}\n\n\t\tpublic FasterScanner(InputStream is) {\n\t\t\tmIs = is;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = mIs.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isEndOfLine(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic String nextString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tpublic boolean isEndOfLine(int c) {\n\t\t\treturn c == '\\n' || c == '\\r' || c == -1;\n\t\t}\n\n\t\tpublic void close() {\n\t\t\ttry {\n\t\t\t\tmIs.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tnew Main();\n\t}",
"main",
"{\n\t\tnew Main();\n\t}",
"new Main()",
"String[] args",
"args",
"public Main() {\n\t\tFasterScanner sc = new FasterScanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint sol = 0;\n\t\tfor (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(sol);\n\t\t\n\t\tsc.close();\n\t}",
"Main",
"{\n\t\tFasterScanner sc = new FasterScanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint sol = 0;\n\t\tfor (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(sol);\n\t\t\n\t\tsc.close();\n\t}",
"FasterScanner sc = new FasterScanner(System.in);",
"sc",
"new FasterScanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sol = 0;",
"sol",
"0",
"for (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}\n\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= k",
"j",
"k",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}\n\t\t\t}",
"for (int l = 1; l <= k; l++) {\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}",
"int l = 1;",
"int l = 1;",
"l",
"1",
"l <= k",
"l",
"k",
"l++",
"l++",
"l",
"{\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}",
"{\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}",
"sol += (gcd(i, gcd(j, l)))",
"sol",
"(gcd(i, gcd(j, l)))",
"gcd",
"i",
"gcd(j, l)",
"gcd",
"j",
"l",
"System.out.println(sol)",
"System.out.println",
"System.out",
"System",
"System.out",
"sol",
"sc.close()",
"sc.close",
"sc",
"private int gcd(int a, int b) {\n\t\tif (b == 0) return a;\n\t\treturn gcd(b, a%b);\n\t}",
"gcd",
"{\n\t\tif (b == 0) return a;\n\t\treturn gcd(b, a%b);\n\t}",
"if (b == 0) return a;",
"b == 0",
"b",
"0",
"return a;",
"a",
"return gcd(b, a%b);",
"gcd(b, a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"class FasterScanner {\n\t\tprivate InputStream mIs;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\n\t\tpublic FasterScanner() {\n\t\t\tthis(System.in);\n\t\t}\n\n\t\tpublic FasterScanner(InputStream is) {\n\t\t\tmIs = is;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = mIs.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isEndOfLine(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic String nextString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tpublic boolean isEndOfLine(int c) {\n\t\t\treturn c == '\\n' || c == '\\r' || c == -1;\n\t\t}\n\n\t\tpublic void close() {\n\t\t\ttry {\n\t\t\t\tmIs.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"FasterScanner",
"private InputStream mIs;",
"mIs",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"public FasterScanner() {\n\t\t\tthis(System.in);\n\t\t}",
"FasterScanner",
"{\n\t\t\tthis(System.in);\n\t\t}",
"this(System.in)",
"this",
"System.in",
"System",
"System.in",
"public FasterScanner(InputStream is) {\n\t\t\tmIs = is;\n\t\t}",
"FasterScanner",
"{\n\t\t\tmIs = is;\n\t\t}",
"mIs = is",
"mIs",
"is",
"InputStream is",
"is",
"public int read() {\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = mIs.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}",
"read",
"{\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = mIs.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}",
"if (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();",
"numChars == -1",
"numChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = mIs.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}",
"curChar >= numChars",
"curChar",
"numChars",
"{\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = mIs.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}",
"curChar = 0",
"curChar",
"0",
"try {\n\t\t\t\t\tnumChars = mIs.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n\t\t\t\t\tnumChars = mIs.read(buf);\n\t\t\t\t}",
"numChars = mIs.read(buf)",
"numChars",
"mIs.read(buf)",
"mIs.read",
"mIs",
"buf",
"if (numChars <= 0)\n\t\t\t\t\treturn -1;",
"numChars <= 0",
"numChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public String nextLine() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isEndOfLine(c));\n\t\t\treturn res.toString();\n\t\t}",
"nextLine",
"{\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isEndOfLine(c));\n\t\t\treturn res.toString();\n\t\t}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n\t\t\t\tc = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isEndOfLine(c));",
"!isEndOfLine(c)",
"isEndOfLine(c)",
"isEndOfLine",
"c",
"{\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t}",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public String nextString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}",
"nextString",
"{\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n\t\t\t\tc = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t}",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}",
"nextLong",
"{\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n\t\t\t\tc = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"c == '-'",
"c",
"'-'",
"{\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"long res = 0;",
"res",
"0",
"do {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}",
"if (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}",
"nextInt",
"{\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n\t\t\t\tc = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"c == '-'",
"c",
"'-'",
"{\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}",
"if (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public boolean isSpaceChar(int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}",
"isSpaceChar",
"{\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public boolean isEndOfLine(int c) {\n\t\t\treturn c == '\\n' || c == '\\r' || c == -1;\n\t\t}",
"isEndOfLine",
"{\n\t\t\treturn c == '\\n' || c == '\\r' || c == -1;\n\t\t}",
"return c == '\\n' || c == '\\r' || c == -1;",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public void close() {\n\t\t\ttry {\n\t\t\t\tmIs.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"close",
"{\n\t\t\ttry {\n\t\t\t\tmIs.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"try {\n\t\t\t\tmIs.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tmIs.close();\n\t\t\t}",
"mIs.close()",
"mIs.close",
"mIs",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main();\n\t}\n\n\tpublic Main() {\n\t\tFasterScanner sc = new FasterScanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint sol = 0;\n\t\tfor (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(sol);\n\t\t\n\t\tsc.close();\n\t}\n\t\n\tprivate int gcd(int a, int b) {\n\t\tif (b == 0) return a;\n\t\treturn gcd(b, a%b);\n\t}\n\t\n\tclass FasterScanner {\n\t\tprivate InputStream mIs;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\n\t\tpublic FasterScanner() {\n\t\t\tthis(System.in);\n\t\t}\n\n\t\tpublic FasterScanner(InputStream is) {\n\t\t\tmIs = is;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = mIs.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isEndOfLine(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic String nextString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tpublic boolean isEndOfLine(int c) {\n\t\t\treturn c == '\\n' || c == '\\r' || c == -1;\n\t\t}\n\n\t\tpublic void close() {\n\t\t\ttry {\n\t\t\t\tmIs.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main();\n\t}\n\n\tpublic Main() {\n\t\tFasterScanner sc = new FasterScanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint sol = 0;\n\t\tfor (int i = 1; i <= k; i++) {\n\t\t\tfor (int j = 1; j <= k; j++) {\n\t\t\t\tfor (int l = 1; l <= k; l++) {\n\t\t\t\t\tsol += (gcd(i, gcd(j, l)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(sol);\n\t\t\n\t\tsc.close();\n\t}\n\t\n\tprivate int gcd(int a, int b) {\n\t\tif (b == 0) return a;\n\t\treturn gcd(b, a%b);\n\t}\n\t\n\tclass FasterScanner {\n\t\tprivate InputStream mIs;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\n\t\tpublic FasterScanner() {\n\t\t\tthis(System.in);\n\t\t}\n\n\t\tpublic FasterScanner(InputStream is) {\n\t\t\tmIs = is;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = mIs.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isEndOfLine(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic String nextString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tpublic boolean isEndOfLine(int c) {\n\t\t\treturn c == '\\n' || c == '\\r' || c == -1;\n\t\t}\n\n\t\tpublic void close() {\n\t\t\ttry {\n\t\t\t\tmIs.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] |
import java.io.IOException;
import java.io.InputStream;
import java.util.InputMismatchException;
public class Main {
public static void main(String[] args) {
new Main();
}
public Main() {
FasterScanner sc = new FasterScanner(System.in);
int k = sc.nextInt();
int sol = 0;
for (int i = 1; i <= k; i++) {
for (int j = 1; j <= k; j++) {
for (int l = 1; l <= k; l++) {
sol += (gcd(i, gcd(j, l)));
}
}
}
System.out.println(sol);
sc.close();
}
private int gcd(int a, int b) {
if (b == 0) return a;
return gcd(b, a%b);
}
class FasterScanner {
private InputStream mIs;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
public FasterScanner() {
this(System.in);
}
public FasterScanner(InputStream is) {
mIs = is;
}
public int read() {
if (numChars == -1)
throw new InputMismatchException();
if (curChar >= numChars) {
curChar = 0;
try {
numChars = mIs.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0)
return -1;
}
return buf[curChar++];
}
public String nextLine() {
int c = read();
while (isSpaceChar(c))
c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isEndOfLine(c));
return res.toString();
}
public String nextString() {
int c = read();
while (isSpaceChar(c))
c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isSpaceChar(c));
return res.toString();
}
public long nextLong() {
int c = read();
while (isSpaceChar(c))
c = read();
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
long res = 0;
do {
if (c < '0' || c > '9')
throw new InputMismatchException();
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public int nextInt() {
int c = read();
while (isSpaceChar(c))
c = read();
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
if (c < '0' || c > '9')
throw new InputMismatchException();
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public boolean isEndOfLine(int c) {
return c == '\n' || c == '\r' || c == -1;
}
public void close() {
try {
mIs.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
41,
13,
13,
41,
13,
13,
41,
13,
13,
42,
2,
0,
13,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
42,
2,
0,
13,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
0,
13,
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
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
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
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
58,
67
],
[
67,
68
],
[
67,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
71,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
58,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
86,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
58,
100
],
[
100,
101
],
[
100,
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\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint sum = 0;\n\t\tfor (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int k = 1; k <= K; k++) {\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\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\tint K = sc.nextInt();\n\t\tint sum = 0;\n\t\tfor (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int k = 1; k <= K; k++) {\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n \n\t}\n \n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint sum = 0;\n\t\tfor (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int k = 1; k <= K; k++) {\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n \n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint sum = 0;\n\t\tfor (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int k = 1; k <= K; k++) {\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n \n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sum = 0;",
"sum",
"0",
"for (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int k = 1; k <= K; k++) {\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int k = 1; k <= K; k++) {\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int k = 1; k <= K; k++) {\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int k = 1; k <= K; k++) {\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}\n\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= K",
"j",
"K",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int k = 1; k <= K; k++) {\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 1; k <= K; k++) {\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}\n\t\t\t}",
"for (int k = 1; k <= K; k++) {\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}",
"int k = 1;",
"int k = 1;",
"k",
"1",
"k <= K",
"k",
"K",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}",
"{\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}",
"int tmp;",
"tmp",
"int i1 = i;",
"i1",
"i",
"int j1 = j;",
"j1",
"j",
"int k1 = k;",
"k1",
"k",
"while ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}",
"(tmp = k1 % j1) != 0",
"(tmp = k1 % j1)",
"tmp",
"k1 % j1",
"k1",
"j1",
"0",
"{\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}",
"k1 = j1",
"k1",
"j1",
"j1 = tmp",
"j1",
"tmp",
"while ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}",
"(tmp = j1 % i1) != 0",
"(tmp = j1 % i1)",
"tmp",
"j1 % i1",
"j1",
"i1",
"0",
"{\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}",
"j1 = i1",
"j1",
"i1",
"i1 = tmp",
"i1",
"tmp",
"sum += i1",
"sum",
"i1",
"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\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint sum = 0;\n\t\tfor (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int k = 1; k <= K; k++) {\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\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\tint K = sc.nextInt();\n\t\tint sum = 0;\n\t\tfor (int i = 1; i <= K; i++) {\n\t\t\tfor (int j = 1; j <= K; j++) {\n\t\t\t\tfor (int k = 1; k <= K; k++) {\n\t\t\t\t\tint tmp;\n\t\t\t\t\tint i1 = i;\n\t\t\t\t\tint j1 = j;\n\t\t\t\t\tint k1 = k;\n\t\t\t\t\twhile ((tmp = k1 % j1) != 0) {\n\t\t\t\t\t\tk1 = j1;\n\t\t\t\t\t\tj1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\twhile ((tmp = j1 % i1) != 0) {\n\t\t\t\t\t\tj1 = i1;\n\t\t\t\t\t\ti1 = tmp;\n\t\t\t\t\t}\n\t\t\t\t\tsum += i1;\n \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\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);
int K = sc.nextInt();
int sum = 0;
for (int i = 1; i <= K; i++) {
for (int j = 1; j <= K; j++) {
for (int k = 1; k <= K; k++) {
int tmp;
int i1 = i;
int j1 = j;
int k1 = k;
while ((tmp = k1 % j1) != 0) {
k1 = j1;
j1 = tmp;
}
while ((tmp = j1 % i1) != 0) {
j1 = i1;
i1 = tmp;
}
sum += i1;
}
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
14,
2,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
42,
17,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
14,
40,
2,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
3,
29,
13,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
2,
2,
18,
13,
13,
18,
13,
13,
17,
0,
18,
13,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
13,
18,
13,
13,
29,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
25,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
40,
50
],
[
50,
51
],
[
51,
52
],
[
40,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
55,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
72,
75
],
[
72,
76
],
[
72,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
6,
84
],
[
84,
85
],
[
4,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
92,
102
],
[
102,
103
],
[
103,
104
],
[
92,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
106,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
120,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
118,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
143,
145
],
[
139,
146
],
[
146,
147
],
[
146,
148
],
[
139,
149
],
[
149,
150
],
[
149,
151
],
[
139,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
155,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
154,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
152,
171
],
[
88,
172
],
[
172,
173
],
[
86,
174
],
[
174,
175
],
[
86,
176
],
[
176,
177
],
[
86,
178
],
[
178,
179
],
[
86,
180
],
[
180,
181
],
[
4,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
184,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
189,
194
],
[
194,
195
],
[
194,
196
],
[
189,
197
],
[
197,
198
],
[
198,
199
],
[
189,
200
],
[
201,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
206,
207
],
[
206,
208
],
[
184,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
209,
214
],
[
214,
215
],
[
214,
216
],
[
209,
217
],
[
217,
218
],
[
218,
219
],
[
209,
220
],
[
221,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
222,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
229,
234
],
[
234,
235
],
[
234,
236
],
[
229,
237
],
[
237,
238
],
[
238,
239
],
[
229,
240
],
[
241,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
243,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
248,
252
],
[
252,
253
],
[
252,
254
],
[
247,
255
],
[
242,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
256,
260
],
[
184,
261
],
[
261,
262
],
[
261,
263
],
[
184,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
264,
269
],
[
269,
270
],
[
269,
271
],
[
264,
272
],
[
272,
273
],
[
273,
274
],
[
264,
275
],
[
276,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
278,
282
],
[
277,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
284,
287
],
[
287,
288
],
[
287,
289
],
[
184,
290
],
[
290,
291
],
[
182,
292
],
[
292,
293
]
] |
[
"import java.util.*;\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = 0;\n\t\tArrayList<Integer> c = sosu(200);\n\t\tfor(int i = 1; i < a+1; i++) {\n\t\t\tfor(int j = 1; j < a+1; j++) {\n\t\t\t\tfor(int k = 1; k < a+1;k++) {\n\t\t\t\t\tb += gcd(i,j,k,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(b);\n\t}\n\tstatic int gcd(int a,int b,int c,ArrayList s) {\n\t\tint d = 1;\n\t\tfor(int i = 1; i < s.size(); i++) {\n\t\t\tint ss = (int)s.get(i);\n\t\t\tif(ss != 0) {\n\t\t\t\tif(a%ss == 0 && b%ss == 0 && c%ss == 0) {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\td *= ss;\n\t\t\t\t\t\ta /= ss;\n\t\t\t\t\t\tb /= ss;\n\t\t\t\t\t\tc /= ss;\n\t\t\t\t\t\tif(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}\n\tstatic ArrayList sosu(int a) {\n\t\tint[] b = new int[a];\n\t\tfor(int i = 0; i < a; i++) {\n\t\t\tb[i] = i+1;\n\t\t}\n\t\tfor(int i = 1; i < a; i++) {\n\t\t\tif(b[i] != 0) {\n\t\t\t\tfor(int j = 0;j < a; j++) {\n\t\t\t\t\tif(i != j && b[j] % b[i] == 0)b[j] =0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tArrayList<Integer> al = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < a; i++) {\n\t\t\tif(b[i] != 0) {\n\t\t\t\tal.add(b[i]);\n\t\t\t}\n\t\t}\n\t\treturn al;\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = 0;\n\t\tArrayList<Integer> c = sosu(200);\n\t\tfor(int i = 1; i < a+1; i++) {\n\t\t\tfor(int j = 1; j < a+1; j++) {\n\t\t\t\tfor(int k = 1; k < a+1;k++) {\n\t\t\t\t\tb += gcd(i,j,k,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(b);\n\t}\n\tstatic int gcd(int a,int b,int c,ArrayList s) {\n\t\tint d = 1;\n\t\tfor(int i = 1; i < s.size(); i++) {\n\t\t\tint ss = (int)s.get(i);\n\t\t\tif(ss != 0) {\n\t\t\t\tif(a%ss == 0 && b%ss == 0 && c%ss == 0) {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\td *= ss;\n\t\t\t\t\t\ta /= ss;\n\t\t\t\t\t\tb /= ss;\n\t\t\t\t\t\tc /= ss;\n\t\t\t\t\t\tif(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}\n\tstatic ArrayList sosu(int a) {\n\t\tint[] b = new int[a];\n\t\tfor(int i = 0; i < a; i++) {\n\t\t\tb[i] = i+1;\n\t\t}\n\t\tfor(int i = 1; i < a; i++) {\n\t\t\tif(b[i] != 0) {\n\t\t\t\tfor(int j = 0;j < a; j++) {\n\t\t\t\t\tif(i != j && b[j] % b[i] == 0)b[j] =0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tArrayList<Integer> al = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < a; i++) {\n\t\t\tif(b[i] != 0) {\n\t\t\t\tal.add(b[i]);\n\t\t\t}\n\t\t}\n\t\treturn al;\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = 0;\n\t\tArrayList<Integer> c = sosu(200);\n\t\tfor(int i = 1; i < a+1; i++) {\n\t\t\tfor(int j = 1; j < a+1; j++) {\n\t\t\t\tfor(int k = 1; k < a+1;k++) {\n\t\t\t\t\tb += gcd(i,j,k,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(b);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = 0;\n\t\tArrayList<Integer> c = sosu(200);\n\t\tfor(int i = 1; i < a+1; i++) {\n\t\t\tfor(int j = 1; j < a+1; j++) {\n\t\t\t\tfor(int k = 1; k < a+1;k++) {\n\t\t\t\t\tb += gcd(i,j,k,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(b);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = 0;",
"b",
"0",
"ArrayList<Integer> c = sosu(200);",
"c",
"sosu(200)",
"sosu",
"200",
"for(int i = 1; i < a+1; i++) {\n\t\t\tfor(int j = 1; j < a+1; j++) {\n\t\t\t\tfor(int k = 1; k < a+1;k++) {\n\t\t\t\t\tb += gcd(i,j,k,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < a+1",
"i",
"a+1",
"a",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 1; j < a+1; j++) {\n\t\t\t\tfor(int k = 1; k < a+1;k++) {\n\t\t\t\t\tb += gcd(i,j,k,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 1; j < a+1; j++) {\n\t\t\t\tfor(int k = 1; k < a+1;k++) {\n\t\t\t\t\tb += gcd(i,j,k,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 1; j < a+1; j++) {\n\t\t\t\tfor(int k = 1; k < a+1;k++) {\n\t\t\t\t\tb += gcd(i,j,k,c);\n\t\t\t\t}\n\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j < a+1",
"j",
"a+1",
"a",
"1",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 1; k < a+1;k++) {\n\t\t\t\t\tb += gcd(i,j,k,c);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 1; k < a+1;k++) {\n\t\t\t\t\tb += gcd(i,j,k,c);\n\t\t\t\t}\n\t\t\t}",
"for(int k = 1; k < a+1;k++) {\n\t\t\t\t\tb += gcd(i,j,k,c);\n\t\t\t\t}",
"int k = 1;",
"int k = 1;",
"k",
"1",
"k < a+1",
"k",
"a+1",
"a",
"1",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tb += gcd(i,j,k,c);\n\t\t\t\t}",
"{\n\t\t\t\t\tb += gcd(i,j,k,c);\n\t\t\t\t}",
"b += gcd(i,j,k,c)",
"b",
"gcd(i,j,k,c)",
"gcd",
"i",
"j",
"k",
"c",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"String[] args",
"args",
"static int gcd(int a,int b,int c,ArrayList s) {\n\t\tint d = 1;\n\t\tfor(int i = 1; i < s.size(); i++) {\n\t\t\tint ss = (int)s.get(i);\n\t\t\tif(ss != 0) {\n\t\t\t\tif(a%ss == 0 && b%ss == 0 && c%ss == 0) {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\td *= ss;\n\t\t\t\t\t\ta /= ss;\n\t\t\t\t\t\tb /= ss;\n\t\t\t\t\t\tc /= ss;\n\t\t\t\t\t\tif(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}",
"gcd",
"{\n\t\tint d = 1;\n\t\tfor(int i = 1; i < s.size(); i++) {\n\t\t\tint ss = (int)s.get(i);\n\t\t\tif(ss != 0) {\n\t\t\t\tif(a%ss == 0 && b%ss == 0 && c%ss == 0) {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\td *= ss;\n\t\t\t\t\t\ta /= ss;\n\t\t\t\t\t\tb /= ss;\n\t\t\t\t\t\tc /= ss;\n\t\t\t\t\t\tif(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}",
"int d = 1;",
"d",
"1",
"for(int i = 1; i < s.size(); i++) {\n\t\t\tint ss = (int)s.get(i);\n\t\t\tif(ss != 0) {\n\t\t\t\tif(a%ss == 0 && b%ss == 0 && c%ss == 0) {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\td *= ss;\n\t\t\t\t\t\ta /= ss;\n\t\t\t\t\t\tb /= ss;\n\t\t\t\t\t\tc /= ss;\n\t\t\t\t\t\tif(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < s.size()",
"i",
"s.size()",
"s.size",
"s",
"i++",
"i++",
"i",
"{\n\t\t\tint ss = (int)s.get(i);\n\t\t\tif(ss != 0) {\n\t\t\t\tif(a%ss == 0 && b%ss == 0 && c%ss == 0) {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\td *= ss;\n\t\t\t\t\t\ta /= ss;\n\t\t\t\t\t\tb /= ss;\n\t\t\t\t\t\tc /= ss;\n\t\t\t\t\t\tif(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tint ss = (int)s.get(i);\n\t\t\tif(ss != 0) {\n\t\t\t\tif(a%ss == 0 && b%ss == 0 && c%ss == 0) {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\td *= ss;\n\t\t\t\t\t\ta /= ss;\n\t\t\t\t\t\tb /= ss;\n\t\t\t\t\t\tc /= ss;\n\t\t\t\t\t\tif(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int ss = (int)s.get(i);",
"ss",
"(int)s.get(i)",
"s.get",
"s",
"i",
"if(ss != 0) {\n\t\t\t\tif(a%ss == 0 && b%ss == 0 && c%ss == 0) {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\td *= ss;\n\t\t\t\t\t\ta /= ss;\n\t\t\t\t\t\tb /= ss;\n\t\t\t\t\t\tc /= ss;\n\t\t\t\t\t\tif(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"ss != 0",
"ss",
"0",
"{\n\t\t\t\tif(a%ss == 0 && b%ss == 0 && c%ss == 0) {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\td *= ss;\n\t\t\t\t\t\ta /= ss;\n\t\t\t\t\t\tb /= ss;\n\t\t\t\t\t\tc /= ss;\n\t\t\t\t\t\tif(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if(a%ss == 0 && b%ss == 0 && c%ss == 0) {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\td *= ss;\n\t\t\t\t\t\ta /= ss;\n\t\t\t\t\t\tb /= ss;\n\t\t\t\t\t\tc /= ss;\n\t\t\t\t\t\tif(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;\n\t\t\t\t\t}\n\t\t\t\t}",
"a%ss == 0 && b%ss == 0 && c%ss == 0",
"a%ss == 0 && b%ss == 0 && c%ss == 0",
"a%ss == 0",
"a%ss",
"a",
"ss",
"0",
"b%ss == 0",
"b%ss",
"b",
"ss",
"0",
"c%ss == 0",
"c%ss",
"c",
"ss",
"0",
"{\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\td *= ss;\n\t\t\t\t\t\ta /= ss;\n\t\t\t\t\t\tb /= ss;\n\t\t\t\t\t\tc /= ss;\n\t\t\t\t\t\tif(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;\n\t\t\t\t\t}\n\t\t\t\t}",
"while(true) {\n\t\t\t\t\t\td *= ss;\n\t\t\t\t\t\ta /= ss;\n\t\t\t\t\t\tb /= ss;\n\t\t\t\t\t\tc /= ss;\n\t\t\t\t\t\tif(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;\n\t\t\t\t\t}",
"true",
"{\n\t\t\t\t\t\td *= ss;\n\t\t\t\t\t\ta /= ss;\n\t\t\t\t\t\tb /= ss;\n\t\t\t\t\t\tc /= ss;\n\t\t\t\t\t\tif(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;\n\t\t\t\t\t}",
"d *= ss",
"d",
"ss",
"a /= ss",
"a",
"ss",
"b /= ss",
"b",
"ss",
"c /= ss",
"c",
"ss",
"if(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;",
"!(a%ss == 0 && b%ss == 0 && c%ss == 0)",
"(a%ss == 0 && b%ss == 0 && c%ss == 0)",
"a%ss == 0 && b%ss == 0 && c%ss == 0",
"a%ss == 0",
"a%ss",
"a",
"ss",
"0",
"b%ss == 0",
"b%ss",
"b",
"ss",
"0",
"c%ss == 0",
"c%ss",
"c",
"ss",
"0",
"break;",
"return d;",
"d",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"ArrayList s",
"s",
"static ArrayList sosu(int a) {\n\t\tint[] b = new int[a];\n\t\tfor(int i = 0; i < a; i++) {\n\t\t\tb[i] = i+1;\n\t\t}\n\t\tfor(int i = 1; i < a; i++) {\n\t\t\tif(b[i] != 0) {\n\t\t\t\tfor(int j = 0;j < a; j++) {\n\t\t\t\t\tif(i != j && b[j] % b[i] == 0)b[j] =0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tArrayList<Integer> al = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < a; i++) {\n\t\t\tif(b[i] != 0) {\n\t\t\t\tal.add(b[i]);\n\t\t\t}\n\t\t}\n\t\treturn al;\n\t}",
"sosu",
"{\n\t\tint[] b = new int[a];\n\t\tfor(int i = 0; i < a; i++) {\n\t\t\tb[i] = i+1;\n\t\t}\n\t\tfor(int i = 1; i < a; i++) {\n\t\t\tif(b[i] != 0) {\n\t\t\t\tfor(int j = 0;j < a; j++) {\n\t\t\t\t\tif(i != j && b[j] % b[i] == 0)b[j] =0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tArrayList<Integer> al = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < a; i++) {\n\t\t\tif(b[i] != 0) {\n\t\t\t\tal.add(b[i]);\n\t\t\t}\n\t\t}\n\t\treturn al;\n\t}",
"int[] b = new int[a];",
"b",
"new int[a]",
"a",
"for(int i = 0; i < a; i++) {\n\t\t\tb[i] = i+1;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tb[i] = i+1;\n\t\t}",
"{\n\t\t\tb[i] = i+1;\n\t\t}",
"b[i] = i+1",
"b[i]",
"b",
"i",
"i+1",
"i",
"1",
"for(int i = 1; i < a; i++) {\n\t\t\tif(b[i] != 0) {\n\t\t\t\tfor(int j = 0;j < a; j++) {\n\t\t\t\t\tif(i != j && b[j] % b[i] == 0)b[j] =0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tif(b[i] != 0) {\n\t\t\t\tfor(int j = 0;j < a; j++) {\n\t\t\t\t\tif(i != j && b[j] % b[i] == 0)b[j] =0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(b[i] != 0) {\n\t\t\t\tfor(int j = 0;j < a; j++) {\n\t\t\t\t\tif(i != j && b[j] % b[i] == 0)b[j] =0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if(b[i] != 0) {\n\t\t\t\tfor(int j = 0;j < a; j++) {\n\t\t\t\t\tif(i != j && b[j] % b[i] == 0)b[j] =0;\n\t\t\t\t}\n\t\t\t}",
"b[i] != 0",
"b[i]",
"b",
"i",
"0",
"{\n\t\t\t\tfor(int j = 0;j < a; j++) {\n\t\t\t\t\tif(i != j && b[j] % b[i] == 0)b[j] =0;\n\t\t\t\t}\n\t\t\t}",
"for(int j = 0;j < a; j++) {\n\t\t\t\t\tif(i != j && b[j] % b[i] == 0)b[j] =0;\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < a",
"j",
"a",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif(i != j && b[j] % b[i] == 0)b[j] =0;\n\t\t\t\t}",
"{\n\t\t\t\t\tif(i != j && b[j] % b[i] == 0)b[j] =0;\n\t\t\t\t}",
"if(i != j && b[j] % b[i] == 0)b[j] =0;",
"i != j && b[j] % b[i] == 0",
"i != j",
"i",
"j",
"b[j] % b[i] == 0",
"b[j] % b[i]",
"b[j]",
"b",
"j",
"b[i]",
"b",
"i",
"0",
"b[j] =0",
"b[j]",
"b",
"j",
"0",
"ArrayList<Integer> al = new ArrayList<Integer>();",
"al",
"new ArrayList<Integer>()",
"for(int i = 0; i < a; i++) {\n\t\t\tif(b[i] != 0) {\n\t\t\t\tal.add(b[i]);\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(b[i] != 0) {\n\t\t\t\tal.add(b[i]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(b[i] != 0) {\n\t\t\t\tal.add(b[i]);\n\t\t\t}\n\t\t}",
"if(b[i] != 0) {\n\t\t\t\tal.add(b[i]);\n\t\t\t}",
"b[i] != 0",
"b[i]",
"b",
"i",
"0",
"{\n\t\t\t\tal.add(b[i]);\n\t\t\t}",
"al.add(b[i])",
"al.add",
"al",
"b[i]",
"b",
"i",
"return al;",
"al",
"int a",
"a"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = 0;
ArrayList<Integer> c = sosu(200);
for(int i = 1; i < a+1; i++) {
for(int j = 1; j < a+1; j++) {
for(int k = 1; k < a+1;k++) {
b += gcd(i,j,k,c);
}
}
}
System.out.println(b);
}
static int gcd(int a,int b,int c,ArrayList s) {
int d = 1;
for(int i = 1; i < s.size(); i++) {
int ss = (int)s.get(i);
if(ss != 0) {
if(a%ss == 0 && b%ss == 0 && c%ss == 0) {
while(true) {
d *= ss;
a /= ss;
b /= ss;
c /= ss;
if(!(a%ss == 0 && b%ss == 0 && c%ss == 0)) break;
}
}
}
}
return d;
}
static ArrayList sosu(int a) {
int[] b = new int[a];
for(int i = 0; i < a; i++) {
b[i] = i+1;
}
for(int i = 1; i < a; i++) {
if(b[i] != 0) {
for(int j = 0;j < a; j++) {
if(i != j && b[j] % b[i] == 0)b[j] =0;
}
}
}
ArrayList<Integer> al = new ArrayList<Integer>();
for(int i = 0; i < a; i++) {
if(b[i] != 0) {
al.add(b[i]);
}
}
return al;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
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
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
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
],
[
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
],
[
61,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
64,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
6,
74
],
[
74,
75
],
[
4,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
85,
91
],
[
91,
92
],
[
91,
93
],
[
85,
94
],
[
94,
95
],
[
94,
96
],
[
78,
97
],
[
97,
98
],
[
76,
99
],
[
99,
100
],
[
76,
101
],
[
101,
102
]
] |
[
"import java.util.*;\n\nclass Main{\n\tstatic public void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tint sum=0;\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=n;j++){\n\t\t\t\tfor(int l=1;l<=n;l++){\n\t\t\t\t\tsum+=gcd(i,gcd(j,l));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}\n\t\t\n\tpublic static int gcd(int m, int n) {\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tstatic public void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tint sum=0;\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=n;j++){\n\t\t\t\tfor(int l=1;l<=n;l++){\n\t\t\t\t\tsum+=gcd(i,gcd(j,l));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}\n\t\t\n\tpublic static int gcd(int m, int n) {\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n\t}\n}",
"Main",
"static public void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tint sum=0;\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=n;j++){\n\t\t\t\tfor(int l=1;l<=n;l++){\n\t\t\t\t\tsum+=gcd(i,gcd(j,l));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tint sum=0;\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=n;j++){\n\t\t\t\tfor(int l=1;l<=n;l++){\n\t\t\t\t\tsum+=gcd(i,gcd(j,l));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sum=0;",
"sum",
"0",
"for(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=n;j++){\n\t\t\t\tfor(int l=1;l<=n;l++){\n\t\t\t\t\tsum+=gcd(i,gcd(j,l));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=1;j<=n;j++){\n\t\t\t\tfor(int l=1;l<=n;l++){\n\t\t\t\t\tsum+=gcd(i,gcd(j,l));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=1;j<=n;j++){\n\t\t\t\tfor(int l=1;l<=n;l++){\n\t\t\t\t\tsum+=gcd(i,gcd(j,l));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j=1;j<=n;j++){\n\t\t\t\tfor(int l=1;l<=n;l++){\n\t\t\t\t\tsum+=gcd(i,gcd(j,l));\n\t\t\t\t}\n\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int l=1;l<=n;l++){\n\t\t\t\t\tsum+=gcd(i,gcd(j,l));\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int l=1;l<=n;l++){\n\t\t\t\t\tsum+=gcd(i,gcd(j,l));\n\t\t\t\t}\n\t\t\t}",
"for(int l=1;l<=n;l++){\n\t\t\t\t\tsum+=gcd(i,gcd(j,l));\n\t\t\t\t}",
"int l=1;",
"int l=1;",
"l",
"1",
"l<=n",
"l",
"n",
"l++",
"l++",
"l",
"{\n\t\t\t\t\tsum+=gcd(i,gcd(j,l));\n\t\t\t\t}",
"{\n\t\t\t\t\tsum+=gcd(i,gcd(j,l));\n\t\t\t\t}",
"sum+=gcd(i,gcd(j,l))",
"sum",
"gcd(i,gcd(j,l))",
"gcd",
"i",
"gcd(j,l)",
"gcd",
"j",
"l",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public static int gcd(int m, int n) {\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n\t}",
"gcd",
"{\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n\t}",
"int r;",
"r",
"while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }",
"n > 0",
"n",
"0",
"{\n r = m % n;\n m = n;\n n = r;\n }",
"r = m % n",
"r",
"m % n",
"m",
"n",
"m = n",
"m",
"n",
"n = r",
"n",
"r",
"return m;",
"m",
"int m",
"m",
"int n",
"n"
] |
import java.util.*;
class Main{
static public void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int sum=0;
for(int i=1;i<=n;i++){
for(int j=1;j<=n;j++){
for(int l=1;l<=n;l++){
sum+=gcd(i,gcd(j,l));
}
}
}
System.out.println(sum);
}
public static int gcd(int m, int n) {
int r;
while (n > 0) {
r = m % n;
m = n;
n = r;
}
return m;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
13,
3,
30,
14,
2,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
0,
13,
2,
17,
13,
30,
0,
13,
2,
17,
13,
3,
40,
13,
4,
18,
18,
13,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
148,
5
],
[
148,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
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
],
[
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
],
[
61,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
64,
68
],
[
61,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
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
],
[
75,
88
],
[
88,
89
],
[
89,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
91,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
89,
107
],
[
107,
108
],
[
108,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
114,
116
],
[
110,
117
],
[
117,
118
],
[
117,
119
],
[
108,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
108,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
107,
132
],
[
74,
133
],
[
133,
134
],
[
8,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
135,
141
],
[
8,
142
],
[
142,
143
],
[
143,
144
],
[
6,
145
],
[
145,
146
],
[
0,
147
],
[
147,
148
],
[
147,
149
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= i; j++) {\n for (int k = 1; k <= j; k++) {\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }\n }\n }\n\n System.out.printf(\"%d\\n\", sum);\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= i; j++) {\n for (int k = 1; k <= j; k++) {\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }\n }\n }\n\n System.out.printf(\"%d\\n\", sum);\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\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= i; j++) {\n for (int k = 1; k <= j; k++) {\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }\n }\n }\n\n System.out.printf(\"%d\\n\", sum);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= i; j++) {\n for (int k = 1; k <= j; k++) {\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }\n }\n }\n\n System.out.printf(\"%d\\n\", sum);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= i; j++) {\n for (int k = 1; k <= j; k++) {\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n for (int j = 1; j <= i; j++) {\n for (int k = 1; k <= j; k++) {\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }\n }\n }",
"{\n for (int j = 1; j <= i; j++) {\n for (int k = 1; k <= j; k++) {\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }\n }\n }",
"for (int j = 1; j <= i; j++) {\n for (int k = 1; k <= j; k++) {\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }\n }",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= i",
"j",
"i",
"j++",
"j++",
"j",
"{\n for (int k = 1; k <= j; k++) {\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }\n }",
"{\n for (int k = 1; k <= j; k++) {\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }\n }",
"for (int k = 1; k <= j; k++) {\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }",
"int k = 1;",
"int k = 1;",
"k",
"1",
"k <= j",
"k",
"j",
"k++",
"k++",
"k",
"{\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }",
"{\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }",
"int count = Math.max(Math.max(i, j), k);",
"count",
"Math.max(Math.max(i, j), k)",
"Math.max",
"Math",
"Math.max(i, j)",
"Math.max",
"Math",
"i",
"j",
"k",
"while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }",
"count > 0",
"count",
"0",
"{\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }",
"if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }",
"i == j && j == k",
"i == j",
"i",
"j",
"j == k",
"j",
"k",
"{\n sum += count;\n break;\n }",
"sum += count",
"sum",
"count",
"break;",
"{\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }",
"if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }",
"i % count == 0 && j % count == 0 && k % count == 0",
"i % count == 0 && j % count == 0 && k % count == 0",
"i % count == 0",
"i % count",
"i",
"count",
"0",
"j % count == 0",
"j % count",
"j",
"count",
"0",
"k % count == 0",
"k % count",
"k",
"count",
"0",
"{\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }",
"if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }",
"i != j && i != k && j != k",
"i != j && i != k && j != k",
"i != j",
"i",
"j",
"i != k",
"i",
"k",
"j != k",
"j",
"k",
"{\n sum += 6 * count;\n }",
"sum += 6 * count",
"sum",
"6 * count",
"6",
"count",
"{\n sum += 3 * count;\n }",
"sum += 3 * count",
"sum",
"3 * count",
"3",
"count",
"break;",
"count--",
"count",
"System.out.printf(\"%d\\n\", sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\\n\"",
"sum",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= i; j++) {\n for (int k = 1; k <= j; k++) {\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }\n }\n }\n\n System.out.printf(\"%d\\n\", sum);\n sc.close();\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= i; j++) {\n for (int k = 1; k <= j; k++) {\n int count = Math.max(Math.max(i, j), k);\n while (count > 0) {\n if (i == j && j == k) {\n sum += count;\n break;\n } else {\n if (i % count == 0 && j % count == 0 && k % count == 0) {\n if (i != j && i != k && j != k) {\n sum += 6 * count;\n } else {\n sum += 3 * count;\n }\n break;\n }\n }\n count--;\n }\n }\n }\n }\n\n System.out.printf(\"%d\\n\", sum);\n sc.close();\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
long sum = 0;
for (int i = 1; i <= N; i++) {
for (int j = 1; j <= i; j++) {
for (int k = 1; k <= j; k++) {
int count = Math.max(Math.max(i, j), k);
while (count > 0) {
if (i == j && j == k) {
sum += count;
break;
} else {
if (i % count == 0 && j % count == 0 && k % count == 0) {
if (i != j && i != k && j != k) {
sum += 6 * count;
} else {
sum += 3 * count;
}
break;
}
}
count--;
}
}
}
}
System.out.printf("%d\n", sum);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
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
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
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
],
[
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
],
[
61,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
64,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
6,
74
],
[
74,
75
],
[
4,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
87,
90
],
[
90,
91
],
[
90,
92
],
[
76,
93
],
[
93,
94
],
[
76,
95
],
[
95,
96
]
] |
[
"import java.util.*; \n\nclass Main{\npublic static void main(String[] args){\n\tScanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n long a=0;\n\t\tfor(long c=1;c<=k;c++){\n \t\tfor(long d=1;d<=k;d++){\n for(long e=1;e<=k;e++){\n a+=gcd(c,gcd(d,e));\n }\n }\n \t}\n \n \tSystem.out.println(a);\n }\n private static long gcd(long a,long b){\n if(b==0){\n \treturn a;\n }\n\treturn gcd(b, a%b);\n}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\npublic static void main(String[] args){\n\tScanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n long a=0;\n\t\tfor(long c=1;c<=k;c++){\n \t\tfor(long d=1;d<=k;d++){\n for(long e=1;e<=k;e++){\n a+=gcd(c,gcd(d,e));\n }\n }\n \t}\n \n \tSystem.out.println(a);\n }\n private static long gcd(long a,long b){\n if(b==0){\n \treturn a;\n }\n\treturn gcd(b, a%b);\n}\n}",
"Main",
"public static void main(String[] args){\n\tScanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n long a=0;\n\t\tfor(long c=1;c<=k;c++){\n \t\tfor(long d=1;d<=k;d++){\n for(long e=1;e<=k;e++){\n a+=gcd(c,gcd(d,e));\n }\n }\n \t}\n \n \tSystem.out.println(a);\n }",
"main",
"{\n\tScanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n long a=0;\n\t\tfor(long c=1;c<=k;c++){\n \t\tfor(long d=1;d<=k;d++){\n for(long e=1;e<=k;e++){\n a+=gcd(c,gcd(d,e));\n }\n }\n \t}\n \n \tSystem.out.println(a);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k=sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long a=0;",
"a",
"0",
"for(long c=1;c<=k;c++){\n \t\tfor(long d=1;d<=k;d++){\n for(long e=1;e<=k;e++){\n a+=gcd(c,gcd(d,e));\n }\n }\n \t}",
"long c=1;",
"long c=1;",
"c",
"1",
"c<=k",
"c",
"k",
"c++",
"c++",
"c",
"{\n \t\tfor(long d=1;d<=k;d++){\n for(long e=1;e<=k;e++){\n a+=gcd(c,gcd(d,e));\n }\n }\n \t}",
"{\n \t\tfor(long d=1;d<=k;d++){\n for(long e=1;e<=k;e++){\n a+=gcd(c,gcd(d,e));\n }\n }\n \t}",
"for(long d=1;d<=k;d++){\n for(long e=1;e<=k;e++){\n a+=gcd(c,gcd(d,e));\n }\n }",
"long d=1;",
"long d=1;",
"d",
"1",
"d<=k",
"d",
"k",
"d++",
"d++",
"d",
"{\n for(long e=1;e<=k;e++){\n a+=gcd(c,gcd(d,e));\n }\n }",
"{\n for(long e=1;e<=k;e++){\n a+=gcd(c,gcd(d,e));\n }\n }",
"for(long e=1;e<=k;e++){\n a+=gcd(c,gcd(d,e));\n }",
"long e=1;",
"long e=1;",
"e",
"1",
"e<=k",
"e",
"k",
"e++",
"e++",
"e",
"{\n a+=gcd(c,gcd(d,e));\n }",
"{\n a+=gcd(c,gcd(d,e));\n }",
"a+=gcd(c,gcd(d,e))",
"a",
"gcd(c,gcd(d,e))",
"gcd",
"c",
"gcd(d,e)",
"gcd",
"d",
"e",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"String[] args",
"args",
"private static long gcd(long a,long b){\n if(b==0){\n \treturn a;\n }\n\treturn gcd(b, a%b);\n}",
"gcd",
"{\n if(b==0){\n \treturn a;\n }\n\treturn gcd(b, a%b);\n}",
"if(b==0){\n \treturn a;\n }",
"b==0",
"b",
"0",
"{\n \treturn a;\n }",
"return a;",
"a",
"return gcd(b, a%b);",
"gcd(b, a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"long a",
"a",
"long b",
"b"
] |
import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int k=sc.nextInt();
long a=0;
for(long c=1;c<=k;c++){
for(long d=1;d<=k;d++){
for(long e=1;e<=k;e++){
a+=gcd(c,gcd(d,e));
}
}
}
System.out.println(a);
}
private static long gcd(long a,long b){
if(b==0){
return a;
}
return gcd(b, a%b);
}
}
|
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
40,
17,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
30,
0,
13,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
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
],
[
0,
13
],
[
386,
14
],
[
386,
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
],
[
17,
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
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
57,
60
],
[
54,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
76,
79
],
[
17,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
15,
86
],
[
86,
87
],
[
386,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
98,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
90,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
117,
123
],
[
123,
124
],
[
123,
125
],
[
117,
126
],
[
126,
127
],
[
126,
128
],
[
90,
129
],
[
129,
130
],
[
88,
131
],
[
131,
132
],
[
88,
133
],
[
133,
134
],
[
386,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
139,
141
],
[
135,
142
],
[
142,
143
],
[
142,
144
],
[
135,
146
],
[
146,
147
],
[
146,
148
],
[
135,
149
],
[
149,
150
],
[
149,
151
],
[
135,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
160,
161
],
[
155,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
166,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
162,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
184,
185
],
[
185,
186
],
[
154,
187
],
[
187,
188
],
[
135,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
192,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
192,
200
],
[
200,
201
],
[
201,
202
],
[
135,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
211,
212
],
[
211,
213
],
[
203,
214
],
[
214,
215
],
[
135,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
220,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
226,
228
],
[
219,
229
],
[
229,
230
],
[
218,
231
],
[
231,
232
],
[
232,
233
],
[
135,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
237,
241
],
[
241,
242
],
[
236,
243
],
[
243,
244
],
[
243,
245
],
[
236,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
236,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
255,
258
],
[
254,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
236,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
135,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
270,
274
],
[
274,
275
],
[
269,
276
],
[
276,
277
],
[
276,
278
],
[
269,
279
],
[
279,
280
],
[
279,
281
],
[
269,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
269,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
290
],
[
290,
291
],
[
291,
292
],
[
291,
293
],
[
290,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
269,
298
],
[
298,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
299,
303
],
[
303,
304
],
[
303,
305
],
[
298,
306
],
[
306,
307
],
[
307,
308
],
[
269,
309
],
[
309,
310
],
[
309,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
313,
317
],
[
317,
318
],
[
317,
319
],
[
312,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
320,
324
],
[
324,
325
],
[
324,
326
],
[
326,
327
],
[
326,
328
],
[
312,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
330,
335
],
[
335,
336
],
[
336,
337
],
[
336,
338
],
[
329,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
341,
345
],
[
329,
346
],
[
346,
347
],
[
347,
348
],
[
311,
349
],
[
349,
350
],
[
349,
351
],
[
351,
352
],
[
135,
353
],
[
353,
354
],
[
353,
355
],
[
355,
356
],
[
356,
357
],
[
356,
358
],
[
358,
359
],
[
355,
360
],
[
360,
361
],
[
361,
362
],
[
362,
363
],
[
362,
364
],
[
364,
365
],
[
364,
366
],
[
361,
367
],
[
367,
368
],
[
367,
369
],
[
369,
370
],
[
369,
371
],
[
360,
372
],
[
372,
373
],
[
355,
374
],
[
374,
375
],
[
135,
376
],
[
376,
377
],
[
376,
378
],
[
378,
379
],
[
379,
380
],
[
380,
381
],
[
381,
382
],
[
380,
383
],
[
383,
384
],
[
0,
385
],
[
385,
386
],
[
385,
387
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.util.*;\nimport java.io.*;\n \npublic class Main {\n public static void main(String[] args) throws IOException {\n FastScanner sc = new FastScanner();\n int num = sc.nextInt();\n \tint result = 0;\n \tfor(int i=1;i<=num;i++){\n for(int j=1;j<=num;j++){\n int tmp = gcd(i,j);\n for(int k=1;k<=num;k++){\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }\n }\n }\n System.out.println(result);\n }\n\tstatic int gcd(int a,int b){\n \t\tint tmp = 0;\n \t\tint amari=-1;\n \t\tif(a>=b){\n \t\ttmp = a;\n \t\ta = b;\n \t\t}else{\n \t\ttmp = b;\n \t\t}\n\n \t\t while(amari != 0){\n \t\tamari = a%tmp;\n \ta = tmp;\n \ttmp = amari;\n \t\t }\n \t\treturn a;\n\t}\n \n private static 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 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 private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long 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 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 public double nextDouble() { return Double.parseDouble(next());}\n }\n \n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws IOException {\n FastScanner sc = new FastScanner();\n int num = sc.nextInt();\n \tint result = 0;\n \tfor(int i=1;i<=num;i++){\n for(int j=1;j<=num;j++){\n int tmp = gcd(i,j);\n for(int k=1;k<=num;k++){\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }\n }\n }\n System.out.println(result);\n }\n\tstatic int gcd(int a,int b){\n \t\tint tmp = 0;\n \t\tint amari=-1;\n \t\tif(a>=b){\n \t\ttmp = a;\n \t\ta = b;\n \t\t}else{\n \t\ttmp = b;\n \t\t}\n\n \t\t while(amari != 0){\n \t\tamari = a%tmp;\n \ta = tmp;\n \ttmp = amari;\n \t\t }\n \t\treturn a;\n\t}\n \n private static 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 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 private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long 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 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 public double nextDouble() { return Double.parseDouble(next());}\n }\n \n}",
"Main",
"public static void main(String[] args) throws IOException {\n FastScanner sc = new FastScanner();\n int num = sc.nextInt();\n \tint result = 0;\n \tfor(int i=1;i<=num;i++){\n for(int j=1;j<=num;j++){\n int tmp = gcd(i,j);\n for(int k=1;k<=num;k++){\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }\n }\n }\n System.out.println(result);\n }",
"main",
"{\n FastScanner sc = new FastScanner();\n int num = sc.nextInt();\n \tint result = 0;\n \tfor(int i=1;i<=num;i++){\n for(int j=1;j<=num;j++){\n int tmp = gcd(i,j);\n for(int k=1;k<=num;k++){\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }\n }\n }\n System.out.println(result);\n }",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int result = 0;",
"result",
"0",
"for(int i=1;i<=num;i++){\n for(int j=1;j<=num;j++){\n int tmp = gcd(i,j);\n for(int k=1;k<=num;k++){\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=num",
"i",
"num",
"i++",
"i++",
"i",
"{\n for(int j=1;j<=num;j++){\n int tmp = gcd(i,j);\n for(int k=1;k<=num;k++){\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }\n }\n }",
"{\n for(int j=1;j<=num;j++){\n int tmp = gcd(i,j);\n for(int k=1;k<=num;k++){\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }\n }\n }",
"for(int j=1;j<=num;j++){\n int tmp = gcd(i,j);\n for(int k=1;k<=num;k++){\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }\n }",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=num",
"j",
"num",
"j++",
"j++",
"j",
"{\n int tmp = gcd(i,j);\n for(int k=1;k<=num;k++){\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }\n }",
"{\n int tmp = gcd(i,j);\n for(int k=1;k<=num;k++){\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }\n }",
"int tmp = gcd(i,j);",
"tmp",
"gcd(i,j)",
"gcd",
"i",
"j",
"for(int k=1;k<=num;k++){\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }",
"int k=1;",
"int k=1;",
"k",
"1",
"k<=num",
"k",
"num",
"k++",
"k++",
"k",
"{\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }",
"{\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }",
"result += gcd(tmp,k)",
"result",
"gcd(tmp,k)",
"gcd",
"tmp",
"k",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"static int gcd(int a,int b){\n \t\tint tmp = 0;\n \t\tint amari=-1;\n \t\tif(a>=b){\n \t\ttmp = a;\n \t\ta = b;\n \t\t}else{\n \t\ttmp = b;\n \t\t}\n\n \t\t while(amari != 0){\n \t\tamari = a%tmp;\n \ta = tmp;\n \ttmp = amari;\n \t\t }\n \t\treturn a;\n\t}",
"gcd",
"{\n \t\tint tmp = 0;\n \t\tint amari=-1;\n \t\tif(a>=b){\n \t\ttmp = a;\n \t\ta = b;\n \t\t}else{\n \t\ttmp = b;\n \t\t}\n\n \t\t while(amari != 0){\n \t\tamari = a%tmp;\n \ta = tmp;\n \ttmp = amari;\n \t\t }\n \t\treturn a;\n\t}",
"int tmp = 0;",
"tmp",
"0",
"int amari=-1;",
"amari",
"-1",
"1",
"if(a>=b){\n \t\ttmp = a;\n \t\ta = b;\n \t\t}else{\n \t\ttmp = b;\n \t\t}",
"a>=b",
"a",
"b",
"{\n \t\ttmp = a;\n \t\ta = b;\n \t\t}",
"tmp = a",
"tmp",
"a",
"a = b",
"a",
"b",
"{\n \t\ttmp = b;\n \t\t}",
"tmp = b",
"tmp",
"b",
"while(amari != 0){\n \t\tamari = a%tmp;\n \ta = tmp;\n \ttmp = amari;\n \t\t }",
"amari != 0",
"amari",
"0",
"{\n \t\tamari = a%tmp;\n \ta = tmp;\n \ttmp = amari;\n \t\t }",
"amari = a%tmp",
"amari",
"a%tmp",
"a",
"tmp",
"a = tmp",
"a",
"tmp",
"tmp = amari",
"tmp",
"amari",
"return a;",
"a",
"int a",
"a",
"int b",
"b",
"private static 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 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 private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long 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 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 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 public static void main(String[] args) throws IOException {\n FastScanner sc = new FastScanner();\n int num = sc.nextInt();\n \tint result = 0;\n \tfor(int i=1;i<=num;i++){\n for(int j=1;j<=num;j++){\n int tmp = gcd(i,j);\n for(int k=1;k<=num;k++){\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }\n }\n }\n System.out.println(result);\n }\n\tstatic int gcd(int a,int b){\n \t\tint tmp = 0;\n \t\tint amari=-1;\n \t\tif(a>=b){\n \t\ttmp = a;\n \t\ta = b;\n \t\t}else{\n \t\ttmp = b;\n \t\t}\n\n \t\t while(amari != 0){\n \t\tamari = a%tmp;\n \ta = tmp;\n \ttmp = amari;\n \t\t }\n \t\treturn a;\n\t}\n \n private static 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 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 private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long 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 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 public double nextDouble() { return Double.parseDouble(next());}\n }\n \n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n FastScanner sc = new FastScanner();\n int num = sc.nextInt();\n \tint result = 0;\n \tfor(int i=1;i<=num;i++){\n for(int j=1;j<=num;j++){\n int tmp = gcd(i,j);\n for(int k=1;k<=num;k++){\n \t\t//最初の2数の最大公約数を取得\n result += gcd(tmp,k); \n }\n }\n }\n System.out.println(result);\n }\n\tstatic int gcd(int a,int b){\n \t\tint tmp = 0;\n \t\tint amari=-1;\n \t\tif(a>=b){\n \t\ttmp = a;\n \t\ta = b;\n \t\t}else{\n \t\ttmp = b;\n \t\t}\n\n \t\t while(amari != 0){\n \t\tamari = a%tmp;\n \ta = tmp;\n \ttmp = amari;\n \t\t }\n \t\treturn a;\n\t}\n \n private static 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 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 private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long 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 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 public double nextDouble() { return Double.parseDouble(next());}\n }\n \n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
FastScanner sc = new FastScanner();
int num = sc.nextInt();
int result = 0;
for(int i=1;i<=num;i++){
for(int j=1;j<=num;j++){
int tmp = gcd(i,j);
for(int k=1;k<=num;k++){
//最初の2数の最大公約数を取得
result += gcd(tmp,k);
}
}
}
System.out.println(result);
}
static int gcd(int a,int b){
int tmp = 0;
int amari=-1;
if(a>=b){
tmp = a;
a = b;
}else{
tmp = b;
}
while(amari != 0){
amari = a%tmp;
a = tmp;
tmp = amari;
}
return a;
}
private static 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,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
41,
13,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
17,
0,
13,
13,
0,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
144,
5
],
[
144,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
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
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
68,
69
],
[
68,
70
],
[
61,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
77,
84
],
[
84,
85
],
[
84,
86
],
[
71,
87
],
[
87,
88
],
[
88,
89
],
[
71,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
94,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
92,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
114,
116
],
[
110,
117
],
[
117,
118
],
[
117,
119
],
[
110,
120
],
[
120,
121
],
[
120,
122
],
[
110,
123
],
[
123,
124
],
[
123,
125
],
[
61,
126
],
[
126,
127
],
[
126,
128
],
[
61,
129
],
[
129,
130
],
[
129,
131
],
[
8,
132
],
[
132,
133
],
[
133,
134
],
[
8,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
6,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
] |
[
"\n\nimport 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\t\n\t\tint max = sc.nextInt();\n\t\t\n\t\tlong result = 0;\n\t\t\n\t\tlong kouyaku = 1;\n\t\t\n\t\tfor(int a = 1; a <= max; a++) {\n\t\t\n\t\t\tfor(int b = 1; b <= max; b++) {\n\t\t\t\n\t\t\t\tfor(int c= 1; c <= max; c++) {\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\t\t\t\n\t\t\n\t\tsc.close();\n\t\t\n\t\tSystem.out.println(result);\n\t\t\n\t}\n\t\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\t\n\t\tint max = sc.nextInt();\n\t\t\n\t\tlong result = 0;\n\t\t\n\t\tlong kouyaku = 1;\n\t\t\n\t\tfor(int a = 1; a <= max; a++) {\n\t\t\n\t\t\tfor(int b = 1; b <= max; b++) {\n\t\t\t\n\t\t\t\tfor(int c= 1; c <= max; c++) {\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\t\t\t\n\t\t\n\t\tsc.close();\n\t\t\n\t\tSystem.out.println(result);\n\t\t\n\t}\n\t\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint max = sc.nextInt();\n\t\t\n\t\tlong result = 0;\n\t\t\n\t\tlong kouyaku = 1;\n\t\t\n\t\tfor(int a = 1; a <= max; a++) {\n\t\t\n\t\t\tfor(int b = 1; b <= max; b++) {\n\t\t\t\n\t\t\t\tfor(int c= 1; c <= max; c++) {\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\t\t\t\n\t\t\n\t\tsc.close();\n\t\t\n\t\tSystem.out.println(result);\n\t\t\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint max = sc.nextInt();\n\t\t\n\t\tlong result = 0;\n\t\t\n\t\tlong kouyaku = 1;\n\t\t\n\t\tfor(int a = 1; a <= max; a++) {\n\t\t\n\t\t\tfor(int b = 1; b <= max; b++) {\n\t\t\t\n\t\t\t\tfor(int c= 1; c <= max; c++) {\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\t\t\t\n\t\t\n\t\tsc.close();\n\t\t\n\t\tSystem.out.println(result);\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int max = sc.nextInt();",
"max",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long result = 0;",
"result",
"0",
"long kouyaku = 1;",
"kouyaku",
"1",
"for(int a = 1; a <= max; a++) {\n\t\t\n\t\t\tfor(int b = 1; b <= max; b++) {\n\t\t\t\n\t\t\t\tfor(int c= 1; c <= max; c++) {\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"int a = 1;",
"int a = 1;",
"a",
"1",
"a <= max",
"a",
"max",
"a++",
"a++",
"a",
"{\n\t\t\n\t\t\tfor(int b = 1; b <= max; b++) {\n\t\t\t\n\t\t\t\tfor(int c= 1; c <= max; c++) {\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\n\t\t\tfor(int b = 1; b <= max; b++) {\n\t\t\t\n\t\t\t\tfor(int c= 1; c <= max; c++) {\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"for(int b = 1; b <= max; b++) {\n\t\t\t\n\t\t\t\tfor(int c= 1; c <= max; c++) {\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"int b = 1;",
"int b = 1;",
"b",
"1",
"b <= max",
"b",
"max",
"b++",
"b++",
"b",
"{\n\t\t\t\n\t\t\t\tfor(int c= 1; c <= max; c++) {\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"{\n\t\t\t\n\t\t\t\tfor(int c= 1; c <= max; c++) {\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"for(int c= 1; c <= max; c++) {\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"int c= 1;",
"int c= 1;",
"c",
"1",
"c <= max",
"c",
"max",
"c++",
"c++",
"c",
"{\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"{\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"int ap = a;",
"ap",
"a",
"int bp = b;",
"bp",
"b",
"int cp = c;",
"cp",
"c",
"for(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}",
"int j= 1;",
"int j= 1;",
"j",
"1",
"j <= ap && j <= bp && j <= cp",
"j <= ap && j <= bp && j <= cp",
"j <= ap",
"j",
"ap",
"j <= bp",
"j",
"bp",
"j <= cp",
"j",
"cp",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}",
"if(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"ap%j == 0 && bp%j ==0 && cp%j == 0",
"ap%j == 0 && bp%j ==0 && cp%j == 0",
"ap%j == 0",
"ap%j",
"ap",
"j",
"0",
"bp%j ==0",
"bp%j",
"bp",
"j",
"0",
"cp%j == 0",
"cp%j",
"cp",
"j",
"0",
"{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"kouyaku *= j",
"kouyaku",
"j",
"ap /= j",
"ap",
"j",
"bp /= j",
"bp",
"j",
"cp /= j",
"cp",
"j",
"j = 1",
"j",
"1",
"result += kouyaku",
"result",
"kouyaku",
"kouyaku = 1",
"kouyaku",
"1",
"sc.close()",
"sc.close",
"sc",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"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\t\n\t\tint max = sc.nextInt();\n\t\t\n\t\tlong result = 0;\n\t\t\n\t\tlong kouyaku = 1;\n\t\t\n\t\tfor(int a = 1; a <= max; a++) {\n\t\t\n\t\t\tfor(int b = 1; b <= max; b++) {\n\t\t\t\n\t\t\t\tfor(int c= 1; c <= max; c++) {\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\t\t\t\n\t\t\n\t\tsc.close();\n\t\t\n\t\tSystem.out.println(result);\n\t\t\n\t}\n\t\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\t\n\t\tint max = sc.nextInt();\n\t\t\n\t\tlong result = 0;\n\t\t\n\t\tlong kouyaku = 1;\n\t\t\n\t\tfor(int a = 1; a <= max; a++) {\n\t\t\n\t\t\tfor(int b = 1; b <= max; b++) {\n\t\t\t\n\t\t\t\tfor(int c= 1; c <= max; c++) {\n\t\t\t\t\n\t\t\t\t\tint ap = a;\n\t\t\t\t\t\n\t\t\t\t\tint bp = b;\n\t\t\t\t\t\n\t\t\t\t\tint cp = c;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j= 1; j <= ap && j <= bp && j <= cp; j++) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(ap%j == 0 && bp%j ==0 && cp%j == 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tkouyaku *= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tap /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcp /= j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tj = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult += kouyaku;\n\t\t\t\t\t\t\n\t\t\t\t\t\tkouyaku = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\t\t\t\n\t\t\n\t\tsc.close();\n\t\t\n\t\tSystem.out.println(result);\n\t\t\n\t}\n\t\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int max = sc.nextInt();
long result = 0;
long kouyaku = 1;
for(int a = 1; a <= max; a++) {
for(int b = 1; b <= max; b++) {
for(int c= 1; c <= max; c++) {
int ap = a;
int bp = b;
int cp = c;
for(int j= 1; j <= ap && j <= bp && j <= cp; j++) {
if(ap%j == 0 && bp%j ==0 && cp%j == 0) {
kouyaku *= j;
ap /= j;
bp /= j;
cp /= j;
j = 1;
}
}
result += kouyaku;
kouyaku = 1;
}
}
}
sc.close();
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
13,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
13,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
4,
13,
13,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
2,
17,
4,
13,
13,
13,
13,
30,
0,
13,
2,
17,
4,
13,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
29,
13,
29,
4,
13,
4,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
42,
17,
30,
14,
2,
13,
13,
30,
29,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
17,
29,
13,
30,
0,
13,
13,
14,
2,
13,
17,
29,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
187,
5
],
[
187,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
35,
45
],
[
45,
46
],
[
46,
47
],
[
35,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
50,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
76,
79
],
[
76,
80
],
[
65,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
94,
97
],
[
94,
98
],
[
81,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
104,
107
],
[
104,
108
],
[
8,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
6,
115
],
[
115,
116
],
[
187,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
125,
127
],
[
120,
128
],
[
128,
129
],
[
129,
130
],
[
119,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
134,
136
],
[
134,
137
],
[
132,
138
],
[
117,
139
],
[
139,
140
],
[
117,
141
],
[
141,
142
],
[
117,
143
],
[
143,
144
],
[
187,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
156,
157
],
[
150,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
170,
171
],
[
158,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
180,
181
],
[
145,
182
],
[
182,
183
],
[
145,
184
],
[
184,
185
],
[
0,
186
],
[
186,
187
],
[
186,
188
]
] |
[
"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\tint n = sc.nextInt();\n\t\t\n\t\tlong ans = 0;\n\t\t\n\t\tfor(int i=1; i<n+1; i++) {\n\t\t\tfor(int j=i; j<n+1; j++) {\n\t\t\t\tfor(int k=j; k<n+1; k++) {\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\n\t}\n\t\n\tstatic long gcd(int a, int b, int c) {\n\t\tif(a == b && b == c) {\n\t\t\treturn a;\n\t\t}\n\t\treturn gcd(gcd(a,b),c);\n\t}\n\t\n\tstatic long gcd(long a, long b) {\n\t\twhile(true) {\n\t\t\tif(a==b) {\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\tif(a>b) {\n\t\t\t\ta %= b;\n\t\t\t\tif(a==0) return b;\n\t\t\t}else {\n\t\t\t\tb %= a;\n\t\t\t\tif(b==0) return a;\n\t\t\t}\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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\t\n\t\tlong ans = 0;\n\t\t\n\t\tfor(int i=1; i<n+1; i++) {\n\t\t\tfor(int j=i; j<n+1; j++) {\n\t\t\t\tfor(int k=j; k<n+1; k++) {\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\n\t}\n\t\n\tstatic long gcd(int a, int b, int c) {\n\t\tif(a == b && b == c) {\n\t\t\treturn a;\n\t\t}\n\t\treturn gcd(gcd(a,b),c);\n\t}\n\t\n\tstatic long gcd(long a, long b) {\n\t\twhile(true) {\n\t\t\tif(a==b) {\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\tif(a>b) {\n\t\t\t\ta %= b;\n\t\t\t\tif(a==0) return b;\n\t\t\t}else {\n\t\t\t\tb %= a;\n\t\t\t\tif(b==0) return a;\n\t\t\t}\n\t\t}\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\t\n\t\tlong ans = 0;\n\t\t\n\t\tfor(int i=1; i<n+1; i++) {\n\t\t\tfor(int j=i; j<n+1; j++) {\n\t\t\t\tfor(int k=j; k<n+1; k++) {\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\t\n\t\tlong ans = 0;\n\t\t\n\t\tfor(int i=1; i<n+1; i++) {\n\t\t\tfor(int j=i; j<n+1; j++) {\n\t\t\t\tfor(int k=j; k<n+1; k++) {\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\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 ans = 0;",
"ans",
"0",
"for(int i=1; i<n+1; i++) {\n\t\t\tfor(int j=i; j<n+1; j++) {\n\t\t\t\tfor(int k=j; k<n+1; k++) {\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<n+1",
"i",
"n+1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=i; j<n+1; j++) {\n\t\t\t\tfor(int k=j; k<n+1; k++) {\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=i; j<n+1; j++) {\n\t\t\t\tfor(int k=j; k<n+1; k++) {\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j=i; j<n+1; j++) {\n\t\t\t\tfor(int k=j; k<n+1; k++) {\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int j=i;",
"int j=i;",
"j",
"i",
"j<n+1",
"j",
"n+1",
"n",
"1",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=j; k<n+1; k++) {\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k=j; k<n+1; k++) {\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for(int k=j; k<n+1; k++) {\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}",
"int k=j;",
"int k=j;",
"k",
"j",
"k<n+1",
"k",
"n+1",
"n",
"1",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}",
"if(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}",
"i == j && j == k",
"i == j",
"i",
"j",
"j == k",
"j",
"k",
"{\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}",
"ans += gcd(i,j,k)",
"ans",
"gcd(i,j,k)",
"gcd",
"i",
"j",
"k",
"if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}",
"i != j && j!= k",
"i != j",
"i",
"j",
"j!= k",
"j",
"k",
"{\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}",
"ans += 6 * gcd(i,j,k)",
"ans",
"6 * gcd(i,j,k)",
"6",
"gcd(i,j,k)",
"gcd",
"i",
"j",
"k",
"{\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}",
"ans += 3 * gcd(i,j,k)",
"ans",
"3 * gcd(i,j,k)",
"3",
"gcd(i,j,k)",
"gcd",
"i",
"j",
"k",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"static long gcd(int a, int b, int c) {\n\t\tif(a == b && b == c) {\n\t\t\treturn a;\n\t\t}\n\t\treturn gcd(gcd(a,b),c);\n\t}",
"gcd",
"{\n\t\tif(a == b && b == c) {\n\t\t\treturn a;\n\t\t}\n\t\treturn gcd(gcd(a,b),c);\n\t}",
"if(a == b && b == c) {\n\t\t\treturn a;\n\t\t}",
"a == b && b == c",
"a == b",
"a",
"b",
"b == c",
"b",
"c",
"{\n\t\t\treturn a;\n\t\t}",
"return a;",
"a",
"return gcd(gcd(a,b),c);",
"gcd(gcd(a,b),c)",
"gcd",
"gcd(a,b)",
"gcd",
"a",
"b",
"c",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"static long gcd(long a, long b) {\n\t\twhile(true) {\n\t\t\tif(a==b) {\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\tif(a>b) {\n\t\t\t\ta %= b;\n\t\t\t\tif(a==0) return b;\n\t\t\t}else {\n\t\t\t\tb %= a;\n\t\t\t\tif(b==0) return a;\n\t\t\t}\n\t\t}\n\t}",
"gcd",
"{\n\t\twhile(true) {\n\t\t\tif(a==b) {\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\tif(a>b) {\n\t\t\t\ta %= b;\n\t\t\t\tif(a==0) return b;\n\t\t\t}else {\n\t\t\t\tb %= a;\n\t\t\t\tif(b==0) return a;\n\t\t\t}\n\t\t}\n\t}",
"while(true) {\n\t\t\tif(a==b) {\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\tif(a>b) {\n\t\t\t\ta %= b;\n\t\t\t\tif(a==0) return b;\n\t\t\t}else {\n\t\t\t\tb %= a;\n\t\t\t\tif(b==0) return a;\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tif(a==b) {\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\tif(a>b) {\n\t\t\t\ta %= b;\n\t\t\t\tif(a==0) return b;\n\t\t\t}else {\n\t\t\t\tb %= a;\n\t\t\t\tif(b==0) return a;\n\t\t\t}\n\t\t}",
"if(a==b) {\n\t\t\t\treturn a;\n\t\t\t}",
"a==b",
"a",
"b",
"{\n\t\t\t\treturn a;\n\t\t\t}",
"return a;",
"a",
"if(a>b) {\n\t\t\t\ta %= b;\n\t\t\t\tif(a==0) return b;\n\t\t\t}else {\n\t\t\t\tb %= a;\n\t\t\t\tif(b==0) return a;\n\t\t\t}",
"a>b",
"a",
"b",
"{\n\t\t\t\ta %= b;\n\t\t\t\tif(a==0) return b;\n\t\t\t}",
"a %= b",
"a",
"b",
"if(a==0) return b;",
"a==0",
"a",
"0",
"return b;",
"b",
"{\n\t\t\t\tb %= a;\n\t\t\t\tif(b==0) return a;\n\t\t\t}",
"b %= a",
"b",
"a",
"if(b==0) return a;",
"b==0",
"b",
"0",
"return a;",
"a",
"long a",
"a",
"long b",
"b",
"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\t\n\t\tlong ans = 0;\n\t\t\n\t\tfor(int i=1; i<n+1; i++) {\n\t\t\tfor(int j=i; j<n+1; j++) {\n\t\t\t\tfor(int k=j; k<n+1; k++) {\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\n\t}\n\t\n\tstatic long gcd(int a, int b, int c) {\n\t\tif(a == b && b == c) {\n\t\t\treturn a;\n\t\t}\n\t\treturn gcd(gcd(a,b),c);\n\t}\n\t\n\tstatic long gcd(long a, long b) {\n\t\twhile(true) {\n\t\t\tif(a==b) {\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\tif(a>b) {\n\t\t\t\ta %= b;\n\t\t\t\tif(a==0) return b;\n\t\t\t}else {\n\t\t\t\tb %= a;\n\t\t\t\tif(b==0) return a;\n\t\t\t}\n\t\t}\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\t\n\t\tlong ans = 0;\n\t\t\n\t\tfor(int i=1; i<n+1; i++) {\n\t\t\tfor(int j=i; j<n+1; j++) {\n\t\t\t\tfor(int k=j; k<n+1; k++) {\n\t\t\t\t\tif(i == j && j == k) {\n\t\t\t\t\t\tans += gcd(i,j,k);\n\t\t\t\t\t}else if(i != j && j!= k) {\n\t\t\t\t\t\tans += 6 * gcd(i,j,k);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tans += 3 * gcd(i,j,k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\n\t}\n\t\n\tstatic long gcd(int a, int b, int c) {\n\t\tif(a == b && b == c) {\n\t\t\treturn a;\n\t\t}\n\t\treturn gcd(gcd(a,b),c);\n\t}\n\t\n\tstatic long gcd(long a, long b) {\n\t\twhile(true) {\n\t\t\tif(a==b) {\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\tif(a>b) {\n\t\t\t\ta %= b;\n\t\t\t\tif(a==0) return b;\n\t\t\t}else {\n\t\t\t\tb %= a;\n\t\t\t\tif(b==0) return a;\n\t\t\t}\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();
long ans = 0;
for(int i=1; i<n+1; i++) {
for(int j=i; j<n+1; j++) {
for(int k=j; k<n+1; k++) {
if(i == j && j == k) {
ans += gcd(i,j,k);
}else if(i != j && j!= k) {
ans += 6 * gcd(i,j,k);
}else {
ans += 3 * gcd(i,j,k);
}
}
}
}
System.out.println(ans);
}
static long gcd(int a, int b, int c) {
if(a == b && b == c) {
return a;
}
return gcd(gcd(a,b),c);
}
static long gcd(long a, long b) {
while(true) {
if(a==b) {
return a;
}
if(a>b) {
a %= b;
if(a==0) return b;
}else {
b %= a;
if(b==0) return a;
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
4,
13,
4,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
29,
13,
30,
29,
4,
13,
13,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
131,
5
],
[
131,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
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
],
[
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
],
[
61,
63
],
[
61,
64
],
[
61,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
6,
72
],
[
72,
73
],
[
131,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
78,
84
],
[
74,
85
],
[
85,
86
],
[
74,
87
],
[
87,
88
],
[
74,
89
],
[
89,
90
],
[
131,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
96,
100
],
[
93,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
103,
107
],
[
93,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
93,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
113,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
122,
125
],
[
91,
126
],
[
126,
127
],
[
91,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n Integer K = input.nextInt();\n long sum = 0;\n\n for (int a = 1; a <= K; a++) {\n for (int b = 1; b <= K; b++) {\n for (int c = 1; c <= K; c++) {\n sum += gcd_triple(a, b, c);\n }\n }\n }\n System.out.println(sum);\n }\n\n private static int gcd_triple(int a, int b, int c) {\n return gcd(gcd(a, b), c);\n }\n\n private static int gcd(int n, int m) {\n int bigger = Integer.max(n,m);\n int smaller = Integer.min(n,m);\n int sur = bigger % smaller;\n\n if (sur == 0) {\n return smaller;\n } else {\n return gcd(smaller, sur);\n }\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n Integer K = input.nextInt();\n long sum = 0;\n\n for (int a = 1; a <= K; a++) {\n for (int b = 1; b <= K; b++) {\n for (int c = 1; c <= K; c++) {\n sum += gcd_triple(a, b, c);\n }\n }\n }\n System.out.println(sum);\n }\n\n private static int gcd_triple(int a, int b, int c) {\n return gcd(gcd(a, b), c);\n }\n\n private static int gcd(int n, int m) {\n int bigger = Integer.max(n,m);\n int smaller = Integer.min(n,m);\n int sur = bigger % smaller;\n\n if (sur == 0) {\n return smaller;\n } else {\n return gcd(smaller, sur);\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n Integer K = input.nextInt();\n long sum = 0;\n\n for (int a = 1; a <= K; a++) {\n for (int b = 1; b <= K; b++) {\n for (int c = 1; c <= K; c++) {\n sum += gcd_triple(a, b, c);\n }\n }\n }\n System.out.println(sum);\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n Integer K = input.nextInt();\n long sum = 0;\n\n for (int a = 1; a <= K; a++) {\n for (int b = 1; b <= K; b++) {\n for (int c = 1; c <= K; c++) {\n sum += gcd_triple(a, b, c);\n }\n }\n }\n System.out.println(sum);\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"Integer K = input.nextInt();",
"K",
"input.nextInt()",
"input.nextInt",
"input",
"long sum = 0;",
"sum",
"0",
"for (int a = 1; a <= K; a++) {\n for (int b = 1; b <= K; b++) {\n for (int c = 1; c <= K; c++) {\n sum += gcd_triple(a, b, c);\n }\n }\n }",
"int a = 1;",
"int a = 1;",
"a",
"1",
"a <= K",
"a",
"K",
"a++",
"a++",
"a",
"{\n for (int b = 1; b <= K; b++) {\n for (int c = 1; c <= K; c++) {\n sum += gcd_triple(a, b, c);\n }\n }\n }",
"{\n for (int b = 1; b <= K; b++) {\n for (int c = 1; c <= K; c++) {\n sum += gcd_triple(a, b, c);\n }\n }\n }",
"for (int b = 1; b <= K; b++) {\n for (int c = 1; c <= K; c++) {\n sum += gcd_triple(a, b, c);\n }\n }",
"int b = 1;",
"int b = 1;",
"b",
"1",
"b <= K",
"b",
"K",
"b++",
"b++",
"b",
"{\n for (int c = 1; c <= K; c++) {\n sum += gcd_triple(a, b, c);\n }\n }",
"{\n for (int c = 1; c <= K; c++) {\n sum += gcd_triple(a, b, c);\n }\n }",
"for (int c = 1; c <= K; c++) {\n sum += gcd_triple(a, b, c);\n }",
"int c = 1;",
"int c = 1;",
"c",
"1",
"c <= K",
"c",
"K",
"c++",
"c++",
"c",
"{\n sum += gcd_triple(a, b, c);\n }",
"{\n sum += gcd_triple(a, b, c);\n }",
"sum += gcd_triple(a, b, c)",
"sum",
"gcd_triple(a, b, c)",
"gcd_triple",
"a",
"b",
"c",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"private static int gcd_triple(int a, int b, int c) {\n return gcd(gcd(a, b), c);\n }",
"gcd_triple",
"{\n return gcd(gcd(a, b), c);\n }",
"return gcd(gcd(a, b), c);",
"gcd(gcd(a, b), c)",
"gcd",
"gcd(a, b)",
"gcd",
"a",
"b",
"c",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"private static int gcd(int n, int m) {\n int bigger = Integer.max(n,m);\n int smaller = Integer.min(n,m);\n int sur = bigger % smaller;\n\n if (sur == 0) {\n return smaller;\n } else {\n return gcd(smaller, sur);\n }\n\n }",
"gcd",
"{\n int bigger = Integer.max(n,m);\n int smaller = Integer.min(n,m);\n int sur = bigger % smaller;\n\n if (sur == 0) {\n return smaller;\n } else {\n return gcd(smaller, sur);\n }\n\n }",
"int bigger = Integer.max(n,m);",
"bigger",
"Integer.max(n,m)",
"Integer.max",
"Integer",
"n",
"m",
"int smaller = Integer.min(n,m);",
"smaller",
"Integer.min(n,m)",
"Integer.min",
"Integer",
"n",
"m",
"int sur = bigger % smaller;",
"sur",
"bigger % smaller",
"bigger",
"smaller",
"if (sur == 0) {\n return smaller;\n } else {\n return gcd(smaller, sur);\n }",
"sur == 0",
"sur",
"0",
"{\n return smaller;\n }",
"return smaller;",
"smaller",
"{\n return gcd(smaller, sur);\n }",
"return gcd(smaller, sur);",
"gcd(smaller, sur)",
"gcd",
"smaller",
"sur",
"int n",
"n",
"int m",
"m",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n Integer K = input.nextInt();\n long sum = 0;\n\n for (int a = 1; a <= K; a++) {\n for (int b = 1; b <= K; b++) {\n for (int c = 1; c <= K; c++) {\n sum += gcd_triple(a, b, c);\n }\n }\n }\n System.out.println(sum);\n }\n\n private static int gcd_triple(int a, int b, int c) {\n return gcd(gcd(a, b), c);\n }\n\n private static int gcd(int n, int m) {\n int bigger = Integer.max(n,m);\n int smaller = Integer.min(n,m);\n int sur = bigger % smaller;\n\n if (sur == 0) {\n return smaller;\n } else {\n return gcd(smaller, sur);\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n Integer K = input.nextInt();\n long sum = 0;\n\n for (int a = 1; a <= K; a++) {\n for (int b = 1; b <= K; b++) {\n for (int c = 1; c <= K; c++) {\n sum += gcd_triple(a, b, c);\n }\n }\n }\n System.out.println(sum);\n }\n\n private static int gcd_triple(int a, int b, int c) {\n return gcd(gcd(a, b), c);\n }\n\n private static int gcd(int n, int m) {\n int bigger = Integer.max(n,m);\n int smaller = Integer.min(n,m);\n int sur = bigger % smaller;\n\n if (sur == 0) {\n return smaller;\n } else {\n return gcd(smaller, sur);\n }\n\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
Integer K = input.nextInt();
long sum = 0;
for (int a = 1; a <= K; a++) {
for (int b = 1; b <= K; b++) {
for (int c = 1; c <= K; c++) {
sum += gcd_triple(a, b, c);
}
}
}
System.out.println(sum);
}
private static int gcd_triple(int a, int b, int c) {
return gcd(gcd(a, b), c);
}
private static int gcd(int n, int m) {
int bigger = Integer.max(n,m);
int smaller = Integer.min(n,m);
int sur = bigger % smaller;
if (sur == 0) {
return smaller;
} else {
return gcd(smaller, sur);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
4,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
13,
13,
0,
13,
4,
13,
13,
13,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
41,
13,
40,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
149,
5
],
[
149,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
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
],
[
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
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
71,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
6,
80
],
[
80,
81
],
[
149,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
87,
90
],
[
84,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
93,
96
],
[
84,
97
],
[
97,
98
],
[
82,
99
],
[
99,
100
],
[
82,
101
],
[
101,
102
],
[
82,
103
],
[
103,
104
],
[
149,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
116,
118
],
[
112,
119
],
[
119,
120
],
[
119,
121
],
[
107,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
107,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
133,
135
],
[
130,
136
],
[
136,
137
],
[
136,
138
],
[
130,
139
],
[
139,
140
],
[
139,
141
],
[
107,
142
],
[
142,
143
],
[
105,
144
],
[
144,
145
],
[
105,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
] |
[
"import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int ans = 0;\n for(int a= 0;a<K;a++){\n for(int b= 0 ;b<K;b++){\n for(int c= 0;c<K;c++){\n ans = ans + mgcd(a+1,b+1,c+1);\n }\n }\n }\n System.out.println(ans);\n }\n\n public static final int mgcd(int a, int b, int c) {\n int g = gcd(a,b);\n g = gcd(g,c);\n return g;\n }\n\n public static final int gcd(int a, int b) {\n\n if (a < b) {\n int tmp = a;\n a = b;\n b = tmp;\n }\n\n int r = -1;\n while (r != 0) {\n r = a % b;\n a = b;\n b = r;\n }\n\n return a;\n }\n\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int ans = 0;\n for(int a= 0;a<K;a++){\n for(int b= 0 ;b<K;b++){\n for(int c= 0;c<K;c++){\n ans = ans + mgcd(a+1,b+1,c+1);\n }\n }\n }\n System.out.println(ans);\n }\n\n public static final int mgcd(int a, int b, int c) {\n int g = gcd(a,b);\n g = gcd(g,c);\n return g;\n }\n\n public static final int gcd(int a, int b) {\n\n if (a < b) {\n int tmp = a;\n a = b;\n b = tmp;\n }\n\n int r = -1;\n while (r != 0) {\n r = a % b;\n a = b;\n b = r;\n }\n\n return a;\n }\n\n\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int ans = 0;\n for(int a= 0;a<K;a++){\n for(int b= 0 ;b<K;b++){\n for(int c= 0;c<K;c++){\n ans = ans + mgcd(a+1,b+1,c+1);\n }\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int ans = 0;\n for(int a= 0;a<K;a++){\n for(int b= 0 ;b<K;b++){\n for(int c= 0;c<K;c++){\n ans = ans + mgcd(a+1,b+1,c+1);\n }\n }\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = 0;",
"ans",
"0",
"for(int a= 0;a<K;a++){\n for(int b= 0 ;b<K;b++){\n for(int c= 0;c<K;c++){\n ans = ans + mgcd(a+1,b+1,c+1);\n }\n }\n }",
"int a= 0;",
"int a= 0;",
"a",
"0",
"a<K",
"a",
"K",
"a++",
"a++",
"a",
"{\n for(int b= 0 ;b<K;b++){\n for(int c= 0;c<K;c++){\n ans = ans + mgcd(a+1,b+1,c+1);\n }\n }\n }",
"{\n for(int b= 0 ;b<K;b++){\n for(int c= 0;c<K;c++){\n ans = ans + mgcd(a+1,b+1,c+1);\n }\n }\n }",
"for(int b= 0 ;b<K;b++){\n for(int c= 0;c<K;c++){\n ans = ans + mgcd(a+1,b+1,c+1);\n }\n }",
"int b= 0 ;",
"int b= 0 ;",
"b",
"0",
"b<K",
"b",
"K",
"b++",
"b++",
"b",
"{\n for(int c= 0;c<K;c++){\n ans = ans + mgcd(a+1,b+1,c+1);\n }\n }",
"{\n for(int c= 0;c<K;c++){\n ans = ans + mgcd(a+1,b+1,c+1);\n }\n }",
"for(int c= 0;c<K;c++){\n ans = ans + mgcd(a+1,b+1,c+1);\n }",
"int c= 0;",
"int c= 0;",
"c",
"0",
"c<K",
"c",
"K",
"c++",
"c++",
"c",
"{\n ans = ans + mgcd(a+1,b+1,c+1);\n }",
"{\n ans = ans + mgcd(a+1,b+1,c+1);\n }",
"ans = ans + mgcd(a+1,b+1,c+1)",
"ans",
"ans + mgcd(a+1,b+1,c+1)",
"ans",
"mgcd(a+1,b+1,c+1)",
"mgcd",
"a+1",
"a",
"1",
"b+1",
"b",
"1",
"c+1",
"c",
"1",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public static final int mgcd(int a, int b, int c) {\n int g = gcd(a,b);\n g = gcd(g,c);\n return g;\n }",
"mgcd",
"{\n int g = gcd(a,b);\n g = gcd(g,c);\n return g;\n }",
"int g = gcd(a,b);",
"g",
"gcd(a,b)",
"gcd",
"a",
"b",
"g = gcd(g,c)",
"g",
"gcd(g,c)",
"gcd",
"g",
"c",
"return g;",
"g",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"public static final int gcd(int a, int b) {\n\n if (a < b) {\n int tmp = a;\n a = b;\n b = tmp;\n }\n\n int r = -1;\n while (r != 0) {\n r = a % b;\n a = b;\n b = r;\n }\n\n return a;\n }",
"gcd",
"{\n\n if (a < b) {\n int tmp = a;\n a = b;\n b = tmp;\n }\n\n int r = -1;\n while (r != 0) {\n r = a % b;\n a = b;\n b = r;\n }\n\n return a;\n }",
"if (a < b) {\n int tmp = a;\n a = b;\n b = tmp;\n }",
"a < b",
"a",
"b",
"{\n int tmp = a;\n a = b;\n b = tmp;\n }",
"int tmp = a;",
"tmp",
"a",
"a = b",
"a",
"b",
"b = tmp",
"b",
"tmp",
"int r = -1;",
"r",
"-1",
"1",
"while (r != 0) {\n r = a % b;\n a = b;\n b = r;\n }",
"r != 0",
"r",
"0",
"{\n r = a % b;\n a = b;\n b = r;\n }",
"r = a % b",
"r",
"a % b",
"a",
"b",
"a = b",
"a",
"b",
"b = r",
"b",
"r",
"return a;",
"a",
"int a",
"a",
"int b",
"b",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int ans = 0;\n for(int a= 0;a<K;a++){\n for(int b= 0 ;b<K;b++){\n for(int c= 0;c<K;c++){\n ans = ans + mgcd(a+1,b+1,c+1);\n }\n }\n }\n System.out.println(ans);\n }\n\n public static final int mgcd(int a, int b, int c) {\n int g = gcd(a,b);\n g = gcd(g,c);\n return g;\n }\n\n public static final int gcd(int a, int b) {\n\n if (a < b) {\n int tmp = a;\n a = b;\n b = tmp;\n }\n\n int r = -1;\n while (r != 0) {\n r = a % b;\n a = b;\n b = r;\n }\n\n return a;\n }\n\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int ans = 0;\n for(int a= 0;a<K;a++){\n for(int b= 0 ;b<K;b++){\n for(int c= 0;c<K;c++){\n ans = ans + mgcd(a+1,b+1,c+1);\n }\n }\n }\n System.out.println(ans);\n }\n\n public static final int mgcd(int a, int b, int c) {\n int g = gcd(a,b);\n g = gcd(g,c);\n return g;\n }\n\n public static final int gcd(int a, int b) {\n\n if (a < b) {\n int tmp = a;\n a = b;\n b = tmp;\n }\n\n int r = -1;\n while (r != 0) {\n r = a % b;\n a = b;\n b = r;\n }\n\n return a;\n }\n\n\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int ans = 0;
for(int a= 0;a<K;a++){
for(int b= 0 ;b<K;b++){
for(int c= 0;c<K;c++){
ans = ans + mgcd(a+1,b+1,c+1);
}
}
}
System.out.println(ans);
}
public static final int mgcd(int a, int b, int c) {
int g = gcd(a,b);
g = gcd(g,c);
return g;
}
public static final int gcd(int a, int b) {
if (a < b) {
int tmp = a;
a = b;
b = tmp;
}
int r = -1;
while (r != 0) {
r = a % b;
a = b;
b = r;
}
return a;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
4,
13,
13,
13,
4,
18,
13,
13,
23,
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,
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
],
[
146,
17
],
[
146,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
146,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
55,
64
],
[
64,
65
],
[
64,
66
],
[
55,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
93,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
108,
111
],
[
111,
112
],
[
111,
113
],
[
111,
114
],
[
55,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
53,
119
],
[
119,
120
],
[
53,
121
],
[
121,
122
],
[
53,
123
],
[
123,
124
],
[
51,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
128,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
135,
138
],
[
138,
139
],
[
138,
140
],
[
125,
141
],
[
141,
142
],
[
125,
143
],
[
143,
144
],
[
0,
145
],
[
145,
146
],
[
145,
147
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n C solver = new C();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class C {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int k = Integer.parseInt(in.next());\n long ans = 0;\n\n for (int i = 1; i <= k; i++) {\n for (int j = 1; j <= k; j++) {\n for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }\n }\n }\n\n // 出力\n out.println(ans);\n\n }\n\n public static int gcd(int num1, int num2) {\n if (num2 == 0) return num1;\n else return gcd(num2, num1 % num2);\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n C solver = new C();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class C {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int k = Integer.parseInt(in.next());\n long ans = 0;\n\n for (int i = 1; i <= k; i++) {\n for (int j = 1; j <= k; j++) {\n for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }\n }\n }\n\n // 出力\n out.println(ans);\n\n }\n\n public static int gcd(int num1, int num2) {\n if (num2 == 0) return num1;\n else return gcd(num2, num1 % num2);\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 C solver = new C();\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 C solver = new C();\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)",
"C solver = new C();",
"solver",
"new C()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class C {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int k = Integer.parseInt(in.next());\n long ans = 0;\n\n for (int i = 1; i <= k; i++) {\n for (int j = 1; j <= k; j++) {\n for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }\n }\n }\n\n // 出力\n out.println(ans);\n\n }\n\n public static int gcd(int num1, int num2) {\n if (num2 == 0) return num1;\n else return gcd(num2, num1 % num2);\n }\n\n }",
"C",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int k = Integer.parseInt(in.next());\n long ans = 0;\n\n for (int i = 1; i <= k; i++) {\n for (int j = 1; j <= k; j++) {\n for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }\n }\n }\n\n // 出力\n out.println(ans);\n\n }",
"solve",
"{\n // 入力\n int k = Integer.parseInt(in.next());\n long ans = 0;\n\n for (int i = 1; i <= k; i++) {\n for (int j = 1; j <= k; j++) {\n for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }\n }\n }\n\n // 出力\n out.println(ans);\n\n }",
"int k = Integer.parseInt(in.next());",
"k",
"Integer.parseInt(in.next())",
"Integer.parseInt",
"Integer",
"in.next()",
"in.next",
"in",
"long ans = 0;",
"ans",
"0",
"for (int i = 1; i <= k; i++) {\n for (int j = 1; j <= k; j++) {\n for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= k",
"i",
"k",
"i++",
"i++",
"i",
"{\n for (int j = 1; j <= k; j++) {\n for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }\n }\n }",
"{\n for (int j = 1; j <= k; j++) {\n for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }\n }\n }",
"for (int j = 1; j <= k; j++) {\n for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }\n }",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= k",
"j",
"k",
"j++",
"j++",
"j",
"{\n for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }\n }",
"{\n for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }\n }",
"for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }",
"int l = 1;",
"int l = 1;",
"l",
"1",
"l <= k",
"l",
"k",
"l++",
"l++",
"l",
"{\n ans += gcd(i, gcd(j, l));\n }",
"{\n ans += gcd(i, gcd(j, l));\n }",
"ans += gcd(i, gcd(j, l))",
"ans",
"gcd(i, gcd(j, l))",
"gcd",
"i",
"gcd(j, l)",
"gcd",
"j",
"l",
"out.println(ans)",
"out.println",
"out",
"ans",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public static int gcd(int num1, int num2) {\n if (num2 == 0) return num1;\n else return gcd(num2, num1 % num2);\n }",
"gcd",
"{\n if (num2 == 0) return num1;\n else return gcd(num2, num1 % num2);\n }",
"if (num2 == 0) return num1;\n else return gcd(num2, num1 % num2);",
"num2 == 0",
"num2",
"0",
"return num1;",
"num1",
"return gcd(num2, num1 % num2);",
"gcd(num2, num1 % num2)",
"gcd",
"num2",
"num1 % num2",
"num1",
"num2",
"int num1",
"num1",
"int num2",
"num2",
"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 C solver = new C();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class C {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int k = Integer.parseInt(in.next());\n long ans = 0;\n\n for (int i = 1; i <= k; i++) {\n for (int j = 1; j <= k; j++) {\n for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }\n }\n }\n\n // 出力\n out.println(ans);\n\n }\n\n public static int gcd(int num1, int num2) {\n if (num2 == 0) return num1;\n else return gcd(num2, num1 % num2);\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 C solver = new C();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class C {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int k = Integer.parseInt(in.next());\n long ans = 0;\n\n for (int i = 1; i <= k; i++) {\n for (int j = 1; j <= k; j++) {\n for (int l = 1; l <= k; l++) {\n ans += gcd(i, gcd(j, l));\n }\n }\n }\n\n // 出力\n out.println(ans);\n\n }\n\n public static int gcd(int num1, int num2) {\n if (num2 == 0) return num1;\n else return gcd(num2, num1 % num2);\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
C solver = new C();
solver.solve(1, in, out);
out.close();
}
static class C {
public void solve(int testNumber, Scanner in, PrintWriter out) {
// 入力
int k = Integer.parseInt(in.next());
long ans = 0;
for (int i = 1; i <= k; i++) {
for (int j = 1; j <= k; j++) {
for (int l = 1; l <= k; l++) {
ans += gcd(i, gcd(j, l));
}
}
}
// 出力
out.println(ans);
}
public static int gcd(int num1, int num2) {
if (num2 == 0) return num1;
else return gcd(num2, num1 % num2);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
17,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
13,
4,
18,
13,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
154,
5
],
[
154,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
9,
14
],
[
6,
15
],
[
15,
16
],
[
154,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
17,
26
],
[
26,
27
],
[
154,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
28,
37
],
[
37,
38
],
[
154,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
42,
48
],
[
39,
49
],
[
49,
50
],
[
154,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
53,
62
],
[
62,
63
],
[
62,
64
],
[
53,
65
],
[
65,
66
],
[
53,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
95,
98
],
[
92,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
114,
116
],
[
114,
117
],
[
53,
118
],
[
118,
119
],
[
119,
120
],
[
53,
121
],
[
121,
122
],
[
121,
123
],
[
51,
124
],
[
124,
125
],
[
154,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
135,
141
],
[
141,
142
],
[
141,
143
],
[
135,
144
],
[
144,
145
],
[
144,
146
],
[
128,
147
],
[
147,
148
],
[
126,
149
],
[
149,
150
],
[
126,
151
],
[
151,
152
],
[
0,
153
],
[
153,
154
],
[
153,
155
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tstatic void log(String s) {\n\t\tSystem.out.println(s);\n\t}\n\n\tstatic void log(int i) {\n\t\tSystem.out.println(i);\n\t}\n\n\tstatic void log(long i) {\n\t\tSystem.out.println(i);\n\t}\n\n\tstatic void log(double d) {\n\t\tSystem.out.printf(\"%.12f\\n\",d);\n\t}\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint k = sc.nextInt();\n\n\t\tlong total=0;\n\t\tint gcd1;\n\t\t\n\t\tfor(int i=1; i<=k; i++) {\n\n\t\t\tfor(int j=1; j<=k; j++) {\n\t\t\t\tgcd1 = gcd2(i,j);\n\t\t\t\tfor(int l=1 ;l<=k; l++) {\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tsc.close();\n\t\t\n\t\tlog( total );\n\t\t\n\t}\n\n public static int gcd2(int m, int n) {\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n }\n\t\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic void log(String s) {\n\t\tSystem.out.println(s);\n\t}\n\n\tstatic void log(int i) {\n\t\tSystem.out.println(i);\n\t}\n\n\tstatic void log(long i) {\n\t\tSystem.out.println(i);\n\t}\n\n\tstatic void log(double d) {\n\t\tSystem.out.printf(\"%.12f\\n\",d);\n\t}\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint k = sc.nextInt();\n\n\t\tlong total=0;\n\t\tint gcd1;\n\t\t\n\t\tfor(int i=1; i<=k; i++) {\n\n\t\t\tfor(int j=1; j<=k; j++) {\n\t\t\t\tgcd1 = gcd2(i,j);\n\t\t\t\tfor(int l=1 ;l<=k; l++) {\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tsc.close();\n\t\t\n\t\tlog( total );\n\t\t\n\t}\n\n public static int gcd2(int m, int n) {\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n }\n\t\n}",
"Main",
"static void log(String s) {\n\t\tSystem.out.println(s);\n\t}",
"log",
"{\n\t\tSystem.out.println(s);\n\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String s",
"s",
"static void log(int i) {\n\t\tSystem.out.println(i);\n\t}",
"log",
"{\n\t\tSystem.out.println(i);\n\t}",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"int i",
"i",
"static void log(long i) {\n\t\tSystem.out.println(i);\n\t}",
"log",
"{\n\t\tSystem.out.println(i);\n\t}",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"long i",
"i",
"static void log(double d) {\n\t\tSystem.out.printf(\"%.12f\\n\",d);\n\t}",
"log",
"{\n\t\tSystem.out.printf(\"%.12f\\n\",d);\n\t}",
"System.out.printf(\"%.12f\\n\",d)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.12f\\n\"",
"d",
"double d",
"d",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint k = sc.nextInt();\n\n\t\tlong total=0;\n\t\tint gcd1;\n\t\t\n\t\tfor(int i=1; i<=k; i++) {\n\n\t\t\tfor(int j=1; j<=k; j++) {\n\t\t\t\tgcd1 = gcd2(i,j);\n\t\t\t\tfor(int l=1 ;l<=k; l++) {\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tsc.close();\n\t\t\n\t\tlog( total );\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint k = sc.nextInt();\n\n\t\tlong total=0;\n\t\tint gcd1;\n\t\t\n\t\tfor(int i=1; i<=k; i++) {\n\n\t\t\tfor(int j=1; j<=k; j++) {\n\t\t\t\tgcd1 = gcd2(i,j);\n\t\t\t\tfor(int l=1 ;l<=k; l++) {\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tsc.close();\n\t\t\n\t\tlog( total );\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long total=0;",
"total",
"0",
"int gcd1;",
"gcd1",
"for(int i=1; i<=k; i++) {\n\n\t\t\tfor(int j=1; j<=k; j++) {\n\t\t\t\tgcd1 = gcd2(i,j);\n\t\t\t\tfor(int l=1 ;l<=k; l++) {\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\n\t\t\tfor(int j=1; j<=k; j++) {\n\t\t\t\tgcd1 = gcd2(i,j);\n\t\t\t\tfor(int l=1 ;l<=k; l++) {\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tfor(int j=1; j<=k; j++) {\n\t\t\t\tgcd1 = gcd2(i,j);\n\t\t\t\tfor(int l=1 ;l<=k; l++) {\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j=1; j<=k; j++) {\n\t\t\t\tgcd1 = gcd2(i,j);\n\t\t\t\tfor(int l=1 ;l<=k; l++) {\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}\n\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=k",
"j",
"k",
"j++",
"j++",
"j",
"{\n\t\t\t\tgcd1 = gcd2(i,j);\n\t\t\t\tfor(int l=1 ;l<=k; l++) {\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tgcd1 = gcd2(i,j);\n\t\t\t\tfor(int l=1 ;l<=k; l++) {\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}\n\t\t\t}",
"gcd1 = gcd2(i,j)",
"gcd1",
"gcd2(i,j)",
"gcd2",
"i",
"j",
"for(int l=1 ;l<=k; l++) {\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}",
"int l=1 ;",
"int l=1 ;",
"l",
"1",
"l<=k",
"l",
"k",
"l++",
"l++",
"l",
"{\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}",
"{\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}",
"total += gcd2(gcd1,l)",
"total",
"gcd2(gcd1,l)",
"gcd2",
"gcd1",
"l",
"sc.close()",
"sc.close",
"sc",
"log( total )",
"log",
"total",
"String[] args",
"args",
"public static int gcd2(int m, int n) {\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n }",
"gcd2",
"{\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n }",
"int r;",
"r",
"while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }",
"n > 0",
"n",
"0",
"{\n r = m % n;\n m = n;\n n = r;\n }",
"r = m % n",
"r",
"m % n",
"m",
"n",
"m = n",
"m",
"n",
"n = r",
"n",
"r",
"return m;",
"m",
"int m",
"m",
"int n",
"n",
"public class Main {\n\tstatic void log(String s) {\n\t\tSystem.out.println(s);\n\t}\n\n\tstatic void log(int i) {\n\t\tSystem.out.println(i);\n\t}\n\n\tstatic void log(long i) {\n\t\tSystem.out.println(i);\n\t}\n\n\tstatic void log(double d) {\n\t\tSystem.out.printf(\"%.12f\\n\",d);\n\t}\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint k = sc.nextInt();\n\n\t\tlong total=0;\n\t\tint gcd1;\n\t\t\n\t\tfor(int i=1; i<=k; i++) {\n\n\t\t\tfor(int j=1; j<=k; j++) {\n\t\t\t\tgcd1 = gcd2(i,j);\n\t\t\t\tfor(int l=1 ;l<=k; l++) {\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tsc.close();\n\t\t\n\t\tlog( total );\n\t\t\n\t}\n\n public static int gcd2(int m, int n) {\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n }\n\t\n}",
"public class Main {\n\tstatic void log(String s) {\n\t\tSystem.out.println(s);\n\t}\n\n\tstatic void log(int i) {\n\t\tSystem.out.println(i);\n\t}\n\n\tstatic void log(long i) {\n\t\tSystem.out.println(i);\n\t}\n\n\tstatic void log(double d) {\n\t\tSystem.out.printf(\"%.12f\\n\",d);\n\t}\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint k = sc.nextInt();\n\n\t\tlong total=0;\n\t\tint gcd1;\n\t\t\n\t\tfor(int i=1; i<=k; i++) {\n\n\t\t\tfor(int j=1; j<=k; j++) {\n\t\t\t\tgcd1 = gcd2(i,j);\n\t\t\t\tfor(int l=1 ;l<=k; l++) {\n\t\t\t\t\ttotal += gcd2(gcd1,l);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tsc.close();\n\t\t\n\t\tlog( total );\n\t\t\n\t}\n\n public static int gcd2(int m, int n) {\n int r;\n while (n > 0) {\n r = m % n;\n m = n;\n n = r;\n }\n return m;\n }\n\t\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static void log(String s) {
System.out.println(s);
}
static void log(int i) {
System.out.println(i);
}
static void log(long i) {
System.out.println(i);
}
static void log(double d) {
System.out.printf("%.12f\n",d);
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
long total=0;
int gcd1;
for(int i=1; i<=k; i++) {
for(int j=1; j<=k; j++) {
gcd1 = gcd2(i,j);
for(int l=1 ;l<=k; l++) {
total += gcd2(gcd1,l);
}
}
}
sc.close();
log( total );
}
public static int gcd2(int m, int n) {
int r;
while (n > 0) {
r = m % n;
m = n;
n = r;
}
return m;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.