node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
18,
13,
13,
17,
17,
2,
2,
18,
13,
13,
17,
17,
30,
0,
18,
13,
13,
17,
0,
13,
2,
13,
18,
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,
21
],
[
21,
22
],
[
21,
23
],
[
8,
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
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
57,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
56,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
6,
92
],
[
92,
93
]
] |
[
"import java.util.Scanner;\nclass Main{\npublic static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \n int N = scan.nextInt();\n int FB[] = new int[N];\n long sum = 0;\n //配列にNまで代入\n for (int i = 0; i < N; i++){\n FB[i] = i + 1;\n }\n //文字へ置換\n for (int i = 0; i < N ; i++){\n if (FB[i] % 3 == 0 || FB[i] % 5 == 0){\n FB[i] = 0;\n }\n sum = sum + FB[i];\n }\n System.out.println(sum);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\npublic static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \n int N = scan.nextInt();\n int FB[] = new int[N];\n long sum = 0;\n //配列にNまで代入\n for (int i = 0; i < N; i++){\n FB[i] = i + 1;\n }\n //文字へ置換\n for (int i = 0; i < N ; i++){\n if (FB[i] % 3 == 0 || FB[i] % 5 == 0){\n FB[i] = 0;\n }\n sum = sum + FB[i];\n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \n int N = scan.nextInt();\n int FB[] = new int[N];\n long sum = 0;\n //配列にNまで代入\n for (int i = 0; i < N; i++){\n FB[i] = i + 1;\n }\n //文字へ置換\n for (int i = 0; i < N ; i++){\n if (FB[i] % 3 == 0 || FB[i] % 5 == 0){\n FB[i] = 0;\n }\n sum = sum + FB[i];\n }\n System.out.println(sum);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n \n int N = scan.nextInt();\n int FB[] = new int[N];\n long sum = 0;\n //配列にNまで代入\n for (int i = 0; i < N; i++){\n FB[i] = i + 1;\n }\n //文字へ置換\n for (int i = 0; i < N ; i++){\n if (FB[i] % 3 == 0 || FB[i] % 5 == 0){\n FB[i] = 0;\n }\n sum = sum + FB[i];\n }\n System.out.println(sum);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int FB[] = new int[N];",
"FB",
"new int[N]",
"N",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < N; i++){\n FB[i] = i + 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n FB[i] = i + 1;\n }",
"{\n FB[i] = i + 1;\n }",
"FB[i] = i + 1",
"FB[i]",
"FB",
"i",
"i + 1",
"i",
"1",
"for (int i = 0; i < N ; i++){\n if (FB[i] % 3 == 0 || FB[i] % 5 == 0){\n FB[i] = 0;\n }\n sum = sum + FB[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if (FB[i] % 3 == 0 || FB[i] % 5 == 0){\n FB[i] = 0;\n }\n sum = sum + FB[i];\n }",
"{\n if (FB[i] % 3 == 0 || FB[i] % 5 == 0){\n FB[i] = 0;\n }\n sum = sum + FB[i];\n }",
"if (FB[i] % 3 == 0 || FB[i] % 5 == 0){\n FB[i] = 0;\n }",
"FB[i] % 3 == 0 || FB[i] % 5 == 0",
"FB[i] % 3 == 0",
"FB[i] % 3",
"FB[i]",
"FB",
"i",
"3",
"0",
"FB[i] % 5 == 0",
"FB[i] % 5",
"FB[i]",
"FB",
"i",
"5",
"0",
"{\n FB[i] = 0;\n }",
"FB[i] = 0",
"FB[i]",
"FB",
"i",
"0",
"sum = sum + FB[i]",
"sum",
"sum + FB[i]",
"sum",
"FB[i]",
"FB",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
int FB[] = new int[N];
long sum = 0;
//配列にNまで代入
for (int i = 0; i < N; i++){
FB[i] = i + 1;
}
//文字へ置換
for (int i = 0; i < N ; i++){
if (FB[i] % 3 == 0 || FB[i] % 5 == 0){
FB[i] = 0;
}
sum = sum + FB[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,
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,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
29,
4,
18,
13,
29,
17,
12,
13,
30,
42,
2,
2,
13,
17,
2,
13,
18,
13,
13,
30,
0,
13,
4,
18,
4,
13,
17,
0,
13,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
20,
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
],
[
193,
11
],
[
193,
12
],
[
12,
13
],
[
12,
14
],
[
193,
15
],
[
15,
16
],
[
15,
17
],
[
193,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
20,
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
],
[
53,
54
],
[
53,
55
],
[
20,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
20,
60
],
[
60,
61
],
[
61,
62
],
[
18,
63
],
[
63,
64
],
[
193,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
65,
69
],
[
69,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
65,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
74,
80
],
[
80,
81
],
[
65,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
85,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
84,
97
],
[
97,
98
],
[
65,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
102,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
115,
119
],
[
112,
120
],
[
120,
121
],
[
120,
122
],
[
101,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
65,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
135,
136
],
[
65,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
144,
145
],
[
65,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
153,
154
],
[
65,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
162,
163
],
[
65,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
171,
172
],
[
65,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
177,
180
],
[
180,
181
],
[
65,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
65,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
0,
192
],
[
192,
193
],
[
192,
194
]
] |
[
"import java.io.*;\nimport java.math.BigDecimal;\nimport java.math.BigInteger;\n\npublic class Main {\n static Input in = new Input(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) throws IOException {\n int N = in.nextInt();\n\n long ans = 0;\n for (int i = 1; i <= N; i++)\n if (i % 3 != 0 && i % 5 != 0)\n ans += i;\n out.println(ans);\n\n out.flush();\n }\n\n static class Input {\n private BufferedReader br;\n private String[] buff;\n private int index = 0;\n\n Input(InputStream is) {\n br = new BufferedReader(new InputStreamReader(is));\n }\n String nextLine() {\n try {\n return br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }\n String next() {\n while (buff == null || index >= buff.length) {\n buff = nextLine().split(\" \");\n index = 0;\n }\n return buff[index++];\n }\n byte nextByte() {\n return Byte.parseByte(next());\n }\n short nextShort() {\n return Short.parseShort(next());\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n float nextFloat() {\n return Float.parseFloat(next());\n }\n double nextDouble() {\n return Double.parseDouble(next());\n }\n BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n BigDecimal nextBigDecimal() {\n return new BigDecimal(next());\n }\n }\n}\n",
"import java.io.*;",
"io.*",
"java",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n static Input in = new Input(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) throws IOException {\n int N = in.nextInt();\n\n long ans = 0;\n for (int i = 1; i <= N; i++)\n if (i % 3 != 0 && i % 5 != 0)\n ans += i;\n out.println(ans);\n\n out.flush();\n }\n\n static class Input {\n private BufferedReader br;\n private String[] buff;\n private int index = 0;\n\n Input(InputStream is) {\n br = new BufferedReader(new InputStreamReader(is));\n }\n String nextLine() {\n try {\n return br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }\n String next() {\n while (buff == null || index >= buff.length) {\n buff = nextLine().split(\" \");\n index = 0;\n }\n return buff[index++];\n }\n byte nextByte() {\n return Byte.parseByte(next());\n }\n short nextShort() {\n return Short.parseShort(next());\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n float nextFloat() {\n return Float.parseFloat(next());\n }\n double nextDouble() {\n return Double.parseDouble(next());\n }\n BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n BigDecimal nextBigDecimal() {\n return new BigDecimal(next());\n }\n }\n}",
"Main",
"static Input in = new Input(System.in);",
"in",
"new Input(System.in)",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public static void main(String[] args) throws IOException {\n int N = in.nextInt();\n\n long ans = 0;\n for (int i = 1; i <= N; i++)\n if (i % 3 != 0 && i % 5 != 0)\n ans += i;\n out.println(ans);\n\n out.flush();\n }",
"main",
"{\n int N = in.nextInt();\n\n long ans = 0;\n for (int i = 1; i <= N; i++)\n if (i % 3 != 0 && i % 5 != 0)\n ans += i;\n out.println(ans);\n\n out.flush();\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 ans += i;",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"if (i % 3 != 0 && i % 5 != 0)\n ans += i;",
"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",
"out.println(ans)",
"out.println",
"out",
"ans",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"static class Input {\n private BufferedReader br;\n private String[] buff;\n private int index = 0;\n\n Input(InputStream is) {\n br = new BufferedReader(new InputStreamReader(is));\n }\n String nextLine() {\n try {\n return br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }\n String next() {\n while (buff == null || index >= buff.length) {\n buff = nextLine().split(\" \");\n index = 0;\n }\n return buff[index++];\n }\n byte nextByte() {\n return Byte.parseByte(next());\n }\n short nextShort() {\n return Short.parseShort(next());\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n float nextFloat() {\n return Float.parseFloat(next());\n }\n double nextDouble() {\n return Double.parseDouble(next());\n }\n BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n BigDecimal nextBigDecimal() {\n return new BigDecimal(next());\n }\n }",
"Input",
"private BufferedReader br;",
"br",
"private String[] buff;",
"buff",
"private int index = 0;",
"index",
"0",
"Input(InputStream is) {\n br = new BufferedReader(new InputStreamReader(is));\n }",
"Input",
"{\n br = new BufferedReader(new InputStreamReader(is));\n }",
"br = new BufferedReader(new InputStreamReader(is))",
"br",
"new BufferedReader(new InputStreamReader(is))",
"InputStream is",
"is",
"String nextLine() {\n try {\n return br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"nextLine",
"{\n try {\n return br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"try {\n return 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 return br.readLine();\n }",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"return null;",
"null",
"String next() {\n while (buff == null || index >= buff.length) {\n buff = nextLine().split(\" \");\n index = 0;\n }\n return buff[index++];\n }",
"next",
"{\n while (buff == null || index >= buff.length) {\n buff = nextLine().split(\" \");\n index = 0;\n }\n return buff[index++];\n }",
"while (buff == null || index >= buff.length) {\n buff = nextLine().split(\" \");\n index = 0;\n }",
"buff == null || index >= buff.length",
"buff == null",
"buff",
"null",
"index >= buff.length",
"index",
"buff.length",
"buff",
"buff.length",
"{\n buff = nextLine().split(\" \");\n index = 0;\n }",
"buff = nextLine().split(\" \")",
"buff",
"nextLine().split(\" \")",
"nextLine().split",
"nextLine()",
"nextLine",
"\" \"",
"index = 0",
"index",
"0",
"return buff[index++];",
"buff[index++]",
"buff",
"index++",
"index",
"byte nextByte() {\n return Byte.parseByte(next());\n }",
"nextByte",
"{\n return Byte.parseByte(next());\n }",
"return Byte.parseByte(next());",
"Byte.parseByte(next())",
"Byte.parseByte",
"Byte",
"next()",
"next",
"short nextShort() {\n return Short.parseShort(next());\n }",
"nextShort",
"{\n return Short.parseShort(next());\n }",
"return Short.parseShort(next());",
"Short.parseShort(next())",
"Short.parseShort",
"Short",
"next()",
"next",
"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",
"float nextFloat() {\n return Float.parseFloat(next());\n }",
"nextFloat",
"{\n return Float.parseFloat(next());\n }",
"return Float.parseFloat(next());",
"Float.parseFloat(next())",
"Float.parseFloat",
"Float",
"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",
"BigInteger nextBigInteger() {\n return new BigInteger(next());\n }",
"nextBigInteger",
"{\n return new BigInteger(next());\n }",
"return new BigInteger(next());",
"new BigInteger(next())",
"BigDecimal nextBigDecimal() {\n return new BigDecimal(next());\n }",
"nextBigDecimal",
"{\n return new BigDecimal(next());\n }",
"return new BigDecimal(next());",
"new BigDecimal(next())",
"public class Main {\n static Input in = new Input(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) throws IOException {\n int N = in.nextInt();\n\n long ans = 0;\n for (int i = 1; i <= N; i++)\n if (i % 3 != 0 && i % 5 != 0)\n ans += i;\n out.println(ans);\n\n out.flush();\n }\n\n static class Input {\n private BufferedReader br;\n private String[] buff;\n private int index = 0;\n\n Input(InputStream is) {\n br = new BufferedReader(new InputStreamReader(is));\n }\n String nextLine() {\n try {\n return br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }\n String next() {\n while (buff == null || index >= buff.length) {\n buff = nextLine().split(\" \");\n index = 0;\n }\n return buff[index++];\n }\n byte nextByte() {\n return Byte.parseByte(next());\n }\n short nextShort() {\n return Short.parseShort(next());\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n float nextFloat() {\n return Float.parseFloat(next());\n }\n double nextDouble() {\n return Double.parseDouble(next());\n }\n BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n BigDecimal nextBigDecimal() {\n return new BigDecimal(next());\n }\n }\n}",
"public class Main {\n static Input in = new Input(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) throws IOException {\n int N = in.nextInt();\n\n long ans = 0;\n for (int i = 1; i <= N; i++)\n if (i % 3 != 0 && i % 5 != 0)\n ans += i;\n out.println(ans);\n\n out.flush();\n }\n\n static class Input {\n private BufferedReader br;\n private String[] buff;\n private int index = 0;\n\n Input(InputStream is) {\n br = new BufferedReader(new InputStreamReader(is));\n }\n String nextLine() {\n try {\n return br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }\n String next() {\n while (buff == null || index >= buff.length) {\n buff = nextLine().split(\" \");\n index = 0;\n }\n return buff[index++];\n }\n byte nextByte() {\n return Byte.parseByte(next());\n }\n short nextShort() {\n return Short.parseShort(next());\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n float nextFloat() {\n return Float.parseFloat(next());\n }\n double nextDouble() {\n return Double.parseDouble(next());\n }\n BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n BigDecimal nextBigDecimal() {\n return new BigDecimal(next());\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
public class Main {
static Input in = new Input(System.in);
static PrintWriter out = new PrintWriter(System.out);
public static void main(String[] args) throws IOException {
int N = in.nextInt();
long ans = 0;
for (int i = 1; i <= N; i++)
if (i % 3 != 0 && i % 5 != 0)
ans += i;
out.println(ans);
out.flush();
}
static class Input {
private BufferedReader br;
private String[] buff;
private int index = 0;
Input(InputStream is) {
br = new BufferedReader(new InputStreamReader(is));
}
String nextLine() {
try {
return br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
String next() {
while (buff == null || index >= buff.length) {
buff = nextLine().split(" ");
index = 0;
}
return buff[index++];
}
byte nextByte() {
return Byte.parseByte(next());
}
short nextShort() {
return Short.parseShort(next());
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
float nextFloat() {
return Float.parseFloat(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
BigInteger nextBigInteger() {
return new BigInteger(next());
}
BigDecimal nextBigDecimal() {
return new BigDecimal(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
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,
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
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
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\tpublic static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n long sum = 0;\n int num = Integer.parseInt(input.nextLine()); \t\n\n for (int i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }\n \n System.out.println(sum);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n long sum = 0;\n int num = Integer.parseInt(input.nextLine()); \t\n\n for (int i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }\n \n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n long sum = 0;\n int num = Integer.parseInt(input.nextLine()); \t\n\n for (int i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }\n \n System.out.println(sum);\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n long sum = 0;\n int num = Integer.parseInt(input.nextLine()); \t\n\n for (int i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }\n \n System.out.println(sum);\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"long sum = 0;",
"sum",
"0",
"int num = Integer.parseInt(input.nextLine());",
"num",
"Integer.parseInt(input.nextLine())",
"Integer.parseInt",
"Integer",
"input.nextLine()",
"input.nextLine",
"input",
"for (int i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += 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 \tsum += i;\n }\n }",
"{\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }",
"if (i % 3 != 0 && i % 5 != 0) {\n \tsum += 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 \tsum += i;\n }",
"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 Scanner input = new Scanner(System.in);\n long sum = 0;\n int num = Integer.parseInt(input.nextLine()); \t\n\n for (int i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }\n \n System.out.println(sum);\n }\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n long sum = 0;\n int num = Integer.parseInt(input.nextLine()); \t\n\n for (int i = 1; i <= num; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }\n \n System.out.println(sum);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
long sum = 0;
int num = Integer.parseInt(input.nextLine());
for (int i = 1; i <= num; i++) {
if (i % 3 != 0 && i % 5 != 0) {
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,
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,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
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
],
[
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
],
[
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
],
[
36,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
35,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
72,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
6,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong N = sc.nextInt();\n\n\t\tString FizzBuzz = \"\";\n\t\tlong SUM = 0;\n\n\n\t\tfor(int i = 1; i <= N; i++) {\n\n\t\t\tif(i % 3 ==0 && i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"FizzBuzz\";\n\t\t\t}\n\t\t\telse if(i % 3 ==0) {\n\t\t\t\tFizzBuzz = \"FiZZ\";\n\t\t\t}else if(i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"Buzz\";\n\t\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}\n\t\tSystem.out.println(SUM);\n\t\tsc.close();\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong N = sc.nextInt();\n\n\t\tString FizzBuzz = \"\";\n\t\tlong SUM = 0;\n\n\n\t\tfor(int i = 1; i <= N; i++) {\n\n\t\t\tif(i % 3 ==0 && i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"FizzBuzz\";\n\t\t\t}\n\t\t\telse if(i % 3 ==0) {\n\t\t\t\tFizzBuzz = \"FiZZ\";\n\t\t\t}else if(i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"Buzz\";\n\t\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}\n\t\tSystem.out.println(SUM);\n\t\tsc.close();\n}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong N = sc.nextInt();\n\n\t\tString FizzBuzz = \"\";\n\t\tlong SUM = 0;\n\n\n\t\tfor(int i = 1; i <= N; i++) {\n\n\t\t\tif(i % 3 ==0 && i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"FizzBuzz\";\n\t\t\t}\n\t\t\telse if(i % 3 ==0) {\n\t\t\t\tFizzBuzz = \"FiZZ\";\n\t\t\t}else if(i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"Buzz\";\n\t\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}\n\t\tSystem.out.println(SUM);\n\t\tsc.close();\n}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong N = sc.nextInt();\n\n\t\tString FizzBuzz = \"\";\n\t\tlong SUM = 0;\n\n\n\t\tfor(int i = 1; i <= N; i++) {\n\n\t\t\tif(i % 3 ==0 && i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"FizzBuzz\";\n\t\t\t}\n\t\t\telse if(i % 3 ==0) {\n\t\t\t\tFizzBuzz = \"FiZZ\";\n\t\t\t}else if(i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"Buzz\";\n\t\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}\n\t\tSystem.out.println(SUM);\n\t\tsc.close();\n}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String FizzBuzz = \"\";",
"FizzBuzz",
"\"\"",
"long SUM = 0;",
"SUM",
"0",
"for(int i = 1; i <= N; i++) {\n\n\t\t\tif(i % 3 ==0 && i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"FizzBuzz\";\n\t\t\t}\n\t\t\telse if(i % 3 ==0) {\n\t\t\t\tFizzBuzz = \"FiZZ\";\n\t\t\t}else if(i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"Buzz\";\n\t\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}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\n\t\t\tif(i % 3 ==0 && i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"FizzBuzz\";\n\t\t\t}\n\t\t\telse if(i % 3 ==0) {\n\t\t\t\tFizzBuzz = \"FiZZ\";\n\t\t\t}else if(i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"Buzz\";\n\t\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}",
"{\n\n\t\t\tif(i % 3 ==0 && i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"FizzBuzz\";\n\t\t\t}\n\t\t\telse if(i % 3 ==0) {\n\t\t\t\tFizzBuzz = \"FiZZ\";\n\t\t\t}else if(i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"Buzz\";\n\t\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\tFizzBuzz = \"FizzBuzz\";\n\t\t\t}\n\t\t\telse if(i % 3 ==0) {\n\t\t\t\tFizzBuzz = \"FiZZ\";\n\t\t\t}else if(i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"Buzz\";\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\tFizzBuzz = \"FizzBuzz\";\n\t\t\t}",
"FizzBuzz = \"FizzBuzz\"",
"FizzBuzz",
"\"FizzBuzz\"",
"if(i % 3 ==0) {\n\t\t\t\tFizzBuzz = \"FiZZ\";\n\t\t\t}else if(i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"Buzz\";\n\t\t\t}",
"i % 3 ==0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tFizzBuzz = \"FiZZ\";\n\t\t\t}",
"FizzBuzz = \"FiZZ\"",
"FizzBuzz",
"\"FiZZ\"",
"if(i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"Buzz\";\n\t\t\t}",
"i % 5 ==0",
"i % 5",
"i",
"5",
"0",
"{\n\t\t\t\tFizzBuzz = \"Buzz\";\n\t\t\t}",
"FizzBuzz = \"Buzz\"",
"FizzBuzz",
"\"Buzz\"",
"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",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong N = sc.nextInt();\n\n\t\tString FizzBuzz = \"\";\n\t\tlong SUM = 0;\n\n\n\t\tfor(int i = 1; i <= N; i++) {\n\n\t\t\tif(i % 3 ==0 && i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"FizzBuzz\";\n\t\t\t}\n\t\t\telse if(i % 3 ==0) {\n\t\t\t\tFizzBuzz = \"FiZZ\";\n\t\t\t}else if(i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"Buzz\";\n\t\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}\n\t\tSystem.out.println(SUM);\n\t\tsc.close();\n}\n}",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong N = sc.nextInt();\n\n\t\tString FizzBuzz = \"\";\n\t\tlong SUM = 0;\n\n\n\t\tfor(int i = 1; i <= N; i++) {\n\n\t\t\tif(i % 3 ==0 && i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"FizzBuzz\";\n\t\t\t}\n\t\t\telse if(i % 3 ==0) {\n\t\t\t\tFizzBuzz = \"FiZZ\";\n\t\t\t}else if(i % 5 ==0) {\n\t\t\t\tFizzBuzz = \"Buzz\";\n\t\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}\n\t\tSystem.out.println(SUM);\n\t\tsc.close();\n}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long N = sc.nextInt();
String FizzBuzz = "";
long SUM = 0;
for(int i = 1; i <= N; i++) {
if(i % 3 ==0 && i % 5 ==0) {
FizzBuzz = "FizzBuzz";
}
else if(i % 3 ==0) {
FizzBuzz = "FiZZ";
}else if(i % 5 ==0) {
FizzBuzz = "Buzz";
}
if(i%3 !=0 && i % 5 !=0) {
SUM +=i;
}
}
System.out.println(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,
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.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n final int n = sc.nextInt();\n\n long ans = 0;\n\n for (int i = 0; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) ans += i;\n }\n\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 final Scanner sc = new Scanner(System.in);\n\n final int n = sc.nextInt();\n\n long ans = 0;\n\n for (int i = 0; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) ans += i;\n }\n\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n final int n = sc.nextInt();\n\n long ans = 0;\n\n for (int i = 0; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) ans += i;\n }\n\n System.out.println(ans);\n }",
"main",
"{\n final Scanner sc = new Scanner(System.in);\n\n final int n = sc.nextInt();\n\n long ans = 0;\n\n for (int i = 0; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) ans += i;\n }\n\n System.out.println(ans);\n }",
"final Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final 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 % 3 != 0 && i % 5 != 0) ans += i;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (i % 3 != 0 && i % 5 != 0) ans += i;\n }",
"{\n if (i % 3 != 0 && i % 5 != 0) ans += i;\n }",
"if (i % 3 != 0 && i % 5 != 0) 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\n public static void main(String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n final int n = sc.nextInt();\n\n long ans = 0;\n\n for (int i = 0; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) ans += i;\n }\n\n System.out.println(ans);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n final int n = sc.nextInt();\n\n long ans = 0;\n\n for (int i = 0; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) 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) {
final Scanner sc = new Scanner(System.in);
final int n = sc.nextInt();
long ans = 0;
for (int i = 0; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) ans += i;
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
17,
41,
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,
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,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
84,
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
],
[
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
],
[
38,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
38,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
38,
69
],
[
69,
70
],
[
69,
71
],
[
11,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
11,
78
],
[
78,
79
],
[
79,
80
],
[
9,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] |
[
"import java.util.Scanner;\n\n\npublic class Main {\n\n\n\tfinal int MOD = 1000000007;\n\n\n\tpublic static void main(String[] args) {\n\n\t\tlong ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tint n = sc.nextInt();\n//\t\tint k = sc.nextInt();\n\n\t\t//-------------------------------------------------------------------------------------\n\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\tif(i%3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(i%5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tans += i;\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\n\tfinal int MOD = 1000000007;\n\n\n\tpublic static void main(String[] args) {\n\n\t\tlong ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tint n = sc.nextInt();\n//\t\tint k = sc.nextInt();\n\n\t\t//-------------------------------------------------------------------------------------\n\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\tif(i%3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(i%5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tans += i;\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n}",
"Main",
"final int MOD = 1000000007;",
"MOD",
"1000000007",
"public static void main(String[] args) {\n\n\t\tlong ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tint n = sc.nextInt();\n//\t\tint k = sc.nextInt();\n\n\t\t//-------------------------------------------------------------------------------------\n\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\tif(i%3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(i%5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tans += i;\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tlong ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tint n = sc.nextInt();\n//\t\tint k = sc.nextInt();\n\n\t\t//-------------------------------------------------------------------------------------\n\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\tif(i%3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(i%5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tans += i;\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}",
"long ans = 0;",
"ans",
"0",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"boolean f = false;",
"f",
"false",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"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\tif(i%3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(i%5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\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\t}\n\t\t\tif(i%3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(i%5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\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\t}\n\t\t\tif(i%3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(i%5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tans += i;\n\t\t}",
"if(i%3 == 0 && 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}",
"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;",
"ans += i",
"ans",
"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\n\tfinal int MOD = 1000000007;\n\n\n\tpublic static void main(String[] args) {\n\n\t\tlong ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tint n = sc.nextInt();\n//\t\tint k = sc.nextInt();\n\n\t\t//-------------------------------------------------------------------------------------\n\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\tif(i%3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(i%5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tans += i;\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\n\n\tfinal int MOD = 1000000007;\n\n\n\tpublic static void main(String[] args) {\n\n\t\tlong ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tint n = sc.nextInt();\n//\t\tint k = sc.nextInt();\n\n\t\t//-------------------------------------------------------------------------------------\n\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\tif(i%3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(i%5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tans += i;\n\t\t}\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
final int MOD = 1000000007;
public static void main(String[] args) {
long ans = 0;
Scanner sc = new Scanner(System.in);
boolean f = false;
int n = sc.nextInt();
// int k = sc.nextInt();
//-------------------------------------------------------------------------------------
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;
}
ans += i;
}
//-------------------------------------------------------------------------------------
// if(f) {
// System.out.println("Yes");
// } else {
// System.out.println("No");
// }
System.out.println(ans);
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
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,
40,
2,
2,
13,
17,
17,
40,
2,
2,
13,
17,
17,
30,
0,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
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
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
40,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
39,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
38,
57
],
[
57,
58
],
[
11,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
9,
65
],
[
65,
66
]
] |
[
"import java.util.Scanner;\nimport java.util.Arrays;\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long N=sc.nextLong();\n long Sum=0;\n long x=1;\n for(long i =1 ; i <=N; i++){\n if(!(x%3==0)&&!(x%5==0)){\n Sum+=x;\n }\n x++;\n }\n\n\n\n System.out.println(Sum);\n\n }\n }",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long N=sc.nextLong();\n long Sum=0;\n long x=1;\n for(long i =1 ; i <=N; i++){\n if(!(x%3==0)&&!(x%5==0)){\n Sum+=x;\n }\n x++;\n }\n\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 long N=sc.nextLong();\n long Sum=0;\n long x=1;\n for(long i =1 ; i <=N; i++){\n if(!(x%3==0)&&!(x%5==0)){\n Sum+=x;\n }\n x++;\n }\n\n\n\n System.out.println(Sum);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long N=sc.nextLong();\n long Sum=0;\n long x=1;\n for(long i =1 ; i <=N; i++){\n if(!(x%3==0)&&!(x%5==0)){\n Sum+=x;\n }\n x++;\n }\n\n\n\n System.out.println(Sum);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long N=sc.nextLong();",
"N",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long Sum=0;",
"Sum",
"0",
"long x=1;",
"x",
"1",
"for(long i =1 ; i <=N; i++){\n if(!(x%3==0)&&!(x%5==0)){\n Sum+=x;\n }\n x++;\n }",
"long i =1 ;",
"long i =1 ;",
"i",
"1",
"i <=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if(!(x%3==0)&&!(x%5==0)){\n Sum+=x;\n }\n x++;\n }",
"{\n if(!(x%3==0)&&!(x%5==0)){\n Sum+=x;\n }\n x++;\n }",
"if(!(x%3==0)&&!(x%5==0)){\n Sum+=x;\n }",
"!(x%3==0)&&!(x%5==0)",
"!(x%3==0)",
"(x%3==0)",
"x%3",
"x",
"3",
"0",
"!(x%5==0)",
"(x%5==0)",
"x%5",
"x",
"5",
"0",
"{\n Sum+=x;\n }",
"Sum+=x",
"Sum",
"x",
"x++",
"x",
"System.out.println(Sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"Sum",
"String[] args",
"args"
] |
import java.util.Scanner;
import java.util.Arrays;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long N=sc.nextLong();
long Sum=0;
long x=1;
for(long i =1 ; i <=N; i++){
if(!(x%3==0)&&!(x%5==0)){
Sum+=x;
}
x++;
}
System.out.println(Sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
17,
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,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
0,
13,
13,
4,
13,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
17,
14,
40,
13,
0,
13,
20,
41,
13,
4,
18,
13,
4,
13,
4,
18,
13,
14,
40,
13,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
4,
18,
18,
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,
13,
12,
13,
30,
29,
4,
18,
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,
29,
8,
2,
13,
17,
17,
2,
17,
4,
13,
2,
13,
2,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
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,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
338,
11
],
[
338,
12
],
[
12,
13
],
[
338,
14
],
[
14,
15
],
[
338,
16
],
[
16,
17
],
[
16,
18
],
[
338,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
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
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
44,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
42,
60
],
[
60,
61
],
[
60,
62
],
[
21,
63
],
[
63,
64
],
[
63,
65
],
[
338,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
68,
75
],
[
75,
76
],
[
75,
77
],
[
68,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
68,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
68,
89
],
[
89,
90
],
[
68,
91
],
[
91,
92
],
[
92,
93
],
[
68,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
103,
107
],
[
102,
108
],
[
68,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
66,
114
],
[
114,
115
],
[
338,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
116,
123
],
[
123,
124
],
[
338,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
125,
132
],
[
132,
133
],
[
338,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
136,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
134,
146
],
[
146,
147
],
[
338,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
338,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
338,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
338,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
338,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
338,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
187,
192
],
[
192,
193
],
[
192,
194
],
[
192,
195
],
[
195,
196
],
[
195,
197
],
[
183,
198
],
[
198,
199
],
[
183,
200
],
[
200,
201
],
[
338,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
206,
211
],
[
211,
212
],
[
211,
213
],
[
211,
214
],
[
214,
215
],
[
214,
216
],
[
202,
217
],
[
217,
218
],
[
202,
219
],
[
219,
220
],
[
338,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
225,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
236,
238
],
[
221,
239
],
[
239,
240
],
[
338,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
241,
245
],
[
245,
246
],
[
241,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
241,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
253,
259
],
[
259,
260
],
[
241,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
265,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
264,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
274,
281
],
[
281,
282
],
[
282,
283
],
[
282,
284
],
[
263,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
241,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
293,
296
],
[
296,
297
],
[
241,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
302,
305
],
[
305,
306
],
[
241,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
311,
314
],
[
314,
315
],
[
241,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
318,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
322,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
333,
334
],
[
318,
335
],
[
335,
336
],
[
0,
337
],
[
337,
338
],
[
337,
339
]
] |
[
"import java.util.*;\nimport java.io.*;\nimport java.math.*;\npublic class Main\n{\n //static double pi=3.14285714;\n public static void process()throws IOException\n {\n long n=nl();\n long sum=0;\n for(long i=1;i<=n;i++)\n {\n if(i%3!=0 && i%5!=0 && i%15!=0)\n sum+=i;\n }\n pn(sum);\n }\n\n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n\n // oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n if(!oj) sc=new AnotherReader(100);\n\n long s = System.currentTimeMillis();\n \n //int t=ni();\n //while(t-->0)\n process();\n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n\n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static boolean multipleTC=false;\n\n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}\n \n \n \n\n ",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main\n{\n //static double pi=3.14285714;\n public static void process()throws IOException\n {\n long n=nl();\n long sum=0;\n for(long i=1;i<=n;i++)\n {\n if(i%3!=0 && i%5!=0 && i%15!=0)\n sum+=i;\n }\n pn(sum);\n }\n\n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n\n // oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n if(!oj) sc=new AnotherReader(100);\n\n long s = System.currentTimeMillis();\n \n //int t=ni();\n //while(t-->0)\n process();\n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n\n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static boolean multipleTC=false;\n\n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"Main",
"static AnotherReader sc;",
"sc",
"static PrintWriter out;",
"out",
"static boolean multipleTC=false;",
"multipleTC",
"false",
"//static double pi=3.14285714;\n public static void process()throws IOException\n {\n long n=nl();\n long sum=0;\n for(long i=1;i<=n;i++)\n {\n if(i%3!=0 && i%5!=0 && i%15!=0)\n sum+=i;\n }\n pn(sum);\n }",
"process",
"{\n long n=nl();\n long sum=0;\n for(long i=1;i<=n;i++)\n {\n if(i%3!=0 && i%5!=0 && i%15!=0)\n sum+=i;\n }\n pn(sum);\n }",
"long n=nl();",
"n",
"nl()",
"nl",
"long sum=0;",
"sum",
"0",
"for(long i=1;i<=n;i++)\n {\n if(i%3!=0 && i%5!=0 && i%15!=0)\n sum+=i;\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 if(i%3!=0 && i%5!=0 && i%15!=0)\n sum+=i;\n }",
"if(i%3!=0 && i%5!=0 && i%15!=0)\n sum+=i;",
"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",
"sum+=i",
"sum",
"i",
"pn(sum)",
"pn",
"sum",
"public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n\n // oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n if(!oj) sc=new AnotherReader(100);\n\n long s = System.currentTimeMillis();\n \n //int t=ni();\n //while(t-->0)\n process();\n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }",
"main",
"{\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n\n // oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n if(!oj) sc=new AnotherReader(100);\n\n long s = System.currentTimeMillis();\n \n //int t=ni();\n //while(t-->0)\n process();\n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"sc=new AnotherReader()",
"sc",
"new AnotherReader()",
"boolean oj = true;",
"oj",
"true",
"if(!oj) sc=new AnotherReader(100);",
"!oj",
"oj",
"sc=new AnotherReader(100)",
"sc",
"new AnotherReader(100)",
"long s = System.currentTimeMillis();",
"s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"process()",
"process",
"out.flush()",
"out.flush",
"out",
"if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");",
"!oj",
"oj",
"System.out.println(System.currentTimeMillis()-s+\"ms\")",
"System.out.println",
"System.out",
"System",
"System.out",
"System.currentTimeMillis()-s+\"ms\"",
"System.currentTimeMillis()-s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"s",
"\"ms\"",
"System.out.close()",
"System.out.close",
"System.out",
"System",
"System.out",
"String[]args",
"args",
"static void pn(Object o){out.println(o);}",
"pn",
"{out.println(o);}",
"out.println(o)",
"out.println",
"out",
"o",
"Object o",
"o",
"static void p(Object o){out.print(o);}",
"p",
"{out.print(o);}",
"out.print(o)",
"out.print",
"out",
"o",
"Object o",
"o",
"static void pni(Object o){out.println(o);System.out.flush();}",
"pni",
"{out.println(o);System.out.flush();}",
"out.println(o)",
"out.println",
"out",
"o",
"System.out.flush()",
"System.out.flush",
"System.out",
"System",
"System.out",
"Object o",
"o",
"static int ni()throws IOException{return sc.nextInt();}",
"ni",
"{return sc.nextInt();}",
"return sc.nextInt();",
"sc.nextInt()",
"sc.nextInt",
"sc",
"static long nl()throws IOException{return sc.nextLong();}",
"nl",
"{return sc.nextLong();}",
"return sc.nextLong();",
"sc.nextLong()",
"sc.nextLong",
"sc",
"static double nd()throws IOException{return sc.nextDouble();}",
"nd",
"{return sc.nextDouble();}",
"return sc.nextDouble();",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"static String nln()throws IOException{return sc.nextLine();}",
"nln",
"{return sc.nextLine();}",
"return sc.nextLine();",
"sc.nextLine()",
"sc.nextLine",
"sc",
"static String nn()throws IOException{return sc.next();}",
"nn",
"{return sc.next();}",
"return sc.next();",
"sc.next()",
"sc.next",
"sc",
"static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}",
"gcd",
"{return (b==0)?a:gcd(b,a%b);}",
"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)throws IOException{return (b==0)?a:gcd(b,a%b);}",
"gcd",
"{return (b==0)?a:gcd(b,a%b);}",
"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 int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}",
"bit",
"{return (n==0)?0:(1+bit(n&(n-1)));}",
"return (n==0)?0:(1+bit(n&(n-1)));",
"(n==0)?0:(1+bit(n&(n-1)))",
"(n==0)",
"n",
"0",
"0",
"(1+bit(n&(n-1)))",
"1",
"bit(n&(n-1))",
"bit",
"n&(n-1)",
"n",
"(n-1)",
"n",
"1",
"long n",
"n",
" static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}",
"AnotherReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}",
"AnotherReader",
"{\n br=new BufferedReader(new InputStreamReader(System.in));}",
"br=new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}",
"AnotherReader",
"{\n br = new BufferedReader(new FileReader(\"input.txt\"));}",
"br = new BufferedReader(new FileReader(\"input.txt\"))",
"br",
"new BufferedReader(new FileReader(\"input.txt\"))",
"int a",
"a",
"String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); }",
"while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}",
"try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }",
"catch (IOException e){ e.printStackTrace(); }",
"IOException e",
"{ e.printStackTrace(); }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() throws IOException{\n return Integer.parseInt(next());}",
"nextInt",
"{\n return Integer.parseInt(next());}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() throws IOException\n {return Long.parseLong(next());}",
"nextLong",
"{return Long.parseLong(next());}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble()throws IOException { return Double.parseDouble(next()); }",
"nextDouble",
"{ return Double.parseDouble(next()); }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}",
"nextLine",
"{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}",
"String str = \"\";",
"str",
"\"\"",
"try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();}",
"catch (IOException e){\n e.printStackTrace();}",
"IOException e",
"{\n e.printStackTrace();}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main\n{\n //static double pi=3.14285714;\n public static void process()throws IOException\n {\n long n=nl();\n long sum=0;\n for(long i=1;i<=n;i++)\n {\n if(i%3!=0 && i%5!=0 && i%15!=0)\n sum+=i;\n }\n pn(sum);\n }\n\n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n\n // oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n if(!oj) sc=new AnotherReader(100);\n\n long s = System.currentTimeMillis();\n \n //int t=ni();\n //while(t-->0)\n process();\n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n\n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static boolean multipleTC=false;\n\n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"public class Main\n{\n //static double pi=3.14285714;\n public static void process()throws IOException\n {\n long n=nl();\n long sum=0;\n for(long i=1;i<=n;i++)\n {\n if(i%3!=0 && i%5!=0 && i%15!=0)\n sum+=i;\n }\n pn(sum);\n }\n\n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n\n // oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n if(!oj) sc=new AnotherReader(100);\n\n long s = System.currentTimeMillis();\n \n //int t=ni();\n //while(t-->0)\n process();\n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n\n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static boolean multipleTC=false;\n\n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"Main"
] |
import java.util.*;
import java.io.*;
import java.math.*;
public class Main
{
//static double pi=3.14285714;
public static void process()throws IOException
{
long n=nl();
long sum=0;
for(long i=1;i<=n;i++)
{
if(i%3!=0 && i%5!=0 && i%15!=0)
sum+=i;
}
pn(sum);
}
static AnotherReader sc;
static PrintWriter out;
public static void main(String[]args)throws IOException
{
out = new PrintWriter(System.out);
sc=new AnotherReader();
boolean oj = true;
// oj = System.getProperty("ONLINE_JUDGE") != null;
if(!oj) sc=new AnotherReader(100);
long s = System.currentTimeMillis();
//int t=ni();
//while(t-->0)
process();
out.flush();
if(!oj)
System.out.println(System.currentTimeMillis()-s+"ms");
System.out.close();
}
static void pn(Object o){out.println(o);}
static void p(Object o){out.print(o);}
static void pni(Object o){out.println(o);System.out.flush();}
static int ni()throws IOException{return sc.nextInt();}
static long nl()throws IOException{return sc.nextLong();}
static double nd()throws IOException{return sc.nextDouble();}
static String nln()throws IOException{return sc.nextLine();}
static String nn()throws IOException{return sc.next();}
static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}
static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}
static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}
static boolean multipleTC=false;
/////////////////////////////////////////////////////////////////////////////////////////////////////////
static class AnotherReader{BufferedReader br; StringTokenizer st;
AnotherReader()throws FileNotFoundException{
br=new BufferedReader(new InputStreamReader(System.in));}
AnotherReader(int a)throws FileNotFoundException{
br = new BufferedReader(new FileReader("input.txt"));}
String next()throws IOException{
while (st == null || !st.hasMoreElements()) {try{
st = new StringTokenizer(br.readLine());}
catch (IOException e){ e.printStackTrace(); }}
return st.nextToken(); } int nextInt() throws IOException{
return Integer.parseInt(next());}
long nextLong() throws IOException
{return Long.parseLong(next());}
double nextDouble()throws IOException { return Double.parseDouble(next()); }
String nextLine() throws IOException{ String str = ""; try{
str = br.readLine();} catch (IOException e){
e.printStackTrace();} return str;}}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
69,
8
],
[
69,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
19,
28
],
[
28,
29
],
[
28,
30
],
[
19,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
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
],
[
19,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
9,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"import java.util.*;\nimport java.io.*;\n\npublic class Main{\n public static void main(String[] args)throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n long N = Long.parseLong(br.readLine());\n long ans = 0;\n for(long i = 1; i <= N; i++){\n if(i%3 != 0 && i%5 != 0){\n ans += i;\n }\n }\n System.out.println(ans);\n }catch(Exception e){\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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n long N = Long.parseLong(br.readLine());\n long ans = 0;\n for(long i = 1; i <= N; i++){\n if(i%3 != 0 && i%5 != 0){\n ans += i;\n }\n }\n System.out.println(ans);\n }catch(Exception e){\n }\n }\n}",
"Main",
"public static void main(String[] args)throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n long N = Long.parseLong(br.readLine());\n long ans = 0;\n for(long i = 1; i <= N; i++){\n if(i%3 != 0 && i%5 != 0){\n ans += i;\n }\n }\n System.out.println(ans);\n }catch(Exception e){\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n long N = Long.parseLong(br.readLine());\n long ans = 0;\n for(long i = 1; i <= N; i++){\n if(i%3 != 0 && i%5 != 0){\n ans += i;\n }\n }\n System.out.println(ans);\n }catch(Exception e){\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try{\n long N = Long.parseLong(br.readLine());\n long ans = 0;\n for(long i = 1; i <= N; i++){\n if(i%3 != 0 && i%5 != 0){\n ans += i;\n }\n }\n System.out.println(ans);\n }catch(Exception e){\n }",
"catch(Exception e){\n }",
"Exception e",
"{\n }",
"{\n long N = Long.parseLong(br.readLine());\n long ans = 0;\n for(long 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 N = Long.parseLong(br.readLine());",
"N",
"Long.parseLong(br.readLine())",
"Long.parseLong",
"Long",
"br.readLine()",
"br.readLine",
"br",
"long ans = 0;",
"ans",
"0",
"for(long i = 1; i <= N; i++){\n if(i%3 != 0 && i%5 != 0){\n ans += 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 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",
"public class Main{\n public static void main(String[] args)throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n long N = Long.parseLong(br.readLine());\n long ans = 0;\n for(long i = 1; i <= N; i++){\n if(i%3 != 0 && i%5 != 0){\n ans += i;\n }\n }\n System.out.println(ans);\n }catch(Exception e){\n }\n }\n}",
"public class Main{\n public static void main(String[] args)throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n long N = Long.parseLong(br.readLine());\n long ans = 0;\n for(long i = 1; i <= N; i++){\n if(i%3 != 0 && i%5 != 0){\n ans += i;\n }\n }\n System.out.println(ans);\n }catch(Exception e){\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));
try{
long N = Long.parseLong(br.readLine());
long ans = 0;
for(long i = 1; i <= N; i++){
if(i%3 != 0 && i%5 != 0){
ans += i;
}
}
System.out.println(ans);
}catch(Exception e){
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
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,
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
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
26,
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
],
[
41,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint S = sc.nextInt();\n\t\tint list[] = new int[S + 1];\n\t\tlong ans = 0;\n\t\tfor (int i = 1; i < S + 1; i++) {\n\t\t\tif (i % 3 == 0 || i % 5 == 0) {\n\t\t\t} else {\n\t\t\t\tans = ans + i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\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 S = sc.nextInt();\n\t\tint list[] = new int[S + 1];\n\t\tlong ans = 0;\n\t\tfor (int i = 1; i < S + 1; i++) {\n\t\t\tif (i % 3 == 0 || i % 5 == 0) {\n\t\t\t} else {\n\t\t\t\tans = ans + i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint S = sc.nextInt();\n\t\tint list[] = new int[S + 1];\n\t\tlong ans = 0;\n\t\tfor (int i = 1; i < S + 1; i++) {\n\t\t\tif (i % 3 == 0 || i % 5 == 0) {\n\t\t\t} else {\n\t\t\t\tans = ans + i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint S = sc.nextInt();\n\t\tint list[] = new int[S + 1];\n\t\tlong ans = 0;\n\t\tfor (int i = 1; i < S + 1; i++) {\n\t\t\tif (i % 3 == 0 || i % 5 == 0) {\n\t\t\t} else {\n\t\t\t\tans = ans + i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int S = sc.nextInt();",
"S",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int list[] = new int[S + 1];",
"list",
"new int[S + 1]",
"S + 1",
"S",
"1",
"long ans = 0;",
"ans",
"0",
"for (int i = 1; i < S + 1; i++) {\n\t\t\tif (i % 3 == 0 || i % 5 == 0) {\n\t\t\t} else {\n\t\t\t\tans = ans + i;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < S + 1",
"i",
"S + 1",
"S",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tif (i % 3 == 0 || i % 5 == 0) {\n\t\t\t} else {\n\t\t\t\tans = ans + 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\tans = ans + i;\n\t\t\t}\n\t\t}",
"if (i % 3 == 0 || i % 5 == 0) {\n\t\t\t} else {\n\t\t\t\tans = ans + 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\tans = ans + i;\n\t\t\t}",
"ans = ans + i",
"ans",
"ans + i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint S = sc.nextInt();\n\t\tint list[] = new int[S + 1];\n\t\tlong ans = 0;\n\t\tfor (int i = 1; i < S + 1; i++) {\n\t\t\tif (i % 3 == 0 || i % 5 == 0) {\n\t\t\t} else {\n\t\t\t\tans = ans + i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint S = sc.nextInt();\n\t\tint list[] = new int[S + 1];\n\t\tlong ans = 0;\n\t\tfor (int i = 1; i < S + 1; i++) {\n\t\t\tif (i % 3 == 0 || i % 5 == 0) {\n\t\t\t} else {\n\t\t\t\tans = ans + i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int S = sc.nextInt();
int list[] = new int[S + 1];
long ans = 0;
for (int i = 1; i < S + 1; i++) {
if (i % 3 == 0 || i % 5 == 0) {
} else {
ans = ans + i;
}
}
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,
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
],
[
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
],
[
54,
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\npublic class Main {\n public static void main(String[] args) throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n \n long sum = 0L;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }\n \n System.out.print(sum);\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 \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n \n long sum = 0L;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }\n \n System.out.print(sum);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n \n long sum = 0L;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }\n \n System.out.print(sum);\n }",
"main",
"{\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n \n long sum = 0L;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }\n \n System.out.print(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 = 0L;",
"sum",
"0L",
"for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += 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 \tsum += i;\n }\n }",
"{\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }",
"if (i % 3 != 0 && i % 5 != 0) {\n \tsum += 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 \tsum += i;\n }",
"sum += i",
"sum",
"i",
"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) throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n \n long sum = 0L;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }\n \n System.out.print(sum);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n \n long sum = 0L;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n \tsum += i;\n }\n }\n \n System.out.print(sum);\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
long sum = 0L;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
System.out.print(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
13,
17,
41,
13,
2,
13,
17,
41,
13,
4,
13,
13,
41,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
17,
30,
41,
13,
2,
13,
13,
41,
13,
17,
29,
2,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
17,
30,
41,
13,
2,
17,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
40,
13,
30,
0,
13,
13,
40,
13,
40,
13,
29,
2,
2,
13,
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
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
34,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
6,
46
],
[
46,
47
],
[
4,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
51,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
58,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
48,
71
],
[
71,
72
],
[
4,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
76,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
89,
90
],
[
89,
91
],
[
83,
92
],
[
92,
93
],
[
92,
94
],
[
83,
95
],
[
95,
96
],
[
95,
97
],
[
83,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
104,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
103,
115
],
[
115,
116
],
[
116,
117
],
[
103,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
118,
124
],
[
124,
125
],
[
83,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
73,
132
],
[
132,
133
],
[
73,
134
],
[
134,
135
]
] |
[
"import java.util.*;\n\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n\n long quo = n / 15;\n long rem = n % 15;\n long laps = calcLaps(quo);\n long rems = calcRems(quo, rem);\n\n System.out.println(laps + rems);\n }\n\n private static long calcLaps(long quo) {\n if (quo == 0) {\n return 0;\n } else {\n long l = quo * quo;\n int aLap = 60;\n return aLap * l;\n }\n }\n\n private static long calcRems(long quo, long rem) {\n if (rem == 0) {\n return 0;\n } else {\n long lapBottom = 15 * quo;\n int i = 1;\n int valid = 0;\n int fraction = 0;\n\n while (i <= rem) {\n if (i % 3 == 0 || i % 5 == 0){\n i++;\n } else {\n fraction += i;\n valid++;\n i++;\n }\n }\n return lapBottom * valid + fraction;\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n\n long quo = n / 15;\n long rem = n % 15;\n long laps = calcLaps(quo);\n long rems = calcRems(quo, rem);\n\n System.out.println(laps + rems);\n }\n\n private static long calcLaps(long quo) {\n if (quo == 0) {\n return 0;\n } else {\n long l = quo * quo;\n int aLap = 60;\n return aLap * l;\n }\n }\n\n private static long calcRems(long quo, long rem) {\n if (rem == 0) {\n return 0;\n } else {\n long lapBottom = 15 * quo;\n int i = 1;\n int valid = 0;\n int fraction = 0;\n\n while (i <= rem) {\n if (i % 3 == 0 || i % 5 == 0){\n i++;\n } else {\n fraction += i;\n valid++;\n i++;\n }\n }\n return lapBottom * valid + fraction;\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n\n long quo = n / 15;\n long rem = n % 15;\n long laps = calcLaps(quo);\n long rems = calcRems(quo, rem);\n\n System.out.println(laps + rems);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long n = sc.nextInt();\n\n long quo = n / 15;\n long rem = n % 15;\n long laps = calcLaps(quo);\n long rems = calcRems(quo, rem);\n\n System.out.println(laps + rems);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long quo = n / 15;",
"quo",
"n / 15",
"n",
"15",
"long rem = n % 15;",
"rem",
"n % 15",
"n",
"15",
"long laps = calcLaps(quo);",
"laps",
"calcLaps(quo)",
"calcLaps",
"quo",
"long rems = calcRems(quo, rem);",
"rems",
"calcRems(quo, rem)",
"calcRems",
"quo",
"rem",
"System.out.println(laps + rems)",
"System.out.println",
"System.out",
"System",
"System.out",
"laps + rems",
"laps",
"rems",
"String[] args",
"args",
"private static long calcLaps(long quo) {\n if (quo == 0) {\n return 0;\n } else {\n long l = quo * quo;\n int aLap = 60;\n return aLap * l;\n }\n }",
"calcLaps",
"{\n if (quo == 0) {\n return 0;\n } else {\n long l = quo * quo;\n int aLap = 60;\n return aLap * l;\n }\n }",
"if (quo == 0) {\n return 0;\n } else {\n long l = quo * quo;\n int aLap = 60;\n return aLap * l;\n }",
"quo == 0",
"quo",
"0",
"{\n return 0;\n }",
"return 0;",
"0",
"{\n long l = quo * quo;\n int aLap = 60;\n return aLap * l;\n }",
"long l = quo * quo;",
"l",
"quo * quo",
"quo",
"quo",
"int aLap = 60;",
"aLap",
"60",
"return aLap * l;",
"aLap * l",
"aLap",
"l",
"long quo",
"quo",
"private static long calcRems(long quo, long rem) {\n if (rem == 0) {\n return 0;\n } else {\n long lapBottom = 15 * quo;\n int i = 1;\n int valid = 0;\n int fraction = 0;\n\n while (i <= rem) {\n if (i % 3 == 0 || i % 5 == 0){\n i++;\n } else {\n fraction += i;\n valid++;\n i++;\n }\n }\n return lapBottom * valid + fraction;\n }\n }",
"calcRems",
"{\n if (rem == 0) {\n return 0;\n } else {\n long lapBottom = 15 * quo;\n int i = 1;\n int valid = 0;\n int fraction = 0;\n\n while (i <= rem) {\n if (i % 3 == 0 || i % 5 == 0){\n i++;\n } else {\n fraction += i;\n valid++;\n i++;\n }\n }\n return lapBottom * valid + fraction;\n }\n }",
"if (rem == 0) {\n return 0;\n } else {\n long lapBottom = 15 * quo;\n int i = 1;\n int valid = 0;\n int fraction = 0;\n\n while (i <= rem) {\n if (i % 3 == 0 || i % 5 == 0){\n i++;\n } else {\n fraction += i;\n valid++;\n i++;\n }\n }\n return lapBottom * valid + fraction;\n }",
"rem == 0",
"rem",
"0",
"{\n return 0;\n }",
"return 0;",
"0",
"{\n long lapBottom = 15 * quo;\n int i = 1;\n int valid = 0;\n int fraction = 0;\n\n while (i <= rem) {\n if (i % 3 == 0 || i % 5 == 0){\n i++;\n } else {\n fraction += i;\n valid++;\n i++;\n }\n }\n return lapBottom * valid + fraction;\n }",
"long lapBottom = 15 * quo;",
"lapBottom",
"15 * quo",
"15",
"quo",
"int i = 1;",
"i",
"1",
"int valid = 0;",
"valid",
"0",
"int fraction = 0;",
"fraction",
"0",
"while (i <= rem) {\n if (i % 3 == 0 || i % 5 == 0){\n i++;\n } else {\n fraction += i;\n valid++;\n i++;\n }\n }",
"i <= rem",
"i",
"rem",
"{\n if (i % 3 == 0 || i % 5 == 0){\n i++;\n } else {\n fraction += i;\n valid++;\n i++;\n }\n }",
"if (i % 3 == 0 || i % 5 == 0){\n i++;\n } else {\n fraction += i;\n valid++;\n 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 i++;\n }",
"i++",
"i",
"{\n fraction += i;\n valid++;\n i++;\n }",
"fraction += i",
"fraction",
"i",
"valid++",
"valid",
"i++",
"i",
"return lapBottom * valid + fraction;",
"lapBottom * valid + fraction",
"lapBottom * valid",
"lapBottom",
"valid",
"fraction",
"long quo",
"quo",
"long rem",
"rem"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextInt();
long quo = n / 15;
long rem = n % 15;
long laps = calcLaps(quo);
long rems = calcRems(quo, rem);
System.out.println(laps + rems);
}
private static long calcLaps(long quo) {
if (quo == 0) {
return 0;
} else {
long l = quo * quo;
int aLap = 60;
return aLap * l;
}
}
private static long calcRems(long quo, long rem) {
if (rem == 0) {
return 0;
} else {
long lapBottom = 15 * quo;
int i = 1;
int valid = 0;
int fraction = 0;
while (i <= rem) {
if (i % 3 == 0 || i % 5 == 0){
i++;
} else {
fraction += i;
valid++;
i++;
}
}
return lapBottom * valid + fraction;
}
}
}
|
[
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;\n\npublic class Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n long N = scan.nextInt();\n long total = 0;\n \n for(int i = 0; N != i; N--){\n if(N%3 != 0&&N%5 != 0){\n total += N;\n }\n }\n System.out.print(total);\n }\n }\n\n\n\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n long N = scan.nextInt();\n long total = 0;\n \n for(int i = 0; N != i; N--){\n if(N%3 != 0&&N%5 != 0){\n total += N;\n }\n }\n System.out.print(total);\n }\n }",
"Main",
"public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n long N = scan.nextInt();\n long total = 0;\n \n for(int i = 0; N != i; N--){\n if(N%3 != 0&&N%5 != 0){\n total += N;\n }\n }\n System.out.print(total);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n long N = scan.nextInt();\n long total = 0;\n \n for(int i = 0; N != i; N--){\n if(N%3 != 0&&N%5 != 0){\n total += N;\n }\n }\n System.out.print(total);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long total = 0;",
"total",
"0",
"for(int i = 0; N != i; N--){\n if(N%3 != 0&&N%5 != 0){\n total += N;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"N != i",
"N",
"i",
"N--",
"N--",
"N",
"{\n if(N%3 != 0&&N%5 != 0){\n total += N;\n }\n }",
"{\n if(N%3 != 0&&N%5 != 0){\n total += N;\n }\n }",
"if(N%3 != 0&&N%5 != 0){\n total += N;\n }",
"N%3 != 0&&N%5 != 0",
"N%3 != 0",
"N%3",
"N",
"3",
"0",
"N%5 != 0",
"N%5",
"N",
"5",
"0",
"{\n total += N;\n }",
"total += N",
"total",
"N",
"System.out.print(total)",
"System.out.print",
"System.out",
"System",
"System.out",
"total",
"String args[]",
"args",
"public class Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n long N = scan.nextInt();\n long total = 0;\n \n for(int i = 0; N != i; N--){\n if(N%3 != 0&&N%5 != 0){\n total += N;\n }\n }\n System.out.print(total);\n }\n }",
"public class Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n long N = scan.nextInt();\n long total = 0;\n \n for(int i = 0; N != i; N--){\n if(N%3 != 0&&N%5 != 0){\n total += N;\n }\n }\n System.out.print(total);\n }\n }",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
long N = scan.nextInt();
long total = 0;
for(int i = 0; N != i; N--){
if(N%3 != 0&&N%5 != 0){
total += N;
}
}
System.out.print(total);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
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
],
[
70,
8
],
[
70,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
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
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
11,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
9,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"import java.util.*;\nimport java.math.BigInteger;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n \tBigInteger sum = BigInteger.valueOf(0);\n\t\tfor(int i=1;i<=a;i++){\n\t\t\tif(i%3!=0&&i%5!=0) {\n\t\t\t\tsum=sum.add(BigInteger.valueOf(i));\n\t\t\t}\n }\n System.out.println(sum);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n \tBigInteger sum = BigInteger.valueOf(0);\n\t\tfor(int i=1;i<=a;i++){\n\t\t\tif(i%3!=0&&i%5!=0) {\n\t\t\t\tsum=sum.add(BigInteger.valueOf(i));\n\t\t\t}\n }\n System.out.println(sum);\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 \tBigInteger sum = BigInteger.valueOf(0);\n\t\tfor(int i=1;i<=a;i++){\n\t\t\tif(i%3!=0&&i%5!=0) {\n\t\t\t\tsum=sum.add(BigInteger.valueOf(i));\n\t\t\t}\n }\n System.out.println(sum);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n \tBigInteger sum = BigInteger.valueOf(0);\n\t\tfor(int i=1;i<=a;i++){\n\t\t\tif(i%3!=0&&i%5!=0) {\n\t\t\t\tsum=sum.add(BigInteger.valueOf(i));\n\t\t\t}\n }\n System.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",
"BigInteger sum = BigInteger.valueOf(0);",
"sum",
"BigInteger.valueOf(0)",
"BigInteger.valueOf",
"BigInteger",
"0",
"for(int i=1;i<=a;i++){\n\t\t\tif(i%3!=0&&i%5!=0) {\n\t\t\t\tsum=sum.add(BigInteger.valueOf(i));\n\t\t\t}\n }",
"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\tsum=sum.add(BigInteger.valueOf(i));\n\t\t\t}\n }",
"{\n\t\t\tif(i%3!=0&&i%5!=0) {\n\t\t\t\tsum=sum.add(BigInteger.valueOf(i));\n\t\t\t}\n }",
"if(i%3!=0&&i%5!=0) {\n\t\t\t\tsum=sum.add(BigInteger.valueOf(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=sum.add(BigInteger.valueOf(i));\n\t\t\t}",
"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\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n \tBigInteger sum = BigInteger.valueOf(0);\n\t\tfor(int i=1;i<=a;i++){\n\t\t\tif(i%3!=0&&i%5!=0) {\n\t\t\t\tsum=sum.add(BigInteger.valueOf(i));\n\t\t\t}\n }\n System.out.println(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 a = sc.nextInt();\n \tBigInteger sum = BigInteger.valueOf(0);\n\t\tfor(int i=1;i<=a;i++){\n\t\t\tif(i%3!=0&&i%5!=0) {\n\t\t\t\tsum=sum.add(BigInteger.valueOf(i));\n\t\t\t}\n }\n System.out.println(sum);\n\t}\n}",
"Main"
] |
import java.util.*;
import java.math.BigInteger;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
BigInteger sum = BigInteger.valueOf(0);
for(int i=1;i<=a;i++){
if(i%3!=0&&i%5!=0) {
sum=sum.add(BigInteger.valueOf(i));
}
}
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,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
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
],
[
80,
11
],
[
80,
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
],
[
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
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
14,
60
],
[
60,
61
],
[
60,
62
],
[
14,
63
],
[
63,
64
],
[
63,
65
],
[
63,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
14,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
12,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] |
[
"\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tList<Integer> list = new ArrayList<>();\n\n\t\tfor ( int i = 1; i <= n; i ++){\n\t\t\tif (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} else {\n\t\t\t\tlist.add(i);\n\t\t\t}\n\t\t}\n\n\t\tlong sum = 0;\n\t\tfor (int f : list){\n\t\t\tsum += f;\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t}\n\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tList<Integer> list = new ArrayList<>();\n\n\t\tfor ( int i = 1; i <= n; i ++){\n\t\t\tif (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} else {\n\t\t\t\tlist.add(i);\n\t\t\t}\n\t\t}\n\n\t\tlong sum = 0;\n\t\tfor (int f : list){\n\t\t\tsum += f;\n\t\t}\n\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 n = sc.nextInt();\n\t\tList<Integer> list = new ArrayList<>();\n\n\t\tfor ( int i = 1; i <= n; i ++){\n\t\t\tif (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} else {\n\t\t\t\tlist.add(i);\n\t\t\t}\n\t\t}\n\n\t\tlong sum = 0;\n\t\tfor (int f : list){\n\t\t\tsum += f;\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tList<Integer> list = new ArrayList<>();\n\n\t\tfor ( int i = 1; i <= n; i ++){\n\t\t\tif (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} else {\n\t\t\t\tlist.add(i);\n\t\t\t}\n\t\t}\n\n\t\tlong sum = 0;\n\t\tfor (int f : list){\n\t\t\tsum += f;\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"List<Integer> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"for ( int i = 1; i <= n; i ++){\n\t\t\tif (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} else {\n\t\t\t\tlist.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){\n\t\t\t\tcontinue;\n\t\t\t} else if (i % 5 == 0){\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tlist.add(i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (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} else {\n\t\t\t\tlist.add(i);\n\t\t\t}\n\t\t}",
"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} else {\n\t\t\t\tlist.add(i);\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} else {\n\t\t\t\tlist.add(i);\n\t\t\t}",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"{\n\t\t\t\tlist.add(i);\n\t\t\t}",
"list.add(i)",
"list.add",
"list",
"i",
"long sum = 0;",
"sum",
"0",
"for (int f : list){\n\t\t\tsum += f;\n\t\t}",
"int f",
"list",
"{\n\t\t\tsum += f;\n\t\t}",
"{\n\t\t\tsum += f;\n\t\t}",
"sum += f",
"sum",
"f",
"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 n = sc.nextInt();\n\t\tList<Integer> list = new ArrayList<>();\n\n\t\tfor ( int i = 1; i <= n; i ++){\n\t\t\tif (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} else {\n\t\t\t\tlist.add(i);\n\t\t\t}\n\t\t}\n\n\t\tlong sum = 0;\n\t\tfor (int f : list){\n\t\t\tsum += f;\n\t\t}\n\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 n = sc.nextInt();\n\t\tList<Integer> list = new ArrayList<>();\n\n\t\tfor ( int i = 1; i <= n; i ++){\n\t\t\tif (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} else {\n\t\t\t\tlist.add(i);\n\t\t\t}\n\t\t}\n\n\t\tlong sum = 0;\n\t\tfor (int f : list){\n\t\t\tsum += f;\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t}\n\n}",
"Main"
] |
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
List<Integer> list = new ArrayList<>();
for ( int i = 1; i <= n; i ++){
if (i % 3 == 0){
continue;
} else if (i % 5 == 0){
continue;
} else {
list.add(i);
}
}
long sum = 0;
for (int f : list){
sum += f;
}
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,
2,
13,
17,
41,
13,
2,
13,
17,
41,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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
],
[
74,
5
],
[
74,
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
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
47,
62
],
[
62,
63
],
[
62,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong(),x = 0;\n long b = a / 15;\n long c = a / 5;\n long d = a / 3;\n for (int i = 1; i <= a; i++) {\n if(i % 3 == 0)continue;\n if(i % 5 == 0)continue;\n x += i;\n }\n System.out.println(x);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong(),x = 0;\n long b = a / 15;\n long c = a / 5;\n long d = a / 3;\n for (int i = 1; i <= a; i++) {\n if(i % 3 == 0)continue;\n if(i % 5 == 0)continue;\n x += i;\n }\n System.out.println(x);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong(),x = 0;\n long b = a / 15;\n long c = a / 5;\n long d = a / 3;\n for (int i = 1; i <= a; i++) {\n if(i % 3 == 0)continue;\n if(i % 5 == 0)continue;\n x += i;\n }\n System.out.println(x);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong(),x = 0;\n long b = a / 15;\n long c = a / 5;\n long d = a / 3;\n for (int i = 1; i <= a; i++) {\n if(i % 3 == 0)continue;\n if(i % 5 == 0)continue;\n x += i;\n }\n System.out.println(x);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong()",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"x = 0;",
"x",
"0",
"long b = a / 15;",
"b",
"a / 15",
"a",
"15",
"long c = a / 5;",
"c",
"a / 5",
"a",
"5",
"long d = a / 3;",
"d",
"a / 3",
"a",
"3",
"for (int i = 1; i <= a; i++) {\n if(i % 3 == 0)continue;\n if(i % 5 == 0)continue;\n x += i;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= a",
"i",
"a",
"i++",
"i++",
"i",
"{\n if(i % 3 == 0)continue;\n if(i % 5 == 0)continue;\n x += i;\n }",
"{\n if(i % 3 == 0)continue;\n if(i % 5 == 0)continue;\n x += i;\n }",
"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;",
"x += i",
"x",
"i",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong(),x = 0;\n long b = a / 15;\n long c = a / 5;\n long d = a / 3;\n for (int i = 1; i <= a; i++) {\n if(i % 3 == 0)continue;\n if(i % 5 == 0)continue;\n x += i;\n }\n System.out.println(x);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong(),x = 0;\n long b = a / 15;\n long c = a / 5;\n long d = a / 3;\n for (int i = 1; i <= a; i++) {\n if(i % 3 == 0)continue;\n if(i % 5 == 0)continue;\n x += i;\n }\n System.out.println(x);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long a = sc.nextLong(),x = 0;
long b = a / 15;
long c = a / 5;
long d = a / 3;
for (int i = 1; i <= a; i++) {
if(i % 3 == 0)continue;
if(i % 5 == 0)continue;
x += i;
}
System.out.println(x);
}
}
|
[
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,
2,
13,
17,
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
],
[
63,
5
],
[
63,
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
],
[
30,
31
],
[
30,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
38,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] |
[
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tlong n \t= Long.parseLong(scanner.nextLine());\n\t\tlong ans = 0;\n\n\t\tfor(long j = 1; j < n + 1; j++) {\n\n\t\t\tif(j % 3 != 0 && j % 5 != 0) {\n\n\t\t\t\tans += j;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\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 scanner = new Scanner(System.in);\n\n\t\tlong n \t= Long.parseLong(scanner.nextLine());\n\t\tlong ans = 0;\n\n\t\tfor(long j = 1; j < n + 1; j++) {\n\n\t\t\tif(j % 3 != 0 && j % 5 != 0) {\n\n\t\t\t\tans += j;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tlong n \t= Long.parseLong(scanner.nextLine());\n\t\tlong ans = 0;\n\n\t\tfor(long j = 1; j < n + 1; j++) {\n\n\t\t\tif(j % 3 != 0 && j % 5 != 0) {\n\n\t\t\t\tans += j;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n\n\t}",
"main",
"{\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tlong n \t= Long.parseLong(scanner.nextLine());\n\t\tlong ans = 0;\n\n\t\tfor(long j = 1; j < n + 1; j++) {\n\n\t\t\tif(j % 3 != 0 && j % 5 != 0) {\n\n\t\t\t\tans += j;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"long n \t= Long.parseLong(scanner.nextLine());",
"n",
"Long.parseLong(scanner.nextLine())",
"Long.parseLong",
"Long",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"long ans = 0;",
"ans",
"0",
"for(long j = 1; j < n + 1; j++) {\n\n\t\t\tif(j % 3 != 0 && j % 5 != 0) {\n\n\t\t\t\tans += j;\n\n\t\t\t}\n\n\t\t}",
"long j = 1;",
"long j = 1;",
"j",
"1",
"j < n + 1",
"j",
"n + 1",
"n",
"1",
"j++",
"j++",
"j",
"{\n\n\t\t\tif(j % 3 != 0 && j % 5 != 0) {\n\n\t\t\t\tans += j;\n\n\t\t\t}\n\n\t\t}",
"{\n\n\t\t\tif(j % 3 != 0 && j % 5 != 0) {\n\n\t\t\t\tans += j;\n\n\t\t\t}\n\n\t\t}",
"if(j % 3 != 0 && j % 5 != 0) {\n\n\t\t\t\tans += j;\n\n\t\t\t}",
"j % 3 != 0 && j % 5 != 0",
"j % 3 != 0",
"j % 3",
"j",
"3",
"0",
"j % 5 != 0",
"j % 5",
"j",
"5",
"0",
"{\n\n\t\t\t\tans += j;\n\n\t\t\t}",
"ans += j",
"ans",
"j",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tlong n \t= Long.parseLong(scanner.nextLine());\n\t\tlong ans = 0;\n\n\t\tfor(long j = 1; j < n + 1; j++) {\n\n\t\t\tif(j % 3 != 0 && j % 5 != 0) {\n\n\t\t\t\tans += j;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tlong n \t= Long.parseLong(scanner.nextLine());\n\t\tlong ans = 0;\n\n\t\tfor(long j = 1; j < n + 1; j++) {\n\n\t\t\tif(j % 3 != 0 && j % 5 != 0) {\n\n\t\t\t\tans += j;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
long n = Long.parseLong(scanner.nextLine());
long ans = 0;
for(long j = 1; j < n + 1; j++) {
if(j % 3 != 0 && j % 5 != 0) {
ans += j;
}
}
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,
41,
13,
2,
13,
17,
41,
13,
2,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
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
],
[
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
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
6,
63
],
[
63,
64
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long ans = 0;\n\n for (int n = 1; n <= N; n++) {\n int a = n % 3;\n int b = n % 5;\n if (a != 0 && b != 0) {\n ans = ans + n;\n }\n }\n \n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long ans = 0;\n\n for (int n = 1; n <= N; n++) {\n int a = n % 3;\n int b = n % 5;\n if (a != 0 && b != 0) {\n ans = ans + n;\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 int N = sc.nextInt();\n long ans = 0;\n\n for (int n = 1; n <= N; n++) {\n int a = n % 3;\n int b = n % 5;\n if (a != 0 && b != 0) {\n ans = ans + n;\n }\n }\n \n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long ans = 0;\n\n for (int n = 1; n <= N; n++) {\n int a = n % 3;\n int b = n % 5;\n if (a != 0 && b != 0) {\n ans = ans + n;\n }\n }\n \n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ans = 0;",
"ans",
"0",
"for (int n = 1; n <= N; n++) {\n int a = n % 3;\n int b = n % 5;\n if (a != 0 && b != 0) {\n ans = ans + n;\n }\n }",
"int n = 1;",
"int n = 1;",
"n",
"1",
"n <= N",
"n",
"N",
"n++",
"n++",
"n",
"{\n int a = n % 3;\n int b = n % 5;\n if (a != 0 && b != 0) {\n ans = ans + n;\n }\n }",
"{\n int a = n % 3;\n int b = n % 5;\n if (a != 0 && b != 0) {\n ans = ans + n;\n }\n }",
"int a = n % 3;",
"a",
"n % 3",
"n",
"3",
"int b = n % 5;",
"b",
"n % 5",
"n",
"5",
"if (a != 0 && b != 0) {\n ans = ans + n;\n }",
"a != 0 && b != 0",
"a != 0",
"a",
"0",
"b != 0",
"b",
"0",
"{\n ans = ans + n;\n }",
"ans = ans + n",
"ans",
"ans + n",
"ans",
"n",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
long ans = 0;
for (int n = 1; n <= N; n++) {
int a = n % 3;
int b = n % 5;
if (a != 0 && b != 0) {
ans = ans + n;
}
}
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,
2,
13,
17,
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,
4,
18,
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
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
35,
47
],
[
35,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n \t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong cnt =0;\n\t\tfor (long i = 1; i < N+1; i++) {\n\t\t\tif (i%3==0||i%5==0) {\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tcnt += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t\tsc.close();\n }\t\n\t\t\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n \t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong cnt =0;\n\t\tfor (long i = 1; i < N+1; i++) {\n\t\t\tif (i%3==0||i%5==0) {\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tcnt += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t\tsc.close();\n }\t\n\t\t\n}",
"Main",
"public static void main(String[] args){\n \t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong cnt =0;\n\t\tfor (long i = 1; i < N+1; i++) {\n\t\t\tif (i%3==0||i%5==0) {\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tcnt += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t\tsc.close();\n }",
"main",
"{\n \t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong cnt =0;\n\t\tfor (long i = 1; i < N+1; i++) {\n\t\t\tif (i%3==0||i%5==0) {\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tcnt += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t\tsc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long cnt =0;",
"cnt",
"0",
"for (long i = 1; i < N+1; i++) {\n\t\t\tif (i%3==0||i%5==0) {\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tcnt += i;\n\t\t\t}\n\t\t}",
"long i = 1;",
"long i = 1;",
"i",
"1",
"i < N+1",
"i",
"N+1",
"N",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tif (i%3==0||i%5==0) {\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tcnt += i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i%3==0||i%5==0) {\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tcnt += i;\n\t\t\t}\n\t\t}",
"if (i%3==0||i%5==0) {\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tcnt += 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\t\n\t\t\t}",
"{\n\t\t\t\tcnt += i;\n\t\t\t}",
"cnt += i",
"cnt",
"i",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n \t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong cnt =0;\n\t\tfor (long i = 1; i < N+1; i++) {\n\t\t\tif (i%3==0||i%5==0) {\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tcnt += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t\tsc.close();\n }\t\n\t\t\n}",
"public class Main {\n\tpublic static void main(String[] args){\n \t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong cnt =0;\n\t\tfor (long i = 1; i < N+1; i++) {\n\t\t\tif (i%3==0||i%5==0) {\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tcnt += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t\tsc.close();\n }\t\n\t\t\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
long cnt =0;
for (long i = 1; i < N+1; i++) {
if (i%3==0||i%5==0) {
}else{
cnt += i;
}
}
System.out.println(cnt);
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,
2,
13,
17,
17,
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
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
33,
52
],
[
52,
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.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sn = new Scanner(System.in);\n \n long n = sn.nextLong();\n long sum = 0;\n \n for(long i = 1; i <= n; i++) {\n if((i % 3) == 0 || (i % 5) == 0 || (i % 15) == 0) {\n } else {\n sum += i;\n }\n }\n \n System.out.print(sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sn = new Scanner(System.in);\n \n long n = sn.nextLong();\n long sum = 0;\n \n for(long i = 1; i <= n; i++) {\n if((i % 3) == 0 || (i % 5) == 0 || (i % 15) == 0) {\n } else {\n sum += i;\n }\n }\n \n System.out.print(sum);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sn = new Scanner(System.in);\n \n long n = sn.nextLong();\n long sum = 0;\n \n for(long i = 1; i <= n; i++) {\n if((i % 3) == 0 || (i % 5) == 0 || (i % 15) == 0) {\n } else {\n sum += i;\n }\n }\n \n System.out.print(sum);\n }",
"main",
"{\n Scanner sn = new Scanner(System.in);\n \n long n = sn.nextLong();\n long sum = 0;\n \n for(long i = 1; i <= n; i++) {\n if((i % 3) == 0 || (i % 5) == 0 || (i % 15) == 0) {\n } else {\n sum += i;\n }\n }\n \n System.out.print(sum);\n }",
"Scanner sn = new Scanner(System.in);",
"sn",
"new Scanner(System.in)",
"long n = sn.nextLong();",
"n",
"sn.nextLong()",
"sn.nextLong",
"sn",
"long sum = 0;",
"sum",
"0",
"for(long i = 1; i <= n; i++) {\n if((i % 3) == 0 || (i % 5) == 0 || (i % 15) == 0) {\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 || (i % 15) == 0) {\n } else {\n sum += i;\n }\n }",
"{\n if((i % 3) == 0 || (i % 5) == 0 || (i % 15) == 0) {\n } else {\n sum += i;\n }\n }",
"if((i % 3) == 0 || (i % 5) == 0 || (i % 15) == 0) {\n } else {\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 }",
"{\n sum += i;\n }",
"sum += i",
"sum",
"i",
"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) throws Exception {\n Scanner sn = new Scanner(System.in);\n \n long n = sn.nextLong();\n long sum = 0;\n \n for(long i = 1; i <= n; i++) {\n if((i % 3) == 0 || (i % 5) == 0 || (i % 15) == 0) {\n } else {\n sum += i;\n }\n }\n \n System.out.print(sum);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sn = new Scanner(System.in);\n \n long n = sn.nextLong();\n long sum = 0;\n \n for(long i = 1; i <= n; i++) {\n if((i % 3) == 0 || (i % 5) == 0 || (i % 15) == 0) {\n } else {\n sum += i;\n }\n }\n \n System.out.print(sum);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sn = new Scanner(System.in);
long n = sn.nextLong();
long sum = 0;
for(long i = 1; i <= n; i++) {
if((i % 3) == 0 || (i % 5) == 0 || (i % 15) == 0) {
} else {
sum += i;
}
}
System.out.print(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,
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,
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
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
8,
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
],
[
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.io.*;\n\npublic class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br =\n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString str=br.readLine();\n\t\tlong sum=0;\n\t\tlong num1=Long.parseLong(str);\n\t\t\n\t\tfor(long i=0;i<=num1;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\n\t\tSystem.out.println(sum);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br =\n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString str=br.readLine();\n\t\tlong sum=0;\n\t\tlong num1=Long.parseLong(str);\n\t\t\n\t\tfor(long i=0;i<=num1;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\n\t\tSystem.out.println(sum);\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br =\n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString str=br.readLine();\n\t\tlong sum=0;\n\t\tlong num1=Long.parseLong(str);\n\t\t\n\t\tfor(long i=0;i<=num1;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\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\tBufferedReader br =\n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString str=br.readLine();\n\t\tlong sum=0;\n\t\tlong num1=Long.parseLong(str);\n\t\t\n\t\tfor(long i=0;i<=num1;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\n\t\tSystem.out.println(sum);\n\t}",
"BufferedReader br =\n\t\tnew BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str=br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"long sum=0;",
"sum",
"0",
"long num1=Long.parseLong(str);",
"num1",
"Long.parseLong(str)",
"Long.parseLong",
"Long",
"str",
"for(long i=0;i<=num1;i++){\n\t\t\tif(i%3!=0&&i%5!=0){\n\t\t\t\tsum+=i;\n\t\t\t}\n\t\t}",
"long i=0;",
"long i=0;",
"i",
"0",
"i<=num1",
"i",
"num1",
"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",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br =\n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString str=br.readLine();\n\t\tlong sum=0;\n\t\tlong num1=Long.parseLong(str);\n\t\t\n\t\tfor(long i=0;i<=num1;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\n\t\tSystem.out.println(sum);\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br =\n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString str=br.readLine();\n\t\tlong sum=0;\n\t\tlong num1=Long.parseLong(str);\n\t\t\n\t\tfor(long i=0;i<=num1;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\n\t\tSystem.out.println(sum);\n\t}\n}",
"Main"
] |
import java.io.*;
public class Main
{
public static void main(String[] args)throws IOException
{
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
long sum=0;
long num1=Long.parseLong(str);
for(long i=0;i<=num1;i++){
if(i%3!=0&&i%5!=0){
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,
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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long N = sc.nextLong();\n long ans = 0;\n //int[] a = new int[N];\n for(int i=1; i<=N; i++){\n //if(i%3!=0 && i%5!=0){\n if(i%3==0 || i%5==0){\n continue;\n } else {\n ans+=i;\n }\n //a[i] = sc.nextInt();\n //if(i%3==0 && i%5==0){\n //a[i]=\"FizzBuzz\";\n //} else if(i%3==0) {\n //a[i]=\"Fizz\";\n //} else if(i%5==0) {\n //a[i]=\"Buzz\";\n //} else {\n //a[i]=String.valueOf(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 long N = sc.nextLong();\n long ans = 0;\n //int[] a = new int[N];\n for(int i=1; i<=N; i++){\n //if(i%3!=0 && i%5!=0){\n if(i%3==0 || i%5==0){\n continue;\n } else {\n ans+=i;\n }\n //a[i] = sc.nextInt();\n //if(i%3==0 && i%5==0){\n //a[i]=\"FizzBuzz\";\n //} else if(i%3==0) {\n //a[i]=\"Fizz\";\n //} else if(i%5==0) {\n //a[i]=\"Buzz\";\n //} else {\n //a[i]=String.valueOf(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 long N = sc.nextLong();\n long ans = 0;\n //int[] a = new int[N];\n for(int i=1; i<=N; i++){\n //if(i%3!=0 && i%5!=0){\n if(i%3==0 || i%5==0){\n continue;\n } else {\n ans+=i;\n }\n //a[i] = sc.nextInt();\n //if(i%3==0 && i%5==0){\n //a[i]=\"FizzBuzz\";\n //} else if(i%3==0) {\n //a[i]=\"Fizz\";\n //} else if(i%5==0) {\n //a[i]=\"Buzz\";\n //} else {\n //a[i]=String.valueOf(i);\n //}\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long N = sc.nextLong();\n long ans = 0;\n //int[] a = new int[N];\n for(int i=1; i<=N; i++){\n //if(i%3!=0 && i%5!=0){\n if(i%3==0 || i%5==0){\n continue;\n } else {\n ans+=i;\n }\n //a[i] = sc.nextInt();\n //if(i%3==0 && i%5==0){\n //a[i]=\"FizzBuzz\";\n //} else if(i%3==0) {\n //a[i]=\"Fizz\";\n //} else if(i%5==0) {\n //a[i]=\"Buzz\";\n //} else {\n //a[i]=String.valueOf(i);\n //}\n }\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 = 0;",
"ans",
"0",
"for(int i=1; i<=N; i++){\n //if(i%3!=0 && i%5!=0){\n if(i%3==0 || i%5==0){\n continue;\n } else {\n ans+=i;\n }\n //a[i] = sc.nextInt();\n //if(i%3==0 && i%5==0){\n //a[i]=\"FizzBuzz\";\n //} else if(i%3==0) {\n //a[i]=\"Fizz\";\n //} else if(i%5==0) {\n //a[i]=\"Buzz\";\n //} else {\n //a[i]=String.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 if(i%3==0 || i%5==0){\n continue;\n } else {\n ans+=i;\n }\n //a[i] = sc.nextInt();\n //if(i%3==0 && i%5==0){\n //a[i]=\"FizzBuzz\";\n //} else if(i%3==0) {\n //a[i]=\"Fizz\";\n //} else if(i%5==0) {\n //a[i]=\"Buzz\";\n //} else {\n //a[i]=String.valueOf(i);\n //}\n }",
"{\n //if(i%3!=0 && i%5!=0){\n if(i%3==0 || i%5==0){\n continue;\n } else {\n ans+=i;\n }\n //a[i] = sc.nextInt();\n //if(i%3==0 && i%5==0){\n //a[i]=\"FizzBuzz\";\n //} else if(i%3==0) {\n //a[i]=\"Fizz\";\n //} else if(i%5==0) {\n //a[i]=\"Buzz\";\n //} else {\n //a[i]=String.valueOf(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(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long N = sc.nextLong();\n long ans = 0;\n //int[] a = new int[N];\n for(int i=1; i<=N; i++){\n //if(i%3!=0 && i%5!=0){\n if(i%3==0 || i%5==0){\n continue;\n } else {\n ans+=i;\n }\n //a[i] = sc.nextInt();\n //if(i%3==0 && i%5==0){\n //a[i]=\"FizzBuzz\";\n //} else if(i%3==0) {\n //a[i]=\"Fizz\";\n //} else if(i%5==0) {\n //a[i]=\"Buzz\";\n //} else {\n //a[i]=String.valueOf(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 long N = sc.nextLong();\n long ans = 0;\n //int[] a = new int[N];\n for(int i=1; i<=N; i++){\n //if(i%3!=0 && i%5!=0){\n if(i%3==0 || i%5==0){\n continue;\n } else {\n ans+=i;\n }\n //a[i] = sc.nextInt();\n //if(i%3==0 && i%5==0){\n //a[i]=\"FizzBuzz\";\n //} else if(i%3==0) {\n //a[i]=\"Fizz\";\n //} else if(i%5==0) {\n //a[i]=\"Buzz\";\n //} else {\n //a[i]=String.valueOf(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);
long N = sc.nextLong();
long ans = 0;
//int[] a = new int[N];
for(int i=1; i<=N; i++){
//if(i%3!=0 && i%5!=0){
if(i%3==0 || i%5==0){
continue;
} else {
ans+=i;
}
//a[i] = sc.nextInt();
//if(i%3==0 && i%5==0){
//a[i]="FizzBuzz";
//} else if(i%3==0) {
//a[i]="Fizz";
//} else if(i%5==0) {
//a[i]="Buzz";
//} else {
//a[i]=String.valueOf(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,
2,
2,
2,
17,
2,
13,
17,
2,
2,
13,
17,
17,
17,
41,
13,
2,
2,
2,
17,
2,
13,
17,
2,
2,
13,
17,
17,
17,
41,
13,
2,
2,
2,
17,
2,
13,
17,
2,
2,
13,
17,
17,
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
],
[
86,
5
],
[
86,
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
],
[
26,
28
],
[
28,
29
],
[
30,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
28,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
45,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
43,
55
],
[
8,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
60,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
58,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
78,
78
],
[
78,
79
],
[
78,
80
],
[
78,
81
],
[
76,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] |
[
"import java.util.Scanner;\npublic class Main\n{\n \tpublic static void main(String[] args)\n {\n \tScanner sc = new Scanner(System.in);\n \tlong a = sc.nextLong();\n \t\n \tlong result = a * (a + 1) / 2;\n \tlong san = 3 * (a / 3) * (a / 3 + 1) / 2;\n \tlong go = 5 * (a / 5) * (a / 5 + 1) / 2;\n \tlong juugo = 15 * (a / 15) * (a / 15 + 1) / 2;\n \t\n \tSystem.out.println(result - san - go + juugo);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n \tpublic static void main(String[] args)\n {\n \tScanner sc = new Scanner(System.in);\n \tlong a = sc.nextLong();\n \t\n \tlong result = a * (a + 1) / 2;\n \tlong san = 3 * (a / 3) * (a / 3 + 1) / 2;\n \tlong go = 5 * (a / 5) * (a / 5 + 1) / 2;\n \tlong juugo = 15 * (a / 15) * (a / 15 + 1) / 2;\n \t\n \tSystem.out.println(result - san - go + juugo);\n }\n}",
"Main",
"public static void main(String[] args)\n {\n \tScanner sc = new Scanner(System.in);\n \tlong a = sc.nextLong();\n \t\n \tlong result = a * (a + 1) / 2;\n \tlong san = 3 * (a / 3) * (a / 3 + 1) / 2;\n \tlong go = 5 * (a / 5) * (a / 5 + 1) / 2;\n \tlong juugo = 15 * (a / 15) * (a / 15 + 1) / 2;\n \t\n \tSystem.out.println(result - san - go + juugo);\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tlong a = sc.nextLong();\n \t\n \tlong result = a * (a + 1) / 2;\n \tlong san = 3 * (a / 3) * (a / 3 + 1) / 2;\n \tlong go = 5 * (a / 5) * (a / 5 + 1) / 2;\n \tlong juugo = 15 * (a / 15) * (a / 15 + 1) / 2;\n \t\n \tSystem.out.println(result - san - go + juugo);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long result = a * (a + 1) / 2;",
"result",
"a * (a + 1) / 2",
"a * (a + 1)",
"a",
"(a + 1)",
"a",
"1",
"2",
"long san = 3 * (a / 3) * (a / 3 + 1) / 2;",
"san",
"3 * (a / 3) * (a / 3 + 1) / 2",
"3 * (a / 3) * (a / 3 + 1)",
"3 * (a / 3) * (a / 3 + 1)",
"3",
"(a / 3)",
"a",
"3",
"(a / 3 + 1)",
"a / 3",
"a",
"3",
"1",
"2",
"long go = 5 * (a / 5) * (a / 5 + 1) / 2;",
"go",
"5 * (a / 5) * (a / 5 + 1) / 2",
"5 * (a / 5) * (a / 5 + 1)",
"5 * (a / 5) * (a / 5 + 1)",
"5",
"(a / 5)",
"a",
"5",
"(a / 5 + 1)",
"a / 5",
"a",
"5",
"1",
"2",
"long juugo = 15 * (a / 15) * (a / 15 + 1) / 2;",
"juugo",
"15 * (a / 15) * (a / 15 + 1) / 2",
"15 * (a / 15) * (a / 15 + 1)",
"15 * (a / 15) * (a / 15 + 1)",
"15",
"(a / 15)",
"a",
"15",
"(a / 15 + 1)",
"a / 15",
"a",
"15",
"1",
"2",
"System.out.println(result - san - go + juugo)",
"System.out.println",
"System.out",
"System",
"System.out",
"result - san - go + juugo",
"result - san - go",
"result - san - go",
"result",
"san",
"go",
"juugo",
"String[] args",
"args",
"public class Main\n{\n \tpublic static void main(String[] args)\n {\n \tScanner sc = new Scanner(System.in);\n \tlong a = sc.nextLong();\n \t\n \tlong result = a * (a + 1) / 2;\n \tlong san = 3 * (a / 3) * (a / 3 + 1) / 2;\n \tlong go = 5 * (a / 5) * (a / 5 + 1) / 2;\n \tlong juugo = 15 * (a / 15) * (a / 15 + 1) / 2;\n \t\n \tSystem.out.println(result - san - go + juugo);\n }\n}",
"public class Main\n{\n \tpublic static void main(String[] args)\n {\n \tScanner sc = new Scanner(System.in);\n \tlong a = sc.nextLong();\n \t\n \tlong result = a * (a + 1) / 2;\n \tlong san = 3 * (a / 3) * (a / 3 + 1) / 2;\n \tlong go = 5 * (a / 5) * (a / 5 + 1) / 2;\n \tlong juugo = 15 * (a / 15) * (a / 15 + 1) / 2;\n \t\n \tSystem.out.println(result - san - go + juugo);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
long a = sc.nextLong();
long result = a * (a + 1) / 2;
long san = 3 * (a / 3) * (a / 3 + 1) / 2;
long go = 5 * (a / 5) * (a / 5 + 1) / 2;
long juugo = 15 * (a / 15) * (a / 15 + 1) / 2;
System.out.println(result - san - go + juugo);
}
}
|
[
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,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
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
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
33,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"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 long sum = 0;\n\n for(int i=1;i<=N;i++){\n if(i%3==0) {\n sum += 0;\n } else if(i%5==0) {\n sum += 0;\n } else {\n sum += i;\n }\n }\n\n System.out.println(sum);\n sc.close();\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long sum = 0;\n\n for(int i=1;i<=N;i++){\n if(i%3==0) {\n sum += 0;\n } else if(i%5==0) {\n sum += 0;\n } else {\n sum += i;\n }\n }\n\n System.out.println(sum);\n sc.close();\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long sum = 0;\n\n for(int i=1;i<=N;i++){\n if(i%3==0) {\n sum += 0;\n } else if(i%5==0) {\n sum += 0;\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 int N = sc.nextInt();\n long sum = 0;\n\n for(int i=1;i<=N;i++){\n if(i%3==0) {\n sum += 0;\n } else if(i%5==0) {\n sum += 0;\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)",
"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) {\n sum += 0;\n } else if(i%5==0) {\n sum += 0;\n } else {\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) {\n sum += 0;\n } else if(i%5==0) {\n sum += 0;\n } else {\n sum += i;\n }\n }",
"{\n if(i%3==0) {\n sum += 0;\n } else if(i%5==0) {\n sum += 0;\n } else {\n sum += i;\n }\n }",
"if(i%3==0) {\n sum += 0;\n } else if(i%5==0) {\n sum += 0;\n } else {\n sum += i;\n }",
"i%3==0",
"i%3",
"i",
"3",
"0",
"{\n sum += 0;\n }",
"sum += 0",
"sum",
"0",
"if(i%5==0) {\n sum += 0;\n } else {\n sum += i;\n }",
"i%5==0",
"i%5",
"i",
"5",
"0",
"{\n sum += 0;\n }",
"sum += 0",
"sum",
"0",
"{\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\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long sum = 0;\n\n for(int i=1;i<=N;i++){\n if(i%3==0) {\n sum += 0;\n } else if(i%5==0) {\n sum += 0;\n } else {\n sum += i;\n }\n }\n\n System.out.println(sum);\n sc.close();\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long sum = 0;\n\n for(int i=1;i<=N;i++){\n if(i%3==0) {\n sum += 0;\n } else if(i%5==0) {\n sum += 0;\n } else {\n sum += i;\n }\n }\n\n System.out.println(sum);\n sc.close();\n }\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
long sum = 0;
for(int i=1;i<=N;i++){
if(i%3==0) {
sum += 0;
} else if(i%5==0) {
sum += 0;
} 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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
63,
8
],
[
63,
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
],
[
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
],
[
51,
53
],
[
11,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
9,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] |
[
"import java.util.*;\nimport java.io.*;\n \npublic class Main {\n public static void main (final String[] args) {\n final Scanner s = new Scanner(System.in);\n \tint num = Integer.parseInt(s.next());\n \n \tlong result = 0;\n \t\n \tfor(int i = 1; i <= num; i++) {\n \tif(i%3 != 0 && i%5 != 0) result += (long)i;\n }\n \t\n \tSystem.out.println(result);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main (final String[] args) {\n final Scanner s = new Scanner(System.in);\n \tint num = Integer.parseInt(s.next());\n \n \tlong result = 0;\n \t\n \tfor(int i = 1; i <= num; i++) {\n \tif(i%3 != 0 && i%5 != 0) result += (long)i;\n }\n \t\n \tSystem.out.println(result);\n }\n}",
"Main",
"public static void main (final String[] args) {\n final Scanner s = new Scanner(System.in);\n \tint num = Integer.parseInt(s.next());\n \n \tlong result = 0;\n \t\n \tfor(int i = 1; i <= num; i++) {\n \tif(i%3 != 0 && i%5 != 0) result += (long)i;\n }\n \t\n \tSystem.out.println(result);\n }",
"main",
"{\n final Scanner s = new Scanner(System.in);\n \tint num = Integer.parseInt(s.next());\n \n \tlong result = 0;\n \t\n \tfor(int i = 1; i <= num; i++) {\n \tif(i%3 != 0 && i%5 != 0) result += (long)i;\n }\n \t\n \tSystem.out.println(result);\n }",
"final Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int num = Integer.parseInt(s.next());",
"num",
"Integer.parseInt(s.next())",
"Integer.parseInt",
"Integer",
"s.next()",
"s.next",
"s",
"long result = 0;",
"result",
"0",
"for(int i = 1; i <= num; i++) {\n \tif(i%3 != 0 && i%5 != 0) result += (long)i;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= num",
"i",
"num",
"i++",
"i++",
"i",
"{\n \tif(i%3 != 0 && i%5 != 0) result += (long)i;\n }",
"{\n \tif(i%3 != 0 && i%5 != 0) result += (long)i;\n }",
"if(i%3 != 0 && i%5 != 0) result += (long)i;",
"i%3 != 0 && i%5 != 0",
"i%3 != 0",
"i%3",
"i",
"3",
"0",
"i%5 != 0",
"i%5",
"i",
"5",
"0",
"result += (long)i",
"result",
"(long)i",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"final String[] args",
"args",
"public class Main {\n public static void main (final String[] args) {\n final Scanner s = new Scanner(System.in);\n \tint num = Integer.parseInt(s.next());\n \n \tlong result = 0;\n \t\n \tfor(int i = 1; i <= num; i++) {\n \tif(i%3 != 0 && i%5 != 0) result += (long)i;\n }\n \t\n \tSystem.out.println(result);\n }\n}",
"public class Main {\n public static void main (final String[] args) {\n final Scanner s = new Scanner(System.in);\n \tint num = Integer.parseInt(s.next());\n \n \tlong result = 0;\n \t\n \tfor(int i = 1; i <= num; i++) {\n \tif(i%3 != 0 && i%5 != 0) result += (long)i;\n }\n \t\n \tSystem.out.println(result);\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
public static void main (final String[] args) {
final Scanner s = new Scanner(System.in);
int num = Integer.parseInt(s.next());
long result = 0;
for(int i = 1; i <= num; i++) {
if(i%3 != 0 && i%5 != 0) result += (long)i;
}
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,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
9,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
63,
5
],
[
63,
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
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
35,
47
],
[
47,
48
],
[
34,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] |
[
"import java.util.Scanner;\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\t\n\t\tlong a = 0;\n\t\tfor(int i=1;i<N+1;i++) {\n\t\t\tif(i%3==0||i%5==0) {\n\t\t\tcontinue;\n\t\t\t}\n\t\t\ta = a+i;\n\t\t}\n\t\tSystem.out.println(a);\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\t\n\t\tlong a = 0;\n\t\tfor(int i=1;i<N+1;i++) {\n\t\t\tif(i%3==0||i%5==0) {\n\t\t\tcontinue;\n\t\t\t}\n\t\t\ta = a+i;\n\t\t}\n\t\tSystem.out.println(a);\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\t\n\t\tlong a = 0;\n\t\tfor(int i=1;i<N+1;i++) {\n\t\t\tif(i%3==0||i%5==0) {\n\t\t\tcontinue;\n\t\t\t}\n\t\t\ta = a+i;\n\t\t}\n\t\tSystem.out.println(a);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\t\n\t\tlong a = 0;\n\t\tfor(int i=1;i<N+1;i++) {\n\t\t\tif(i%3==0||i%5==0) {\n\t\t\tcontinue;\n\t\t\t}\n\t\t\ta = a+i;\n\t\t}\n\t\tSystem.out.println(a);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long a = 0;",
"a",
"0",
"for(int i=1;i<N+1;i++) {\n\t\t\tif(i%3==0||i%5==0) {\n\t\t\tcontinue;\n\t\t\t}\n\t\t\ta = a+i;\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\tif(i%3==0||i%5==0) {\n\t\t\tcontinue;\n\t\t\t}\n\t\t\ta = a+i;\n\t\t}",
"{\n\t\t\tif(i%3==0||i%5==0) {\n\t\t\tcontinue;\n\t\t\t}\n\t\t\ta = a+i;\n\t\t}",
"if(i%3==0||i%5==0) {\n\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\tcontinue;\n\t\t\t}",
"continue;",
"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\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 a = 0;\n\t\tfor(int i=1;i<N+1;i++) {\n\t\t\tif(i%3==0||i%5==0) {\n\t\t\tcontinue;\n\t\t\t}\n\t\t\ta = a+i;\n\t\t}\n\t\tSystem.out.println(a);\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\t\n\t\tlong a = 0;\n\t\tfor(int i=1;i<N+1;i++) {\n\t\t\tif(i%3==0||i%5==0) {\n\t\t\tcontinue;\n\t\t\t}\n\t\t\ta = a+i;\n\t\t}\n\t\tSystem.out.println(a);\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 a = 0;
for(int i=1;i<N+1;i++) {
if(i%3==0||i%5==0) {
continue;
}
a = 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,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
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
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
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
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
59,
71
],
[
59,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
72,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\t\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong a =0;\n for(int i=0; i<=N; i++){\n if(i%3==0 && i%5==0){\n }else if(i%3==0 && i%5!=0){\n }else if(i%3!=0 && i%5==0){\n }else if(i%3!=0 || i%5!=0){\n a +=i;\t\t \n }\n }\n System.out.println(a);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong a =0;\n for(int i=0; i<=N; i++){\n if(i%3==0 && i%5==0){\n }else if(i%3==0 && i%5!=0){\n }else if(i%3!=0 && i%5==0){\n }else if(i%3!=0 || i%5!=0){\n a +=i;\t\t \n }\n }\n System.out.println(a);\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\tlong a =0;\n for(int i=0; i<=N; i++){\n if(i%3==0 && i%5==0){\n }else if(i%3==0 && i%5!=0){\n }else if(i%3!=0 && i%5==0){\n }else if(i%3!=0 || i%5!=0){\n a +=i;\t\t \n }\n }\n System.out.println(a);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong a =0;\n for(int i=0; i<=N; i++){\n if(i%3==0 && i%5==0){\n }else if(i%3==0 && i%5!=0){\n }else if(i%3!=0 && i%5==0){\n }else if(i%3!=0 || i%5!=0){\n a +=i;\t\t \n }\n }\n System.out.println(a);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long a =0;",
"a",
"0",
"for(int i=0; i<=N; i++){\n if(i%3==0 && i%5==0){\n }else if(i%3==0 && i%5!=0){\n }else if(i%3!=0 && i%5==0){\n }else if(i%3!=0 || i%5!=0){\n a +=i;\t\t \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 }else if(i%3==0 && i%5!=0){\n }else if(i%3!=0 && i%5==0){\n }else if(i%3!=0 || i%5!=0){\n a +=i;\t\t \n }\n }",
"{\n if(i%3==0 && i%5==0){\n }else if(i%3==0 && i%5!=0){\n }else if(i%3!=0 && i%5==0){\n }else if(i%3!=0 || i%5!=0){\n a +=i;\t\t \n }\n }",
"if(i%3==0 && i%5==0){\n }else if(i%3==0 && i%5!=0){\n }else if(i%3!=0 && i%5==0){\n }else if(i%3!=0 || i%5!=0){\n a +=i;\t\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 }",
"if(i%3==0 && i%5!=0){\n }else if(i%3!=0 && i%5==0){\n }else if(i%3!=0 || i%5!=0){\n a +=i;\t\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 }",
"if(i%3!=0 && i%5==0){\n }else if(i%3!=0 || i%5!=0){\n a +=i;\t\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 }",
"if(i%3!=0 || i%5!=0){\n a +=i;\t\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 a +=i;\t\t \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\t\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong a =0;\n for(int i=0; i<=N; i++){\n if(i%3==0 && i%5==0){\n }else if(i%3==0 && i%5!=0){\n }else if(i%3!=0 && i%5==0){\n }else if(i%3!=0 || i%5!=0){\n a +=i;\t\t \n }\n }\n System.out.println(a);\n\t}\n}",
"public class Main {\n\t\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong a =0;\n for(int i=0; i<=N; i++){\n if(i%3==0 && i%5==0){\n }else if(i%3==0 && i%5!=0){\n }else if(i%3!=0 && i%5==0){\n }else if(i%3!=0 || i%5!=0){\n a +=i;\t\t \n }\n }\n System.out.println(a);\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 a =0;
for(int i=0; i<=N; i++){
if(i%3==0 && i%5==0){
}else if(i%3==0 && i%5!=0){
}else if(i%3!=0 && i%5==0){
}else if(i%3!=0 || i%5!=0){
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,
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,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
164,
23
],
[
164,
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
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
51,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
26,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
24,
73
],
[
73,
74
],
[
164,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
75,
79
],
[
79,
80
],
[
75,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
75,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
90,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
100,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
89,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
75,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
122,
123
],
[
75,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
75,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
140,
141
],
[
75,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
148,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
144,
161
],
[
161,
162
],
[
0,
163
],
[
163,
164
],
[
163,
165
]
] |
[
"import java.io.BufferedReader;\n import java.io.IOException;\n import java.io.InputStreamReader;\n import java.lang.reflect.Array;\n import java.math.BigInteger;\n import java.util.*;\n import java.lang.*;\n\npublic class Main{\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 }\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 String nextLine(){\n String str=\"\";\n try{\n str=br.readLine();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) {\n FastReader in = new FastReader();\n long n=in.nextInt();\n long sum=0;\n for(long i=1;i<=n;i++){\n if(i%(long)3!=0 && i%5!=0){\n sum+=i;\n }\n }\n System.out.println(sum);\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.lang.reflect.Array;",
"Array",
"java.lang.reflect",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main{\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 }\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 String nextLine(){\n String str=\"\";\n try{\n str=br.readLine();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) {\n FastReader in = new FastReader();\n long n=in.nextInt();\n long sum=0;\n for(long i=1;i<=n;i++){\n if(i%(long)3!=0 && i%5!=0){\n sum+=i;\n }\n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n FastReader in = new FastReader();\n long n=in.nextInt();\n long sum=0;\n for(long i=1;i<=n;i++){\n if(i%(long)3!=0 && i%5!=0){\n sum+=i;\n }\n }\n System.out.println(sum);\n }",
"main",
"{\n FastReader in = new FastReader();\n long n=in.nextInt();\n long sum=0;\n for(long i=1;i<=n;i++){\n if(i%(long)3!=0 && i%5!=0){\n sum+=i;\n }\n }\n System.out.println(sum);\n }",
"FastReader in = new FastReader();",
"in",
"new FastReader()",
"long n=in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"long sum=0;",
"sum",
"0",
"for(long i=1;i<=n;i++){\n if(i%(long)3!=0 && i%5!=0){\n sum+=i;\n }\n }",
"long i=1;",
"long i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i%(long)3!=0 && i%5!=0){\n sum+=i;\n }\n }",
"{\n if(i%(long)3!=0 && i%5!=0){\n sum+=i;\n }\n }",
"if(i%(long)3!=0 && i%5!=0){\n sum+=i;\n }",
"i%(long)3!=0 && i%5!=0",
"i%(long)3!=0",
"i%(long)3",
"i",
"(long)3",
"0",
"i%5!=0",
"i%5",
"i",
"5",
"0",
"{\n sum+=i;\n }",
"sum+=i",
"sum",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next(){\n while(st==null || !st.hasMoreElements()){\n try{\n st=new StringTokenizer(br.readLine());\n }\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 String nextLine(){\n String str=\"\";\n try{\n str=br.readLine();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next(){\n while(st==null || !st.hasMoreElements()){\n try{\n st=new StringTokenizer(br.readLine());\n }\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 }\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 }\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 }\n catch(IOException e){\n e.printStackTrace();\n }\n }",
"try{\n st=new StringTokenizer(br.readLine());\n }\n catch(IOException e){\n e.printStackTrace();\n }",
"catch(IOException e){\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st=new StringTokenizer(br.readLine());\n }",
"st=new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt(){\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"Long nextLong(){\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble(){\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine(){\n String str=\"\";\n try{\n str=br.readLine();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str=\"\";\n try{\n str=br.readLine();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n return str;\n }",
"String str=\"\";",
"str",
"\"\"",
"try{\n str=br.readLine();\n }\n catch(IOException e){\n e.printStackTrace();\n }",
"catch(IOException e){\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str=br.readLine();\n }",
"str=br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main{\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 }\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 String nextLine(){\n String str=\"\";\n try{\n str=br.readLine();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) {\n FastReader in = new FastReader();\n long n=in.nextInt();\n long sum=0;\n for(long i=1;i<=n;i++){\n if(i%(long)3!=0 && i%5!=0){\n sum+=i;\n }\n }\n System.out.println(sum);\n }\n}",
"public class Main{\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 }\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 String nextLine(){\n String str=\"\";\n try{\n str=br.readLine();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) {\n FastReader in = new FastReader();\n long n=in.nextInt();\n long sum=0;\n for(long i=1;i<=n;i++){\n if(i%(long)3!=0 && i%5!=0){\n sum+=i;\n }\n }\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.math.BigInteger;
import java.util.*;
import java.lang.*;
public class Main{
static class FastReader{
BufferedReader br;
StringTokenizer st;
public FastReader(){
br = new BufferedReader(new InputStreamReader(System.in));
}
String next(){
while(st==null || !st.hasMoreElements()){
try{
st=new StringTokenizer(br.readLine());
}
catch(IOException e){
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt(){
return Integer.parseInt(next());
}
Long nextLong(){
return Long.parseLong(next());
}
double nextDouble(){
return Double.parseDouble(next());
}
String nextLine(){
String str="";
try{
str=br.readLine();
}
catch(IOException e){
e.printStackTrace();
}
return str;
}
}
public static void main(String[] args) {
FastReader in = new FastReader();
long n=in.nextInt();
long sum=0;
for(long i=1;i<=n;i++){
if(i%(long)3!=0 && i%5!=0){
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,
2,
13,
17,
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
] |
[
[
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
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
35,
47
],
[
47,
48
],
[
35,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
]
] |
[
"import java.util.*;\nclass Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n long n = input.nextLong();\n long ans = 0;\n for (int i = 1; i < n+1;i++){\n if (i%3 == 0 || i%5 == 0){\n continue;\n } else {\n ans += i;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n long n = input.nextLong();\n long ans = 0;\n for (int i = 1; i < n+1;i++){\n if (i%3 == 0 || i%5 == 0){\n continue;\n } else {\n ans += i;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n long n = input.nextLong();\n long ans = 0;\n for (int i = 1; i < n+1;i++){\n if (i%3 == 0 || i%5 == 0){\n continue;\n } else {\n ans += i;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n long n = input.nextLong();\n long ans = 0;\n for (int i = 1; i < n+1;i++){\n if (i%3 == 0 || i%5 == 0){\n continue;\n } else {\n ans += i;\n }\n }\n System.out.println(ans);\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"long n = input.nextLong();",
"n",
"input.nextLong()",
"input.nextLong",
"input",
"long ans = 0;",
"ans",
"0",
"for (int i = 1; i < n+1;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 < n+1",
"i",
"n+1",
"n",
"1",
"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(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
long n = input.nextLong();
long ans = 0;
for (int i = 1; i < n+1;i++){
if (i%3 == 0 || i%5 == 0){
continue;
} else {
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,
41,
13,
20,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
2,
2,
13,
17,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
2,
2,
13,
17,
17,
30,
0,
18,
13,
2,
13,
17,
17,
30,
0,
18,
13,
2,
13,
17,
4,
18,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
114,
5
],
[
114,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
27,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
43,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
56,
62
],
[
43,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
70,
76
],
[
63,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
84,
90
],
[
77,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
91,
102
],
[
102,
103
],
[
102,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
6,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString n = scanner.nextLine();\n\t\tlong result = 0;\n\t\tString[] fizzList = new String[Integer.parseInt(n)];\n\n\t\tfor(int i = 1; i <= Integer.parseInt(n); i++) {\n\t\t\tif(i % 3 == 0 && i % 5 ==0) {\n\t\t\t\tfizzList[i - 1] = \"FizzBuzz\";\n\t\t\t}else if(i % 3 == 0){\n\t\t\t\tfizzList[i - 1] = \"Fizz\";\n\t\t\t}else if(i % 5 == 0){\n\t\t\t\tfizzList[i - 1] = \"Buzz\";\n\t\t\t}else {\n\t\t\t\tfizzList[i - 1] = String.valueOf(i);\n\t\t\t\tresult += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\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 scanner = new Scanner(System.in);\n\t\tString n = scanner.nextLine();\n\t\tlong result = 0;\n\t\tString[] fizzList = new String[Integer.parseInt(n)];\n\n\t\tfor(int i = 1; i <= Integer.parseInt(n); i++) {\n\t\t\tif(i % 3 == 0 && i % 5 ==0) {\n\t\t\t\tfizzList[i - 1] = \"FizzBuzz\";\n\t\t\t}else if(i % 3 == 0){\n\t\t\t\tfizzList[i - 1] = \"Fizz\";\n\t\t\t}else if(i % 5 == 0){\n\t\t\t\tfizzList[i - 1] = \"Buzz\";\n\t\t\t}else {\n\t\t\t\tfizzList[i - 1] = String.valueOf(i);\n\t\t\t\tresult += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString n = scanner.nextLine();\n\t\tlong result = 0;\n\t\tString[] fizzList = new String[Integer.parseInt(n)];\n\n\t\tfor(int i = 1; i <= Integer.parseInt(n); i++) {\n\t\t\tif(i % 3 == 0 && i % 5 ==0) {\n\t\t\t\tfizzList[i - 1] = \"FizzBuzz\";\n\t\t\t}else if(i % 3 == 0){\n\t\t\t\tfizzList[i - 1] = \"Fizz\";\n\t\t\t}else if(i % 5 == 0){\n\t\t\t\tfizzList[i - 1] = \"Buzz\";\n\t\t\t}else {\n\t\t\t\tfizzList[i - 1] = String.valueOf(i);\n\t\t\t\tresult += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}",
"main",
"{\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString n = scanner.nextLine();\n\t\tlong result = 0;\n\t\tString[] fizzList = new String[Integer.parseInt(n)];\n\n\t\tfor(int i = 1; i <= Integer.parseInt(n); i++) {\n\t\t\tif(i % 3 == 0 && i % 5 ==0) {\n\t\t\t\tfizzList[i - 1] = \"FizzBuzz\";\n\t\t\t}else if(i % 3 == 0){\n\t\t\t\tfizzList[i - 1] = \"Fizz\";\n\t\t\t}else if(i % 5 == 0){\n\t\t\t\tfizzList[i - 1] = \"Buzz\";\n\t\t\t}else {\n\t\t\t\tfizzList[i - 1] = String.valueOf(i);\n\t\t\t\tresult += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String n = scanner.nextLine();",
"n",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"long result = 0;",
"result",
"0",
"String[] fizzList = new String[Integer.parseInt(n)];",
"fizzList",
"new String[Integer.parseInt(n)]",
"Integer.parseInt(n)",
"Integer.parseInt",
"Integer",
"n",
"for(int i = 1; i <= Integer.parseInt(n); i++) {\n\t\t\tif(i % 3 == 0 && i % 5 ==0) {\n\t\t\t\tfizzList[i - 1] = \"FizzBuzz\";\n\t\t\t}else if(i % 3 == 0){\n\t\t\t\tfizzList[i - 1] = \"Fizz\";\n\t\t\t}else if(i % 5 == 0){\n\t\t\t\tfizzList[i - 1] = \"Buzz\";\n\t\t\t}else {\n\t\t\t\tfizzList[i - 1] = String.valueOf(i);\n\t\t\t\tresult += i;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= Integer.parseInt(n)",
"i",
"Integer.parseInt(n)",
"Integer.parseInt",
"Integer",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(i % 3 == 0 && i % 5 ==0) {\n\t\t\t\tfizzList[i - 1] = \"FizzBuzz\";\n\t\t\t}else if(i % 3 == 0){\n\t\t\t\tfizzList[i - 1] = \"Fizz\";\n\t\t\t}else if(i % 5 == 0){\n\t\t\t\tfizzList[i - 1] = \"Buzz\";\n\t\t\t}else {\n\t\t\t\tfizzList[i - 1] = String.valueOf(i);\n\t\t\t\tresult += i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i % 3 == 0 && i % 5 ==0) {\n\t\t\t\tfizzList[i - 1] = \"FizzBuzz\";\n\t\t\t}else if(i % 3 == 0){\n\t\t\t\tfizzList[i - 1] = \"Fizz\";\n\t\t\t}else if(i % 5 == 0){\n\t\t\t\tfizzList[i - 1] = \"Buzz\";\n\t\t\t}else {\n\t\t\t\tfizzList[i - 1] = String.valueOf(i);\n\t\t\t\tresult += i;\n\t\t\t}\n\t\t}",
"if(i % 3 == 0 && i % 5 ==0) {\n\t\t\t\tfizzList[i - 1] = \"FizzBuzz\";\n\t\t\t}else if(i % 3 == 0){\n\t\t\t\tfizzList[i - 1] = \"Fizz\";\n\t\t\t}else if(i % 5 == 0){\n\t\t\t\tfizzList[i - 1] = \"Buzz\";\n\t\t\t}else {\n\t\t\t\tfizzList[i - 1] = String.valueOf(i);\n\t\t\t\tresult += 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\tfizzList[i - 1] = \"FizzBuzz\";\n\t\t\t}",
"fizzList[i - 1] = \"FizzBuzz\"",
"fizzList[i - 1]",
"fizzList",
"i - 1",
"i",
"1",
"\"FizzBuzz\"",
"if(i % 3 == 0){\n\t\t\t\tfizzList[i - 1] = \"Fizz\";\n\t\t\t}else if(i % 5 == 0){\n\t\t\t\tfizzList[i - 1] = \"Buzz\";\n\t\t\t}else {\n\t\t\t\tfizzList[i - 1] = String.valueOf(i);\n\t\t\t\tresult += i;\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tfizzList[i - 1] = \"Fizz\";\n\t\t\t}",
"fizzList[i - 1] = \"Fizz\"",
"fizzList[i - 1]",
"fizzList",
"i - 1",
"i",
"1",
"\"Fizz\"",
"if(i % 5 == 0){\n\t\t\t\tfizzList[i - 1] = \"Buzz\";\n\t\t\t}else {\n\t\t\t\tfizzList[i - 1] = String.valueOf(i);\n\t\t\t\tresult += i;\n\t\t\t}",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n\t\t\t\tfizzList[i - 1] = \"Buzz\";\n\t\t\t}",
"fizzList[i - 1] = \"Buzz\"",
"fizzList[i - 1]",
"fizzList",
"i - 1",
"i",
"1",
"\"Buzz\"",
"{\n\t\t\t\tfizzList[i - 1] = String.valueOf(i);\n\t\t\t\tresult += i;\n\t\t\t}",
"fizzList[i - 1] = String.valueOf(i)",
"fizzList[i - 1]",
"fizzList",
"i - 1",
"i",
"1",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"result += i",
"result",
"i",
"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\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString n = scanner.nextLine();\n\t\tlong result = 0;\n\t\tString[] fizzList = new String[Integer.parseInt(n)];\n\n\t\tfor(int i = 1; i <= Integer.parseInt(n); i++) {\n\t\t\tif(i % 3 == 0 && i % 5 ==0) {\n\t\t\t\tfizzList[i - 1] = \"FizzBuzz\";\n\t\t\t}else if(i % 3 == 0){\n\t\t\t\tfizzList[i - 1] = \"Fizz\";\n\t\t\t}else if(i % 5 == 0){\n\t\t\t\tfizzList[i - 1] = \"Buzz\";\n\t\t\t}else {\n\t\t\t\tfizzList[i - 1] = String.valueOf(i);\n\t\t\t\tresult += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString n = scanner.nextLine();\n\t\tlong result = 0;\n\t\tString[] fizzList = new String[Integer.parseInt(n)];\n\n\t\tfor(int i = 1; i <= Integer.parseInt(n); i++) {\n\t\t\tif(i % 3 == 0 && i % 5 ==0) {\n\t\t\t\tfizzList[i - 1] = \"FizzBuzz\";\n\t\t\t}else if(i % 3 == 0){\n\t\t\t\tfizzList[i - 1] = \"Fizz\";\n\t\t\t}else if(i % 5 == 0){\n\t\t\t\tfizzList[i - 1] = \"Buzz\";\n\t\t\t}else {\n\t\t\t\tfizzList[i - 1] = String.valueOf(i);\n\t\t\t\tresult += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String n = scanner.nextLine();
long result = 0;
String[] fizzList = new String[Integer.parseInt(n)];
for(int i = 1; i <= Integer.parseInt(n); i++) {
if(i % 3 == 0 && i % 5 ==0) {
fizzList[i - 1] = "FizzBuzz";
}else if(i % 3 == 0){
fizzList[i - 1] = "Fizz";
}else if(i % 5 == 0){
fizzList[i - 1] = "Buzz";
}else {
fizzList[i - 1] = String.valueOf(i);
result += i;
}
}
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
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
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
10,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
35,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
10,
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\tpublic static void main(String[] args) {\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tfinal long N = scn.nextLong();\n\n\t\t\tlong sum = 0;\n\t\t\tfor (long l = 1; l <= N; l++) {\n\t\t\t\tif (l % 3 != 0 && l % 5 != 0) {\n\t\t\t\t\tsum += l;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tfinal long N = scn.nextLong();\n\n\t\t\tlong sum = 0;\n\t\t\tfor (long l = 1; l <= N; l++) {\n\t\t\t\tif (l % 3 != 0 && l % 5 != 0) {\n\t\t\t\t\tsum += l;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tfinal long N = scn.nextLong();\n\n\t\t\tlong sum = 0;\n\t\t\tfor (long l = 1; l <= N; l++) {\n\t\t\t\tif (l % 3 != 0 && l % 5 != 0) {\n\t\t\t\t\tsum += l;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}",
"main",
"{\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tfinal long N = scn.nextLong();\n\n\t\t\tlong sum = 0;\n\t\t\tfor (long l = 1; l <= N; l++) {\n\t\t\t\tif (l % 3 != 0 && l % 5 != 0) {\n\t\t\t\t\tsum += l;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}",
"try (Scanner scn = new Scanner(System.in)) {\n\t\t\tfinal long N = scn.nextLong();\n\n\t\t\tlong sum = 0;\n\t\t\tfor (long l = 1; l <= N; l++) {\n\t\t\t\tif (l % 3 != 0 && l % 5 != 0) {\n\t\t\t\t\tsum += l;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}",
"{\n\t\t\tfinal long N = scn.nextLong();\n\n\t\t\tlong sum = 0;\n\t\t\tfor (long l = 1; l <= N; l++) {\n\t\t\t\tif (l % 3 != 0 && l % 5 != 0) {\n\t\t\t\t\tsum += l;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}",
"Scanner scn = new Scanner(System.in)",
"Scanner scn = new Scanner(System.in)",
"new Scanner(System.in)",
"final long N = scn.nextLong();",
"N",
"scn.nextLong()",
"scn.nextLong",
"scn",
"long sum = 0;",
"sum",
"0",
"for (long l = 1; l <= N; l++) {\n\t\t\t\tif (l % 3 != 0 && l % 5 != 0) {\n\t\t\t\t\tsum += l;\n\t\t\t\t}\n\t\t\t}",
"long l = 1;",
"long l = 1;",
"l",
"1",
"l <= N",
"l",
"N",
"l++",
"l++",
"l",
"{\n\t\t\t\tif (l % 3 != 0 && l % 5 != 0) {\n\t\t\t\t\tsum += l;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (l % 3 != 0 && l % 5 != 0) {\n\t\t\t\t\tsum += l;\n\t\t\t\t}\n\t\t\t}",
"if (l % 3 != 0 && l % 5 != 0) {\n\t\t\t\t\tsum += l;\n\t\t\t\t}",
"l % 3 != 0 && l % 5 != 0",
"l % 3 != 0",
"l % 3",
"l",
"3",
"0",
"l % 5 != 0",
"l % 5",
"l",
"5",
"0",
"{\n\t\t\t\t\tsum += l;\n\t\t\t\t}",
"sum += l",
"sum",
"l",
"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\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tfinal long N = scn.nextLong();\n\n\t\t\tlong sum = 0;\n\t\t\tfor (long l = 1; l <= N; l++) {\n\t\t\t\tif (l % 3 != 0 && l % 5 != 0) {\n\t\t\t\t\tsum += l;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tfinal long N = scn.nextLong();\n\n\t\t\tlong sum = 0;\n\t\t\tfor (long l = 1; l <= N; l++) {\n\t\t\t\tif (l % 3 != 0 && l % 5 != 0) {\n\t\t\t\t\tsum += l;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scn = new Scanner(System.in)) {
final long N = scn.nextLong();
long sum = 0;
for (long l = 1; l <= N; l++) {
if (l % 3 != 0 && l % 5 != 0) {
sum += l;
}
}
System.out.println(sum);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
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
],
[
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
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
38,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
45,
52
],
[
52,
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.*;\npublic class Main{\npublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long N = n;\n long m = 0 ;\n for(long i=1;i<N+1;i++){\n if ((i%3)==0){}\n else if ((i%5)==0){}\n else{\n m = m+i;\n }\n }\n\tSystem.out.println(m);\n } \n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\npublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long N = n;\n long m = 0 ;\n for(long i=1;i<N+1;i++){\n if ((i%3)==0){}\n else if ((i%5)==0){}\n else{\n m = m+i;\n }\n }\n\tSystem.out.println(m);\n } \n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long N = n;\n long m = 0 ;\n for(long i=1;i<N+1;i++){\n if ((i%3)==0){}\n else if ((i%5)==0){}\n else{\n m = m+i;\n }\n }\n\tSystem.out.println(m);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long N = n;\n long m = 0 ;\n for(long i=1;i<N+1;i++){\n if ((i%3)==0){}\n else if ((i%5)==0){}\n else{\n m = m+i;\n }\n }\n\tSystem.out.println(m);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long N = n;",
"N",
"n",
"long m = 0 ;",
"m",
"0",
"for(long i=1;i<N+1;i++){\n if ((i%3)==0){}\n else if ((i%5)==0){}\n else{\n m = m+i;\n }\n }",
"long i=1;",
"long i=1;",
"i",
"1",
"i<N+1",
"i",
"N+1",
"N",
"1",
"i++",
"i++",
"i",
"{\n if ((i%3)==0){}\n else if ((i%5)==0){}\n else{\n m = m+i;\n }\n }",
"{\n if ((i%3)==0){}\n else if ((i%5)==0){}\n else{\n m = m+i;\n }\n }",
"if ((i%3)==0){}\n else if ((i%5)==0){}\n else{\n m = m+i;\n }",
"(i%3)==0",
"(i%3)",
"i",
"3",
"0",
"{}",
"if ((i%5)==0){}\n else{\n m = m+i;\n }",
"(i%5)==0",
"(i%5)",
"i",
"5",
"0",
"{}",
"{\n m = m+i;\n }",
"m = m+i",
"m",
"m+i",
"m",
"i",
"System.out.println(m)",
"System.out.println",
"System.out",
"System",
"System.out",
"m",
"String[] args",
"args",
"public class Main{\npublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long N = n;\n long m = 0 ;\n for(long i=1;i<N+1;i++){\n if ((i%3)==0){}\n else if ((i%5)==0){}\n else{\n m = m+i;\n }\n }\n\tSystem.out.println(m);\n } \n}",
"public class Main{\npublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long N = n;\n long m = 0 ;\n for(long i=1;i<N+1;i++){\n if ((i%3)==0){}\n else if ((i%5)==0){}\n else{\n m = m+i;\n }\n }\n\tSystem.out.println(m);\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 N = n;
long m = 0 ;
for(long i=1;i<N+1;i++){
if ((i%3)==0){}
else if ((i%5)==0){}
else{
m = m+i;
}
}
System.out.println(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,
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;\n\npublic class Main{\n\t\n\t\n\tpublic static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tlong num = s.nextLong();\n\t\t\n\t\tlong sum = 0;\n\t\tfor (long i = 1; i <= num; i++) {\n\t\t\tif (i % 3 != 0 && i%5 != 0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\t\n\t\n\tpublic static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tlong num = s.nextLong();\n\t\t\n\t\tlong sum = 0;\n\t\tfor (long i = 1; i <= num; i++) {\n\t\t\tif (i % 3 != 0 && i%5 != 0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tlong num = s.nextLong();\n\t\t\n\t\tlong sum = 0;\n\t\tfor (long i = 1; i <= num; i++) {\n\t\t\tif (i % 3 != 0 && i%5 != 0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\n\t}",
"main",
"{\n\n\t\tScanner s = new Scanner(System.in);\n\t\tlong num = s.nextLong();\n\t\t\n\t\tlong sum = 0;\n\t\tfor (long i = 1; i <= num; i++) {\n\t\t\tif (i % 3 != 0 && i%5 != 0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"long num = s.nextLong();",
"num",
"s.nextLong()",
"s.nextLong",
"s",
"long sum = 0;",
"sum",
"0",
"for (long i = 1; i <= num; i++) {\n\t\t\tif (i % 3 != 0 && i%5 != 0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t\t\n\t\t}",
"long i = 1;",
"long i = 1;",
"i",
"1",
"i <= num",
"i",
"num",
"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\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\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",
"String[] args",
"args",
"public class Main{\n\t\n\t\n\tpublic static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tlong num = s.nextLong();\n\t\t\n\t\tlong sum = 0;\n\t\tfor (long i = 1; i <= num; i++) {\n\t\t\tif (i % 3 != 0 && i%5 != 0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\n\t}\n}",
"public class Main{\n\t\n\t\n\tpublic static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tlong num = s.nextLong();\n\t\t\n\t\tlong sum = 0;\n\t\tfor (long i = 1; i <= num; i++) {\n\t\t\tif (i % 3 != 0 && i%5 != 0) {\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
long num = s.nextLong();
long sum = 0;
for (long i = 1; i <= num; i++) {
if (i % 3 != 0 && i%5 != 0) {
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,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
40,
18,
13,
13,
14,
2,
2,
13,
17,
17,
30,
40,
18,
13,
13,
14,
2,
2,
13,
17,
17,
30,
40,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
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
],
[
111,
5
],
[
111,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
37,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
37,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
8,
71
],
[
71,
72
],
[
71,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
74,
84
],
[
84,
85
],
[
85,
86
],
[
74,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
6,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
] |
[
"import java.util.*;\n\npublic class Main {\npublic static void main(String[] args) {\n\t\t\nScanner keyboard = new Scanner(System.in); \n\t\t\nint N= keyboard.nextInt();\nint[] ans = new int[N+1]; \n\t\t\nfor(int i = 1; i<N+1; i++){\n if(i%15 == 0){\n ans[i] ++;\n }\n if(i%5 == 0){\n ans[i] ++;\n }\n if(i%3 == 0){\n ans[i] ++;\n }\n}\n\t\t\nlong sum = 0;\n\nfor(int j = 1; j<N+1; j++){\n if(ans[j] ==0){sum +=j;\n }\n}\n\n\tSystem.out.println(sum);\n\tkeyboard.close();\t\n\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\npublic static void main(String[] args) {\n\t\t\nScanner keyboard = new Scanner(System.in); \n\t\t\nint N= keyboard.nextInt();\nint[] ans = new int[N+1]; \n\t\t\nfor(int i = 1; i<N+1; i++){\n if(i%15 == 0){\n ans[i] ++;\n }\n if(i%5 == 0){\n ans[i] ++;\n }\n if(i%3 == 0){\n ans[i] ++;\n }\n}\n\t\t\nlong sum = 0;\n\nfor(int j = 1; j<N+1; j++){\n if(ans[j] ==0){sum +=j;\n }\n}\n\n\tSystem.out.println(sum);\n\tkeyboard.close();\t\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t\nScanner keyboard = new Scanner(System.in); \n\t\t\nint N= keyboard.nextInt();\nint[] ans = new int[N+1]; \n\t\t\nfor(int i = 1; i<N+1; i++){\n if(i%15 == 0){\n ans[i] ++;\n }\n if(i%5 == 0){\n ans[i] ++;\n }\n if(i%3 == 0){\n ans[i] ++;\n }\n}\n\t\t\nlong sum = 0;\n\nfor(int j = 1; j<N+1; j++){\n if(ans[j] ==0){sum +=j;\n }\n}\n\n\tSystem.out.println(sum);\n\tkeyboard.close();\t\n\n\t}",
"main",
"{\n\t\t\nScanner keyboard = new Scanner(System.in); \n\t\t\nint N= keyboard.nextInt();\nint[] ans = new int[N+1]; \n\t\t\nfor(int i = 1; i<N+1; i++){\n if(i%15 == 0){\n ans[i] ++;\n }\n if(i%5 == 0){\n ans[i] ++;\n }\n if(i%3 == 0){\n ans[i] ++;\n }\n}\n\t\t\nlong sum = 0;\n\nfor(int j = 1; j<N+1; j++){\n if(ans[j] ==0){sum +=j;\n }\n}\n\n\tSystem.out.println(sum);\n\tkeyboard.close();\t\n\n\t}",
"Scanner keyboard = new Scanner(System.in);",
"keyboard",
"new Scanner(System.in)",
"int N= keyboard.nextInt();",
"N",
"keyboard.nextInt()",
"keyboard.nextInt",
"keyboard",
"int[] ans = new int[N+1];",
"ans",
"new int[N+1]",
"N+1",
"N",
"1",
"for(int i = 1; i<N+1; i++){\n if(i%15 == 0){\n ans[i] ++;\n }\n if(i%5 == 0){\n ans[i] ++;\n }\n if(i%3 == 0){\n ans[i] ++;\n }\n}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i<N+1",
"i",
"N+1",
"N",
"1",
"i++",
"i++",
"i",
"{\n if(i%15 == 0){\n ans[i] ++;\n }\n if(i%5 == 0){\n ans[i] ++;\n }\n if(i%3 == 0){\n ans[i] ++;\n }\n}",
"{\n if(i%15 == 0){\n ans[i] ++;\n }\n if(i%5 == 0){\n ans[i] ++;\n }\n if(i%3 == 0){\n ans[i] ++;\n }\n}",
"if(i%15 == 0){\n ans[i] ++;\n }",
"i%15 == 0",
"i%15",
"i",
"15",
"0",
"{\n ans[i] ++;\n }",
"ans[i] ++",
"ans[i]",
"ans",
"i",
"if(i%5 == 0){\n ans[i] ++;\n }",
"i%5 == 0",
"i%5",
"i",
"5",
"0",
"{\n ans[i] ++;\n }",
"ans[i] ++",
"ans[i]",
"ans",
"i",
"if(i%3 == 0){\n ans[i] ++;\n }",
"i%3 == 0",
"i%3",
"i",
"3",
"0",
"{\n ans[i] ++;\n }",
"ans[i] ++",
"ans[i]",
"ans",
"i",
"long sum = 0;",
"sum",
"0",
"for(int j = 1; j<N+1; j++){\n if(ans[j] ==0){sum +=j;\n }\n}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j<N+1",
"j",
"N+1",
"N",
"1",
"j++",
"j++",
"j",
"{\n if(ans[j] ==0){sum +=j;\n }\n}",
"{\n if(ans[j] ==0){sum +=j;\n }\n}",
"if(ans[j] ==0){sum +=j;\n }",
"ans[j] ==0",
"ans[j]",
"ans",
"j",
"0",
"{sum +=j;\n }",
"sum +=j",
"sum",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"keyboard.close()",
"keyboard.close",
"keyboard",
"String[] args",
"args",
"public class Main {\npublic static void main(String[] args) {\n\t\t\nScanner keyboard = new Scanner(System.in); \n\t\t\nint N= keyboard.nextInt();\nint[] ans = new int[N+1]; \n\t\t\nfor(int i = 1; i<N+1; i++){\n if(i%15 == 0){\n ans[i] ++;\n }\n if(i%5 == 0){\n ans[i] ++;\n }\n if(i%3 == 0){\n ans[i] ++;\n }\n}\n\t\t\nlong sum = 0;\n\nfor(int j = 1; j<N+1; j++){\n if(ans[j] ==0){sum +=j;\n }\n}\n\n\tSystem.out.println(sum);\n\tkeyboard.close();\t\n\n\t}\n}",
"public class Main {\npublic static void main(String[] args) {\n\t\t\nScanner keyboard = new Scanner(System.in); \n\t\t\nint N= keyboard.nextInt();\nint[] ans = new int[N+1]; \n\t\t\nfor(int i = 1; i<N+1; i++){\n if(i%15 == 0){\n ans[i] ++;\n }\n if(i%5 == 0){\n ans[i] ++;\n }\n if(i%3 == 0){\n ans[i] ++;\n }\n}\n\t\t\nlong sum = 0;\n\nfor(int j = 1; j<N+1; j++){\n if(ans[j] ==0){sum +=j;\n }\n}\n\n\tSystem.out.println(sum);\n\tkeyboard.close();\t\n\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int N= keyboard.nextInt();
int[] ans = new int[N+1];
for(int i = 1; i<N+1; i++){
if(i%15 == 0){
ans[i] ++;
}
if(i%5 == 0){
ans[i] ++;
}
if(i%3 == 0){
ans[i] ++;
}
}
long sum = 0;
for(int j = 1; j<N+1; j++){
if(ans[j] ==0){sum +=j;
}
}
System.out.println(sum);
keyboard.close();
}
}
|
[
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,
2,
13,
17,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
83,
11
],
[
83,
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
],
[
36,
37
],
[
36,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
29,
42
],
[
43,
43
],
[
43,
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
],
[
43,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
43,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
43,
71
],
[
71,
72
],
[
71,
73
],
[
14,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
12,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t\n\t\tlong sum = 0;\n\t\tfor(int i=1; i<N+1; i++) {\n\t\t\tif(i%3==0 && i%5==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%3==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%5==0)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tsum += i;\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t\n\t\tlong sum = 0;\n\t\tfor(int i=1; i<N+1; i++) {\n\t\t\tif(i%3==0 && i%5==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%3==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%5==0)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tsum += i;\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t\n\t\tlong sum = 0;\n\t\tfor(int i=1; i<N+1; i++) {\n\t\t\tif(i%3==0 && i%5==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%3==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%5==0)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tsum += i;\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t\n\t\tlong sum = 0;\n\t\tfor(int i=1; i<N+1; i++) {\n\t\t\tif(i%3==0 && i%5==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%3==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%5==0)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tsum += i;\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}",
"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+1; i++) {\n\t\t\tif(i%3==0 && i%5==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%3==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%5==0)\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+1",
"i",
"N+1",
"N",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%3==0 && i%5==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%3==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%5==0)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tsum += i;\n\t\t}",
"{\n\t\t\tif(i%3==0 && i%5==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%3==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%5==0)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tsum += 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;",
"if(i%3==0)\n\t\t\t\tcontinue;",
"i%3==0",
"i%3",
"i",
"3",
"0",
"continue;",
"if(i%5==0)\n\t\t\t\tcontinue;",
"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\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t\n\t\tlong sum = 0;\n\t\tfor(int i=1; i<N+1; i++) {\n\t\t\tif(i%3==0 && i%5==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%3==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%5==0)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tsum += i;\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t\n\t\tlong sum = 0;\n\t\tfor(int i=1; i<N+1; i++) {\n\t\t\tif(i%3==0 && i%5==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%3==0)\n\t\t\t\tcontinue;\n\t\t\tif(i%5==0)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tsum += i;\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(br.readLine());
long sum = 0;
for(int i=1; i<N+1; i++) {
if(i%3==0 && i%5==0)
continue;
if(i%3==0)
continue;
if(i%5==0)
continue;
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,
40,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
2,
13,
13,
30,
9,
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
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
33,
52
],
[
52,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
]
] |
[
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner scanner=new Scanner(System.in);\n int number=scanner.nextInt();\n long answer=0;\n for(int i=1;i<=number;i++){\n if(!(i%3==0||i%5==0)){\n answer=answer+i;\n }else{\n continue;\n }\n }\n System.out.println(answer);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner scanner=new Scanner(System.in);\n int number=scanner.nextInt();\n long answer=0;\n for(int i=1;i<=number;i++){\n if(!(i%3==0||i%5==0)){\n answer=answer+i;\n }else{\n continue;\n }\n }\n System.out.println(answer);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scanner=new Scanner(System.in);\n int number=scanner.nextInt();\n long answer=0;\n for(int i=1;i<=number;i++){\n if(!(i%3==0||i%5==0)){\n answer=answer+i;\n }else{\n continue;\n }\n }\n System.out.println(answer);\n }",
"main",
"{\n Scanner scanner=new Scanner(System.in);\n int number=scanner.nextInt();\n long answer=0;\n for(int i=1;i<=number;i++){\n if(!(i%3==0||i%5==0)){\n answer=answer+i;\n }else{\n continue;\n }\n }\n System.out.println(answer);\n }",
"Scanner scanner=new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int number=scanner.nextInt();",
"number",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long answer=0;",
"answer",
"0",
"for(int i=1;i<=number;i++){\n if(!(i%3==0||i%5==0)){\n answer=answer+i;\n }else{\n continue;\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=number",
"i",
"number",
"i++",
"i++",
"i",
"{\n if(!(i%3==0||i%5==0)){\n answer=answer+i;\n }else{\n continue;\n }\n }",
"{\n if(!(i%3==0||i%5==0)){\n answer=answer+i;\n }else{\n continue;\n }\n }",
"if(!(i%3==0||i%5==0)){\n answer=answer+i;\n }else{\n continue;\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 answer=answer+i;\n }",
"answer=answer+i",
"answer",
"answer+i",
"answer",
"i",
"{\n continue;\n }",
"continue;",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scanner=new Scanner(System.in);
int number=scanner.nextInt();
long answer=0;
for(int i=1;i<=number;i++){
if(!(i%3==0||i%5==0)){
answer=answer+i;
}else{
continue;
}
}
System.out.println(answer);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
66,
8
],
[
66,
9
],
[
9,
10
],
[
9,
11
],
[
66,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
12,
17
],
[
17,
18
],
[
66,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
21,
27
],
[
27,
28
],
[
27,
29
],
[
21,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
43,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
21,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] |
[
"import java.io.*;\nimport java.util.*;\npublic class Main{\n public static Scanner scn=new Scanner(System.in);\n public static void main(String args[]){\n ans();\n }\n public static void ans(){\n int n=scn.nextInt();\n long count=0;\n // if(n>=1000000)\n // System.out.print(266666333332);\n \n for(int i=1;i<=n;i++){\n \n if(i%3!=0 && i%5!=0){\n count+=i; \n }\n}\n// if(n<1000000)\nSystem.out.print(count);\n}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static Scanner scn=new Scanner(System.in);\n public static void main(String args[]){\n ans();\n }\n public static void ans(){\n int n=scn.nextInt();\n long count=0;\n // if(n>=1000000)\n // System.out.print(266666333332);\n \n for(int i=1;i<=n;i++){\n \n if(i%3!=0 && i%5!=0){\n count+=i; \n }\n}\n// if(n<1000000)\nSystem.out.print(count);\n}\n}",
"Main",
"public static Scanner scn=new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"public static void main(String args[]){\n ans();\n }",
"main",
"{\n ans();\n }",
"ans()",
"ans",
"String args[]",
"args",
"public static void ans(){\n int n=scn.nextInt();\n long count=0;\n // if(n>=1000000)\n // System.out.print(266666333332);\n \n for(int i=1;i<=n;i++){\n \n if(i%3!=0 && i%5!=0){\n count+=i; \n }\n}\n// if(n<1000000)\nSystem.out.print(count);\n}",
"ans",
"{\n int n=scn.nextInt();\n long count=0;\n // if(n>=1000000)\n // System.out.print(266666333332);\n \n for(int i=1;i<=n;i++){\n \n if(i%3!=0 && i%5!=0){\n count+=i; \n }\n}\n// if(n<1000000)\nSystem.out.print(count);\n}",
"int n=scn.nextInt();",
"n",
"scn.nextInt()",
"scn.nextInt",
"scn",
"long count=0;",
"count",
"0",
"for(int i=1;i<=n;i++){\n \n if(i%3!=0 && i%5!=0){\n count+=i; \n }\n}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \n if(i%3!=0 && i%5!=0){\n count+=i; \n }\n}",
"{\n \n if(i%3!=0 && i%5!=0){\n count+=i; \n }\n}",
"if(i%3!=0 && i%5!=0){\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 count+=i; \n }",
"count+=i",
"count",
"i",
"System.out.print(count)",
"System.out.print",
"System.out",
"System",
"System.out",
"count",
"public class Main{\n public static Scanner scn=new Scanner(System.in);\n public static void main(String args[]){\n ans();\n }\n public static void ans(){\n int n=scn.nextInt();\n long count=0;\n // if(n>=1000000)\n // System.out.print(266666333332);\n \n for(int i=1;i<=n;i++){\n \n if(i%3!=0 && i%5!=0){\n count+=i; \n }\n}\n// if(n<1000000)\nSystem.out.print(count);\n}\n}",
"public class Main{\n public static Scanner scn=new Scanner(System.in);\n public static void main(String args[]){\n ans();\n }\n public static void ans(){\n int n=scn.nextInt();\n long count=0;\n // if(n>=1000000)\n // System.out.print(266666333332);\n \n for(int i=1;i<=n;i++){\n \n if(i%3!=0 && i%5!=0){\n count+=i; \n }\n}\n// if(n<1000000)\nSystem.out.print(count);\n}\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main{
public static Scanner scn=new Scanner(System.in);
public static void main(String args[]){
ans();
}
public static void ans(){
int n=scn.nextInt();
long count=0;
// if(n>=1000000)
// System.out.print(266666333332);
for(int i=1;i<=n;i++){
if(i%3!=0 && i%5!=0){
count+=i;
}
}
// if(n<1000000)
System.out.print(count);
}
}
|
[
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
61,
8
],
[
61,
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
],
[
11,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
9,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] |
[
"import java.io.FileNotFoundException;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws FileNotFoundException {\n\n// \tFile file = new File(\"src/in.txt\");\n\n //コード\n// \tScanner sc = new Scanner(file);\n \tScanner sc = new Scanner(System.in);\n\n \tint N = sc.nextInt();\n\n \tlong sum = 0;\n\n \tfor(int i=1;i<=N;i++) {\n \t\tif((i%3!=0)&&(i%5!=0)) {\n \t\t\tsum += i;\n \t\t}\n \t}\n \tSystem.out.println(sum);\n\n\n }\n}",
"import java.io.FileNotFoundException;",
"FileNotFoundException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) throws FileNotFoundException {\n\n// \tFile file = new File(\"src/in.txt\");\n\n //コード\n// \tScanner sc = new Scanner(file);\n \tScanner sc = new Scanner(System.in);\n\n \tint N = sc.nextInt();\n\n \tlong sum = 0;\n\n \tfor(int i=1;i<=N;i++) {\n \t\tif((i%3!=0)&&(i%5!=0)) {\n \t\t\tsum += i;\n \t\t}\n \t}\n \tSystem.out.println(sum);\n\n\n }\n}",
"Main",
"public static void main(String[] args) throws FileNotFoundException {\n\n// \tFile file = new File(\"src/in.txt\");\n\n //コード\n// \tScanner sc = new Scanner(file);\n \tScanner sc = new Scanner(System.in);\n\n \tint N = sc.nextInt();\n\n \tlong sum = 0;\n\n \tfor(int i=1;i<=N;i++) {\n \t\tif((i%3!=0)&&(i%5!=0)) {\n \t\t\tsum += i;\n \t\t}\n \t}\n \tSystem.out.println(sum);\n\n\n }",
"main",
"{\n\n// \tFile file = new File(\"src/in.txt\");\n\n //コード\n// \tScanner sc = new Scanner(file);\n \tScanner sc = new Scanner(System.in);\n\n \tint N = sc.nextInt();\n\n \tlong sum = 0;\n\n \tfor(int i=1;i<=N;i++) {\n \t\tif((i%3!=0)&&(i%5!=0)) {\n \t\t\tsum += i;\n \t\t}\n \t}\n \tSystem.out.println(sum);\n\n\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 \t\tif((i%3!=0)&&(i%5!=0)) {\n \t\t\tsum += i;\n \t\t}\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\tsum += i;\n \t\t}\n \t}",
"{\n \t\tif((i%3!=0)&&(i%5!=0)) {\n \t\t\tsum += i;\n \t\t}\n \t}",
"if((i%3!=0)&&(i%5!=0)) {\n \t\t\tsum += i;\n \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\tsum += i;\n \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 public static void main(String[] args) throws FileNotFoundException {\n\n// \tFile file = new File(\"src/in.txt\");\n\n //コード\n// \tScanner sc = new Scanner(file);\n \tScanner sc = new Scanner(System.in);\n\n \tint N = sc.nextInt();\n\n \tlong sum = 0;\n\n \tfor(int i=1;i<=N;i++) {\n \t\tif((i%3!=0)&&(i%5!=0)) {\n \t\t\tsum += i;\n \t\t}\n \t}\n \tSystem.out.println(sum);\n\n\n }\n}",
"public class Main {\n public static void main(String[] args) throws FileNotFoundException {\n\n// \tFile file = new File(\"src/in.txt\");\n\n //コード\n// \tScanner sc = new Scanner(file);\n \tScanner sc = new Scanner(System.in);\n\n \tint N = sc.nextInt();\n\n \tlong sum = 0;\n\n \tfor(int i=1;i<=N;i++) {\n \t\tif((i%3!=0)&&(i%5!=0)) {\n \t\t\tsum += i;\n \t\t}\n \t}\n \tSystem.out.println(sum);\n\n\n }\n}",
"Main"
] |
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws FileNotFoundException {
// File file = new File("src/in.txt");
//コード
// Scanner sc = new Scanner(file);
Scanner sc = new Scanner(System.in);
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);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
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,
40,
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
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
28,
40
],
[
28,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
41,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
48,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
27,
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.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long N = sc.nextInt();\n long i = 1;\n long sum = 0;\n\n while(i <= N){\n if(((i % 3) == 0) && ((i % 5) == 0)){\n }\n else if(i % 5 == 0){\n }\n else if(i % 3 == 0){\n\n }else{\n //System.out.println(i);\n sum += i;\n \n }\n i++;\n }\n System.out.println(sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long N = sc.nextInt();\n long i = 1;\n long sum = 0;\n\n while(i <= N){\n if(((i % 3) == 0) && ((i % 5) == 0)){\n }\n else if(i % 5 == 0){\n }\n else if(i % 3 == 0){\n\n }else{\n //System.out.println(i);\n sum += i;\n \n }\n i++;\n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long N = sc.nextInt();\n long i = 1;\n long sum = 0;\n\n while(i <= N){\n if(((i % 3) == 0) && ((i % 5) == 0)){\n }\n else if(i % 5 == 0){\n }\n else if(i % 3 == 0){\n\n }else{\n //System.out.println(i);\n sum += i;\n \n }\n i++;\n }\n System.out.println(sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long N = sc.nextInt();\n long i = 1;\n long sum = 0;\n\n while(i <= N){\n if(((i % 3) == 0) && ((i % 5) == 0)){\n }\n else if(i % 5 == 0){\n }\n else if(i % 3 == 0){\n\n }else{\n //System.out.println(i);\n sum += i;\n \n }\n i++;\n }\n System.out.println(sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long i = 1;",
"i",
"1",
"long sum = 0;",
"sum",
"0",
"while(i <= N){\n if(((i % 3) == 0) && ((i % 5) == 0)){\n }\n else if(i % 5 == 0){\n }\n else if(i % 3 == 0){\n\n }else{\n //System.out.println(i);\n sum += i;\n \n }\n i++;\n }",
"i <= N",
"i",
"N",
"{\n if(((i % 3) == 0) && ((i % 5) == 0)){\n }\n else if(i % 5 == 0){\n }\n else if(i % 3 == 0){\n\n }else{\n //System.out.println(i);\n sum += i;\n \n }\n i++;\n }",
"if(((i % 3) == 0) && ((i % 5) == 0)){\n }\n else if(i % 5 == 0){\n }\n else if(i % 3 == 0){\n\n }else{\n //System.out.println(i);\n sum += i;\n \n }",
"((i % 3) == 0) && ((i % 5) == 0)",
"((i % 3) == 0)",
"(i % 3)",
"i",
"3",
"0",
"((i % 5) == 0)",
"(i % 5)",
"i",
"5",
"0",
"{\n }",
"if(i % 5 == 0){\n }\n else if(i % 3 == 0){\n\n }else{\n //System.out.println(i);\n sum += i;\n \n }",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n }",
"if(i % 3 == 0){\n\n }else{\n //System.out.println(i);\n sum += i;\n \n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\n }",
"{\n //System.out.println(i);\n sum += i;\n \n }",
"sum += i",
"sum",
"i",
"i++",
"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 long N = sc.nextInt();\n long i = 1;\n long sum = 0;\n\n while(i <= N){\n if(((i % 3) == 0) && ((i % 5) == 0)){\n }\n else if(i % 5 == 0){\n }\n else if(i % 3 == 0){\n\n }else{\n //System.out.println(i);\n sum += i;\n \n }\n i++;\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 long N = sc.nextInt();\n long i = 1;\n long sum = 0;\n\n while(i <= N){\n if(((i % 3) == 0) && ((i % 5) == 0)){\n }\n else if(i % 5 == 0){\n }\n else if(i % 3 == 0){\n\n }else{\n //System.out.println(i);\n sum += i;\n \n }\n i++;\n }\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long N = sc.nextInt();
long i = 1;
long sum = 0;
while(i <= N){
if(((i % 3) == 0) && ((i % 5) == 0)){
}
else if(i % 5 == 0){
}
else if(i % 3 == 0){
}else{
//System.out.println(i);
sum += i;
}
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,
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.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tlong n=in.nextInt();\n\t\tlong sum=0;\n\t\tfor(long i=0;i<=n;i++) {\n\t\t\tif(i%3!=0 && i%5!=0)sum+=i;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tlong n=in.nextInt();\n\t\tlong sum=0;\n\t\tfor(long i=0;i<=n;i++) {\n\t\t\tif(i%3!=0 && i%5!=0)sum+=i;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tlong n=in.nextInt();\n\t\tlong sum=0;\n\t\tfor(long i=0;i<=n;i++) {\n\t\t\tif(i%3!=0 && i%5!=0)sum+=i;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tlong n=in.nextInt();\n\t\tlong sum=0;\n\t\tfor(long i=0;i<=n;i++) {\n\t\t\tif(i%3!=0 && i%5!=0)sum+=i;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"long n=in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"long sum=0;",
"sum",
"0",
"for(long i=0;i<=n;i++) {\n\t\t\tif(i%3!=0 && i%5!=0)sum+=i;\n\t\t}",
"long i=0;",
"long i=0;",
"i",
"0",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%3!=0 && i%5!=0)sum+=i;\n\t\t}",
"{\n\t\t\tif(i%3!=0 && i%5!=0)sum+=i;\n\t\t}",
"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",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tlong n=in.nextInt();\n\t\tlong sum=0;\n\t\tfor(long i=0;i<=n;i++) {\n\t\t\tif(i%3!=0 && i%5!=0)sum+=i;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tlong n=in.nextInt();\n\t\tlong sum=0;\n\t\tfor(long i=0;i<=n;i++) {\n\t\t\tif(i%3!=0 && i%5!=0)sum+=i;\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 in = new Scanner(System.in);
long n=in.nextInt();
long sum=0;
for(long i=0;i<=n;i++) {
if(i%3!=0 && i%5!=0)sum+=i;
}
System.out.println(sum);
}
}
|
[
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,
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
],
[
103,
17
],
[
103,
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
],
[
103,
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
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
77,
89
],
[
89,
90
],
[
89,
91
],
[
55,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
53,
96
],
[
96,
97
],
[
53,
98
],
[
98,
99
],
[
53,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int N = in.nextInt();\n long res = 0;\n\n for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) res += i;\n }\n out.print(res);\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int N = in.nextInt();\n long res = 0;\n\n for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) res += i;\n }\n out.print(res);\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"B solver = new B();",
"solver",
"new B()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int N = in.nextInt();\n long res = 0;\n\n for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) res += i;\n }\n out.print(res);\n }\n\n }",
"B",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n int N = in.nextInt();\n long res = 0;\n\n for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) res += i;\n }\n out.print(res);\n }",
"solve",
"{\n int N = in.nextInt();\n long res = 0;\n\n for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) res += i;\n }\n out.print(res);\n }",
"int N = in.nextInt();",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"long res = 0;",
"res",
"0",
"for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) res += 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) res += i;\n }",
"{\n if (i % 3 != 0 && i % 5 != 0) res += i;\n }",
"if (i % 3 != 0 && i % 5 != 0) 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 += i",
"res",
"i",
"out.print(res)",
"out.print",
"out",
"res",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int N = in.nextInt();\n long res = 0;\n\n for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) res += i;\n }\n out.print(res);\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int N = in.nextInt();\n long res = 0;\n\n for (int i = 1; i <= N; i++) {\n if (i % 3 != 0 && i % 5 != 0) res += i;\n }\n out.print(res);\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
B solver = new B();
solver.solve(1, in, out);
out.close();
}
static class B {
public void solve(int testNumber, Scanner in, PrintWriter out) {
int N = in.nextInt();
long res = 0;
for (int i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 0) res += i;
}
out.print(res);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
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
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
47,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
14,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
12,
70
],
[
70,
71
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\tpublic static void main(String args[]) throws IOException {\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint i;\n\tString N = br.readLine();\n\tint Num = Integer.parseInt(N);\n\tlong sum = 0;\n\n\tfor (i = 1; i <= Num; i++ ) {\n\t\tif (i % 3 != 0 && i % 5 != 0) sum = sum + i;\n\t}\n\n\tSystem.out.println(sum);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n\tpublic static void main(String args[]) throws IOException {\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint i;\n\tString N = br.readLine();\n\tint Num = Integer.parseInt(N);\n\tlong sum = 0;\n\n\tfor (i = 1; i <= Num; i++ ) {\n\t\tif (i % 3 != 0 && i % 5 != 0) sum = sum + i;\n\t}\n\n\tSystem.out.println(sum);\n\t}\n}",
"Main",
"public static void main(String args[]) throws IOException {\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint i;\n\tString N = br.readLine();\n\tint Num = Integer.parseInt(N);\n\tlong sum = 0;\n\n\tfor (i = 1; i <= Num; i++ ) {\n\t\tif (i % 3 != 0 && i % 5 != 0) sum = sum + i;\n\t}\n\n\tSystem.out.println(sum);\n\t}",
"main",
"{\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint i;\n\tString N = br.readLine();\n\tint Num = Integer.parseInt(N);\n\tlong sum = 0;\n\n\tfor (i = 1; i <= Num; i++ ) {\n\t\tif (i % 3 != 0 && i % 5 != 0) sum = sum + i;\n\t}\n\n\tSystem.out.println(sum);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int i;",
"i",
"String N = br.readLine();",
"N",
"br.readLine()",
"br.readLine",
"br",
"int Num = Integer.parseInt(N);",
"Num",
"Integer.parseInt(N)",
"Integer.parseInt",
"Integer",
"N",
"long sum = 0;",
"sum",
"0",
"for (i = 1; i <= Num; i++ ) {\n\t\tif (i % 3 != 0 && i % 5 != 0) sum = sum + i;\n\t}",
"i = 1;",
"i = 1",
"i",
"1",
"i <= Num",
"i",
"Num",
"i++",
"i++",
"i",
"{\n\t\tif (i % 3 != 0 && i % 5 != 0) sum = sum + i;\n\t}",
"{\n\t\tif (i % 3 != 0 && i % 5 != 0) sum = sum + i;\n\t}",
"if (i % 3 != 0 && i % 5 != 0) sum = 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 = sum + i",
"sum",
"sum + i",
"sum",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String args[]",
"args"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String args[]) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int i;
String N = br.readLine();
int Num = Integer.parseInt(N);
long sum = 0;
for (i = 1; i <= Num; i++ ) {
if (i % 3 != 0 && i % 5 != 0) sum = 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,
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,
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
],
[
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
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
36,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
36,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long A = sc.nextInt();\n long s = 0;\n long s2 = 0;\n for (int a=0; a<=A; a++) {\n \tif(a % 3 == 0 || a % 5 == 0){\n \t\ts2 = a + s2;\n \t}\n \telse {\n \t\ts = a + s;\n \t}\n }\n System.out.println(s);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long A = sc.nextInt();\n long s = 0;\n long s2 = 0;\n for (int a=0; a<=A; a++) {\n \tif(a % 3 == 0 || a % 5 == 0){\n \t\ts2 = a + s2;\n \t}\n \telse {\n \t\ts = a + s;\n \t}\n }\n System.out.println(s);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long A = sc.nextInt();\n long s = 0;\n long s2 = 0;\n for (int a=0; a<=A; a++) {\n \tif(a % 3 == 0 || a % 5 == 0){\n \t\ts2 = a + s2;\n \t}\n \telse {\n \t\ts = a + s;\n \t}\n }\n System.out.println(s);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long A = sc.nextInt();\n long s = 0;\n long s2 = 0;\n for (int a=0; a<=A; a++) {\n \tif(a % 3 == 0 || a % 5 == 0){\n \t\ts2 = a + s2;\n \t}\n \telse {\n \t\ts = a + s;\n \t}\n }\n System.out.println(s);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long s = 0;",
"s",
"0",
"long s2 = 0;",
"s2",
"0",
"for (int a=0; a<=A; a++) {\n \tif(a % 3 == 0 || a % 5 == 0){\n \t\ts2 = a + s2;\n \t}\n \telse {\n \t\ts = a + s;\n \t}\n }",
"int a=0;",
"int a=0;",
"a",
"0",
"a<=A",
"a",
"A",
"a++",
"a++",
"a",
"{\n \tif(a % 3 == 0 || a % 5 == 0){\n \t\ts2 = a + s2;\n \t}\n \telse {\n \t\ts = a + s;\n \t}\n }",
"{\n \tif(a % 3 == 0 || a % 5 == 0){\n \t\ts2 = a + s2;\n \t}\n \telse {\n \t\ts = a + s;\n \t}\n }",
"if(a % 3 == 0 || a % 5 == 0){\n \t\ts2 = a + s2;\n \t}\n \telse {\n \t\ts = a + s;\n \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\ts2 = a + s2;\n \t}",
"s2 = a + s2",
"s2",
"a + s2",
"a",
"s2",
"{\n \t\ts = a + s;\n \t}",
"s = a + s",
"s",
"a + s",
"a",
"s",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long A = sc.nextInt();
long s = 0;
long s2 = 0;
for (int a=0; a<=A; a++) {
if(a % 3 == 0 || a % 5 == 0){
s2 = a + s2;
}
else {
s = a + s;
}
}
System.out.println(s);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
68,
11
],
[
68,
12
],
[
12,
13
],
[
12,
14
],
[
14,
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
],
[
19,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
44,
56
],
[
56,
57
],
[
56,
58
],
[
19,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
12,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
"/* package codechef; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\npublic class Main\n{\n public static void main (String[] args) throws java.lang.Exception\n {\n\ttry{\n\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t long sum=0;\n\t\t for(int i=1;i<=n;i++)\n\t\t {\n\t\t if(i%3!=0 && i%5!=0 )\n\t\t sum+=i;\n\t\t \n\t\t \n\t\t }\n\t\t System.out.println(sum);\n\t } \n\tcatch(Exception e)\n\t\t {}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n public static void main (String[] args) throws java.lang.Exception\n {\n\ttry{\n\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t long sum=0;\n\t\t for(int i=1;i<=n;i++)\n\t\t {\n\t\t if(i%3!=0 && i%5!=0 )\n\t\t sum+=i;\n\t\t \n\t\t \n\t\t }\n\t\t System.out.println(sum);\n\t } \n\tcatch(Exception e)\n\t\t {}\n\t}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n {\n\ttry{\n\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t long sum=0;\n\t\t for(int i=1;i<=n;i++)\n\t\t {\n\t\t if(i%3!=0 && i%5!=0 )\n\t\t sum+=i;\n\t\t \n\t\t \n\t\t }\n\t\t System.out.println(sum);\n\t } \n\tcatch(Exception e)\n\t\t {}\n\t}",
"main",
"{\n\ttry{\n\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t long sum=0;\n\t\t for(int i=1;i<=n;i++)\n\t\t {\n\t\t if(i%3!=0 && i%5!=0 )\n\t\t sum+=i;\n\t\t \n\t\t \n\t\t }\n\t\t System.out.println(sum);\n\t } \n\tcatch(Exception e)\n\t\t {}\n\t}",
"try{\n\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t long sum=0;\n\t\t for(int i=1;i<=n;i++)\n\t\t {\n\t\t if(i%3!=0 && i%5!=0 )\n\t\t sum+=i;\n\t\t \n\t\t \n\t\t }\n\t\t System.out.println(sum);\n\t } \n\tcatch(Exception e)\n\t\t {}",
"catch(Exception e)\n\t\t {}",
"Exception e",
"{}",
"{\n\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t long sum=0;\n\t\t for(int i=1;i<=n;i++)\n\t\t {\n\t\t if(i%3!=0 && i%5!=0 )\n\t\t sum+=i;\n\t\t \n\t\t \n\t\t }\n\t\t System.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",
"long sum=0;",
"sum",
"0",
"for(int i=1;i<=n;i++)\n\t\t {\n\t\t if(i%3!=0 && i%5!=0 )\n\t\t sum+=i;\n\t\t \n\t\t \n\t\t }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t if(i%3!=0 && i%5!=0 )\n\t\t sum+=i;\n\t\t \n\t\t \n\t\t }",
"{\n\t\t if(i%3!=0 && i%5!=0 )\n\t\t sum+=i;\n\t\t \n\t\t \n\t\t }",
"if(i%3!=0 && i%5!=0 )\n\t\t 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",
"String[] args",
"args",
"public class Main\n{\n public static void main (String[] args) throws java.lang.Exception\n {\n\ttry{\n\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t long sum=0;\n\t\t for(int i=1;i<=n;i++)\n\t\t {\n\t\t if(i%3!=0 && i%5!=0 )\n\t\t sum+=i;\n\t\t \n\t\t \n\t\t }\n\t\t System.out.println(sum);\n\t } \n\tcatch(Exception e)\n\t\t {}\n\t}\n}",
"public class Main\n{\n public static void main (String[] args) throws java.lang.Exception\n {\n\ttry{\n\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t long sum=0;\n\t\t for(int i=1;i<=n;i++)\n\t\t {\n\t\t if(i%3!=0 && i%5!=0 )\n\t\t sum+=i;\n\t\t \n\t\t \n\t\t }\n\t\t System.out.println(sum);\n\t } \n\tcatch(Exception e)\n\t\t {}\n\t}\n}",
"Main"
] |
/* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
public static void main (String[] args) throws java.lang.Exception
{
try{
Scanner sc=new Scanner(System.in);
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)
{}
}
}
|
[
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,
2,
13,
17,
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
],
[
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
],
[
30,
31
],
[
30,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
38,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
]
] |
[
"import java.util.*;\nclass Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tlong n = Long.parseLong(sc.next());\n\t\t\n\t\tlong sum = 0;\n\t\t\n\t\tfor(int i = 1; i < n+1; ++i) {\n\t\t if((i % 3 != 0) && (i % 5 != 0)) {\n\t\t sum += i;\n\t\t }\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t\t\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tlong n = Long.parseLong(sc.next());\n\t\t\n\t\tlong sum = 0;\n\t\t\n\t\tfor(int i = 1; i < n+1; ++i) {\n\t\t if((i % 3 != 0) && (i % 5 != 0)) {\n\t\t sum += i;\n\t\t }\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tlong n = Long.parseLong(sc.next());\n\t\t\n\t\tlong sum = 0;\n\t\t\n\t\tfor(int i = 1; i < n+1; ++i) {\n\t\t if((i % 3 != 0) && (i % 5 != 0)) {\n\t\t sum += i;\n\t\t }\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tlong n = Long.parseLong(sc.next());\n\t\t\n\t\tlong sum = 0;\n\t\t\n\t\tfor(int i = 1; i < n+1; ++i) {\n\t\t if((i % 3 != 0) && (i % 5 != 0)) {\n\t\t sum += i;\n\t\t }\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n = Long.parseLong(sc.next());",
"n",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"long sum = 0;",
"sum",
"0",
"for(int i = 1; i < n+1; ++i) {\n\t\t if((i % 3 != 0) && (i % 5 != 0)) {\n\t\t sum += i;\n\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 if((i % 3 != 0) && (i % 5 != 0)) {\n\t\t sum += i;\n\t\t }\n\t\t}",
"{\n\t\t if((i % 3 != 0) && (i % 5 != 0)) {\n\t\t sum += i;\n\t\t }\n\t\t}",
"if((i % 3 != 0) && (i % 5 != 0)) {\n\t\t sum += i;\n\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 sum += i;\n\t\t }",
"sum += i",
"sum",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args"
] |
import java.util.*;
class Main
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = Long.parseLong(sc.next());
long sum = 0;
for(int i = 1; i < n+1; ++i) {
if((i % 3 != 0) && (i % 5 != 0)) {
sum += i;
}
}
System.out.println(sum);
}
}
|
[
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,
2,
2,
13,
2,
13,
17,
17,
41,
13,
2,
13,
17,
0,
13,
2,
2,
2,
17,
13,
2,
13,
17,
17,
41,
13,
2,
13,
17,
0,
13,
2,
2,
2,
17,
13,
2,
13,
17,
17,
41,
13,
2,
13,
17,
0,
13,
2,
2,
2,
17,
13,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
4,
18,
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
],
[
429,
11
],
[
429,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
12,
16
],
[
16,
17
],
[
429,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
31,
37
],
[
20,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
20,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
47,
47
],
[
47,
48
],
[
47,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
20,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
20,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
63,
63
],
[
63,
64
],
[
63,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
20,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
20,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
79,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
20,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
20,
92
],
[
92,
93
],
[
93,
94
],
[
429,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
95,
103
],
[
103,
104
],
[
95,
105
],
[
105,
106
],
[
95,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
95,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
115,
121
],
[
121,
122
],
[
95,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
126,
131
],
[
131,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
141,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
137,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
125,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
95,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
168,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
168,
181
],
[
181,
182
],
[
181,
183
],
[
168,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
190,
193
],
[
189,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
168,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
95,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
204,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
204,
217
],
[
217,
218
],
[
217,
219
],
[
204,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
220,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
226,
229
],
[
225,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
204,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
95,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
240,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
245,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
240,
253
],
[
253,
254
],
[
253,
255
],
[
240,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
256,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
260,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
240,
269
],
[
269,
270
],
[
269,
271
],
[
240,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
272,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
279,
283
],
[
283,
284
],
[
283,
285
],
[
278,
286
],
[
286,
287
],
[
277,
288
],
[
288,
289
],
[
288,
290
],
[
277,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
293,
295
],
[
277,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
240,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
95,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
306,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
311,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
306,
319
],
[
319,
320
],
[
319,
321
],
[
306,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
322,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
326,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
306,
335
],
[
335,
336
],
[
335,
337
],
[
306,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
338,
343
],
[
343,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
345,
349
],
[
349,
350
],
[
349,
351
],
[
344,
352
],
[
352,
353
],
[
343,
354
],
[
354,
355
],
[
354,
356
],
[
343,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
359,
361
],
[
343,
362
],
[
362,
363
],
[
362,
364
],
[
364,
365
],
[
306,
366
],
[
366,
367
],
[
367,
368
],
[
367,
369
],
[
95,
370
],
[
370,
371
],
[
370,
372
],
[
372,
373
],
[
373,
374
],
[
377,
375
],
[
387,
376
],
[
384,
377
],
[
377,
378
],
[
378,
379
],
[
378,
380
],
[
377,
381
],
[
381,
382
],
[
381,
383
],
[
384,
384
],
[
384,
385
],
[
384,
386
],
[
387,
387
],
[
387,
388
],
[
387,
389
],
[
377,
390
],
[
390,
391
],
[
390,
392
],
[
392,
393
],
[
370,
394
],
[
394,
395
],
[
95,
396
],
[
396,
397
],
[
396,
398
],
[
398,
399
],
[
399,
400
],
[
401,
401
],
[
401,
402
],
[
402,
403
],
[
402,
404
],
[
401,
405
],
[
405,
406
],
[
405,
407
],
[
401,
408
],
[
408,
409
],
[
408,
410
],
[
410,
411
],
[
396,
412
],
[
412,
413
],
[
95,
414
],
[
414,
415
],
[
414,
416
],
[
416,
417
],
[
417,
418
],
[
418,
419
],
[
418,
420
],
[
420,
421
],
[
421,
422
],
[
422,
423
],
[
417,
424
],
[
424,
425
],
[
425,
426
],
[
426,
427
],
[
0,
428
],
[
428,
429
],
[
428,
430
]
] |
[
"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\tlong n = sc.nextInt();\n\t\tlong sol = n*(n+1)/2;\n\t\tlong n3 = n/3;\n\t\tsol -= 3*n3*(n3+1)/2;\n\t\tlong n5 = n/5;\n\t\tsol -= 5*n5*(n5+1)/2;\n\t\tlong n15 = n/15;\n\t\tsol += 15*n15*(n15+1)/2;\n\t\t\n\t\tSystem.out.println(sol);\n\t\t\n\t\tsc.close();\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\tlong n = sc.nextInt();\n\t\tlong sol = n*(n+1)/2;\n\t\tlong n3 = n/3;\n\t\tsol -= 3*n3*(n3+1)/2;\n\t\tlong n5 = n/5;\n\t\tsol -= 5*n5*(n5+1)/2;\n\t\tlong n15 = n/15;\n\t\tsol += 15*n15*(n15+1)/2;\n\t\t\n\t\tSystem.out.println(sol);\n\t\t\n\t\tsc.close();\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\tlong n = sc.nextInt();\n\t\tlong sol = n*(n+1)/2;\n\t\tlong n3 = n/3;\n\t\tsol -= 3*n3*(n3+1)/2;\n\t\tlong n5 = n/5;\n\t\tsol -= 5*n5*(n5+1)/2;\n\t\tlong n15 = n/15;\n\t\tsol += 15*n15*(n15+1)/2;\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\tlong n = sc.nextInt();\n\t\tlong sol = n*(n+1)/2;\n\t\tlong n3 = n/3;\n\t\tsol -= 3*n3*(n3+1)/2;\n\t\tlong n5 = n/5;\n\t\tsol -= 5*n5*(n5+1)/2;\n\t\tlong n15 = n/15;\n\t\tsol += 15*n15*(n15+1)/2;\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)",
"long n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sol = n*(n+1)/2;",
"sol",
"n*(n+1)/2",
"n*(n+1)",
"n",
"(n+1)",
"n",
"1",
"2",
"long n3 = n/3;",
"n3",
"n/3",
"n",
"3",
"sol -= 3*n3*(n3+1)/2",
"sol",
"3*n3*(n3+1)/2",
"3*n3*(n3+1)",
"3*n3*(n3+1)",
"3",
"n3",
"(n3+1)",
"n3",
"1",
"2",
"long n5 = n/5;",
"n5",
"n/5",
"n",
"5",
"sol -= 5*n5*(n5+1)/2",
"sol",
"5*n5*(n5+1)/2",
"5*n5*(n5+1)",
"5*n5*(n5+1)",
"5",
"n5",
"(n5+1)",
"n5",
"1",
"2",
"long n15 = n/15;",
"n15",
"n/15",
"n",
"15",
"sol += 15*n15*(n15+1)/2",
"sol",
"15*n15*(n15+1)/2",
"15*n15*(n15+1)",
"15*n15*(n15+1)",
"15",
"n15",
"(n15+1)",
"n15",
"1",
"2",
"System.out.println(sol)",
"System.out.println",
"System.out",
"System",
"System.out",
"sol",
"sc.close()",
"sc.close",
"sc",
"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\tlong n = sc.nextInt();\n\t\tlong sol = n*(n+1)/2;\n\t\tlong n3 = n/3;\n\t\tsol -= 3*n3*(n3+1)/2;\n\t\tlong n5 = n/5;\n\t\tsol -= 5*n5*(n5+1)/2;\n\t\tlong n15 = n/15;\n\t\tsol += 15*n15*(n15+1)/2;\n\t\t\n\t\tSystem.out.println(sol);\n\t\t\n\t\tsc.close();\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\tlong n = sc.nextInt();\n\t\tlong sol = n*(n+1)/2;\n\t\tlong n3 = n/3;\n\t\tsol -= 3*n3*(n3+1)/2;\n\t\tlong n5 = n/5;\n\t\tsol -= 5*n5*(n5+1)/2;\n\t\tlong n15 = n/15;\n\t\tsol += 15*n15*(n15+1)/2;\n\t\t\n\t\tSystem.out.println(sol);\n\t\t\n\t\tsc.close();\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);
long n = sc.nextInt();
long sol = n*(n+1)/2;
long n3 = n/3;
sol -= 3*n3*(n3+1)/2;
long n5 = n/5;
sol -= 5*n5*(n5+1)/2;
long n15 = n/15;
sol += 15*n15*(n15+1)/2;
System.out.println(sol);
sc.close();
}
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,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
18,
13,
13,
18,
13,
13,
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,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
0,
13,
13,
4,
18,
13,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
77,
11
],
[
77,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
12,
23
],
[
23,
24
],
[
77,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
27,
36
],
[
36,
37
],
[
36,
38
],
[
27,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
52,
64
],
[
51,
65
],
[
65,
66
],
[
65,
67
],
[
27,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
25,
72
],
[
72,
73
],
[
25,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
] |
[
"\nimport java.io.InputStream;\nimport java.io.PrintStream;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n\n long ans = 0;\n for(int i = 1; i <= N; i++) {\n if(i % 3 == 0 || i % 5 == 0) continue;\n ans += i;\n }\n\n os.println(ans);\n }\n\n}",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintStream;",
"PrintStream",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n\n long ans = 0;\n for(int i = 1; i <= N; i++) {\n if(i % 3 == 0 || i % 5 == 0) continue;\n ans += i;\n }\n\n os.println(ans);\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }",
"main",
"{\n solve(System.in, System.out);\n }",
"solve(System.in, System.out)",
"solve",
"System.in",
"System",
"System.in",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n\n long ans = 0;\n for(int i = 1; i <= N; i++) {\n if(i % 3 == 0 || i % 5 == 0) continue;\n ans += i;\n }\n\n os.println(ans);\n }",
"solve",
"{\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n\n long ans = 0;\n for(int i = 1; i <= N; i++) {\n if(i % 3 == 0 || i % 5 == 0) continue;\n ans += i;\n }\n\n os.println(ans);\n }",
"Scanner scan = new Scanner(is);",
"scan",
"new Scanner(is)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long ans = 0;",
"ans",
"0",
"for(int i = 1; i <= N; i++) {\n if(i % 3 == 0 || i % 5 == 0) continue;\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) continue;\n ans += i;\n }",
"{\n if(i % 3 == 0 || i % 5 == 0) continue;\n ans += 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;",
"ans += i",
"ans",
"i",
"os.println(ans)",
"os.println",
"os",
"ans",
"InputStream is",
"is",
"PrintStream os",
"os",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n\n long ans = 0;\n for(int i = 1; i <= N; i++) {\n if(i % 3 == 0 || i % 5 == 0) continue;\n ans += i;\n }\n\n os.println(ans);\n }\n\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n\n long ans = 0;\n for(int i = 1; i <= N; i++) {\n if(i % 3 == 0 || i % 5 == 0) continue;\n ans += i;\n }\n\n os.println(ans);\n }\n\n}",
"Main"
] |
import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
solve(System.in, System.out);
}
static void solve(InputStream is, PrintStream os) {
// Your code here!
Scanner scan = new Scanner(is);
int N = scan.nextInt();
long ans = 0;
for(int i = 1; i <= N; i++) {
if(i % 3 == 0 || i % 5 == 0) continue;
ans += i;
}
os.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,
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,
40,
13,
9,
30,
0,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
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
],
[
51,
54
],
[
39,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
]
] |
[
"import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n sc.close();\n\n long p = 1;\n long sum = 0;\n for (int i = 0; i < n; i++) {\n if (p%5 == 0 || p%3 == 0) {\n p++;\n continue;\n } else {\n sum += p;\n p++;\n }\n }\n System.out.println(sum);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n sc.close();\n\n long p = 1;\n long sum = 0;\n for (int i = 0; i < n; i++) {\n if (p%5 == 0 || p%3 == 0) {\n p++;\n continue;\n } else {\n sum += p;\n p++;\n }\n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n sc.close();\n\n long p = 1;\n long sum = 0;\n for (int i = 0; i < n; i++) {\n if (p%5 == 0 || p%3 == 0) {\n p++;\n continue;\n } else {\n sum += p;\n p++;\n }\n }\n System.out.println(sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n sc.close();\n\n long p = 1;\n long sum = 0;\n for (int i = 0; i < n; i++) {\n if (p%5 == 0 || p%3 == 0) {\n p++;\n continue;\n } else {\n sum += p;\n p++;\n }\n }\n System.out.println(sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n = sc.nextLong();",
"n",
"sc.nextLong()",
"sc.nextLong",
"sc",
"sc.close()",
"sc.close",
"sc",
"long p = 1;",
"p",
"1",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n if (p%5 == 0 || p%3 == 0) {\n p++;\n continue;\n } else {\n sum += p;\n p++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (p%5 == 0 || p%3 == 0) {\n p++;\n continue;\n } else {\n sum += p;\n p++;\n }\n }",
"{\n if (p%5 == 0 || p%3 == 0) {\n p++;\n continue;\n } else {\n sum += p;\n p++;\n }\n }",
"if (p%5 == 0 || p%3 == 0) {\n p++;\n continue;\n } else {\n sum += p;\n p++;\n }",
"p%5 == 0 || p%3 == 0",
"p%5 == 0",
"p%5",
"p",
"5",
"0",
"p%3 == 0",
"p%3",
"p",
"3",
"0",
"{\n p++;\n continue;\n }",
"p++",
"p",
"continue;",
"{\n sum += p;\n p++;\n }",
"sum += p",
"sum",
"p",
"p++",
"p",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String args[]",
"args"
] |
import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
sc.close();
long p = 1;
long sum = 0;
for (int i = 0; i < n; i++) {
if (p%5 == 0 || p%3 == 0) {
p++;
continue;
} else {
sum += p;
p++;
}
}
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,
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\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint N = sc.nextInt();\n \t\n \tlong sum=0;\n \n \tfor(int i=1;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n sum=sum+i;\n }\n \n }\n System.out.println(sum);\n \n \n\t\t\n\t\t\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint N = sc.nextInt();\n \t\n \tlong sum=0;\n \n \tfor(int i=1;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n sum=sum+i;\n }\n \n }\n System.out.println(sum);\n \n \n\t\t\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint N = sc.nextInt();\n \t\n \tlong sum=0;\n \n \tfor(int i=1;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n sum=sum+i;\n }\n \n }\n System.out.println(sum);\n \n \n\t\t\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint N = sc.nextInt();\n \t\n \tlong sum=0;\n \n \tfor(int i=1;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n sum=sum+i;\n }\n \n }\n System.out.println(sum);\n \n \n\t\t\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum=0;",
"sum",
"0",
"for(int i=1;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n sum=sum+i;\n }\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+i;\n }\n \n }",
"{\n if(i%3!=0&&i%5!=0){\n sum=sum+i;\n }\n \n }",
"if(i%3!=0&&i%5!=0){\n sum=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=sum+i;\n }",
"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 sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint N = sc.nextInt();\n \t\n \tlong sum=0;\n \n \tfor(int i=1;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n sum=sum+i;\n }\n \n }\n System.out.println(sum);\n \n \n\t\t\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint N = sc.nextInt();\n \t\n \tlong sum=0;\n \n \tfor(int i=1;i<=N;i++){\n if(i%3!=0&&i%5!=0){\n sum=sum+i;\n }\n \n }\n System.out.println(sum);\n \n \n\t\t\n\t\t\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int N = sc.nextInt();
long sum=0;
for(int i=1;i<=N;i++){
if(i%3!=0&&i%5!=0){
sum=sum+i;
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
4,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
4,
18,
13,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
0,
13,
17,
29,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
13,
17,
29,
17,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
29,
17,
11,
1,
41,
13,
17,
2,
2,
13,
13,
13,
1,
0,
13,
2,
13,
17,
30,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
2,
13,
17,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
8,
2,
13,
13,
4,
13,
13,
2,
13,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
13,
17,
29,
13,
41,
13,
4,
13,
13,
2,
13,
17,
13,
14,
2,
2,
13,
17,
17,
29,
2,
2,
13,
13,
13,
29,
2,
2,
2,
2,
13,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
13,
13,
2,
13,
17,
13,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
2,
13,
17,
29,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
2,
13,
17,
29,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
2,
13,
17,
29,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
2,
13,
17,
29,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
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,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
619,
11
],
[
619,
12
],
[
12,
13
],
[
619,
14
],
[
14,
15
],
[
619,
16
],
[
16,
17
],
[
619,
18
],
[
18,
19
],
[
619,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
22,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
22,
33
],
[
33,
34
],
[
33,
35
],
[
22,
36
],
[
36,
37
],
[
36,
38
],
[
22,
39
],
[
39,
40
],
[
39,
41
],
[
39,
42
],
[
22,
43
],
[
43,
44
],
[
44,
45
],
[
20,
46
],
[
46,
47
],
[
619,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
48,
54
],
[
54,
55
],
[
48,
56
],
[
56,
57
],
[
619,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
64,
74
],
[
74,
75
],
[
75,
76
],
[
64,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
60,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
60,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
88,
98
],
[
98,
99
],
[
99,
100
],
[
88,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
58,
110
],
[
110,
111
],
[
619,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
114,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
124,
126
],
[
114,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
112,
132
],
[
132,
133
],
[
112,
134
],
[
134,
135
],
[
112,
136
],
[
136,
137
],
[
619,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
151,
153
],
[
148,
154
],
[
154,
155
],
[
154,
156
],
[
140,
157
],
[
157,
158
],
[
138,
159
],
[
159,
160
],
[
619,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
163,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
163,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
177,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
176,
188
],
[
188,
189
],
[
163,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
190,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
203,
205
],
[
190,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
208,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
217,
219
],
[
214,
220
],
[
207,
221
],
[
221,
222
],
[
163,
223
],
[
223,
224
],
[
161,
225
],
[
225,
226
],
[
619,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
230,
234
],
[
234,
235
],
[
229,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
237,
241
],
[
241,
242
],
[
241,
243
],
[
241,
244
],
[
244,
245
],
[
244,
246
],
[
237,
247
],
[
247,
248
],
[
247,
249
],
[
247,
250
],
[
250,
251
],
[
250,
252
],
[
227,
253
],
[
253,
254
],
[
227,
255
],
[
255,
256
],
[
619,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
260,
264
],
[
264,
265
],
[
259,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
266,
270
],
[
270,
271
],
[
259,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
274,
276
],
[
274,
277
],
[
277,
278
],
[
277,
279
],
[
274,
280
],
[
259,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
281,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
288,
292
],
[
281,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
296,
300
],
[
295,
301
],
[
294,
302
],
[
257,
303
],
[
303,
304
],
[
257,
305
],
[
305,
306
],
[
257,
307
],
[
307,
308
],
[
619,
309
],
[
309,
310
],
[
309,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
313,
316
],
[
316,
317
],
[
316,
318
],
[
313,
319
],
[
309,
320
],
[
320,
321
],
[
309,
322
],
[
322,
323
],
[
619,
324
],
[
324,
325
],
[
324,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
327,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
334,
336
],
[
327,
337
],
[
337,
338
],
[
338,
339
],
[
327,
340
],
[
340,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
341,
345
],
[
345,
346
],
[
346,
347
],
[
324,
348
],
[
348,
349
],
[
324,
350
],
[
350,
351
],
[
619,
352
],
[
352,
353
],
[
352,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
357,
358
],
[
357,
359
],
[
355,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
362,
364
],
[
355,
365
],
[
365,
366
],
[
366,
367
],
[
355,
368
],
[
368,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
369,
373
],
[
373,
374
],
[
374,
375
],
[
352,
376
],
[
376,
377
],
[
352,
378
],
[
378,
379
],
[
619,
380
],
[
380,
381
],
[
380,
382
],
[
382,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
383,
388
],
[
388,
389
],
[
388,
390
],
[
390,
391
],
[
390,
392
],
[
383,
393
],
[
393,
394
],
[
394,
395
],
[
383,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
398,
400
],
[
397,
401
],
[
401,
402
],
[
402,
403
],
[
380,
404
],
[
404,
405
],
[
380,
406
],
[
406,
407
],
[
619,
408
],
[
408,
409
],
[
408,
410
],
[
410,
411
],
[
411,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
411,
416
],
[
416,
417
],
[
416,
418
],
[
418,
419
],
[
418,
420
],
[
411,
421
],
[
421,
422
],
[
422,
423
],
[
411,
424
],
[
424,
425
],
[
425,
426
],
[
426,
427
],
[
426,
428
],
[
425,
429
],
[
429,
430
],
[
430,
431
],
[
408,
432
],
[
432,
433
],
[
408,
434
],
[
434,
435
],
[
619,
436
],
[
436,
437
],
[
436,
438
],
[
438,
439
],
[
439,
440
],
[
439,
441
],
[
438,
442
],
[
442,
443
],
[
442,
444
],
[
442,
445
],
[
445,
446
],
[
446,
447
],
[
447,
448
],
[
446,
449
],
[
449,
450
],
[
449,
451
],
[
438,
452
],
[
452,
453
],
[
453,
454
],
[
454,
455
],
[
436,
456
],
[
456,
457
],
[
619,
458
],
[
458,
459
],
[
458,
460
],
[
460,
461
],
[
461,
462
],
[
461,
463
],
[
460,
464
],
[
464,
465
],
[
464,
466
],
[
464,
467
],
[
467,
468
],
[
468,
469
],
[
469,
470
],
[
468,
471
],
[
471,
472
],
[
471,
473
],
[
460,
474
],
[
474,
475
],
[
475,
476
],
[
476,
477
],
[
458,
478
],
[
478,
479
],
[
619,
480
],
[
480,
481
],
[
480,
482
],
[
482,
483
],
[
483,
484
],
[
483,
485
],
[
482,
486
],
[
486,
487
],
[
486,
488
],
[
486,
489
],
[
489,
490
],
[
490,
491
],
[
491,
492
],
[
490,
493
],
[
493,
494
],
[
493,
495
],
[
482,
496
],
[
496,
497
],
[
497,
498
],
[
498,
499
],
[
480,
500
],
[
500,
501
],
[
619,
502
],
[
502,
503
],
[
502,
504
],
[
504,
505
],
[
505,
506
],
[
505,
507
],
[
504,
508
],
[
508,
509
],
[
508,
510
],
[
508,
511
],
[
511,
512
],
[
512,
513
],
[
513,
514
],
[
512,
515
],
[
515,
516
],
[
515,
517
],
[
504,
518
],
[
518,
519
],
[
519,
520
],
[
520,
521
],
[
502,
522
],
[
522,
523
],
[
619,
524
],
[
524,
525
],
[
524,
526
],
[
526,
527
],
[
524,
528
],
[
528,
529
],
[
524,
530
],
[
530,
531
],
[
530,
532
],
[
532,
533
],
[
533,
534
],
[
534,
535
],
[
534,
536
],
[
533,
537
],
[
532,
538
],
[
538,
539
],
[
539,
540
],
[
539,
541
],
[
538,
542
],
[
530,
543
],
[
543,
544
],
[
530,
545
],
[
545,
546
],
[
619,
547
],
[
547,
548
],
[
547,
549
],
[
549,
550
],
[
547,
551
],
[
551,
552
],
[
547,
553
],
[
553,
554
],
[
553,
555
],
[
555,
556
],
[
556,
557
],
[
556,
558
],
[
555,
559
],
[
559,
560
],
[
559,
561
],
[
553,
562
],
[
562,
563
],
[
547,
564
],
[
564,
565
],
[
564,
566
],
[
566,
567
],
[
567,
568
],
[
568,
569
],
[
569,
570
],
[
569,
571
],
[
568,
572
],
[
572,
573
],
[
573,
574
],
[
574,
575
],
[
567,
576
],
[
576,
577
],
[
577,
578
],
[
578,
579
],
[
578,
580
],
[
580,
581
],
[
581,
582
],
[
577,
583
],
[
583,
584
],
[
584,
585
],
[
584,
586
],
[
566,
587
],
[
587,
588
],
[
588,
589
],
[
589,
590
],
[
547,
591
],
[
591,
592
],
[
591,
593
],
[
593,
594
],
[
594,
595
],
[
595,
596
],
[
596,
597
],
[
595,
598
],
[
598,
599
],
[
547,
600
],
[
600,
601
],
[
600,
602
],
[
602,
603
],
[
603,
604
],
[
604,
605
],
[
605,
606
],
[
604,
607
],
[
607,
608
],
[
547,
609
],
[
609,
610
],
[
609,
611
],
[
611,
612
],
[
612,
613
],
[
613,
614
],
[
614,
615
],
[
613,
616
],
[
616,
617
],
[
0,
618
],
[
618,
619
],
[
618,
620
]
] |
[
"import java.io.*;\nimport java.util.*;\nimport java.lang.*;\npublic class Main{\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n solve(in, out);\n out.close();\n }\n static int L,R,top,bottom;\n // static int ans;\n public static void solve(InputReader sc, PrintWriter pw) {\n // int t=sc.nextInt();\n int t=1;\n u:while(t-->0){\n long n=sc.nextLong();\n long sum=(n*(n+1))/2;\n long d=n/3;\n sum-=((d*(d+1))*3)/2;\n d=n/5;\n sum-=((d*(d+1))*5)/2;\n d=n/15;\n sum+=((d*(d+1))*15)/2;\n // int []arr=new int [n];\n // feedArr(arr,sc);\n // sort(arr);\n pw.println(sum);\n }\n }\n public static void sort(int []arr){\n ArrayList<Integer> list=new ArrayList<>();\n for(int i=0;i<arr.length;i++)\n list.add(arr[i]);\n Collections.sort(list);\n for(int i=0;i<arr.length;i++)\n arr[i]=list.get(i);\n }\n public static void swap(char []chrr, int i, int j){\n char temp=chrr[i];\n chrr[i]=chrr[j];\n chrr[j]=temp;\n }\n public static int num(int n){\n int a=0;\n while(n>0){\n a+=(n&1);\n n>>=1;\n }\n return a;\n }\n static class Pair{\n long u, v;\n Pair(long a,long b){\n this.u=a;\n this.v=b;\n } \n }\n // public int compareTo(Pair p){\n // return (b-p.b);\n // }\n // public int hashCode(){\n // int hashcode = (a+\" \"+b).hashCode();\n // return hashcode;\n // }\n \n // public boolean equals(Object obj){\n // if (obj instanceof Pair) {\n // Pair p = (Pair) obj;\n // return (p.a==this.a && p.b == this.b);\n // }\n // return false;\n // }\n \n static boolean isPrime(int n) { \n if (n <= 1) \n return false; \n if (n <= 3) \n return true; \n if (n % 2 == 0 || n % 3 == 0) \n return false; \n for (int i = 5; i * i <= n; i = i + 6) \n if (n % i == 0 || n % (i + 2) == 0) \n return false; \n return true; \n } \n static int gcd(int a, int b) { \n if (b == 0) \n return a; \n return a>b?gcd(b, a % b):gcd(a, b % a); \n } \n static long fast_pow(long base,long n,long M){\n if(n==0)\n return 1;\n if(n==1)\n return base;\n long halfn=fast_pow(base,n/2,M);\n if(n%2==0)\n return ( halfn * halfn ) % M;\n else\n return ( ( ( halfn * halfn ) % M ) * base ) % M;\n }\n static long modInverse(long n,long M){\n return fast_pow(n,M-2,M);\n }\n public static void feedArr(long []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextLong();\n }\n public static void feedArr(double []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextDouble();\n }\n public static void feedArr(int []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextInt();\n }\n public static void feedArr(String []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.next();\n }\n public static String printArr(int []arr){\n StringBuilder sbr=new StringBuilder();\n for(int i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }\n public static String printArr(long []arr){\n StringBuilder sbr=new StringBuilder();\n for(long i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }\n public static String printArr(String []arr){\n StringBuilder sbr=new StringBuilder();\n for(String i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }\n public static String printArr(double []arr){\n StringBuilder sbr=new StringBuilder();\n for(double i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\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 public int nextInt() {\n return Integer.parseInt(next());\n }\n public long nextLong() {\n return Long.parseLong(next());\n }\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n }\n} ",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main{\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n solve(in, out);\n out.close();\n }\n static int L,R,top,bottom;\n // static int ans;\n public static void solve(InputReader sc, PrintWriter pw) {\n // int t=sc.nextInt();\n int t=1;\n u:while(t-->0){\n long n=sc.nextLong();\n long sum=(n*(n+1))/2;\n long d=n/3;\n sum-=((d*(d+1))*3)/2;\n d=n/5;\n sum-=((d*(d+1))*5)/2;\n d=n/15;\n sum+=((d*(d+1))*15)/2;\n // int []arr=new int [n];\n // feedArr(arr,sc);\n // sort(arr);\n pw.println(sum);\n }\n }\n public static void sort(int []arr){\n ArrayList<Integer> list=new ArrayList<>();\n for(int i=0;i<arr.length;i++)\n list.add(arr[i]);\n Collections.sort(list);\n for(int i=0;i<arr.length;i++)\n arr[i]=list.get(i);\n }\n public static void swap(char []chrr, int i, int j){\n char temp=chrr[i];\n chrr[i]=chrr[j];\n chrr[j]=temp;\n }\n public static int num(int n){\n int a=0;\n while(n>0){\n a+=(n&1);\n n>>=1;\n }\n return a;\n }\n static class Pair{\n long u, v;\n Pair(long a,long b){\n this.u=a;\n this.v=b;\n } \n }\n // public int compareTo(Pair p){\n // return (b-p.b);\n // }\n // public int hashCode(){\n // int hashcode = (a+\" \"+b).hashCode();\n // return hashcode;\n // }\n \n // public boolean equals(Object obj){\n // if (obj instanceof Pair) {\n // Pair p = (Pair) obj;\n // return (p.a==this.a && p.b == this.b);\n // }\n // return false;\n // }\n \n static boolean isPrime(int n) { \n if (n <= 1) \n return false; \n if (n <= 3) \n return true; \n if (n % 2 == 0 || n % 3 == 0) \n return false; \n for (int i = 5; i * i <= n; i = i + 6) \n if (n % i == 0 || n % (i + 2) == 0) \n return false; \n return true; \n } \n static int gcd(int a, int b) { \n if (b == 0) \n return a; \n return a>b?gcd(b, a % b):gcd(a, b % a); \n } \n static long fast_pow(long base,long n,long M){\n if(n==0)\n return 1;\n if(n==1)\n return base;\n long halfn=fast_pow(base,n/2,M);\n if(n%2==0)\n return ( halfn * halfn ) % M;\n else\n return ( ( ( halfn * halfn ) % M ) * base ) % M;\n }\n static long modInverse(long n,long M){\n return fast_pow(n,M-2,M);\n }\n public static void feedArr(long []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextLong();\n }\n public static void feedArr(double []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextDouble();\n }\n public static void feedArr(int []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextInt();\n }\n public static void feedArr(String []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.next();\n }\n public static String printArr(int []arr){\n StringBuilder sbr=new StringBuilder();\n for(int i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }\n public static String printArr(long []arr){\n StringBuilder sbr=new StringBuilder();\n for(long i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }\n public static String printArr(String []arr){\n StringBuilder sbr=new StringBuilder();\n for(String i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }\n public static String printArr(double []arr){\n StringBuilder sbr=new StringBuilder();\n for(double i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\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 public int nextInt() {\n return Integer.parseInt(next());\n }\n public long nextLong() {\n return Long.parseLong(next());\n }\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n }\n}",
"Main",
"static int L",
"L",
"R",
"R",
"top",
"top",
"bottom;",
"bottom",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n solve(in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n solve(in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"solve(in, out)",
"solve",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"// static int ans;\n public static void solve(InputReader sc, PrintWriter pw) {\n // int t=sc.nextInt();\n int t=1;\n u:while(t-->0){\n long n=sc.nextLong();\n long sum=(n*(n+1))/2;\n long d=n/3;\n sum-=((d*(d+1))*3)/2;\n d=n/5;\n sum-=((d*(d+1))*5)/2;\n d=n/15;\n sum+=((d*(d+1))*15)/2;\n // int []arr=new int [n];\n // feedArr(arr,sc);\n // sort(arr);\n pw.println(sum);\n }\n }",
"solve",
"{\n // int t=sc.nextInt();\n int t=1;\n u:while(t-->0){\n long n=sc.nextLong();\n long sum=(n*(n+1))/2;\n long d=n/3;\n sum-=((d*(d+1))*3)/2;\n d=n/5;\n sum-=((d*(d+1))*5)/2;\n d=n/15;\n sum+=((d*(d+1))*15)/2;\n // int []arr=new int [n];\n // feedArr(arr,sc);\n // sort(arr);\n pw.println(sum);\n }\n }",
"int t=1;",
"t",
"1",
"InputReader sc",
"sc",
"PrintWriter pw",
"pw",
"public static void sort(int []arr){\n ArrayList<Integer> list=new ArrayList<>();\n for(int i=0;i<arr.length;i++)\n list.add(arr[i]);\n Collections.sort(list);\n for(int i=0;i<arr.length;i++)\n arr[i]=list.get(i);\n }",
"sort",
"{\n ArrayList<Integer> list=new ArrayList<>();\n for(int i=0;i<arr.length;i++)\n list.add(arr[i]);\n Collections.sort(list);\n for(int i=0;i<arr.length;i++)\n arr[i]=list.get(i);\n }",
"ArrayList<Integer> list=new ArrayList<>();",
"list",
"new ArrayList<>()",
"for(int i=0;i<arr.length;i++)\n list.add(arr[i]);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"list.add(arr[i]);",
"list.add(arr[i])",
"list.add",
"list",
"arr[i]",
"arr",
"i",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"for(int i=0;i<arr.length;i++)\n arr[i]=list.get(i);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"arr[i]=list.get(i);",
"arr[i]=list.get(i)",
"arr[i]",
"arr",
"i",
"list.get(i)",
"list.get",
"list",
"i",
"int []arr",
"arr",
"public static void swap(char []chrr, int i, int j){\n char temp=chrr[i];\n chrr[i]=chrr[j];\n chrr[j]=temp;\n }",
"swap",
"{\n char temp=chrr[i];\n chrr[i]=chrr[j];\n chrr[j]=temp;\n }",
"char temp=chrr[i];",
"temp",
"chrr[i]",
"chrr",
"i",
"chrr[i]=chrr[j]",
"chrr[i]",
"chrr",
"i",
"chrr[j]",
"chrr",
"j",
"chrr[j]=temp",
"chrr[j]",
"chrr",
"j",
"temp",
"char []chrr",
"chrr",
"int i",
"i",
"int j",
"j",
"public static int num(int n){\n int a=0;\n while(n>0){\n a+=(n&1);\n n>>=1;\n }\n return a;\n }",
"num",
"{\n int a=0;\n while(n>0){\n a+=(n&1);\n n>>=1;\n }\n return a;\n }",
"int a=0;",
"a",
"0",
"while(n>0){\n a+=(n&1);\n n>>=1;\n }",
"n>0",
"n",
"0",
"{\n a+=(n&1);\n n>>=1;\n }",
"a+=(n&1)",
"a",
"(n&1)",
"n",
"1",
"n>>=1",
"n",
"1",
"return a;",
"a",
"int n",
"n",
"static boolean isPrime(int n) { \n if (n <= 1) \n return false; \n if (n <= 3) \n return true; \n if (n % 2 == 0 || n % 3 == 0) \n return false; \n for (int i = 5; i * i <= n; i = i + 6) \n if (n % i == 0 || n % (i + 2) == 0) \n return false; \n return true; \n }",
"isPrime",
"{ \n if (n <= 1) \n return false; \n if (n <= 3) \n return true; \n if (n % 2 == 0 || n % 3 == 0) \n return false; \n for (int i = 5; i * i <= n; i = i + 6) \n if (n % i == 0 || n % (i + 2) == 0) \n return false; \n return true; \n }",
"if (n <= 1) \n return false;",
"n <= 1",
"n",
"1",
"return false;",
"false",
"if (n <= 3) \n return true;",
"n <= 3",
"n",
"3",
"return true;",
"true",
"if (n % 2 == 0 || n % 3 == 0) \n return false;",
"n % 2 == 0 || n % 3 == 0",
"n % 2 == 0",
"n % 2",
"n",
"2",
"0",
"n % 3 == 0",
"n % 3",
"n",
"3",
"0",
"return false;",
"false",
"for (int i = 5; i * i <= n; i = i + 6) \n if (n % i == 0 || n % (i + 2) == 0) \n return false;",
"int i = 5;",
"int i = 5;",
"i",
"5",
"i * i <= n",
"i * i",
"i",
"i",
"n",
"i = i + 6",
"i = i + 6",
"i",
"i + 6",
"i",
"6",
"if (n % i == 0 || n % (i + 2) == 0) \n return false;",
"if (n % i == 0 || n % (i + 2) == 0) \n return false;",
"n % i == 0 || n % (i + 2) == 0",
"n % i == 0",
"n % i",
"n",
"i",
"0",
"n % (i + 2) == 0",
"n % (i + 2)",
"n",
"(i + 2)",
"i",
"2",
"0",
"return false;",
"false",
"return true;",
"true",
"int n",
"n",
"static int gcd(int a, int b) { \n if (b == 0) \n return a; \n return a>b?gcd(b, a % b):gcd(a, b % a); \n }",
"gcd",
"{ \n if (b == 0) \n return a; \n return a>b?gcd(b, a % b):gcd(a, b % a); \n }",
"if (b == 0) \n return a;",
"b == 0",
"b",
"0",
"return a;",
"a",
"return a>b?gcd(b, a % b):gcd(a, b % a);",
"a>b?gcd(b, a % b):gcd(a, b % a)",
"a>b",
"a",
"b",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"gcd(a, b % a)",
"gcd",
"a",
"b % a",
"b",
"a",
"int a",
"a",
"int b",
"b",
"static long fast_pow(long base,long n,long M){\n if(n==0)\n return 1;\n if(n==1)\n return base;\n long halfn=fast_pow(base,n/2,M);\n if(n%2==0)\n return ( halfn * halfn ) % M;\n else\n return ( ( ( halfn * halfn ) % M ) * base ) % M;\n }",
"fast_pow",
"{\n if(n==0)\n return 1;\n if(n==1)\n return base;\n long halfn=fast_pow(base,n/2,M);\n if(n%2==0)\n return ( halfn * halfn ) % M;\n else\n return ( ( ( halfn * halfn ) % M ) * base ) % M;\n }",
"if(n==0)\n return 1;",
"n==0",
"n",
"0",
"return 1;",
"1",
"if(n==1)\n return base;",
"n==1",
"n",
"1",
"return base;",
"base",
"long halfn=fast_pow(base,n/2,M);",
"halfn",
"fast_pow(base,n/2,M)",
"fast_pow",
"base",
"n/2",
"n",
"2",
"M",
"if(n%2==0)\n return ( halfn * halfn ) % M;\n else\n return ( ( ( halfn * halfn ) % M ) * base ) % M;",
"n%2==0",
"n%2",
"n",
"2",
"0",
"return ( halfn * halfn ) % M;",
"( halfn * halfn ) % M",
"( halfn * halfn )",
"halfn",
"halfn",
"M",
"return ( ( ( halfn * halfn ) % M ) * base ) % M;",
"( ( ( halfn * halfn ) % M ) * base ) % M",
"( ( ( halfn * halfn ) % M ) * base )",
"( ( halfn * halfn ) % M )",
"( halfn * halfn )",
"halfn",
"halfn",
"M",
"base",
"M",
"long base",
"base",
"long n",
"n",
"long M",
"M",
"static long modInverse(long n,long M){\n return fast_pow(n,M-2,M);\n }",
"modInverse",
"{\n return fast_pow(n,M-2,M);\n }",
"return fast_pow(n,M-2,M);",
"fast_pow(n,M-2,M)",
"fast_pow",
"n",
"M-2",
"M",
"2",
"M",
"long n",
"n",
"long M",
"M",
"public static void feedArr(long []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextLong();\n }",
"feedArr",
"{\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextLong();\n }",
"for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"arr[i]=sc.nextLong();",
"arr[i]=sc.nextLong()",
"arr[i]",
"arr",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long []arr",
"arr",
"InputReader sc",
"sc",
"public static void feedArr(double []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextDouble();\n }",
"feedArr",
"{\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextDouble();\n }",
"for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextDouble();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"arr[i]=sc.nextDouble();",
"arr[i]=sc.nextDouble()",
"arr[i]",
"arr",
"i",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double []arr",
"arr",
"InputReader sc",
"sc",
"public static void feedArr(int []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextInt();\n }",
"feedArr",
"{\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextInt();\n }",
"for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"arr[i]=sc.nextInt();",
"arr[i]=sc.nextInt()",
"arr[i]",
"arr",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int []arr",
"arr",
"InputReader sc",
"sc",
"public static void feedArr(String []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.next();\n }",
"feedArr",
"{\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.next();\n }",
"for(int i=0;i<arr.length;i++)\n arr[i]=sc.next();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"arr[i]=sc.next();",
"arr[i]=sc.next()",
"arr[i]",
"arr",
"i",
"sc.next()",
"sc.next",
"sc",
"String []arr",
"arr",
"InputReader sc",
"sc",
"public static String printArr(int []arr){\n StringBuilder sbr=new StringBuilder();\n for(int i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }",
"printArr",
"{\n StringBuilder sbr=new StringBuilder();\n for(int i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }",
"StringBuilder sbr=new StringBuilder();",
"sbr",
"new StringBuilder()",
"for(int i:arr)\n sbr.append(i+\" \");",
"int i",
"arr",
"sbr.append(i+\" \");",
"sbr.append(i+\" \")",
"sbr.append",
"sbr",
"i+\" \"",
"i",
"\" \"",
"return sbr.toString();",
"sbr.toString()",
"sbr.toString",
"sbr",
"int []arr",
"arr",
"public static String printArr(long []arr){\n StringBuilder sbr=new StringBuilder();\n for(long i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }",
"printArr",
"{\n StringBuilder sbr=new StringBuilder();\n for(long i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }",
"StringBuilder sbr=new StringBuilder();",
"sbr",
"new StringBuilder()",
"for(long i:arr)\n sbr.append(i+\" \");",
"long i",
"arr",
"sbr.append(i+\" \");",
"sbr.append(i+\" \")",
"sbr.append",
"sbr",
"i+\" \"",
"i",
"\" \"",
"return sbr.toString();",
"sbr.toString()",
"sbr.toString",
"sbr",
"long []arr",
"arr",
"public static String printArr(String []arr){\n StringBuilder sbr=new StringBuilder();\n for(String i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }",
"printArr",
"{\n StringBuilder sbr=new StringBuilder();\n for(String i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }",
"StringBuilder sbr=new StringBuilder();",
"sbr",
"new StringBuilder()",
"for(String i:arr)\n sbr.append(i+\" \");",
"String i",
"arr",
"sbr.append(i+\" \");",
"sbr.append(i+\" \")",
"sbr.append",
"sbr",
"i+\" \"",
"i",
"\" \"",
"return sbr.toString();",
"sbr.toString()",
"sbr.toString",
"sbr",
"String []arr",
"arr",
"public static String printArr(double []arr){\n StringBuilder sbr=new StringBuilder();\n for(double i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }",
"printArr",
"{\n StringBuilder sbr=new StringBuilder();\n for(double i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }",
"StringBuilder sbr=new StringBuilder();",
"sbr",
"new StringBuilder()",
"for(double i:arr)\n sbr.append(i+\" \");",
"double i",
"arr",
"sbr.append(i+\" \");",
"sbr.append(i+\" \")",
"sbr.append",
"sbr",
"i+\" \"",
"i",
"\" \"",
"return sbr.toString();",
"sbr.toString()",
"sbr.toString",
"sbr",
"double []arr",
"arr",
"static class Pair{\n long u, v;\n Pair(long a,long b){\n this.u=a;\n this.v=b;\n } \n }",
"Pair",
"long u",
"u",
"v;",
"v",
"Pair(long a,long b){\n this.u=a;\n this.v=b;\n }",
"Pair",
"{\n this.u=a;\n this.v=b;\n }",
"this.u=a",
"this.u",
"this",
"this.u",
"a",
"this.v=b",
"this.v",
"this",
"this.v",
"b",
"long a",
"a",
"long b",
"b",
"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 public int nextInt() {\n return Integer.parseInt(next());\n }\n public long nextLong() {\n return Long.parseLong(next());\n }\n public double nextDouble() {\n return Double.parseDouble(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 class Main{\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n solve(in, out);\n out.close();\n }\n static int L,R,top,bottom;\n // static int ans;\n public static void solve(InputReader sc, PrintWriter pw) {\n // int t=sc.nextInt();\n int t=1;\n u:while(t-->0){\n long n=sc.nextLong();\n long sum=(n*(n+1))/2;\n long d=n/3;\n sum-=((d*(d+1))*3)/2;\n d=n/5;\n sum-=((d*(d+1))*5)/2;\n d=n/15;\n sum+=((d*(d+1))*15)/2;\n // int []arr=new int [n];\n // feedArr(arr,sc);\n // sort(arr);\n pw.println(sum);\n }\n }\n public static void sort(int []arr){\n ArrayList<Integer> list=new ArrayList<>();\n for(int i=0;i<arr.length;i++)\n list.add(arr[i]);\n Collections.sort(list);\n for(int i=0;i<arr.length;i++)\n arr[i]=list.get(i);\n }\n public static void swap(char []chrr, int i, int j){\n char temp=chrr[i];\n chrr[i]=chrr[j];\n chrr[j]=temp;\n }\n public static int num(int n){\n int a=0;\n while(n>0){\n a+=(n&1);\n n>>=1;\n }\n return a;\n }\n static class Pair{\n long u, v;\n Pair(long a,long b){\n this.u=a;\n this.v=b;\n } \n }\n // public int compareTo(Pair p){\n // return (b-p.b);\n // }\n // public int hashCode(){\n // int hashcode = (a+\" \"+b).hashCode();\n // return hashcode;\n // }\n \n // public boolean equals(Object obj){\n // if (obj instanceof Pair) {\n // Pair p = (Pair) obj;\n // return (p.a==this.a && p.b == this.b);\n // }\n // return false;\n // }\n \n static boolean isPrime(int n) { \n if (n <= 1) \n return false; \n if (n <= 3) \n return true; \n if (n % 2 == 0 || n % 3 == 0) \n return false; \n for (int i = 5; i * i <= n; i = i + 6) \n if (n % i == 0 || n % (i + 2) == 0) \n return false; \n return true; \n } \n static int gcd(int a, int b) { \n if (b == 0) \n return a; \n return a>b?gcd(b, a % b):gcd(a, b % a); \n } \n static long fast_pow(long base,long n,long M){\n if(n==0)\n return 1;\n if(n==1)\n return base;\n long halfn=fast_pow(base,n/2,M);\n if(n%2==0)\n return ( halfn * halfn ) % M;\n else\n return ( ( ( halfn * halfn ) % M ) * base ) % M;\n }\n static long modInverse(long n,long M){\n return fast_pow(n,M-2,M);\n }\n public static void feedArr(long []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextLong();\n }\n public static void feedArr(double []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextDouble();\n }\n public static void feedArr(int []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextInt();\n }\n public static void feedArr(String []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.next();\n }\n public static String printArr(int []arr){\n StringBuilder sbr=new StringBuilder();\n for(int i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }\n public static String printArr(long []arr){\n StringBuilder sbr=new StringBuilder();\n for(long i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }\n public static String printArr(String []arr){\n StringBuilder sbr=new StringBuilder();\n for(String i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }\n public static String printArr(double []arr){\n StringBuilder sbr=new StringBuilder();\n for(double i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\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 public int nextInt() {\n return Integer.parseInt(next());\n }\n public long nextLong() {\n return Long.parseLong(next());\n }\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n }\n}",
"public class Main{\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n solve(in, out);\n out.close();\n }\n static int L,R,top,bottom;\n // static int ans;\n public static void solve(InputReader sc, PrintWriter pw) {\n // int t=sc.nextInt();\n int t=1;\n u:while(t-->0){\n long n=sc.nextLong();\n long sum=(n*(n+1))/2;\n long d=n/3;\n sum-=((d*(d+1))*3)/2;\n d=n/5;\n sum-=((d*(d+1))*5)/2;\n d=n/15;\n sum+=((d*(d+1))*15)/2;\n // int []arr=new int [n];\n // feedArr(arr,sc);\n // sort(arr);\n pw.println(sum);\n }\n }\n public static void sort(int []arr){\n ArrayList<Integer> list=new ArrayList<>();\n for(int i=0;i<arr.length;i++)\n list.add(arr[i]);\n Collections.sort(list);\n for(int i=0;i<arr.length;i++)\n arr[i]=list.get(i);\n }\n public static void swap(char []chrr, int i, int j){\n char temp=chrr[i];\n chrr[i]=chrr[j];\n chrr[j]=temp;\n }\n public static int num(int n){\n int a=0;\n while(n>0){\n a+=(n&1);\n n>>=1;\n }\n return a;\n }\n static class Pair{\n long u, v;\n Pair(long a,long b){\n this.u=a;\n this.v=b;\n } \n }\n // public int compareTo(Pair p){\n // return (b-p.b);\n // }\n // public int hashCode(){\n // int hashcode = (a+\" \"+b).hashCode();\n // return hashcode;\n // }\n \n // public boolean equals(Object obj){\n // if (obj instanceof Pair) {\n // Pair p = (Pair) obj;\n // return (p.a==this.a && p.b == this.b);\n // }\n // return false;\n // }\n \n static boolean isPrime(int n) { \n if (n <= 1) \n return false; \n if (n <= 3) \n return true; \n if (n % 2 == 0 || n % 3 == 0) \n return false; \n for (int i = 5; i * i <= n; i = i + 6) \n if (n % i == 0 || n % (i + 2) == 0) \n return false; \n return true; \n } \n static int gcd(int a, int b) { \n if (b == 0) \n return a; \n return a>b?gcd(b, a % b):gcd(a, b % a); \n } \n static long fast_pow(long base,long n,long M){\n if(n==0)\n return 1;\n if(n==1)\n return base;\n long halfn=fast_pow(base,n/2,M);\n if(n%2==0)\n return ( halfn * halfn ) % M;\n else\n return ( ( ( halfn * halfn ) % M ) * base ) % M;\n }\n static long modInverse(long n,long M){\n return fast_pow(n,M-2,M);\n }\n public static void feedArr(long []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextLong();\n }\n public static void feedArr(double []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextDouble();\n }\n public static void feedArr(int []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.nextInt();\n }\n public static void feedArr(String []arr,InputReader sc){\n for(int i=0;i<arr.length;i++)\n arr[i]=sc.next();\n }\n public static String printArr(int []arr){\n StringBuilder sbr=new StringBuilder();\n for(int i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }\n public static String printArr(long []arr){\n StringBuilder sbr=new StringBuilder();\n for(long i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }\n public static String printArr(String []arr){\n StringBuilder sbr=new StringBuilder();\n for(String i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\n }\n public static String printArr(double []arr){\n StringBuilder sbr=new StringBuilder();\n for(double i:arr)\n sbr.append(i+\" \");\n return sbr.toString();\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 public int nextInt() {\n return Integer.parseInt(next());\n }\n public long nextLong() {\n return Long.parseLong(next());\n }\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
import java.lang.*;
public class Main{
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
solve(in, out);
out.close();
}
static int L,R,top,bottom;
// static int ans;
public static void solve(InputReader sc, PrintWriter pw) {
// int t=sc.nextInt();
int t=1;
u:while(t-->0){
long n=sc.nextLong();
long sum=(n*(n+1))/2;
long d=n/3;
sum-=((d*(d+1))*3)/2;
d=n/5;
sum-=((d*(d+1))*5)/2;
d=n/15;
sum+=((d*(d+1))*15)/2;
// int []arr=new int [n];
// feedArr(arr,sc);
// sort(arr);
pw.println(sum);
}
}
public static void sort(int []arr){
ArrayList<Integer> list=new ArrayList<>();
for(int i=0;i<arr.length;i++)
list.add(arr[i]);
Collections.sort(list);
for(int i=0;i<arr.length;i++)
arr[i]=list.get(i);
}
public static void swap(char []chrr, int i, int j){
char temp=chrr[i];
chrr[i]=chrr[j];
chrr[j]=temp;
}
public static int num(int n){
int a=0;
while(n>0){
a+=(n&1);
n>>=1;
}
return a;
}
static class Pair{
long u, v;
Pair(long a,long b){
this.u=a;
this.v=b;
}
}
// public int compareTo(Pair p){
// return (b-p.b);
// }
// public int hashCode(){
// int hashcode = (a+" "+b).hashCode();
// return hashcode;
// }
// public boolean equals(Object obj){
// if (obj instanceof Pair) {
// Pair p = (Pair) obj;
// return (p.a==this.a && p.b == this.b);
// }
// return false;
// }
static boolean isPrime(int n) {
if (n <= 1)
return false;
if (n <= 3)
return true;
if (n % 2 == 0 || n % 3 == 0)
return false;
for (int i = 5; i * i <= n; i = i + 6)
if (n % i == 0 || n % (i + 2) == 0)
return false;
return true;
}
static int gcd(int a, int b) {
if (b == 0)
return a;
return a>b?gcd(b, a % b):gcd(a, b % a);
}
static long fast_pow(long base,long n,long M){
if(n==0)
return 1;
if(n==1)
return base;
long halfn=fast_pow(base,n/2,M);
if(n%2==0)
return ( halfn * halfn ) % M;
else
return ( ( ( halfn * halfn ) % M ) * base ) % M;
}
static long modInverse(long n,long M){
return fast_pow(n,M-2,M);
}
public static void feedArr(long []arr,InputReader sc){
for(int i=0;i<arr.length;i++)
arr[i]=sc.nextLong();
}
public static void feedArr(double []arr,InputReader sc){
for(int i=0;i<arr.length;i++)
arr[i]=sc.nextDouble();
}
public static void feedArr(int []arr,InputReader sc){
for(int i=0;i<arr.length;i++)
arr[i]=sc.nextInt();
}
public static void feedArr(String []arr,InputReader sc){
for(int i=0;i<arr.length;i++)
arr[i]=sc.next();
}
public static String printArr(int []arr){
StringBuilder sbr=new StringBuilder();
for(int i:arr)
sbr.append(i+" ");
return sbr.toString();
}
public static String printArr(long []arr){
StringBuilder sbr=new StringBuilder();
for(long i:arr)
sbr.append(i+" ");
return sbr.toString();
}
public static String printArr(String []arr){
StringBuilder sbr=new StringBuilder();
for(String i:arr)
sbr.append(i+" ");
return sbr.toString();
}
public static String printArr(double []arr){
StringBuilder sbr=new StringBuilder();
for(double i:arr)
sbr.append(i+" ");
return sbr.toString();
}
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());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
3,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
38,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
37,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
58,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
6,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n// Scanner scanner = new Scanner(System.in);\n// boolean hasNextInt = scanner.hasNextInt();\n// int x = scanner.nextInt();\n// if(hasNextInt) {\n// while(x > 0) {\n// if(x % 10 == 7) {\n// System.out.println(\"Yes\");\n// break;\n// } else {\n// x /= 10;\n// }\n// if(x == 0) {\n// System.out.println(\"No\");\n// }\n// }\n// }\n// scanner.close();\n\n Scanner scanner = new Scanner(System.in);\n boolean hasNextInt = scanner.hasNextInt();\n int n = scanner.nextInt();\n long sum = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n } if(i == n) {\n System.out.println(sum);\n break;\n }\n }\n scanner.close();\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// boolean hasNextInt = scanner.hasNextInt();\n// int x = scanner.nextInt();\n// if(hasNextInt) {\n// while(x > 0) {\n// if(x % 10 == 7) {\n// System.out.println(\"Yes\");\n// break;\n// } else {\n// x /= 10;\n// }\n// if(x == 0) {\n// System.out.println(\"No\");\n// }\n// }\n// }\n// scanner.close();\n\n Scanner scanner = new Scanner(System.in);\n boolean hasNextInt = scanner.hasNextInt();\n int n = scanner.nextInt();\n long sum = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n } if(i == n) {\n System.out.println(sum);\n break;\n }\n }\n scanner.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n// Scanner scanner = new Scanner(System.in);\n// boolean hasNextInt = scanner.hasNextInt();\n// int x = scanner.nextInt();\n// if(hasNextInt) {\n// while(x > 0) {\n// if(x % 10 == 7) {\n// System.out.println(\"Yes\");\n// break;\n// } else {\n// x /= 10;\n// }\n// if(x == 0) {\n// System.out.println(\"No\");\n// }\n// }\n// }\n// scanner.close();\n\n Scanner scanner = new Scanner(System.in);\n boolean hasNextInt = scanner.hasNextInt();\n int n = scanner.nextInt();\n long sum = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n } if(i == n) {\n System.out.println(sum);\n break;\n }\n }\n scanner.close();\n }",
"main",
"{\n// Scanner scanner = new Scanner(System.in);\n// boolean hasNextInt = scanner.hasNextInt();\n// int x = scanner.nextInt();\n// if(hasNextInt) {\n// while(x > 0) {\n// if(x % 10 == 7) {\n// System.out.println(\"Yes\");\n// break;\n// } else {\n// x /= 10;\n// }\n// if(x == 0) {\n// System.out.println(\"No\");\n// }\n// }\n// }\n// scanner.close();\n\n Scanner scanner = new Scanner(System.in);\n boolean hasNextInt = scanner.hasNextInt();\n int n = scanner.nextInt();\n long sum = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n } if(i == n) {\n System.out.println(sum);\n break;\n }\n }\n scanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"boolean hasNextInt = scanner.hasNextInt();",
"hasNextInt",
"scanner.hasNextInt()",
"scanner.hasNextInt",
"scanner",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long sum = 0;",
"sum",
"0",
"for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n } if(i == n) {\n System.out.println(sum);\n break;\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 } if(i == n) {\n System.out.println(sum);\n break;\n }\n }",
"{\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n } if(i == n) {\n System.out.println(sum);\n break;\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",
"if(i == n) {\n System.out.println(sum);\n break;\n }",
"i == n",
"i",
"n",
"{\n System.out.println(sum);\n break;\n }",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"break;",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n// Scanner scanner = new Scanner(System.in);\n// boolean hasNextInt = scanner.hasNextInt();\n// int x = scanner.nextInt();\n// if(hasNextInt) {\n// while(x > 0) {\n// if(x % 10 == 7) {\n// System.out.println(\"Yes\");\n// break;\n// } else {\n// x /= 10;\n// }\n// if(x == 0) {\n// System.out.println(\"No\");\n// }\n// }\n// }\n// scanner.close();\n\n Scanner scanner = new Scanner(System.in);\n boolean hasNextInt = scanner.hasNextInt();\n int n = scanner.nextInt();\n long sum = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n } if(i == n) {\n System.out.println(sum);\n break;\n }\n }\n scanner.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n// Scanner scanner = new Scanner(System.in);\n// boolean hasNextInt = scanner.hasNextInt();\n// int x = scanner.nextInt();\n// if(hasNextInt) {\n// while(x > 0) {\n// if(x % 10 == 7) {\n// System.out.println(\"Yes\");\n// break;\n// } else {\n// x /= 10;\n// }\n// if(x == 0) {\n// System.out.println(\"No\");\n// }\n// }\n// }\n// scanner.close();\n\n Scanner scanner = new Scanner(System.in);\n boolean hasNextInt = scanner.hasNextInt();\n int n = scanner.nextInt();\n long sum = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n } if(i == n) {\n System.out.println(sum);\n break;\n }\n }\n scanner.close();\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// Scanner scanner = new Scanner(System.in);
// boolean hasNextInt = scanner.hasNextInt();
// int x = scanner.nextInt();
// if(hasNextInt) {
// while(x > 0) {
// if(x % 10 == 7) {
// System.out.println("Yes");
// break;
// } else {
// x /= 10;
// }
// if(x == 0) {
// System.out.println("No");
// }
// }
// }
// scanner.close();
Scanner scanner = new Scanner(System.in);
boolean hasNextInt = scanner.hasNextInt();
int n = scanner.nextInt();
long sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
} if(i == n) {
System.out.println(sum);
break;
}
}
scanner.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,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
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
],
[
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
],
[
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
],
[
8,
61
],
[
61,
62
],
[
62,
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\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint n = kb.nextInt();\n\t\tlong count = 0;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0 && i % 15 != 0) {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tkb.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint n = kb.nextInt();\n\t\tlong count = 0;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0 && i % 15 != 0) {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tkb.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint n = kb.nextInt();\n\t\tlong count = 0;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0 && i % 15 != 0) {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tkb.close();\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint n = kb.nextInt();\n\t\tlong count = 0;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0 && i % 15 != 0) {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tkb.close();\n\t}",
"Scanner kb = new Scanner(System.in);",
"kb",
"new Scanner(System.in)",
"int n = kb.nextInt();",
"n",
"kb.nextInt()",
"kb.nextInt",
"kb",
"long count = 0;",
"count",
"0",
"for (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0 && i % 15 != 0) {\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 && i % 15 != 0) {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % 3 != 0 && i % 5 != 0 && i % 15 != 0) {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}",
"if (i % 3 != 0 && i % 5 != 0 && i % 15 != 0) {\n\t\t\t\tcount += i;\n\t\t\t}",
"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\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",
"kb.close()",
"kb.close",
"kb",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint n = kb.nextInt();\n\t\tlong count = 0;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0 && i % 15 != 0) {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tkb.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint n = kb.nextInt();\n\t\tlong count = 0;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0 && i % 15 != 0) {\n\t\t\t\tcount += i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tkb.close();\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner kb = new Scanner(System.in);
int n = kb.nextInt();
long count = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0 && i % 15 != 0) {
count += i;
}
}
System.out.println(count);
kb.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
0,
13,
20,
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,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
4,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
4,
18,
13,
17,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
262,
14
],
[
262,
15
],
[
15,
16
],
[
262,
17
],
[
17,
18
],
[
262,
19
],
[
19,
20
],
[
262,
21
],
[
21,
22
],
[
262,
23
],
[
23,
24
],
[
23,
25
],
[
262,
26
],
[
26,
27
],
[
262,
28
],
[
28,
29
],
[
262,
30
],
[
30,
31
],
[
262,
32
],
[
32,
33
],
[
262,
34
],
[
34,
35
],
[
262,
36
],
[
36,
37
],
[
262,
38
],
[
38,
39
],
[
262,
40
],
[
40,
41
],
[
262,
42
],
[
42,
43
],
[
262,
44
],
[
44,
45
],
[
262,
46
],
[
46,
47
],
[
262,
48
],
[
48,
49
],
[
262,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
52,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
52,
64
],
[
64,
65
],
[
64,
66
],
[
52,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
79,
91
],
[
91,
92
],
[
91,
93
],
[
52,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
52,
100
],
[
100,
101
],
[
101,
102
],
[
50,
103
],
[
103,
104
],
[
262,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
105,
109
],
[
109,
110
],
[
105,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
111,
117
],
[
117,
118
],
[
105,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
119,
125
],
[
125,
126
],
[
105,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
130,
139
],
[
139,
140
],
[
139,
141
],
[
129,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
105,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
105,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
160,
161
],
[
105,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
169,
170
],
[
105,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
175,
179
],
[
105,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
184,
187
],
[
187,
188
],
[
105,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
201,
202
],
[
201,
203
],
[
196,
204
],
[
204,
205
],
[
205,
206
],
[
196,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
191,
214
],
[
214,
215
],
[
189,
216
],
[
216,
217
],
[
105,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
225,
230
],
[
230,
231
],
[
230,
232
],
[
225,
233
],
[
233,
234
],
[
234,
235
],
[
225,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
237,
241
],
[
241,
242
],
[
220,
243
],
[
243,
244
],
[
218,
245
],
[
245,
246
],
[
105,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
105,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
257,
260
],
[
0,
261
],
[
261,
262
],
[
261,
263
]
] |
[
"import java.io.*;\nimport java.math.BigInteger;\nimport java.util.*;\n\nimport javax.transaction.xa.Xid;\n\npublic class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int n, m;\n\tstatic long mod = 998244353;\n\tstatic int[][] memo;\n\tstatic String s;\n\tstatic HashSet<Integer> nodes;\n\tstatic HashSet<Integer>[] ad, tree;\n\tstatic boolean[] vis, taken;\n\tstatic int[] a;\n\tstatic TreeSet<Long> al;\n\tstatic long[] val;\n\tstatic ArrayList<String> aa;\n\tstatic char[] b;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n=sc.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\t\tans+=i;\n\t\tSystem.out.println(ans);\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"import javax.transaction.xa.Xid;",
"Xid",
"javax.transaction.xa",
"public class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int n, m;\n\tstatic long mod = 998244353;\n\tstatic int[][] memo;\n\tstatic String s;\n\tstatic HashSet<Integer> nodes;\n\tstatic HashSet<Integer>[] ad, tree;\n\tstatic boolean[] vis, taken;\n\tstatic int[] a;\n\tstatic TreeSet<Long> al;\n\tstatic long[] val;\n\tstatic ArrayList<String> aa;\n\tstatic char[] b;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n=sc.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\t\tans+=i;\n\t\tSystem.out.println(ans);\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}",
"Main",
"static PrintWriter out;",
"out",
"static StringBuilder sb;",
"sb",
"static int n",
"n",
"m;",
"m",
"static long mod = 998244353;",
"mod",
"998244353",
"static int[][] memo;",
"memo",
"static String s;",
"s",
"static HashSet<Integer> nodes;",
"nodes",
"static HashSet<Integer>[] ad",
"ad",
"tree;",
"tree",
"static boolean[] vis",
"vis",
"taken;",
"taken",
"static int[] a;",
"a",
"static TreeSet<Long> al;",
"al",
"static long[] val;",
"val",
"static ArrayList<String> aa;",
"aa",
"static char[] b;",
"b",
"public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n=sc.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\t\tans+=i;\n\t\tSystem.out.println(ans);\n\t\tout.flush();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n=sc.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\t\tans+=i;\n\t\tSystem.out.println(ans);\n\t\tout.flush();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"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\tans+=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\tans+=i;",
"if(i%3!=0 && i%5!=0)\n\t\t\t\tans+=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",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"static class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}",
"Scanner",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(system))",
"br",
"new BufferedReader(new InputStreamReader(system))",
"InputStream system",
"system",
"public Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"Scanner",
"{\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"br = new BufferedReader(new FileReader(file))",
"br",
"new BufferedReader(new FileReader(file))",
"String file",
"file",
"public String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}",
"nextLine",
"{\n\t\t\treturn br.readLine();\n\t\t}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}",
"nextChar",
"{\n\t\t\treturn next().charAt(0);\n\t\t}",
"return next().charAt(0);",
"next().charAt(0)",
"next().charAt",
"next()",
"next",
"0",
"public Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"nextArrInt",
"{\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\ta[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[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"nextArrLong",
"{\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\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++)\n\t\t\t\ta[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 boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}",
"ready",
"{\n\t\t\treturn br.ready();\n\t\t}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}",
"waitForInput",
"{\n\t\t\tThread.sleep(3000);\n\t\t}",
"Thread.sleep(3000)",
"Thread.sleep",
"Thread",
"3000",
"public class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int n, m;\n\tstatic long mod = 998244353;\n\tstatic int[][] memo;\n\tstatic String s;\n\tstatic HashSet<Integer> nodes;\n\tstatic HashSet<Integer>[] ad, tree;\n\tstatic boolean[] vis, taken;\n\tstatic int[] a;\n\tstatic TreeSet<Long> al;\n\tstatic long[] val;\n\tstatic ArrayList<String> aa;\n\tstatic char[] b;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n=sc.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\t\tans+=i;\n\t\tSystem.out.println(ans);\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int n, m;\n\tstatic long mod = 998244353;\n\tstatic int[][] memo;\n\tstatic String s;\n\tstatic HashSet<Integer> nodes;\n\tstatic HashSet<Integer>[] ad, tree;\n\tstatic boolean[] vis, taken;\n\tstatic int[] a;\n\tstatic TreeSet<Long> al;\n\tstatic long[] val;\n\tstatic ArrayList<String> aa;\n\tstatic char[] b;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n=sc.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\t\tans+=i;\n\t\tSystem.out.println(ans);\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}",
"Main"
] |
import java.io.*;
import java.math.BigInteger;
import java.util.*;
import javax.transaction.xa.Xid;
public class Main {
static PrintWriter out;
static StringBuilder sb;
static int n, m;
static long mod = 998244353;
static int[][] memo;
static String s;
static HashSet<Integer> nodes;
static HashSet<Integer>[] ad, tree;
static boolean[] vis, taken;
static int[] a;
static TreeSet<Long> al;
static long[] val;
static ArrayList<String> aa;
static char[] b;
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
out = new PrintWriter(System.out);
int n=sc.nextInt();
long ans=0;
for(int i=1;i<=n;i++)
if(i%3!=0 && i%5!=0)
ans+=i;
System.out.println(ans);
out.flush();
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream system) {
br = new BufferedReader(new InputStreamReader(system));
}
public Scanner(String file) throws Exception {
br = new BufferedReader(new FileReader(file));
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public String nextLine() throws IOException {
return br.readLine();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public char nextChar() throws IOException {
return next().charAt(0);
}
public Long nextLong() throws IOException {
return Long.parseLong(next());
}
public int[] nextArrInt(int n) throws IOException {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
public long[] nextArrLong(int n) throws IOException {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
public boolean ready() throws IOException {
return br.ready();
}
public void waitForInput() throws InterruptedException {
Thread.sleep(3000);
}
}
}
|
[
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,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
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
],
[
81,
5
],
[
81,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
35,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String[]args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long account=0;\n long account2=0;\n \n for(int i=0;i<N;i++){\n account+=1;\n if(account%15==0){\n account2-=account;\n }else if(account%5==0){\n account2-=account;\n }else if(account%3==0){\n account2-=account;\n }\n account2+=account;\n }\n System.out.println(account2);\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 account=0;\n long account2=0;\n \n for(int i=0;i<N;i++){\n account+=1;\n if(account%15==0){\n account2-=account;\n }else if(account%5==0){\n account2-=account;\n }else if(account%3==0){\n account2-=account;\n }\n account2+=account;\n }\n System.out.println(account2);\n }\n}",
"Main",
"public static void main(String[]args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long account=0;\n long account2=0;\n \n for(int i=0;i<N;i++){\n account+=1;\n if(account%15==0){\n account2-=account;\n }else if(account%5==0){\n account2-=account;\n }else if(account%3==0){\n account2-=account;\n }\n account2+=account;\n }\n System.out.println(account2);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n long account=0;\n long account2=0;\n \n for(int i=0;i<N;i++){\n account+=1;\n if(account%15==0){\n account2-=account;\n }else if(account%5==0){\n account2-=account;\n }else if(account%3==0){\n account2-=account;\n }\n account2+=account;\n }\n System.out.println(account2);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long account=0;",
"account",
"0",
"long account2=0;",
"account2",
"0",
"for(int i=0;i<N;i++){\n account+=1;\n if(account%15==0){\n account2-=account;\n }else if(account%5==0){\n account2-=account;\n }else if(account%3==0){\n account2-=account;\n }\n account2+=account;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n account+=1;\n if(account%15==0){\n account2-=account;\n }else if(account%5==0){\n account2-=account;\n }else if(account%3==0){\n account2-=account;\n }\n account2+=account;\n }",
"{\n account+=1;\n if(account%15==0){\n account2-=account;\n }else if(account%5==0){\n account2-=account;\n }else if(account%3==0){\n account2-=account;\n }\n account2+=account;\n }",
"account+=1",
"account",
"1",
"if(account%15==0){\n account2-=account;\n }else if(account%5==0){\n account2-=account;\n }else if(account%3==0){\n account2-=account;\n }",
"account%15==0",
"account%15",
"account",
"15",
"0",
"{\n account2-=account;\n }",
"account2-=account",
"account2",
"account",
"if(account%5==0){\n account2-=account;\n }else if(account%3==0){\n account2-=account;\n }",
"account%5==0",
"account%5",
"account",
"5",
"0",
"{\n account2-=account;\n }",
"account2-=account",
"account2",
"account",
"if(account%3==0){\n account2-=account;\n }",
"account%3==0",
"account%3",
"account",
"3",
"0",
"{\n account2-=account;\n }",
"account2-=account",
"account2",
"account",
"account2+=account",
"account2",
"account",
"System.out.println(account2)",
"System.out.println",
"System.out",
"System",
"System.out",
"account2",
"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 account=0;\n long account2=0;\n \n for(int i=0;i<N;i++){\n account+=1;\n if(account%15==0){\n account2-=account;\n }else if(account%5==0){\n account2-=account;\n }else if(account%3==0){\n account2-=account;\n }\n account2+=account;\n }\n System.out.println(account2);\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 account=0;\n long account2=0;\n \n for(int i=0;i<N;i++){\n account+=1;\n if(account%15==0){\n account2-=account;\n }else if(account%5==0){\n account2-=account;\n }else if(account%3==0){\n account2-=account;\n }\n account2+=account;\n }\n System.out.println(account2);\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 account=0;
long account2=0;
for(int i=0;i<N;i++){
account+=1;
if(account%15==0){
account2-=account;
}else if(account%5==0){
account2-=account;
}else if(account%3==0){
account2-=account;
}
account2+=account;
}
System.out.println(account2);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
2,
18,
13,
13,
17,
17,
2,
2,
18,
13,
13,
17,
17,
2,
2,
18,
13,
13,
17,
17,
30,
0,
13,
18,
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,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
59,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
57,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
6,
93
],
[
93,
94
]
] |
[
"import java.util.*;\n\nclass Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n long[] num = new long[a];\n for (int i = 0; i < a; i++) {\n num[i] = i + 1;\n }\n \n long sum = 0;\n for (int i = 0; i < a; i++) {\n if (num[i] % 3 != 0 && num[i] % 5 != 0 && num[i] % 15 != 0) {\n sum += num[i];\n }\n }\n \n System.out.println(sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n long[] num = new long[a];\n for (int i = 0; i < a; i++) {\n num[i] = i + 1;\n }\n \n long sum = 0;\n for (int i = 0; i < a; i++) {\n if (num[i] % 3 != 0 && num[i] % 5 != 0 && num[i] % 15 != 0) {\n sum += num[i];\n }\n }\n \n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n long[] num = new long[a];\n for (int i = 0; i < a; i++) {\n num[i] = i + 1;\n }\n \n long sum = 0;\n for (int i = 0; i < a; i++) {\n if (num[i] % 3 != 0 && num[i] % 5 != 0 && num[i] % 15 != 0) {\n sum += num[i];\n }\n }\n \n System.out.println(sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n long[] num = new long[a];\n for (int i = 0; i < a; i++) {\n num[i] = i + 1;\n }\n \n long sum = 0;\n for (int i = 0; i < a; i++) {\n if (num[i] % 3 != 0 && num[i] % 5 != 0 && num[i] % 15 != 0) {\n sum += num[i];\n }\n }\n \n System.out.println(sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[] num = new long[a];",
"num",
"new long[a]",
"a",
"for (int i = 0; i < a; i++) {\n num[i] = i + 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n num[i] = i + 1;\n }",
"{\n num[i] = i + 1;\n }",
"num[i] = i + 1",
"num[i]",
"num",
"i",
"i + 1",
"i",
"1",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < a; i++) {\n if (num[i] % 3 != 0 && num[i] % 5 != 0 && num[i] % 15 != 0) {\n sum += num[i];\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n if (num[i] % 3 != 0 && num[i] % 5 != 0 && num[i] % 15 != 0) {\n sum += num[i];\n }\n }",
"{\n if (num[i] % 3 != 0 && num[i] % 5 != 0 && num[i] % 15 != 0) {\n sum += num[i];\n }\n }",
"if (num[i] % 3 != 0 && num[i] % 5 != 0 && num[i] % 15 != 0) {\n sum += num[i];\n }",
"num[i] % 3 != 0 && num[i] % 5 != 0 && num[i] % 15 != 0",
"num[i] % 3 != 0 && num[i] % 5 != 0 && num[i] % 15 != 0",
"num[i] % 3 != 0",
"num[i] % 3",
"num[i]",
"num",
"i",
"3",
"0",
"num[i] % 5 != 0",
"num[i] % 5",
"num[i]",
"num",
"i",
"5",
"0",
"num[i] % 15 != 0",
"num[i] % 15",
"num[i]",
"num",
"i",
"15",
"0",
"{\n sum += num[i];\n }",
"sum += num[i]",
"sum",
"num[i]",
"num",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args"
] |
import java.util.*;
class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
long[] num = new long[a];
for (int i = 0; i < a; i++) {
num[i] = i + 1;
}
long sum = 0;
for (int i = 0; i < a; i++) {
if (num[i] % 3 != 0 && num[i] % 5 != 0 && num[i] % 15 != 0) {
sum += num[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,
2,
13,
17,
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
],
[
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
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
35,
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 scan = new Scanner(System.in);\n long n = scan.nextLong();\n long sum = 0;\n for (int i=1;i<n+1;i++){\n if ((i%3!=0)&&(i%5!=0)){\n sum += i;\n }\n }\n System.out.println(sum);\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 long n = scan.nextLong();\n long sum = 0;\n for (int i=1;i<n+1;i++){\n if ((i%3!=0)&&(i%5!=0)){\n sum += i;\n }\n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n long n = scan.nextLong();\n long sum = 0;\n for (int i=1;i<n+1;i++){\n if ((i%3!=0)&&(i%5!=0)){\n sum += i;\n }\n }\n System.out.println(sum);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n long n = scan.nextLong();\n long sum = 0;\n for (int i=1;i<n+1;i++){\n if ((i%3!=0)&&(i%5!=0)){\n sum += i;\n }\n }\n System.out.println(sum);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long n = scan.nextLong();",
"n",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long sum = 0;",
"sum",
"0",
"for (int i=1;i<n+1;i++){\n if ((i%3!=0)&&(i%5!=0)){\n sum += i;\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 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",
"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 scan = new Scanner(System.in);\n long n = scan.nextLong();\n long sum = 0;\n for (int i=1;i<n+1;i++){\n if ((i%3!=0)&&(i%5!=0)){\n sum += i;\n }\n }\n System.out.println(sum);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n long n = scan.nextLong();\n long sum = 0;\n for (int i=1;i<n+1;i++){\n if ((i%3!=0)&&(i%5!=0)){\n sum += i;\n }\n }\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
long n = scan.nextLong();
long sum = 0;
for (int i=1;i<n+1;i++){
if ((i%3!=0)&&(i%5!=0)){
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,
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
],
[
61,
5
],
[
61,
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
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] |
[
"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 n = sc.nextInt();\n\t\tlong sum = 0;\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0) {\n\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t\tsc.close();\n\n\t}\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 n = sc.nextInt();\n\t\tlong sum = 0;\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0) {\n\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t\tsc.close();\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tlong sum = 0;\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0) {\n\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t\tsc.close();\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tlong sum = 0;\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0) {\n\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t\tsc.close();\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 sum = 0;",
"sum",
"0",
"for (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0) {\n\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\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % 3 != 0 && i % 5 != 0) {\n\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}",
"if (i % 3 != 0 && i % 5 != 0) {\n\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\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",
"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 n = sc.nextInt();\n\t\tlong sum = 0;\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0) {\n\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t\tsc.close();\n\n\t}\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 n = sc.nextInt();\n\t\tlong sum = 0;\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 != 0 && i % 5 != 0) {\n\n\t\t\t\tsum += i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t\tsc.close();\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 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);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
0,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
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
],
[
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
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
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
],
[
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\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\n\t\tn = sc.nextInt();\n\t\tlong ans = 0;\n for (int i = 0; i < n+1; i++) {\n if(!(i % 3 == 0 || i % 5 == 0)){\n \tans += i;\n }\n }\n\n\n\n\t\t\tSystem.out.println(ans);\n\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 = 0;\n\n\t\tn = sc.nextInt();\n\t\tlong ans = 0;\n for (int i = 0; i < n+1; i++) {\n if(!(i % 3 == 0 || i % 5 == 0)){\n \tans += i;\n }\n }\n\n\n\n\t\t\tSystem.out.println(ans);\n\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\n\t\tn = sc.nextInt();\n\t\tlong ans = 0;\n for (int i = 0; i < n+1; i++) {\n if(!(i % 3 == 0 || i % 5 == 0)){\n \tans += i;\n }\n }\n\n\n\n\t\t\tSystem.out.println(ans);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\n\t\tn = sc.nextInt();\n\t\tlong ans = 0;\n for (int i = 0; i < n+1; i++) {\n if(!(i % 3 == 0 || i % 5 == 0)){\n \tans += i;\n }\n }\n\n\n\n\t\t\tSystem.out.println(ans);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = 0;",
"n",
"0",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ans = 0;",
"ans",
"0",
"for (int i = 0; i < n+1; i++) {\n if(!(i % 3 == 0 || i % 5 == 0)){\n \tans += i;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n+1",
"i",
"n+1",
"n",
"1",
"i++",
"i++",
"i",
"{\n if(!(i % 3 == 0 || i % 5 == 0)){\n \tans += i;\n }\n }",
"{\n if(!(i % 3 == 0 || i % 5 == 0)){\n \tans += i;\n }\n }",
"if(!(i % 3 == 0 || i % 5 == 0)){\n \tans += 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 \tans += 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\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\n\t\tn = sc.nextInt();\n\t\tlong ans = 0;\n for (int i = 0; i < n+1; i++) {\n if(!(i % 3 == 0 || i % 5 == 0)){\n \tans += i;\n }\n }\n\n\n\n\t\t\tSystem.out.println(ans);\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\n\t\tn = sc.nextInt();\n\t\tlong ans = 0;\n for (int i = 0; i < n+1; i++) {\n if(!(i % 3 == 0 || i % 5 == 0)){\n \tans += i;\n }\n }\n\n\n\n\t\t\tSystem.out.println(ans);\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 n = 0;
n = sc.nextInt();
long ans = 0;
for (int i = 0; i < n+1; i++) {
if(!(i % 3 == 0 || i % 5 == 0)){
ans += i;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
2,
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,
18,
13,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
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
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
38,
50
],
[
50,
51
],
[
37,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
10,
57
],
[
57,
58
],
[
57,
59
],
[
10,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
10,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] |
[
"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 = sc.nextInt();\n\n int[] a = new int[N + 1];\n for (int i = 1; i <= N; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n a[i] = i;\n }\n\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n sum += a[i];\n }\n\n System.out.println(sum);\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 = sc.nextInt();\n\n int[] a = new int[N + 1];\n for (int i = 1; i <= N; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n a[i] = i;\n }\n\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n sum += a[i];\n }\n\n System.out.println(sum);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n int N = sc.nextInt();\n\n int[] a = new int[N + 1];\n for (int i = 1; i <= N; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n a[i] = i;\n }\n\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n sum += a[i];\n }\n\n System.out.println(sum);\n }\n }",
"main",
"{\n try (Scanner sc = new Scanner(System.in)) {\n int N = sc.nextInt();\n\n int[] a = new int[N + 1];\n for (int i = 1; i <= N; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n a[i] = i;\n }\n\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n sum += a[i];\n }\n\n System.out.println(sum);\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n int N = sc.nextInt();\n\n int[] a = new int[N + 1];\n for (int i = 1; i <= N; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n a[i] = i;\n }\n\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n sum += a[i];\n }\n\n System.out.println(sum);\n }",
"{\n int N = sc.nextInt();\n\n int[] a = new int[N + 1];\n for (int i = 1; i <= N; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n a[i] = i;\n }\n\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n sum += a[i];\n }\n\n System.out.println(sum);\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] a = new int[N + 1];",
"a",
"new int[N + 1]",
"N + 1",
"N",
"1",
"for (int i = 1; i <= N; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n a[i] = 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 a[i] = i;\n }",
"{\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n a[i] = 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;",
"a[i] = i",
"a[i]",
"a",
"i",
"i",
"long sum = 0;",
"sum",
"0",
"for (int i = 1; i <= N; i++) {\n sum += a[i];\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n sum += a[i];\n }",
"{\n sum += a[i];\n }",
"sum += a[i]",
"sum",
"a[i]",
"a",
"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 try (Scanner sc = new Scanner(System.in)) {\n int N = sc.nextInt();\n\n int[] a = new int[N + 1];\n for (int i = 1; i <= N; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n a[i] = i;\n }\n\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n sum += a[i];\n }\n\n System.out.println(sum);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n int N = sc.nextInt();\n\n int[] a = new int[N + 1];\n for (int i = 1; i <= N; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n continue;\n }\n a[i] = i;\n }\n\n long sum = 0;\n for (int i = 1; i <= N; i++) {\n sum += a[i];\n }\n\n System.out.println(sum);\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 = sc.nextInt();
int[] a = new int[N + 1];
for (int i = 1; i <= N; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
a[i] = i;
}
long sum = 0;
for (int i = 1; i <= N; i++) {
sum += a[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,
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 // 入力\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n \n // 計算\n Long sum = 0L;\n for(int i = 1; i <= N; i++){\n if(i % 5 != 0 && i % 3 != 0){\n sum += i;\n }\n }\n \n // 出力\n System.out.println(sum);\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args){\n // 入力\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n \n // 計算\n Long sum = 0L;\n for(int i = 1; i <= N; i++){\n if(i % 5 != 0 && i % 3 != 0){\n sum += i;\n }\n }\n \n // 出力\n System.out.println(sum);\n }\n\n}",
"Main",
"public static void main(String[] args){\n // 入力\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n \n // 計算\n Long sum = 0L;\n for(int i = 1; i <= N; i++){\n if(i % 5 != 0 && i % 3 != 0){\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 \n // 計算\n Long sum = 0L;\n for(int i = 1; i <= N; i++){\n if(i % 5 != 0 && i % 3 != 0){\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 = 0L;",
"sum",
"0L",
"for(int i = 1; i <= N; i++){\n if(i % 5 != 0 && i % 3 != 0){\n sum += i;\n }\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 sum += i;\n }\n }",
"{\n if(i % 5 != 0 && i % 3 != 0){\n sum += i;\n }\n }",
"if(i % 5 != 0 && i % 3 != 0){\n sum += 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 sum += i;\n }",
"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 sc = new Scanner(System.in);\n int N = sc.nextInt();\n \n // 計算\n Long sum = 0L;\n for(int i = 1; i <= N; i++){\n if(i % 5 != 0 && i % 3 != 0){\n sum += i;\n }\n }\n \n // 出力\n System.out.println(sum);\n }\n\n}",
"public class Main {\n public static void main(String[] args){\n // 入力\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n \n // 計算\n Long sum = 0L;\n for(int i = 1; i <= N; i++){\n if(i % 5 != 0 && i % 3 != 0){\n sum += i;\n }\n }\n \n // 出力\n System.out.println(sum);\n }\n\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
// 入力
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
// 計算
Long sum = 0L;
for(int i = 1; i <= N; i++){
if(i % 5 != 0 && i % 3 != 0){
sum += i;
}
}
// 出力
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
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,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
0,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
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
],
[
13,
14
],
[
6,
15
],
[
15,
16
],
[
70,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
19,
28
],
[
28,
29
],
[
28,
30
],
[
19,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
44,
56
],
[
43,
57
],
[
57,
58
],
[
57,
59
],
[
19,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
19,
66
],
[
66,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tMain main = new Main();\n\t\tmain.run();\n\t}\n\n\tpublic void run() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong n = sc.nextLong();\n\t\tlong ans = 0;\n\t\tfor(long i=1; i<=n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tans += i;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}\n\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tMain main = new Main();\n\t\tmain.run();\n\t}\n\n\tpublic void run() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong n = sc.nextLong();\n\t\tlong ans = 0;\n\t\tfor(long i=1; i<=n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tans += i;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}\n\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tMain main = new Main();\n\t\tmain.run();\n\t}",
"main",
"{\n\t\tMain main = new Main();\n\t\tmain.run();\n\t}",
"Main main = new Main();",
"main",
"new Main()",
"main.run()",
"main.run",
"main",
"String[] args",
"args",
"public void run() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong n = sc.nextLong();\n\t\tlong ans = 0;\n\t\tfor(long i=1; i<=n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tans += i;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}",
"run",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong n = sc.nextLong();\n\t\tlong ans = 0;\n\t\tfor(long i=1; i<=n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tans += i;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n = sc.nextLong();",
"n",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long ans = 0;",
"ans",
"0",
"for(long i=1; i<=n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tans += i;\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) continue;\n\t\t\tans += i;\n\t\t}",
"{\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tans += 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;",
"ans += i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"sc.close()",
"sc.close",
"sc",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tMain main = new Main();\n\t\tmain.run();\n\t}\n\n\tpublic void run() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong n = sc.nextLong();\n\t\tlong ans = 0;\n\t\tfor(long i=1; i<=n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tans += i;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}\n\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tMain main = new Main();\n\t\tmain.run();\n\t}\n\n\tpublic void run() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong n = sc.nextLong();\n\t\tlong ans = 0;\n\t\tfor(long i=1; i<=n; i++) {\n\t\t\tif(i%3==0||i%5==0) continue;\n\t\t\tans += i;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}\n\n\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Main main = new Main();
main.run();
}
public void run() {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
long ans = 0;
for(long i=1; i<=n; i++) {
if(i%3==0||i%5==0) continue;
ans += i;
}
System.out.println(ans);
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
40,
2,
2,
13,
17,
17,
40,
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,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
154,
8
],
[
154,
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
],
[
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
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
40,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
39,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
11,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
9,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
65,
69
],
[
69,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
65,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
80,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
90,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
79,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
65,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
65,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
65,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
65,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
138,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
134,
151
],
[
151,
152
],
[
0,
153
],
[
153,
154
],
[
153,
155
]
] |
[
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n \tMyScanner sc = new MyScanner();\n \t\tint num=Integer.parseInt(sc.nextLine());\n\t\tlong te = 0;\n \tfor(int i = 0;i<=num;i++){\n if(!(i%3==0) && !(i%5==0)){\n te += i;\n }\n }\n \tSystem.out.println(te);\n }\n}\n\nclass 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 }",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) {\n \tMyScanner sc = new MyScanner();\n \t\tint num=Integer.parseInt(sc.nextLine());\n\t\tlong te = 0;\n \tfor(int i = 0;i<=num;i++){\n if(!(i%3==0) && !(i%5==0)){\n te += i;\n }\n }\n \tSystem.out.println(te);\n }\n}",
"Main",
"public static void main(String[] args) {\n \tMyScanner sc = new MyScanner();\n \t\tint num=Integer.parseInt(sc.nextLine());\n\t\tlong te = 0;\n \tfor(int i = 0;i<=num;i++){\n if(!(i%3==0) && !(i%5==0)){\n te += i;\n }\n }\n \tSystem.out.println(te);\n }",
"main",
"{\n \tMyScanner sc = new MyScanner();\n \t\tint num=Integer.parseInt(sc.nextLine());\n\t\tlong te = 0;\n \tfor(int i = 0;i<=num;i++){\n if(!(i%3==0) && !(i%5==0)){\n te += i;\n }\n }\n \tSystem.out.println(te);\n }",
"MyScanner sc = new MyScanner();",
"sc",
"new MyScanner()",
"int num=Integer.parseInt(sc.nextLine());",
"num",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"long te = 0;",
"te",
"0",
"for(int i = 0;i<=num;i++){\n if(!(i%3==0) && !(i%5==0)){\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 te += i;\n }\n }",
"{\n if(!(i%3==0) && !(i%5==0)){\n te += i;\n }\n }",
"if(!(i%3==0) && !(i%5==0)){\n te += i;\n }",
"!(i%3==0) && !(i%5==0)",
"!(i%3==0)",
"(i%3==0)",
"i%3",
"i",
"3",
"0",
"!(i%5==0)",
"(i%5==0)",
"i%5",
"i",
"5",
"0",
"{\n te += i;\n }",
"te += i",
"te",
"i",
"System.out.println(te)",
"System.out.println",
"System.out",
"System",
"System.out",
"te",
"String[] args",
"args",
"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 public static void main(String[] args) {\n \tMyScanner sc = new MyScanner();\n \t\tint num=Integer.parseInt(sc.nextLine());\n\t\tlong te = 0;\n \tfor(int i = 0;i<=num;i++){\n if(!(i%3==0) && !(i%5==0)){\n te += i;\n }\n }\n \tSystem.out.println(te);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n \tMyScanner sc = new MyScanner();\n \t\tint num=Integer.parseInt(sc.nextLine());\n\t\tlong te = 0;\n \tfor(int i = 0;i<=num;i++){\n if(!(i%3==0) && !(i%5==0)){\n te += i;\n }\n }\n \tSystem.out.println(te);\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
MyScanner sc = new MyScanner();
int num=Integer.parseInt(sc.nextLine());
long te = 0;
for(int i = 0;i<=num;i++){
if(!(i%3==0) && !(i%5==0)){
te += i;
}
}
System.out.println(te);
}
}
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,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
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,
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,
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
],
[
167,
29
],
[
167,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
32,
46
],
[
46,
47
],
[
46,
48
],
[
32,
49
],
[
49,
50
],
[
49,
51
],
[
32,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
52,
57
],
[
32,
58
],
[
58,
59
],
[
59,
60
],
[
30,
61
],
[
61,
62
],
[
167,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
67,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
88,
100
],
[
100,
101
],
[
100,
102
],
[
67,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
65,
107
],
[
107,
108
],
[
65,
109
],
[
109,
110
],
[
65,
111
],
[
111,
112
],
[
167,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
113,
117
],
[
117,
118
],
[
113,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
125,
127
],
[
119,
128
],
[
128,
129
],
[
113,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
133,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
143,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
132,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
113,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
161,
164
],
[
164,
165
],
[
0,
166
],
[
166,
167
],
[
166,
168
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\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 ans += i;\n out.println(ans);\n }\n\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 }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\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 ans += i;\n out.println(ans);\n }\n\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 }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskB solver = new TaskB();",
"solver",
"new TaskB()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\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 ans += i;\n out.println(ans);\n }\n\n }",
"TaskB",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\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 ans += i;\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 ans += i;\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 ans += i;",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"if (i % 3 != 0 && i % 5 != 0)\n ans += i;",
"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",
"out.println(ans)",
"out.println",
"out",
"ans",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"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 }",
"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 class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\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 ans += i;\n out.println(ans);\n }\n\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 }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\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 ans += i;\n out.println(ans);\n }\n\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 }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskB solver = new TaskB();
solver.solve(1, in, out);
out.close();
}
static class TaskB {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int n = in.nextInt();
long ans = 0;
for (int i = 1; i <= n; i++)
if (i % 3 != 0 && i % 5 != 0)
ans += i;
out.println(ans);
}
}
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());
}
}
}
|
[
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,
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
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
35,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
33,
52
],
[
52,
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.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n \n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n long Sum = 0;\n \n for(int i=1; i<=N; i++){\n if(!(i%3==0||i%5==0||i%15==0)){\n Sum += i;\n }\n }\n \n System.out.println(Sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n \n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n long Sum = 0;\n \n for(int i=1; i<=N; i++){\n if(!(i%3==0||i%5==0||i%15==0)){\n Sum += i;\n }\n }\n \n System.out.println(Sum);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n \n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n long Sum = 0;\n \n for(int i=1; i<=N; i++){\n if(!(i%3==0||i%5==0||i%15==0)){\n Sum += i;\n }\n }\n \n System.out.println(Sum);\n }",
"main",
"{\n \n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n long Sum = 0;\n \n for(int i=1; i<=N; i++){\n if(!(i%3==0||i%5==0||i%15==0)){\n Sum += i;\n }\n }\n \n System.out.println(Sum);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long Sum = 0;",
"Sum",
"0",
"for(int i=1; i<=N; i++){\n if(!(i%3==0||i%5==0||i%15==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||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%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",
"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 \n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n long Sum = 0;\n \n for(int i=1; i<=N; i++){\n if(!(i%3==0||i%5==0||i%15==0)){\n Sum += i;\n }\n }\n \n System.out.println(Sum);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n \n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n long Sum = 0;\n \n for(int i=1; i<=N; i++){\n if(!(i%3==0||i%5==0||i%15==0)){\n Sum += i;\n }\n }\n \n System.out.println(Sum);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
long Sum = 0;
for(int i=1; i<=N; i++){
if(!(i%3==0||i%5==0||i%15==0)){
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,
9,
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
],
[
61,
5
],
[
61,
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
],
[
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{\n public static void main(String [] args)\n {\n Scanner key = new Scanner(System.in);\n int num = key.nextInt();\n long sum = 0;\n for(int i=0; i<=num; i++)\n {\n \n if(i % 3 == 0 || i % 5 == 0)\n continue;\n else\n {\n sum = sum + i;\n }\n \n \n }\n System.out.println(sum);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n public static void main(String [] args)\n {\n Scanner key = new Scanner(System.in);\n int num = key.nextInt();\n long sum = 0;\n for(int i=0; i<=num; i++)\n {\n \n if(i % 3 == 0 || i % 5 == 0)\n continue;\n else\n {\n sum = sum + i;\n }\n \n \n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String [] args)\n {\n Scanner key = new Scanner(System.in);\n int num = key.nextInt();\n long sum = 0;\n for(int i=0; i<=num; i++)\n {\n \n if(i % 3 == 0 || i % 5 == 0)\n continue;\n else\n {\n sum = sum + i;\n }\n \n \n }\n System.out.println(sum);\n }",
"main",
"{\n Scanner key = new Scanner(System.in);\n int num = key.nextInt();\n long sum = 0;\n for(int i=0; i<=num; i++)\n {\n \n if(i % 3 == 0 || i % 5 == 0)\n continue;\n else\n {\n sum = sum + i;\n }\n \n \n }\n System.out.println(sum);\n }",
"Scanner key = new Scanner(System.in);",
"key",
"new Scanner(System.in)",
"int num = key.nextInt();",
"num",
"key.nextInt()",
"key.nextInt",
"key",
"long sum = 0;",
"sum",
"0",
"for(int i=0; i<=num; i++)\n {\n \n if(i % 3 == 0 || i % 5 == 0)\n continue;\n else\n {\n sum = sum + i;\n }\n \n \n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=num",
"i",
"num",
"i++",
"i++",
"i",
"{\n \n if(i % 3 == 0 || i % 5 == 0)\n continue;\n else\n {\n sum = sum + i;\n }\n \n \n }",
"{\n \n if(i % 3 == 0 || i % 5 == 0)\n continue;\n else\n {\n sum = sum + i;\n }\n \n \n }",
"if(i % 3 == 0 || i % 5 == 0)\n continue;\n else\n {\n sum = 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",
"continue;",
"{\n sum = sum + i;\n }",
"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{\n public static void main(String [] args)\n {\n Scanner key = new Scanner(System.in);\n int num = key.nextInt();\n long sum = 0;\n for(int i=0; i<=num; i++)\n {\n \n if(i % 3 == 0 || i % 5 == 0)\n continue;\n else\n {\n sum = sum + i;\n }\n \n \n }\n System.out.println(sum);\n }\n}",
"public class Main\n{\n public static void main(String [] args)\n {\n Scanner key = new Scanner(System.in);\n int num = key.nextInt();\n long sum = 0;\n for(int i=0; i<=num; i++)\n {\n \n if(i % 3 == 0 || i % 5 == 0)\n continue;\n else\n {\n sum = sum + i;\n }\n \n \n }\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main
{
public static void main(String [] args)
{
Scanner key = new Scanner(System.in);
int num = key.nextInt();
long sum = 0;
for(int i=0; i<=num; i++)
{
if(i % 3 == 0 || i % 5 == 0)
continue;
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,
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;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tlong n = scan.nextLong();\n\n\t\tlong total = 0;\n\n\t\tfor(int i = 1; i <= n; i++) {\n\n\t\t\tif(i % 3 != 0 && i % 5 != 0 ) {\n\t\t\t\ttotal += i;\n\t\t\t}\n\t\t\t\n\t\t}\n\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\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tlong n = scan.nextLong();\n\n\t\tlong total = 0;\n\n\t\tfor(int i = 1; i <= n; i++) {\n\n\t\t\tif(i % 3 != 0 && i % 5 != 0 ) {\n\t\t\t\ttotal += i;\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\tSystem.out.println(total);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tlong n = scan.nextLong();\n\n\t\tlong total = 0;\n\n\t\tfor(int i = 1; i <= n; i++) {\n\n\t\t\tif(i % 3 != 0 && i % 5 != 0 ) {\n\t\t\t\ttotal += i;\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\tSystem.out.println(total);\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tlong n = scan.nextLong();\n\n\t\tlong total = 0;\n\n\t\tfor(int i = 1; i <= n; i++) {\n\n\t\t\tif(i % 3 != 0 && i % 5 != 0 ) {\n\t\t\t\ttotal += i;\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\tSystem.out.println(total);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long n = scan.nextLong();",
"n",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long total = 0;",
"total",
"0",
"for(int i = 1; i <= n; i++) {\n\n\t\t\tif(i % 3 != 0 && i % 5 != 0 ) {\n\t\t\t\ttotal += i;\n\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\n\t\t\tif(i % 3 != 0 && i % 5 != 0 ) {\n\t\t\t\ttotal += i;\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\n\t\t\tif(i % 3 != 0 && i % 5 != 0 ) {\n\t\t\t\ttotal += i;\n\t\t\t}\n\t\t\t\n\t\t}",
"if(i % 3 != 0 && i % 5 != 0 ) {\n\t\t\t\ttotal += 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\ttotal += i;\n\t\t\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\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tlong n = scan.nextLong();\n\n\t\tlong total = 0;\n\n\t\tfor(int i = 1; i <= n; i++) {\n\n\t\t\tif(i % 3 != 0 && i % 5 != 0 ) {\n\t\t\t\ttotal += i;\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\tSystem.out.println(total);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tlong n = scan.nextLong();\n\n\t\tlong total = 0;\n\n\t\tfor(int i = 1; i <= n; i++) {\n\n\t\t\tif(i % 3 != 0 && i % 5 != 0 ) {\n\t\t\t\ttotal += i;\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\tSystem.out.println(total);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long n = scan.nextLong();
long total = 0;
for(int i = 1; i <= n; i++) {
if(i % 3 != 0 && i % 5 != 0 ) {
total += i;
}
}
System.out.println(total);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
18,
13,
13,
17,
17,
2,
2,
18,
13,
13,
17,
17,
30,
0,
13,
2,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
13,
29,
4,
18,
13,
20,
4,
18,
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
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
64,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
6,
94
],
[
94,
95
],
[
125,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
102,
104
],
[
98,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
105,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
114,
115
],
[
98,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
121,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String str = lines[0];\n int n = Integer.parseInt(str);\n int[] x = new int[n];\n long total = 0;\n for (int i = 0; i < n; i++){\n x[i] = i + 1;\n }\n for (int i = 0; i < n; i++){\n if(x[i] % 3 != 0 && x[i] % 5 != 0){\n total = total + x[i];\n }\n }\n System.out.println(total);\n }\n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String str = lines[0];\n int n = Integer.parseInt(str);\n int[] x = new int[n];\n long total = 0;\n for (int i = 0; i < n; i++){\n x[i] = i + 1;\n }\n for (int i = 0; i < n; i++){\n if(x[i] % 3 != 0 && x[i] % 5 != 0){\n total = total + x[i];\n }\n }\n System.out.println(total);\n }\n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String str = lines[0];\n int n = Integer.parseInt(str);\n int[] x = new int[n];\n long total = 0;\n for (int i = 0; i < n; i++){\n x[i] = i + 1;\n }\n for (int i = 0; i < n; i++){\n if(x[i] % 3 != 0 && x[i] % 5 != 0){\n total = total + x[i];\n }\n }\n System.out.println(total);\n }",
"main",
"{\n String[] lines = getStdin();\n String str = lines[0];\n int n = Integer.parseInt(str);\n int[] x = new int[n];\n long total = 0;\n for (int i = 0; i < n; i++){\n x[i] = i + 1;\n }\n for (int i = 0; i < n; i++){\n if(x[i] % 3 != 0 && x[i] % 5 != 0){\n total = total + x[i];\n }\n }\n System.out.println(total);\n }",
"String[] lines = getStdin();",
"lines",
"getStdin()",
"getStdin",
"String str = lines[0];",
"str",
"lines[0]",
"lines",
"0",
"int n = Integer.parseInt(str);",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"int[] x = new int[n];",
"x",
"new int[n]",
"n",
"long total = 0;",
"total",
"0",
"for (int i = 0; i < n; i++){\n x[i] = i + 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n x[i] = i + 1;\n }",
"{\n x[i] = i + 1;\n }",
"x[i] = i + 1",
"x[i]",
"x",
"i",
"i + 1",
"i",
"1",
"for (int i = 0; i < n; i++){\n if(x[i] % 3 != 0 && x[i] % 5 != 0){\n total = total + x[i];\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(x[i] % 3 != 0 && x[i] % 5 != 0){\n total = total + x[i];\n }\n }",
"{\n if(x[i] % 3 != 0 && x[i] % 5 != 0){\n total = total + x[i];\n }\n }",
"if(x[i] % 3 != 0 && x[i] % 5 != 0){\n total = total + x[i];\n }",
"x[i] % 3 != 0 && x[i] % 5 != 0",
"x[i] % 3 != 0",
"x[i] % 3",
"x[i]",
"x",
"i",
"3",
"0",
"x[i] % 5 != 0",
"x[i] % 5",
"x[i]",
"x",
"i",
"5",
"0",
"{\n total = total + x[i];\n }",
"total = total + x[i]",
"total",
"total + x[i]",
"total",
"x[i]",
"x",
"i",
"System.out.println(total)",
"System.out.println",
"System.out",
"System",
"System.out",
"total",
"String[] args",
"args",
"private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }",
"getStdin",
"{\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"ArrayList<String> lines = new ArrayList<>();",
"lines",
"new ArrayList<>()",
"while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\n lines.add(scanner.nextLine());\n }",
"lines.add(scanner.nextLine())",
"lines.add",
"lines",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"return lines.toArray(new String[lines.size()]);",
"lines.toArray(new String[lines.size()])",
"lines.toArray",
"lines",
"new String[lines.size()]",
"lines.size()",
"lines.size",
"lines",
"public class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String str = lines[0];\n int n = Integer.parseInt(str);\n int[] x = new int[n];\n long total = 0;\n for (int i = 0; i < n; i++){\n x[i] = i + 1;\n }\n for (int i = 0; i < n; i++){\n if(x[i] % 3 != 0 && x[i] % 5 != 0){\n total = total + x[i];\n }\n }\n System.out.println(total);\n }\n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String str = lines[0];\n int n = Integer.parseInt(str);\n int[] x = new int[n];\n long total = 0;\n for (int i = 0; i < n; i++){\n x[i] = i + 1;\n }\n for (int i = 0; i < n; i++){\n if(x[i] % 3 != 0 && x[i] % 5 != 0){\n total = total + x[i];\n }\n }\n System.out.println(total);\n }\n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
String[] lines = getStdin();
String str = lines[0];
int n = Integer.parseInt(str);
int[] x = new int[n];
long total = 0;
for (int i = 0; i < n; i++){
x[i] = i + 1;
}
for (int i = 0; i < n; i++){
if(x[i] % 3 != 0 && x[i] % 5 != 0){
total = total + x[i];
}
}
System.out.println(total);
}
private static String[] getStdin() {
Scanner scanner = new Scanner(System.in);
ArrayList<String> lines = new ArrayList<>();
while (scanner.hasNext()) {
lines.add(scanner.nextLine());
}
return lines.toArray(new String[lines.size()]);
}
}
|
[
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,
20,
2,
13,
17,
0,
18,
13,
17,
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,
0,
18,
13,
13,
18,
13,
2,
13,
17,
30,
0,
18,
13,
13,
2,
18,
13,
2,
13,
17,
13,
4,
18,
18,
13,
13,
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
],
[
97,
14
],
[
97,
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
],
[
29,
30
],
[
29,
31
],
[
17,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
17,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
37,
47
],
[
47,
48
],
[
48,
49
],
[
37,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
52,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
52,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
79,
85
],
[
17,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
15,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] |
[
"import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong[] sum = new long[n+1];\n\t\tsum[1] = 1;\n\t\tfor (int i = 2; i < n+1; i++) {\n\t\t\tif (i % 3== 0 || i%5 ==0) {\n\t\t\t\tsum[i] = sum[i-1];\n\t\t\t} else {\n\t\t\t\tsum[i] = sum[i-1] + i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum[n]);\n\t}\n\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong[] sum = new long[n+1];\n\t\tsum[1] = 1;\n\t\tfor (int i = 2; i < n+1; i++) {\n\t\t\tif (i % 3== 0 || i%5 ==0) {\n\t\t\t\tsum[i] = sum[i-1];\n\t\t\t} else {\n\t\t\t\tsum[i] = sum[i-1] + i;\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 n = sc.nextInt();\n\t\tlong[] sum = new long[n+1];\n\t\tsum[1] = 1;\n\t\tfor (int i = 2; i < n+1; i++) {\n\t\t\tif (i % 3== 0 || i%5 ==0) {\n\t\t\t\tsum[i] = sum[i-1];\n\t\t\t} else {\n\t\t\t\tsum[i] = sum[i-1] + i;\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 n = sc.nextInt();\n\t\tlong[] sum = new long[n+1];\n\t\tsum[1] = 1;\n\t\tfor (int i = 2; i < n+1; i++) {\n\t\t\tif (i % 3== 0 || i%5 ==0) {\n\t\t\t\tsum[i] = sum[i-1];\n\t\t\t} else {\n\t\t\t\tsum[i] = sum[i-1] + i;\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 n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[] sum = new long[n+1];",
"sum",
"new long[n+1]",
"n+1",
"n",
"1",
"sum[1] = 1",
"sum[1]",
"sum",
"1",
"1",
"for (int i = 2; i < n+1; i++) {\n\t\t\tif (i % 3== 0 || i%5 ==0) {\n\t\t\t\tsum[i] = sum[i-1];\n\t\t\t} else {\n\t\t\t\tsum[i] = sum[i-1] + i;\n\t\t\t}\n\t\t}",
"int i = 2;",
"int i = 2;",
"i",
"2",
"i < n+1",
"i",
"n+1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tif (i % 3== 0 || i%5 ==0) {\n\t\t\t\tsum[i] = sum[i-1];\n\t\t\t} else {\n\t\t\t\tsum[i] = sum[i-1] + i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % 3== 0 || i%5 ==0) {\n\t\t\t\tsum[i] = sum[i-1];\n\t\t\t} else {\n\t\t\t\tsum[i] = sum[i-1] + i;\n\t\t\t}\n\t\t}",
"if (i % 3== 0 || i%5 ==0) {\n\t\t\t\tsum[i] = sum[i-1];\n\t\t\t} else {\n\t\t\t\tsum[i] = sum[i-1] + 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] = sum[i-1];\n\t\t\t}",
"sum[i] = sum[i-1]",
"sum[i]",
"sum",
"i",
"sum[i-1]",
"sum",
"i-1",
"i",
"1",
"{\n\t\t\t\tsum[i] = sum[i-1] + i;\n\t\t\t}",
"sum[i] = sum[i-1] + i",
"sum[i]",
"sum",
"i",
"sum[i-1] + i",
"sum[i-1]",
"sum",
"i-1",
"i",
"1",
"i",
"System.out.println(sum[n])",
"System.out.println",
"System.out",
"System",
"System.out",
"sum[n]",
"sum",
"n",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong[] sum = new long[n+1];\n\t\tsum[1] = 1;\n\t\tfor (int i = 2; i < n+1; i++) {\n\t\t\tif (i % 3== 0 || i%5 ==0) {\n\t\t\t\tsum[i] = sum[i-1];\n\t\t\t} else {\n\t\t\t\tsum[i] = sum[i-1] + i;\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 n = sc.nextInt();\n\t\tlong[] sum = new long[n+1];\n\t\tsum[1] = 1;\n\t\tfor (int i = 2; i < n+1; i++) {\n\t\t\tif (i % 3== 0 || i%5 ==0) {\n\t\t\t\tsum[i] = sum[i-1];\n\t\t\t} else {\n\t\t\t\tsum[i] = sum[i-1] + i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum[n]);\n\t}\n\n}",
"Main"
] |
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
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 = new long[n+1];
sum[1] = 1;
for (int i = 2; i < n+1; i++) {
if (i % 3== 0 || i%5 ==0) {
sum[i] = sum[i-1];
} else {
sum[i] = sum[i-1] + i;
}
}
System.out.println(sum[n]);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
0,
18,
13,
2,
13,
17,
17,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
0,
18,
13,
2,
13,
17,
17,
0,
18,
13,
2,
13,
17,
13,
28,
13,
13,
30,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
99,
5
],
[
99,
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
],
[
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
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
37,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
49,
55
],
[
37,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
56,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
56,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
75,
81
],
[
8,
82
],
[
82,
83
],
[
82,
84
],
[
82,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args)\n {\n Scanner scan1 = new Scanner(System.in);\n int length = scan1.nextInt();\n int[] arr = new int[length];\n long sum = 0;\n\n\n\n for (int i = 1; i <= length; i++)\n {\n if (i%3 == 0 && i%5 == 0)\n arr[i-1] = 0;\n else if (i%3 == 0 || i % 5 == 0)\n arr[i-1] = 0;\n else\n arr[i-1] = i;\n }\n for (int j : arr )\n {\n sum += j;\n }\n System.out.println(sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args)\n {\n Scanner scan1 = new Scanner(System.in);\n int length = scan1.nextInt();\n int[] arr = new int[length];\n long sum = 0;\n\n\n\n for (int i = 1; i <= length; i++)\n {\n if (i%3 == 0 && i%5 == 0)\n arr[i-1] = 0;\n else if (i%3 == 0 || i % 5 == 0)\n arr[i-1] = 0;\n else\n arr[i-1] = i;\n }\n for (int j : arr )\n {\n sum += j;\n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner scan1 = new Scanner(System.in);\n int length = scan1.nextInt();\n int[] arr = new int[length];\n long sum = 0;\n\n\n\n for (int i = 1; i <= length; i++)\n {\n if (i%3 == 0 && i%5 == 0)\n arr[i-1] = 0;\n else if (i%3 == 0 || i % 5 == 0)\n arr[i-1] = 0;\n else\n arr[i-1] = i;\n }\n for (int j : arr )\n {\n sum += j;\n }\n System.out.println(sum);\n }",
"main",
"{\n Scanner scan1 = new Scanner(System.in);\n int length = scan1.nextInt();\n int[] arr = new int[length];\n long sum = 0;\n\n\n\n for (int i = 1; i <= length; i++)\n {\n if (i%3 == 0 && i%5 == 0)\n arr[i-1] = 0;\n else if (i%3 == 0 || i % 5 == 0)\n arr[i-1] = 0;\n else\n arr[i-1] = i;\n }\n for (int j : arr )\n {\n sum += j;\n }\n System.out.println(sum);\n }",
"Scanner scan1 = new Scanner(System.in);",
"scan1",
"new Scanner(System.in)",
"int length = scan1.nextInt();",
"length",
"scan1.nextInt()",
"scan1.nextInt",
"scan1",
"int[] arr = new int[length];",
"arr",
"new int[length]",
"length",
"long sum = 0;",
"sum",
"0",
"for (int i = 1; i <= length; i++)\n {\n if (i%3 == 0 && i%5 == 0)\n arr[i-1] = 0;\n else if (i%3 == 0 || i % 5 == 0)\n arr[i-1] = 0;\n else\n arr[i-1] = i;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= length",
"i",
"length",
"i++",
"i++",
"i",
"{\n if (i%3 == 0 && i%5 == 0)\n arr[i-1] = 0;\n else if (i%3 == 0 || i % 5 == 0)\n arr[i-1] = 0;\n else\n arr[i-1] = i;\n }",
"{\n if (i%3 == 0 && i%5 == 0)\n arr[i-1] = 0;\n else if (i%3 == 0 || i % 5 == 0)\n arr[i-1] = 0;\n else\n arr[i-1] = i;\n }",
"if (i%3 == 0 && i%5 == 0)\n arr[i-1] = 0;\n else if (i%3 == 0 || i % 5 == 0)\n arr[i-1] = 0;\n else\n arr[i-1] = i;",
"i%3 == 0 && i%5 == 0",
"i%3 == 0",
"i%3",
"i",
"3",
"0",
"i%5 == 0",
"i%5",
"i",
"5",
"0",
"arr[i-1] = 0",
"arr[i-1]",
"arr",
"i-1",
"i",
"1",
"0",
"if (i%3 == 0 || i % 5 == 0)\n arr[i-1] = 0;\n else\n arr[i-1] = i;",
"i%3 == 0 || i % 5 == 0",
"i%3 == 0",
"i%3",
"i",
"3",
"0",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"arr[i-1] = 0",
"arr[i-1]",
"arr",
"i-1",
"i",
"1",
"0",
"arr[i-1] = i",
"arr[i-1]",
"arr",
"i-1",
"i",
"1",
"i",
"for (int j : arr )\n {\n sum += j;\n }",
"int j",
"arr",
"{\n sum += j;\n }",
"{\n sum += j;\n }",
"sum += j",
"sum",
"j",
"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 scan1 = new Scanner(System.in);\n int length = scan1.nextInt();\n int[] arr = new int[length];\n long sum = 0;\n\n\n\n for (int i = 1; i <= length; i++)\n {\n if (i%3 == 0 && i%5 == 0)\n arr[i-1] = 0;\n else if (i%3 == 0 || i % 5 == 0)\n arr[i-1] = 0;\n else\n arr[i-1] = i;\n }\n for (int j : arr )\n {\n sum += j;\n }\n System.out.println(sum);\n }\n}",
"public class Main {\n public static void main(String[] args)\n {\n Scanner scan1 = new Scanner(System.in);\n int length = scan1.nextInt();\n int[] arr = new int[length];\n long sum = 0;\n\n\n\n for (int i = 1; i <= length; i++)\n {\n if (i%3 == 0 && i%5 == 0)\n arr[i-1] = 0;\n else if (i%3 == 0 || i % 5 == 0)\n arr[i-1] = 0;\n else\n arr[i-1] = i;\n }\n for (int j : arr )\n {\n sum += j;\n }\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args)
{
Scanner scan1 = new Scanner(System.in);
int length = scan1.nextInt();
int[] arr = new int[length];
long sum = 0;
for (int i = 1; i <= length; i++)
{
if (i%3 == 0 && i%5 == 0)
arr[i-1] = 0;
else if (i%3 == 0 || i % 5 == 0)
arr[i-1] = 0;
else
arr[i-1] = i;
}
for (int j : arr )
{
sum += j;
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
29,
4,
18,
13,
13,
2,
13,
13,
29,
17,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
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,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
208,
17
],
[
208,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
21,
32
],
[
32,
33
],
[
33,
34
],
[
21,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
20,
52
],
[
52,
53
],
[
18,
54
],
[
54,
55
],
[
208,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
58,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
97
],
[
97,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
58,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
56,
117
],
[
117,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
119,
123
],
[
123,
124
],
[
119,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
119,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
134,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
144,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
133,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
119,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
166,
167
],
[
119,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
175,
176
],
[
119,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
181,
184
],
[
184,
185
],
[
119,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
192,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
188,
205
],
[
205,
206
],
[
0,
207
],
[
207,
208
],
[
207,
209
]
] |
[
"import javax.swing.*;\nimport java.io.*;\nimport java.util.*;\nimport java.math.*;\n\nimport static java.util.Comparator.*;\n\n\npublic class Main {\n static int findDiv(int n)\n {\n for(int i=3;i<=Math.sqrt(n);i++)\n {\n if(n%i==0)\n {\n return Math.max(i,n/i);\n }\n }\n return 1;\n }\n public static void main(String[] args) throws IOException {\n FastReader s = new FastReader();\n// int t=s.nextInt();\n//// StringBuilder ans=new StringBuilder();\n// while(t-->0) {\n long sum=0;\n int n=s.nextInt();\n// StringBuilder ans=new StringBuilder();\n for(int i=1;i<=n;i++) {\n if (i % 15 == 0) {\ncontinue; } else if (i % 5 == 0) {\ncontinue; } else if (i % 3 == 0) {\ncontinue; } else {\n sum+=i;\n }\n \n }\n System.out.println(sum);\n\n// }\n }\n\n}\n\n\nclass 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//3\n//2 1 3\n//3 3 6\n//99995 9998900021 999890031\n//import javax.swing.*;\n//import java.io.*;\n//import java.util.*;\n//import java.math.*;\n//\n//import static java.util.Comparator.*;\n//\n//\n//public class Main {\n// static int gcd(int a, int b)\n// {\n// if (a == 0)\n// return b;\n// return gcd(b % a, a);\n// }\n// public static void main(String[] args) throws IOException {\n// FastReader s = new FastReader();\n//// int t=s.nextInt();\n////// StringBuilder ans=new StringBuilder();\n//// while(t-->0) {\n// int n=s.nextInt();\n// String str=s.next();\n// StringBuilder ans=new StringBuilder();\n// long count=0;\n// for(int i=0;i<n;i++)\n// {\n// char c=str.charAt(i);\n// for(int j=i+1;j<n;j++)\n// {\n// if(str.charAt(j)==c)\n// {\n// continue;\n// }\n// for(int k=j+1;k<n;k++)\n// {\n// if(str.charAt(k)==str.charAt(j) || str.charAt(k)==c)\n// {\n// continue;\n// }else if(Math.abs(j-i)==Math.abs(k-j))\n// {\n// continue;\n// }\n// else\n// {\n// count++;\n// }\n// }\n// }\n// }\n// System.out.println(count);\n//\n//// }\n// }\n//\n//}\n//\n//\n//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////3\n////2 1 3\n////3 3 6\n////99995 9998900021 999890031",
"import javax.swing.*;",
"swing.*",
"javax",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import static java.util.Comparator.*;",
"import static java.util.Comparator.*;",
"import static java.util.Comparator.*;",
"public class Main {\n static int findDiv(int n)\n {\n for(int i=3;i<=Math.sqrt(n);i++)\n {\n if(n%i==0)\n {\n return Math.max(i,n/i);\n }\n }\n return 1;\n }\n public static void main(String[] args) throws IOException {\n FastReader s = new FastReader();\n// int t=s.nextInt();\n//// StringBuilder ans=new StringBuilder();\n// while(t-->0) {\n long sum=0;\n int n=s.nextInt();\n// StringBuilder ans=new StringBuilder();\n for(int i=1;i<=n;i++) {\n if (i % 15 == 0) {\ncontinue; } else if (i % 5 == 0) {\ncontinue; } else if (i % 3 == 0) {\ncontinue; } else {\n sum+=i;\n }\n \n }\n System.out.println(sum);\n\n// }\n }\n\n}",
"Main",
"static int findDiv(int n)\n {\n for(int i=3;i<=Math.sqrt(n);i++)\n {\n if(n%i==0)\n {\n return Math.max(i,n/i);\n }\n }\n return 1;\n }",
"findDiv",
"{\n for(int i=3;i<=Math.sqrt(n);i++)\n {\n if(n%i==0)\n {\n return Math.max(i,n/i);\n }\n }\n return 1;\n }",
"for(int i=3;i<=Math.sqrt(n);i++)\n {\n if(n%i==0)\n {\n return Math.max(i,n/i);\n }\n }",
"int i=3;",
"int i=3;",
"i",
"3",
"i<=Math.sqrt(n)",
"i",
"Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"i++",
"i++",
"i",
"{\n if(n%i==0)\n {\n return Math.max(i,n/i);\n }\n }",
"{\n if(n%i==0)\n {\n return Math.max(i,n/i);\n }\n }",
"if(n%i==0)\n {\n return Math.max(i,n/i);\n }",
"n%i==0",
"n%i",
"n",
"i",
"0",
"{\n return Math.max(i,n/i);\n }",
"return Math.max(i,n/i);",
"Math.max(i,n/i)",
"Math.max",
"Math",
"i",
"n/i",
"n",
"i",
"return 1;",
"1",
"int n",
"n",
"public static void main(String[] args) throws IOException {\n FastReader s = new FastReader();\n// int t=s.nextInt();\n//// StringBuilder ans=new StringBuilder();\n// while(t-->0) {\n long sum=0;\n int n=s.nextInt();\n// StringBuilder ans=new StringBuilder();\n for(int i=1;i<=n;i++) {\n if (i % 15 == 0) {\ncontinue; } else if (i % 5 == 0) {\ncontinue; } else if (i % 3 == 0) {\ncontinue; } else {\n sum+=i;\n }\n \n }\n System.out.println(sum);\n\n// }\n }",
"main",
"{\n FastReader s = new FastReader();\n// int t=s.nextInt();\n//// StringBuilder ans=new StringBuilder();\n// while(t-->0) {\n long sum=0;\n int n=s.nextInt();\n// StringBuilder ans=new StringBuilder();\n for(int i=1;i<=n;i++) {\n if (i % 15 == 0) {\ncontinue; } else if (i % 5 == 0) {\ncontinue; } else if (i % 3 == 0) {\ncontinue; } else {\n sum+=i;\n }\n \n }\n System.out.println(sum);\n\n// }\n }",
"FastReader s = new FastReader();",
"s",
"new FastReader()",
"long sum=0;",
"sum",
"0",
"int n=s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"for(int i=1;i<=n;i++) {\n if (i % 15 == 0) {\ncontinue; } else if (i % 5 == 0) {\ncontinue; } else if (i % 3 == 0) {\ncontinue; } else {\n sum+=i;\n }\n \n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (i % 15 == 0) {\ncontinue; } else if (i % 5 == 0) {\ncontinue; } else if (i % 3 == 0) {\ncontinue; } else {\n sum+=i;\n }\n \n }",
"{\n if (i % 15 == 0) {\ncontinue; } else if (i % 5 == 0) {\ncontinue; } else if (i % 3 == 0) {\ncontinue; } else {\n sum+=i;\n }\n \n }",
"if (i % 15 == 0) {\ncontinue; } else if (i % 5 == 0) {\ncontinue; } else if (i % 3 == 0) {\ncontinue; } else {\n sum+=i;\n }",
"i % 15 == 0",
"i % 15",
"i",
"15",
"0",
"{\ncontinue; }",
"continue;",
"if (i % 5 == 0) {\ncontinue; } else if (i % 3 == 0) {\ncontinue; } else {\n sum+=i;\n }",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\ncontinue; }",
"continue;",
"if (i % 3 == 0) {\ncontinue; } else {\n sum+=i;\n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\ncontinue; }",
"continue;",
"{\n sum+=i;\n }",
"sum+=i",
"sum",
"i",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"class FastReader\n{\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n}",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }",
"catch (IOException e)\n {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt()\n {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong()\n {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble()\n {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }",
"catch (IOException e)\n {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n static int findDiv(int n)\n {\n for(int i=3;i<=Math.sqrt(n);i++)\n {\n if(n%i==0)\n {\n return Math.max(i,n/i);\n }\n }\n return 1;\n }\n public static void main(String[] args) throws IOException {\n FastReader s = new FastReader();\n// int t=s.nextInt();\n//// StringBuilder ans=new StringBuilder();\n// while(t-->0) {\n long sum=0;\n int n=s.nextInt();\n// StringBuilder ans=new StringBuilder();\n for(int i=1;i<=n;i++) {\n if (i % 15 == 0) {\ncontinue; } else if (i % 5 == 0) {\ncontinue; } else if (i % 3 == 0) {\ncontinue; } else {\n sum+=i;\n }\n \n }\n System.out.println(sum);\n\n// }\n }\n\n}",
"public class Main {\n static int findDiv(int n)\n {\n for(int i=3;i<=Math.sqrt(n);i++)\n {\n if(n%i==0)\n {\n return Math.max(i,n/i);\n }\n }\n return 1;\n }\n public static void main(String[] args) throws IOException {\n FastReader s = new FastReader();\n// int t=s.nextInt();\n//// StringBuilder ans=new StringBuilder();\n// while(t-->0) {\n long sum=0;\n int n=s.nextInt();\n// StringBuilder ans=new StringBuilder();\n for(int i=1;i<=n;i++) {\n if (i % 15 == 0) {\ncontinue; } else if (i % 5 == 0) {\ncontinue; } else if (i % 3 == 0) {\ncontinue; } else {\n sum+=i;\n }\n \n }\n System.out.println(sum);\n\n// }\n }\n\n}",
"Main"
] |
import javax.swing.*;
import java.io.*;
import java.util.*;
import java.math.*;
import static java.util.Comparator.*;
public class Main {
static int findDiv(int n)
{
for(int i=3;i<=Math.sqrt(n);i++)
{
if(n%i==0)
{
return Math.max(i,n/i);
}
}
return 1;
}
public static void main(String[] args) throws IOException {
FastReader s = new FastReader();
// int t=s.nextInt();
//// StringBuilder ans=new StringBuilder();
// while(t-->0) {
long sum=0;
int n=s.nextInt();
// StringBuilder ans=new StringBuilder();
for(int i=1;i<=n;i++) {
if (i % 15 == 0) {
continue; } else if (i % 5 == 0) {
continue; } else if (i % 3 == 0) {
continue; } else {
sum+=i;
}
}
System.out.println(sum);
// }
}
}
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;
}
}
//3
//2 1 3
//3 3 6
//99995 9998900021 999890031
//import javax.swing.*;
//import java.io.*;
//import java.util.*;
//import java.math.*;
//
//import static java.util.Comparator.*;
//
//
//public class Main {
// static int gcd(int a, int b)
// {
// if (a == 0)
// return b;
// return gcd(b % a, a);
// }
// public static void main(String[] args) throws IOException {
// FastReader s = new FastReader();
//// int t=s.nextInt();
////// StringBuilder ans=new StringBuilder();
//// while(t-->0) {
// int n=s.nextInt();
// String str=s.next();
// StringBuilder ans=new StringBuilder();
// long count=0;
// for(int i=0;i<n;i++)
// {
// char c=str.charAt(i);
// for(int j=i+1;j<n;j++)
// {
// if(str.charAt(j)==c)
// {
// continue;
// }
// for(int k=j+1;k<n;k++)
// {
// if(str.charAt(k)==str.charAt(j) || str.charAt(k)==c)
// {
// continue;
// }else if(Math.abs(j-i)==Math.abs(k-j))
// {
// continue;
// }
// else
// {
// count++;
// }
// }
// }
// }
// System.out.println(count);
//
//// }
// }
//
//}
//
//
//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;
// }
//}
////3
////2 1 3
////3 3 6
////99995 9998900021 999890031
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
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,
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
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
10,
17
],
[
17,
18
],
[
17,
19
],
[
10,
21
],
[
21,
22
],
[
21,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
10,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
30,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
41,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
37,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
29,
62
],
[
62,
63
],
[
10,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
10,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
78,
89
],
[
89,
90
],
[
10,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
94,
104
],
[
104,
105
],
[
93,
106
],
[
106,
107
],
[
107,
108
],
[
10,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
112,
116
],
[
116,
117
],
[
111,
118
],
[
118,
119
],
[
118,
120
],
[
111,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
111,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
111,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
10,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
145,
149
],
[
149,
150
],
[
144,
151
],
[
151,
152
],
[
151,
153
],
[
144,
154
],
[
154,
155
],
[
154,
156
],
[
144,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
144,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
144,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
178,
179
],
[
178,
180
],
[
173,
181
],
[
181,
182
],
[
182,
183
],
[
144,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
192,
193
],
[
192,
194
],
[
187,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
201,
203
],
[
187,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
205,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
204,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
216,
220
],
[
204,
221
],
[
221,
222
],
[
222,
223
],
[
186,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
10,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
230,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
239,
241
],
[
236,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
244,
246
],
[
235,
247
],
[
247,
248
],
[
230,
249
],
[
249,
250
],
[
10,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
255,
258
],
[
258,
259
],
[
0,
260
],
[
314,
261
],
[
314,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
264,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
271,
272
],
[
264,
273
],
[
273,
274
],
[
273,
275
],
[
264,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
276,
281
],
[
281,
282
],
[
281,
283
],
[
276,
284
],
[
284,
285
],
[
285,
286
],
[
276,
287
],
[
288,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
291,
295
],
[
290,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
296,
300
],
[
289,
301
],
[
288,
302
],
[
302,
303
],
[
302,
304
],
[
264,
305
],
[
305,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
305,
310
],
[
262,
311
],
[
311,
312
],
[
0,
313
],
[
313,
314
],
[
313,
315
]
] |
[
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.util.NoSuchElementException;\n\nclass FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n 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\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tFastScanner fs = new FastScanner();\n\n\t\tLong N = fs.nextLong();\n\n\t\tLong sum = 0L;\n\t\tfor(Long i = 1L; i <= N; i++) {\n\t\t\tif(i % 3 == 0 || i % 5 == 0) continue;\n\t\t\tsum += i;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"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\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tFastScanner fs = new FastScanner();\n\n\t\tLong N = fs.nextLong();\n\n\t\tLong sum = 0L;\n\t\tfor(Long i = 1L; i <= N; i++) {\n\t\t\tif(i % 3 == 0 || i % 5 == 0) continue;\n\t\t\tsum += i;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tFastScanner fs = new FastScanner();\n\n\t\tLong N = fs.nextLong();\n\n\t\tLong sum = 0L;\n\t\tfor(Long i = 1L; i <= N; i++) {\n\t\t\tif(i % 3 == 0 || i % 5 == 0) continue;\n\t\t\tsum += i;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tFastScanner fs = new FastScanner();\n\n\t\tLong N = fs.nextLong();\n\n\t\tLong sum = 0L;\n\t\tfor(Long i = 1L; i <= N; i++) {\n\t\t\tif(i % 3 == 0 || i % 5 == 0) continue;\n\t\t\tsum += i;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"Long N = fs.nextLong();",
"N",
"fs.nextLong()",
"fs.nextLong",
"fs",
"Long sum = 0L;",
"sum",
"0L",
"for(Long i = 1L; i <= N; i++) {\n\t\t\tif(i % 3 == 0 || i % 5 == 0) continue;\n\t\t\tsum += i;\n\t\t}",
"Long i = 1L;",
"Long i = 1L;",
"i",
"1L",
"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",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tFastScanner fs = new FastScanner();\n\n\t\tLong N = fs.nextLong();\n\n\t\tLong sum = 0L;\n\t\tfor(Long i = 1L; i <= N; i++) {\n\t\t\tif(i % 3 == 0 || i % 5 == 0) continue;\n\t\t\tsum += i;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tFastScanner fs = new FastScanner();\n\n\t\tLong N = fs.nextLong();\n\n\t\tLong sum = 0L;\n\t\tfor(Long i = 1L; i <= N; i++) {\n\t\t\tif(i % 3 == 0 || i % 5 == 0) continue;\n\t\t\tsum += i;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"Main"
] |
import java.io.IOException;
import java.io.InputStream;
import java.util.NoSuchElementException;
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());}
}
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
FastScanner fs = new FastScanner();
Long N = fs.nextLong();
Long sum = 0L;
for(Long i = 1L; i <= N; i++) {
if(i % 3 == 0 || i % 5 == 0) continue;
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,
13,
17,
17,
0,
13,
2,
13,
13,
14,
2,
2,
13,
17,
17,
0,
13,
2,
13,
13,
14,
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
],
[
75,
5
],
[
75,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
32,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
32,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
61,
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.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n long N = sc.nextInt();\n long sum = 0;\n for(int i=1;i<=N;i++)\n {\n if(i%3!=0) sum = sum + i;\n if(i%5!=0) sum = sum + i;\n if(i%15!=0) sum = sum - i;\n \n }\n System.out.println(sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n long N = sc.nextInt();\n long sum = 0;\n for(int i=1;i<=N;i++)\n {\n if(i%3!=0) sum = sum + i;\n if(i%5!=0) sum = sum + i;\n if(i%15!=0) sum = sum - i;\n \n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n long N = sc.nextInt();\n long sum = 0;\n for(int i=1;i<=N;i++)\n {\n if(i%3!=0) sum = sum + i;\n if(i%5!=0) sum = sum + i;\n if(i%15!=0) sum = sum - i;\n \n }\n System.out.println(sum);\n }",
"main",
"{\n // Your code here!\n Scanner sc = new Scanner(System.in);\n long N = sc.nextInt();\n long sum = 0;\n for(int i=1;i<=N;i++)\n {\n if(i%3!=0) sum = sum + i;\n if(i%5!=0) sum = sum + i;\n if(i%15!=0) sum = sum - i;\n \n }\n System.out.println(sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"for(int i=1;i<=N;i++)\n {\n if(i%3!=0) sum = sum + i;\n if(i%5!=0) sum = sum + i;\n if(i%15!=0) sum = sum - i;\n \n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if(i%3!=0) sum = sum + i;\n if(i%5!=0) sum = sum + i;\n if(i%15!=0) sum = sum - i;\n \n }",
"{\n if(i%3!=0) sum = sum + i;\n if(i%5!=0) sum = sum + i;\n if(i%15!=0) sum = sum - i;\n \n }",
"if(i%3!=0) sum = sum + i;",
"i%3!=0",
"i%3",
"i",
"3",
"0",
"sum = sum + i",
"sum",
"sum + i",
"sum",
"i",
"if(i%5!=0) sum = sum + i;",
"i%5!=0",
"i%5",
"i",
"5",
"0",
"sum = sum + i",
"sum",
"sum + i",
"sum",
"i",
"if(i%15!=0) sum = sum - i;",
"i%15!=0",
"i%15",
"i",
"15",
"0",
"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 public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n long N = sc.nextInt();\n long sum = 0;\n for(int i=1;i<=N;i++)\n {\n if(i%3!=0) sum = sum + i;\n if(i%5!=0) sum = sum + i;\n if(i%15!=0) sum = sum - i;\n \n }\n System.out.println(sum);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n long N = sc.nextInt();\n long sum = 0;\n for(int i=1;i<=N;i++)\n {\n if(i%3!=0) sum = sum + i;\n if(i%5!=0) sum = sum + i;\n if(i%15!=0) sum = sum - i;\n \n }\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
long N = sc.nextInt();
long sum = 0;
for(int i=1;i<=N;i++)
{
if(i%3!=0) sum = sum + i;
if(i%5!=0) sum = sum + i;
if(i%15!=0) sum = 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,
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;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n\n long sum = 0;\n for(int i = 1; i<=a; i++){\n if(i % 3 != 0 && i % 5 != 0){\n sum += i;\n }\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 Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n\n long sum = 0;\n for(int i = 1; i<=a; i++){\n if(i % 3 != 0 && i % 5 != 0){\n sum += 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 a = sc.nextInt();\n\n long sum = 0;\n for(int i = 1; i<=a; i++){\n if(i % 3 != 0 && i % 5 != 0){\n sum += i;\n }\n }\n System.out.println(sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n\n long sum = 0;\n for(int i = 1; i<=a; i++){\n if(i % 3 != 0 && i % 5 != 0){\n sum += i;\n }\n }\n System.out.println(sum);\n }",
"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 if(i % 3 != 0 && i % 5 != 0){\n sum += 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 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",
"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 a = sc.nextInt();\n\n long sum = 0;\n for(int i = 1; i<=a; i++){\n if(i % 3 != 0 && i % 5 != 0){\n sum += 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 a = sc.nextInt();\n\n long sum = 0;\n for(int i = 1; i<=a; i++){\n if(i % 3 != 0 && i % 5 != 0){\n sum += i;\n }\n }\n System.out.println(sum);\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 sum = 0;
for(int i = 1; i<=a; i++){
if(i % 3 != 0 && i % 5 != 0){
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,
4,
18,
13,
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,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
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
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
36,
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\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tlong sum=0;\n\t\tsc.close();\n\t\tfor(int i=1;i<=n;i++) {\n\t\t\tif(!(i%3==0 || i%5==0)) sum+=(long)i;\n\t\t}\n\t\tSystem.out.println(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\tlong sum=0;\n\t\tsc.close();\n\t\tfor(int i=1;i<=n;i++) {\n\t\t\tif(!(i%3==0 || i%5==0)) sum+=(long)i;\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\t\tint n=sc.nextInt();\n\t\tlong sum=0;\n\t\tsc.close();\n\t\tfor(int i=1;i<=n;i++) {\n\t\t\tif(!(i%3==0 || i%5==0)) sum+=(long)i;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tlong sum=0;\n\t\tsc.close();\n\t\tfor(int i=1;i<=n;i++) {\n\t\t\tif(!(i%3==0 || i%5==0)) sum+=(long)i;\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",
"long sum=0;",
"sum",
"0",
"sc.close()",
"sc.close",
"sc",
"for(int i=1;i<=n;i++) {\n\t\t\tif(!(i%3==0 || i%5==0)) sum+=(long)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)) sum+=(long)i;\n\t\t}",
"{\n\t\t\tif(!(i%3==0 || i%5==0)) sum+=(long)i;\n\t\t}",
"if(!(i%3==0 || i%5==0)) sum+=(long)i;",
"!(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",
"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\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tlong sum=0;\n\t\tsc.close();\n\t\tfor(int i=1;i<=n;i++) {\n\t\t\tif(!(i%3==0 || i%5==0)) sum+=(long)i;\n\t\t}\n\t\tSystem.out.println(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\tlong sum=0;\n\t\tsc.close();\n\t\tfor(int i=1;i<=n;i++) {\n\t\t\tif(!(i%3==0 || i%5==0)) sum+=(long)i;\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 n=sc.nextInt();
long sum=0;
sc.close();
for(int i=1;i<=n;i++) {
if(!(i%3==0 || i%5==0)) sum+=(long)i;
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
12,
13,
30,
4,
13,
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,
30,
0,
13,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
180,
8
],
[
180,
9
],
[
9,
10
],
[
9,
11
],
[
180,
12
],
[
12,
13
],
[
12,
14
],
[
180,
15
],
[
15,
16
],
[
180,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
19,
26
],
[
26,
27
],
[
26,
28
],
[
19,
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
],
[
19,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
19,
62
],
[
62,
63
],
[
63,
64
],
[
19,
65
],
[
65,
66
],
[
66,
67
],
[
180,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
180,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
180,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
86,
110
],
[
110,
111
],
[
84,
112
],
[
112,
113
],
[
180,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
122,
123
],
[
180,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
131,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
126,
150
],
[
150,
151
],
[
124,
152
],
[
152,
153
],
[
180,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
161,
162
],
[
162,
163
],
[
180,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
180,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
171,
177
],
[
177,
178
],
[
0,
179
],
[
179,
180
],
[
179,
181
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main\n{\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer tok;\n\n public void go() throws IOException\n {\n ntok();\n int n = ipar();\n long sum = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }\n out.println(sum);\n\n out.flush();\n in.close();\n }\n\n public void ntok() throws IOException\n {\n tok = new StringTokenizer(in.readLine());\n }\n\n public int ipar()\n {\n return Integer.parseInt(tok.nextToken());\n }\n\n public int[] iapar(int n)\n {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++)\n {\n arr[i] = ipar();\n }\n return arr;\n }\n\n public long lpar()\n {\n return Long.parseLong(tok.nextToken());\n }\n\n public long[] lapar(int n)\n {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++)\n {\n arr[i] = lpar();\n }\n return arr;\n }\n\n public double dpar()\n {\n return Double.parseDouble(tok.nextToken());\n }\n\n public String spar()\n {\n return tok.nextToken();\n }\n\n public static void main(String[] args) throws IOException\n {\n new Main().go();\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer tok;\n\n public void go() throws IOException\n {\n ntok();\n int n = ipar();\n long sum = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }\n out.println(sum);\n\n out.flush();\n in.close();\n }\n\n public void ntok() throws IOException\n {\n tok = new StringTokenizer(in.readLine());\n }\n\n public int ipar()\n {\n return Integer.parseInt(tok.nextToken());\n }\n\n public int[] iapar(int n)\n {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++)\n {\n arr[i] = ipar();\n }\n return arr;\n }\n\n public long lpar()\n {\n return Long.parseLong(tok.nextToken());\n }\n\n public long[] lapar(int n)\n {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++)\n {\n arr[i] = lpar();\n }\n return arr;\n }\n\n public double dpar()\n {\n return Double.parseDouble(tok.nextToken());\n }\n\n public String spar()\n {\n return tok.nextToken();\n }\n\n public static void main(String[] args) throws IOException\n {\n new Main().go();\n }\n}",
"Main",
"PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));",
"out",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer tok;",
"tok",
"public void go() throws IOException\n {\n ntok();\n int n = ipar();\n long sum = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }\n out.println(sum);\n\n out.flush();\n in.close();\n }",
"go",
"{\n ntok();\n int n = ipar();\n long sum = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }\n out.println(sum);\n\n out.flush();\n in.close();\n }",
"ntok()",
"ntok",
"int n = ipar();",
"n",
"ipar()",
"ipar",
"long sum = 0;",
"sum",
"0",
"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",
"out.println(sum)",
"out.println",
"out",
"sum",
"out.flush()",
"out.flush",
"out",
"in.close()",
"in.close",
"in",
"public void ntok() throws IOException\n {\n tok = new StringTokenizer(in.readLine());\n }",
"ntok",
"{\n tok = new StringTokenizer(in.readLine());\n }",
"tok = new StringTokenizer(in.readLine())",
"tok",
"new StringTokenizer(in.readLine())",
"public int ipar()\n {\n return Integer.parseInt(tok.nextToken());\n }",
"ipar",
"{\n return Integer.parseInt(tok.nextToken());\n }",
"return Integer.parseInt(tok.nextToken());",
"Integer.parseInt(tok.nextToken())",
"Integer.parseInt",
"Integer",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public int[] iapar(int n)\n {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++)\n {\n arr[i] = ipar();\n }\n return arr;\n }",
"iapar",
"{\n int[] arr = new int[n];\n for (int i = 0; i < n; i++)\n {\n arr[i] = ipar();\n }\n return arr;\n }",
"int[] arr = new int[n];",
"arr",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n {\n arr[i] = ipar();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = ipar();\n }",
"{\n arr[i] = ipar();\n }",
"arr[i] = ipar()",
"arr[i]",
"arr",
"i",
"ipar()",
"ipar",
"return arr;",
"arr",
"int n",
"n",
"public long lpar()\n {\n return Long.parseLong(tok.nextToken());\n }",
"lpar",
"{\n return Long.parseLong(tok.nextToken());\n }",
"return Long.parseLong(tok.nextToken());",
"Long.parseLong(tok.nextToken())",
"Long.parseLong",
"Long",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public long[] lapar(int n)\n {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++)\n {\n arr[i] = lpar();\n }\n return arr;\n }",
"lapar",
"{\n long[] arr = new long[n];\n for (int i = 0; i < n; i++)\n {\n arr[i] = lpar();\n }\n return arr;\n }",
"long[] arr = new long[n];",
"arr",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n {\n arr[i] = lpar();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = lpar();\n }",
"{\n arr[i] = lpar();\n }",
"arr[i] = lpar()",
"arr[i]",
"arr",
"i",
"lpar()",
"lpar",
"return arr;",
"arr",
"int n",
"n",
"public double dpar()\n {\n return Double.parseDouble(tok.nextToken());\n }",
"dpar",
"{\n return Double.parseDouble(tok.nextToken());\n }",
"return Double.parseDouble(tok.nextToken());",
"Double.parseDouble(tok.nextToken())",
"Double.parseDouble",
"Double",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public String spar()\n {\n return tok.nextToken();\n }",
"spar",
"{\n return tok.nextToken();\n }",
"return tok.nextToken();",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public static void main(String[] args) throws IOException\n {\n new Main().go();\n }",
"main",
"{\n new Main().go();\n }",
"new Main().go()",
"new Main().go",
"new Main()",
"String[] args",
"args",
"public class Main\n{\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer tok;\n\n public void go() throws IOException\n {\n ntok();\n int n = ipar();\n long sum = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }\n out.println(sum);\n\n out.flush();\n in.close();\n }\n\n public void ntok() throws IOException\n {\n tok = new StringTokenizer(in.readLine());\n }\n\n public int ipar()\n {\n return Integer.parseInt(tok.nextToken());\n }\n\n public int[] iapar(int n)\n {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++)\n {\n arr[i] = ipar();\n }\n return arr;\n }\n\n public long lpar()\n {\n return Long.parseLong(tok.nextToken());\n }\n\n public long[] lapar(int n)\n {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++)\n {\n arr[i] = lpar();\n }\n return arr;\n }\n\n public double dpar()\n {\n return Double.parseDouble(tok.nextToken());\n }\n\n public String spar()\n {\n return tok.nextToken();\n }\n\n public static void main(String[] args) throws IOException\n {\n new Main().go();\n }\n}",
"public class Main\n{\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer tok;\n\n public void go() throws IOException\n {\n ntok();\n int n = ipar();\n long sum = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n sum += i;\n }\n }\n out.println(sum);\n\n out.flush();\n in.close();\n }\n\n public void ntok() throws IOException\n {\n tok = new StringTokenizer(in.readLine());\n }\n\n public int ipar()\n {\n return Integer.parseInt(tok.nextToken());\n }\n\n public int[] iapar(int n)\n {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++)\n {\n arr[i] = ipar();\n }\n return arr;\n }\n\n public long lpar()\n {\n return Long.parseLong(tok.nextToken());\n }\n\n public long[] lapar(int n)\n {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++)\n {\n arr[i] = lpar();\n }\n return arr;\n }\n\n public double dpar()\n {\n return Double.parseDouble(tok.nextToken());\n }\n\n public String spar()\n {\n return tok.nextToken();\n }\n\n public static void main(String[] args) throws IOException\n {\n new Main().go();\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main
{
PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer tok;
public void go() throws IOException
{
ntok();
int n = ipar();
long sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
out.println(sum);
out.flush();
in.close();
}
public void ntok() throws IOException
{
tok = new StringTokenizer(in.readLine());
}
public int ipar()
{
return Integer.parseInt(tok.nextToken());
}
public int[] iapar(int n)
{
int[] arr = new int[n];
for (int i = 0; i < n; i++)
{
arr[i] = ipar();
}
return arr;
}
public long lpar()
{
return Long.parseLong(tok.nextToken());
}
public long[] lapar(int n)
{
long[] arr = new long[n];
for (int i = 0; i < n; i++)
{
arr[i] = lpar();
}
return arr;
}
public double dpar()
{
return Double.parseDouble(tok.nextToken());
}
public String spar()
{
return tok.nextToken();
}
public static void main(String[] args) throws IOException
{
new Main().go();
}
}
|
[
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.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\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.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\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) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\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 Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\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 }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n = sc.nextLong();",
"n",
"sc.nextLong()",
"sc.nextLong",
"sc",
"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) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\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) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\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.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
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,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
17,
17,
41,
13,
2,
13,
17,
41,
13,
2,
17,
2,
2,
13,
2,
13,
17,
17,
41,
13,
2,
13,
17,
41,
13,
2,
17,
2,
2,
13,
2,
13,
17,
17,
41,
13,
2,
13,
17,
41,
13,
2,
17,
2,
2,
13,
2,
13,
17,
17,
4,
18,
18,
13,
13,
2,
2,
2,
13,
13,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
22,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
38,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
54,
60
],
[
8,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
70,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
84,
84
],
[
84,
85
],
[
84,
86
],
[
84,
87
],
[
82,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = Long.parseLong(sc.next());\n\n long sum = n*(n+1)/2;\n\n long n3 = n/3;\n long sum3 = 3*(n3*(n3+1)/2);\n long n5 = n/5;\n\n long sum5 = 5*(n5*(n5+1)/2);\n\n long n15 = n/15;\n long sum15 = 15*(n15*(n15+1)/2);\n\n System.out.println(sum-sum3-sum5+sum15);\n System.out.flush();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = Long.parseLong(sc.next());\n\n long sum = n*(n+1)/2;\n\n long n3 = n/3;\n long sum3 = 3*(n3*(n3+1)/2);\n long n5 = n/5;\n\n long sum5 = 5*(n5*(n5+1)/2);\n\n long n15 = n/15;\n long sum15 = 15*(n15*(n15+1)/2);\n\n System.out.println(sum-sum3-sum5+sum15);\n System.out.flush();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = Long.parseLong(sc.next());\n\n long sum = n*(n+1)/2;\n\n long n3 = n/3;\n long sum3 = 3*(n3*(n3+1)/2);\n long n5 = n/5;\n\n long sum5 = 5*(n5*(n5+1)/2);\n\n long n15 = n/15;\n long sum15 = 15*(n15*(n15+1)/2);\n\n System.out.println(sum-sum3-sum5+sum15);\n System.out.flush();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long n = Long.parseLong(sc.next());\n\n long sum = n*(n+1)/2;\n\n long n3 = n/3;\n long sum3 = 3*(n3*(n3+1)/2);\n long n5 = n/5;\n\n long sum5 = 5*(n5*(n5+1)/2);\n\n long n15 = n/15;\n long sum15 = 15*(n15*(n15+1)/2);\n\n System.out.println(sum-sum3-sum5+sum15);\n System.out.flush();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n = Long.parseLong(sc.next());",
"n",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"long sum = n*(n+1)/2;",
"sum",
"n*(n+1)/2",
"n*(n+1)",
"n",
"(n+1)",
"n",
"1",
"2",
"long n3 = n/3;",
"n3",
"n/3",
"n",
"3",
"long sum3 = 3*(n3*(n3+1)/2);",
"sum3",
"3*(n3*(n3+1)/2)",
"3",
"(n3*(n3+1)/2)",
"n3*(n3+1)",
"n3",
"(n3+1)",
"n3",
"1",
"2",
"long n5 = n/5;",
"n5",
"n/5",
"n",
"5",
"long sum5 = 5*(n5*(n5+1)/2);",
"sum5",
"5*(n5*(n5+1)/2)",
"5",
"(n5*(n5+1)/2)",
"n5*(n5+1)",
"n5",
"(n5+1)",
"n5",
"1",
"2",
"long n15 = n/15;",
"n15",
"n/15",
"n",
"15",
"long sum15 = 15*(n15*(n15+1)/2);",
"sum15",
"15*(n15*(n15+1)/2)",
"15",
"(n15*(n15+1)/2)",
"n15*(n15+1)",
"n15",
"(n15+1)",
"n15",
"1",
"2",
"System.out.println(sum-sum3-sum5+sum15)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum-sum3-sum5+sum15",
"sum-sum3-sum5",
"sum-sum3-sum5",
"sum",
"sum3",
"sum5",
"sum15",
"System.out.flush()",
"System.out.flush",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = Long.parseLong(sc.next());\n\n long sum = n*(n+1)/2;\n\n long n3 = n/3;\n long sum3 = 3*(n3*(n3+1)/2);\n long n5 = n/5;\n\n long sum5 = 5*(n5*(n5+1)/2);\n\n long n15 = n/15;\n long sum15 = 15*(n15*(n15+1)/2);\n\n System.out.println(sum-sum3-sum5+sum15);\n System.out.flush();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = Long.parseLong(sc.next());\n\n long sum = n*(n+1)/2;\n\n long n3 = n/3;\n long sum3 = 3*(n3*(n3+1)/2);\n long n5 = n/5;\n\n long sum5 = 5*(n5*(n5+1)/2);\n\n long n15 = n/15;\n long sum15 = 15*(n15*(n15+1)/2);\n\n System.out.println(sum-sum3-sum5+sum15);\n System.out.flush();\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = Long.parseLong(sc.next());
long sum = n*(n+1)/2;
long n3 = n/3;
long sum3 = 3*(n3*(n3+1)/2);
long n5 = n/5;
long sum5 = 5*(n5*(n5+1)/2);
long n15 = n/15;
long sum15 = 15*(n15*(n15+1)/2);
System.out.println(sum-sum3-sum5+sum15);
System.out.flush();
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
9,
14,
2,
2,
13,
17,
17,
9,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
68,
11
],
[
68,
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
],
[
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
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
39,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
46,
53
],
[
53,
54
],
[
53,
55
],
[
14,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
14,
62
],
[
62,
63
],
[
63,
64
],
[
12,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
"import java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=n; i++){\n if(i%3==0)\n continue;\n else if(i%5==0)\n continue;\n else\n sum+=i;\n }\n System.out.println(sum);\n\n sc.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=n; i++){\n if(i%3==0)\n continue;\n else if(i%5==0)\n continue;\n else\n sum+=i;\n }\n System.out.println(sum);\n\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=n; i++){\n if(i%3==0)\n continue;\n else if(i%5==0)\n continue;\n else\n sum+=i;\n }\n System.out.println(sum);\n\n sc.close();\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=n; i++){\n if(i%3==0)\n continue;\n else if(i%5==0)\n continue;\n else\n sum+=i;\n }\n System.out.println(sum);\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"for(int i=1; i<=n; i++){\n if(i%3==0)\n continue;\n else if(i%5==0)\n continue;\n else\n sum+=i;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n 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)\n continue;\n else if(i%5==0)\n continue;\n else\n sum+=i;\n }",
"if(i%3==0)\n continue;\n else if(i%5==0)\n continue;\n else\n sum+=i;",
"i%3==0",
"i%3",
"i",
"3",
"0",
"continue;",
"if(i%5==0)\n continue;\n else\n sum+=i;",
"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",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=n; i++){\n if(i%3==0)\n continue;\n else if(i%5==0)\n continue;\n else\n sum+=i;\n }\n System.out.println(sum);\n\n sc.close();\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n long sum = 0;\n\n for(int i=1; i<=n; i++){\n if(i%3==0)\n continue;\n else if(i%5==0)\n continue;\n else\n sum+=i;\n }\n System.out.println(sum);\n\n sc.close();\n }\n}",
"Main"
] |
import java.util.*;
import java.lang.*;
import java.io.*;
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++){
if(i%3==0)
continue;
else if(i%5==0)
continue;
else
sum+=i;
}
System.out.println(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,
14,
2,
2,
2,
2,
13,
17,
17,
17,
2,
2,
2,
13,
17,
17,
17,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
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
],
[
49,
50
],
[
50,
51
],
[
50,
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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {\n\t\t\t\tsum += (i + 1);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(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\tlong sum = 0;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {\n\t\t\t\tsum += (i + 1);\n\t\t\t}\n\t\t}\n\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\t\tint N = sc.nextInt();\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {\n\t\t\t\tsum += (i + 1);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {\n\t\t\t\tsum += (i + 1);\n\t\t\t}\n\t\t}\n\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",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < N; i++) {\n\t\t\tif ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {\n\t\t\t\tsum += (i + 1);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tif ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {\n\t\t\t\tsum += (i + 1);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {\n\t\t\t\tsum += (i + 1);\n\t\t\t}\n\t\t}",
"if ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {\n\t\t\t\tsum += (i + 1);\n\t\t\t}",
"(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\t\t\t\tsum += (i + 1);\n\t\t\t}",
"sum += (i + 1)",
"sum",
"(i + 1)",
"i",
"1",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {\n\t\t\t\tsum += (i + 1);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(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\tlong sum = 0;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {\n\t\t\t\tsum += (i + 1);\n\t\t\t}\n\t\t}\n\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 N = sc.nextInt();
long sum = 0;
for (int i = 0; i < N; i++) {
if ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {
sum += (i + 1);
}
}
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,
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\n@SuppressWarnings(\"resource\")\npublic static void main(String[] args) {\n\tScanner sc =new Scanner(System.in);\n\tint N=sc.nextInt();\n\tlong sum=0;\n\tfor(int i=1;i<=N;i++) {\n\t\tif(i%3!=0&&i%5!=0) {\n\t\t\tsum+=i;\n\t\t}\n\t}\n\tSystem.out.println(sum);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n@SuppressWarnings(\"resource\")\npublic static void main(String[] args) {\n\tScanner sc =new Scanner(System.in);\n\tint N=sc.nextInt();\n\tlong sum=0;\n\tfor(int i=1;i<=N;i++) {\n\t\tif(i%3!=0&&i%5!=0) {\n\t\t\tsum+=i;\n\t\t}\n\t}\n\tSystem.out.println(sum);\n\t}\n}",
"Main",
"@SuppressWarnings(\"resource\")\npublic static void main(String[] args) {\n\tScanner sc =new Scanner(System.in);\n\tint N=sc.nextInt();\n\tlong sum=0;\n\tfor(int i=1;i<=N;i++) {\n\t\tif(i%3!=0&&i%5!=0) {\n\t\t\tsum+=i;\n\t\t}\n\t}\n\tSystem.out.println(sum);\n\t}",
"main",
"{\n\tScanner sc =new Scanner(System.in);\n\tint N=sc.nextInt();\n\tlong sum=0;\n\tfor(int i=1;i<=N;i++) {\n\t\tif(i%3!=0&&i%5!=0) {\n\t\t\tsum+=i;\n\t\t}\n\t}\n\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",
"long sum=0;",
"sum",
"0",
"for(int i=1;i<=N;i++) {\n\t\tif(i%3!=0&&i%5!=0) {\n\t\t\tsum+=i;\n\t\t}\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\tsum+=i;\n\t\t}\n\t}",
"{\n\t\tif(i%3!=0&&i%5!=0) {\n\t\t\tsum+=i;\n\t\t}\n\t}",
"if(i%3!=0&&i%5!=0) {\n\t\t\tsum+=i;\n\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\tsum+=i;\n\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@SuppressWarnings(\"resource\")\npublic static void main(String[] args) {\n\tScanner sc =new Scanner(System.in);\n\tint N=sc.nextInt();\n\tlong sum=0;\n\tfor(int i=1;i<=N;i++) {\n\t\tif(i%3!=0&&i%5!=0) {\n\t\t\tsum+=i;\n\t\t}\n\t}\n\tSystem.out.println(sum);\n\t}\n}",
"public class Main {\n\n@SuppressWarnings(\"resource\")\npublic static void main(String[] args) {\n\tScanner sc =new Scanner(System.in);\n\tint N=sc.nextInt();\n\tlong sum=0;\n\tfor(int i=1;i<=N;i++) {\n\t\tif(i%3!=0&&i%5!=0) {\n\t\t\tsum+=i;\n\t\t}\n\t}\n\tSystem.out.println(sum);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
@SuppressWarnings("resource")
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++) {
if(i%3!=0&&i%5!=0) {
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,
9,
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
],
[
62,
5
],
[
62,
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
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"\t\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\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ts = s+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\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ts = s+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\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ts = s+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\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ts = s+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\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ts = s+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\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ts = s+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\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ts = s+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\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ts = s+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\tcontinue;\n\t\t\t\t\t\t}",
"continue;",
"{\n\t\t\t\t\t\t\ts = s+i;\n\t\t\t\t\t\t}",
"s = s+i",
"s",
"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\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ts = s+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\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ts = s+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) {
continue;
}
else {
s = s+i;
}
}
System.out.println(s);
}}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
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,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
36,
13,
13,
20,
23,
13,
12,
13,
30,
0,
18,
36,
13,
18,
13,
13,
0,
18,
36,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
36,
13,
13,
20,
23,
13,
12,
13,
30,
4,
18,
36,
13,
13,
17,
23,
13,
23,
13,
12,
13,
30,
4,
18,
18,
18,
36,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
0,
18,
36,
13,
20,
18,
36,
13,
12,
13,
30,
0,
18,
18,
36,
13,
13,
17,
41,
13,
17,
28,
13,
4,
18,
18,
18,
36,
13,
13,
30,
30,
14,
2,
4,
18,
13,
13,
30,
9,
14,
18,
13,
4,
18,
13,
30,
0,
13,
17,
30,
0,
13,
2,
13,
4,
13,
4,
18,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
29,
18,
18,
36,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
12,
13,
30,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
20,
23,
13,
23,
13,
12,
13,
30,
29,
18,
36,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
18,
36,
13,
12,
13,
30,
29,
18,
36,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
12,
13,
30,
29,
4,
18,
4,
13,
17,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
37,
20,
30,
29,
4,
18,
13,
12,
13,
30,
14,
2,
2,
18,
36,
13,
17,
40,
4,
18,
18,
36,
13,
30,
38,
5,
13,
30,
4,
18,
13,
37,
20,
30,
0,
18,
36,
13,
20,
29,
4,
18,
18,
36,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
626,
23
],
[
626,
24
],
[
24,
25
],
[
24,
26
],
[
626,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
29,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
51,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
29,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
27,
73
],
[
73,
74
],
[
626,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
75,
79
],
[
79,
80
],
[
75,
81
],
[
81,
82
],
[
75,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
85,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
110,
116
],
[
83,
117
],
[
117,
118
],
[
75,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
134,
135
],
[
134,
136
],
[
121,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
137,
147
],
[
147,
148
],
[
148,
149
],
[
137,
150
],
[
151,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
152,
158
],
[
119,
159
],
[
159,
160
],
[
75,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
164,
168
],
[
164,
169
],
[
161,
170
],
[
170,
171
],
[
161,
172
],
[
172,
173
],
[
75,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
177,
184
],
[
177,
185
],
[
174,
186
],
[
186,
187
],
[
174,
188
],
[
188,
189
],
[
174,
190
],
[
190,
191
],
[
75,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
200,
201
],
[
200,
202
],
[
75,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
206,
212
],
[
205,
213
],
[
213,
214
],
[
213,
215
],
[
205,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
216,
225
],
[
226,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
228,
232
],
[
227,
233
],
[
233,
234
],
[
226,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
239,
240
],
[
235,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
235,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
250,
255
],
[
205,
256
],
[
256,
257
],
[
203,
258
],
[
258,
259
],
[
203,
260
],
[
260,
261
],
[
75,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
266,
270
],
[
262,
271
],
[
271,
272
],
[
626,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
273,
277
],
[
277,
278
],
[
277,
279
],
[
273,
280
],
[
280,
281
],
[
280,
282
],
[
273,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
290
],
[
283,
291
],
[
291,
292
],
[
273,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
296,
300
],
[
293,
301
],
[
301,
302
],
[
273,
303
],
[
303,
304
],
[
303,
305
],
[
305,
306
],
[
306,
307
],
[
307,
308
],
[
306,
309
],
[
303,
310
],
[
310,
311
],
[
303,
312
],
[
312,
313
],
[
273,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
626,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
321,
325
],
[
325,
326
],
[
321,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
330,
334
],
[
329,
335
],
[
335,
336
],
[
336,
337
],
[
336,
338
],
[
335,
339
],
[
327,
340
],
[
340,
341
],
[
327,
342
],
[
342,
343
],
[
321,
344
],
[
344,
345
],
[
344,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
321,
351
],
[
351,
352
],
[
351,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
626,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
358,
362
],
[
362,
363
],
[
358,
364
],
[
364,
365
],
[
364,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
367,
371
],
[
364,
372
],
[
372,
373
],
[
358,
374
],
[
374,
375
],
[
374,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
379,
380
],
[
376,
381
],
[
381,
382
],
[
381,
383
],
[
384,
385
],
[
384,
386
],
[
376,
387
],
[
387,
388
],
[
388,
389
],
[
389,
390
],
[
389,
391
],
[
387,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
394,
396
],
[
387,
397
],
[
397,
398
],
[
398,
399
],
[
387,
400
],
[
401,
401
],
[
401,
402
],
[
402,
403
],
[
403,
404
],
[
403,
405
],
[
402,
406
],
[
406,
407
],
[
407,
408
],
[
406,
409
],
[
409,
410
],
[
409,
411
],
[
376,
412
],
[
412,
413
],
[
358,
414
],
[
414,
415
],
[
414,
416
],
[
416,
417
],
[
417,
418
],
[
418,
419
],
[
419,
420
],
[
420,
421
],
[
418,
422
],
[
358,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
426,
427
],
[
427,
428
],
[
427,
429
],
[
429,
430
],
[
430,
431
],
[
431,
432
],
[
429,
433
],
[
433,
434
],
[
426,
435
],
[
435,
436
],
[
436,
437
],
[
437,
438
],
[
438,
439
],
[
358,
440
],
[
440,
441
],
[
440,
442
],
[
442,
443
],
[
443,
444
],
[
444,
445
],
[
445,
446
],
[
446,
447
],
[
446,
448
],
[
445,
449
],
[
444,
450
],
[
450,
451
],
[
451,
452
],
[
452,
453
],
[
453,
454
],
[
453,
455
],
[
443,
456
],
[
456,
457
],
[
457,
458
],
[
458,
459
],
[
458,
460
],
[
460,
461
],
[
461,
462
],
[
462,
463
],
[
460,
464
],
[
464,
465
],
[
457,
466
],
[
466,
467
],
[
467,
468
],
[
468,
469
],
[
468,
470
],
[
467,
471
],
[
442,
472
],
[
472,
473
],
[
473,
474
],
[
474,
475
],
[
475,
476
],
[
475,
477
],
[
358,
478
],
[
478,
479
],
[
478,
480
],
[
480,
481
],
[
481,
482
],
[
482,
483
],
[
483,
484
],
[
482,
485
],
[
485,
486
],
[
358,
487
],
[
487,
488
],
[
487,
489
],
[
489,
490
],
[
490,
491
],
[
491,
492
],
[
492,
493
],
[
491,
494
],
[
494,
495
],
[
358,
496
],
[
496,
497
],
[
496,
498
],
[
498,
499
],
[
499,
500
],
[
500,
501
],
[
501,
502
],
[
500,
503
],
[
503,
504
],
[
358,
505
],
[
505,
506
],
[
505,
507
],
[
507,
508
],
[
508,
509
],
[
508,
510
],
[
507,
512
],
[
512,
513
],
[
513,
514
],
[
514,
515
],
[
514,
516
],
[
512,
517
],
[
517,
518
],
[
517,
519
],
[
512,
520
],
[
520,
521
],
[
521,
522
],
[
512,
523
],
[
524,
524
],
[
524,
525
],
[
525,
526
],
[
526,
527
],
[
526,
528
],
[
525,
529
],
[
529,
530
],
[
507,
531
],
[
531,
532
],
[
505,
533
],
[
533,
534
],
[
358,
535
],
[
535,
536
],
[
535,
537
],
[
537,
538
],
[
538,
539
],
[
538,
540
],
[
537,
542
],
[
542,
543
],
[
543,
544
],
[
544,
545
],
[
544,
546
],
[
542,
547
],
[
547,
548
],
[
547,
549
],
[
542,
550
],
[
550,
551
],
[
551,
552
],
[
542,
553
],
[
554,
554
],
[
554,
555
],
[
555,
556
],
[
556,
557
],
[
556,
558
],
[
555,
559
],
[
559,
560
],
[
537,
561
],
[
561,
562
],
[
535,
563
],
[
563,
564
],
[
358,
565
],
[
565,
566
],
[
565,
567
],
[
567,
568
],
[
568,
569
],
[
568,
570
],
[
567,
572
],
[
572,
573
],
[
573,
574
],
[
574,
575
],
[
574,
576
],
[
572,
577
],
[
577,
578
],
[
577,
579
],
[
572,
580
],
[
580,
581
],
[
581,
582
],
[
572,
583
],
[
584,
584
],
[
584,
585
],
[
585,
586
],
[
586,
587
],
[
586,
588
],
[
585,
589
],
[
589,
590
],
[
567,
591
],
[
591,
592
],
[
565,
593
],
[
593,
594
],
[
358,
595
],
[
595,
596
],
[
595,
597
],
[
597,
598
],
[
598,
599
],
[
598,
600
],
[
597,
602
],
[
602,
603
],
[
603,
604
],
[
604,
605
],
[
604,
606
],
[
602,
607
],
[
607,
608
],
[
607,
609
],
[
602,
610
],
[
610,
611
],
[
611,
612
],
[
602,
613
],
[
614,
614
],
[
614,
615
],
[
615,
616
],
[
616,
617
],
[
616,
618
],
[
615,
619
],
[
619,
620
],
[
597,
621
],
[
621,
622
],
[
595,
623
],
[
623,
624
],
[
0,
625
],
[
625,
626
],
[
625,
627
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n private static FastScanner scanner = new FastScanner(System.in);\n\n public static void main(String[] args) {\n int n = scanner.nextInt();\n\n long result = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n result += i;\n }\n }\n System.out.println(result);\n }\n\n private static class Graph {\n private Vertex[] vertexes;\n private int size;\n private boolean[] seen;\n\n public Graph(int n) {\n this.size = n;\n this.vertexes = new Vertex[n];\n for (int i = 0; i < n; i++) {\n this.vertexes[i] = new Vertex();\n }\n }\n\n public Graph(int[] vertexes) {\n this.size = vertexes.length;\n this. vertexes = new Vertex[vertexes.length];\n for (int i = 0; i < vertexes.length; i++) {\n this.vertexes[i] = new Vertex(vertexes[i]);\n }\n }\n\n public void addEdge(int from, int to) {\n this.addEdge(from, to, 0);\n }\n\n public void addEdge(int from, int to, int weight) {\n this.vertexes[from].addEdge(to, weight);\n }\n\n public void initDfs() {\n this.seen = new boolean[this.size];\n }\n\n // 深さ優先探索を実施し、到達可能な頂点をすべて辿り閉路かどうかをチェックする\n public boolean dfs(int now, int from) {\n this.seen[now] = true;\n boolean isCycle = false;\n for (Edge e : this.vertexes[now].getEdges()) {\n if (e.getTo() == from) {\n continue;\n }\n if (seen[e.getTo()]) {\n isCycle = true;\n } else {\n isCycle = isCycle || dfs(e.getTo(), now);\n }\n }\n return isCycle;\n }\n\n public boolean seen(int now) {\n return this.seen[now];\n }\n\n }\n\n private static class Vertex {\n private int value;\n private List<Edge> edges = new ArrayList<>();\n\n public Vertex() {};\n public Vertex(int value) {\n this.value = value;\n }\n\n public void setValue(int value) {\n this.value = value;\n }\n\n public void addEdge(int to, int weight) {\n edges.add(new Edge(to, weight));\n }\n\n public List<Edge> getEdges() {\n return this.edges;\n }\n }\n\n private static class Edge {\n private int to;\n private int weight;\n\n public Edge(int to, int weight) {\n this.to = to;\n this.weight = weight;\n }\n\n public int getTo() {\n return this.to;\n }\n\n public int getWeight() {\n return this.weight;\n }\n }\n\n private static class FastScanner {\n private BufferedReader reader;\n private StringTokenizer tokenizer;\n\n public FastScanner(InputStream in) {\n this.reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public int[] nextLineToIntArray() {\n String[] stringArray = nextLineToStringArray();\n int[] intArray = new int[stringArray.length];\n for (int i = 0; i < stringArray.length; i++) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n return intArray;\n }\n\n public String[] nextLineToStringArray() {\n return nextLine().split(\"\");\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n\n public String next() {\n if (this.tokenizer == null || !this.tokenizer.hasMoreElements()) {\n try {\n this.tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n return this.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[] nextStringArray(int n) {\n String[] stringArray = new String[n];\n for (int i = 0; i < n; i++) {\n stringArray[i] = next();\n }\n return stringArray;\n }\n\n public int[] nextIntArray(int n) {\n int[] intArray = new int[n];\n for (int i = 0; i < n; i++) {\n intArray[i] = nextInt();\n }\n return intArray;\n }\n\n public long[] nextLongArray(int n) {\n long[] longArray = new long[n];\n for (int i = 0; i < n; i++) {\n longArray[i] = nextLong();\n }\n return longArray;\n }\n\n public double[] nextDoubleArray(int n) {\n double[] doubleArray = new double[n];\n for (int i = 0; i < n; i++) {\n doubleArray[i] = nextDouble();\n }\n return doubleArray;\n }\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n private static FastScanner scanner = new FastScanner(System.in);\n\n public static void main(String[] args) {\n int n = scanner.nextInt();\n\n long result = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n result += i;\n }\n }\n System.out.println(result);\n }\n\n private static class Graph {\n private Vertex[] vertexes;\n private int size;\n private boolean[] seen;\n\n public Graph(int n) {\n this.size = n;\n this.vertexes = new Vertex[n];\n for (int i = 0; i < n; i++) {\n this.vertexes[i] = new Vertex();\n }\n }\n\n public Graph(int[] vertexes) {\n this.size = vertexes.length;\n this. vertexes = new Vertex[vertexes.length];\n for (int i = 0; i < vertexes.length; i++) {\n this.vertexes[i] = new Vertex(vertexes[i]);\n }\n }\n\n public void addEdge(int from, int to) {\n this.addEdge(from, to, 0);\n }\n\n public void addEdge(int from, int to, int weight) {\n this.vertexes[from].addEdge(to, weight);\n }\n\n public void initDfs() {\n this.seen = new boolean[this.size];\n }\n\n // 深さ優先探索を実施し、到達可能な頂点をすべて辿り閉路かどうかをチェックする\n public boolean dfs(int now, int from) {\n this.seen[now] = true;\n boolean isCycle = false;\n for (Edge e : this.vertexes[now].getEdges()) {\n if (e.getTo() == from) {\n continue;\n }\n if (seen[e.getTo()]) {\n isCycle = true;\n } else {\n isCycle = isCycle || dfs(e.getTo(), now);\n }\n }\n return isCycle;\n }\n\n public boolean seen(int now) {\n return this.seen[now];\n }\n\n }\n\n private static class Vertex {\n private int value;\n private List<Edge> edges = new ArrayList<>();\n\n public Vertex() {};\n public Vertex(int value) {\n this.value = value;\n }\n\n public void setValue(int value) {\n this.value = value;\n }\n\n public void addEdge(int to, int weight) {\n edges.add(new Edge(to, weight));\n }\n\n public List<Edge> getEdges() {\n return this.edges;\n }\n }\n\n private static class Edge {\n private int to;\n private int weight;\n\n public Edge(int to, int weight) {\n this.to = to;\n this.weight = weight;\n }\n\n public int getTo() {\n return this.to;\n }\n\n public int getWeight() {\n return this.weight;\n }\n }\n\n private static class FastScanner {\n private BufferedReader reader;\n private StringTokenizer tokenizer;\n\n public FastScanner(InputStream in) {\n this.reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public int[] nextLineToIntArray() {\n String[] stringArray = nextLineToStringArray();\n int[] intArray = new int[stringArray.length];\n for (int i = 0; i < stringArray.length; i++) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n return intArray;\n }\n\n public String[] nextLineToStringArray() {\n return nextLine().split(\"\");\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n\n public String next() {\n if (this.tokenizer == null || !this.tokenizer.hasMoreElements()) {\n try {\n this.tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n return this.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[] nextStringArray(int n) {\n String[] stringArray = new String[n];\n for (int i = 0; i < n; i++) {\n stringArray[i] = next();\n }\n return stringArray;\n }\n\n public int[] nextIntArray(int n) {\n int[] intArray = new int[n];\n for (int i = 0; i < n; i++) {\n intArray[i] = nextInt();\n }\n return intArray;\n }\n\n public long[] nextLongArray(int n) {\n long[] longArray = new long[n];\n for (int i = 0; i < n; i++) {\n longArray[i] = nextLong();\n }\n return longArray;\n }\n\n public double[] nextDoubleArray(int n) {\n double[] doubleArray = new double[n];\n for (int i = 0; i < n; i++) {\n doubleArray[i] = nextDouble();\n }\n return doubleArray;\n }\n }\n\n}",
"Main",
"private static FastScanner scanner = new FastScanner(System.in);",
"scanner",
"new FastScanner(System.in)",
"public static void main(String[] args) {\n int n = scanner.nextInt();\n\n long result = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n result += i;\n }\n }\n System.out.println(result);\n }",
"main",
"{\n int n = scanner.nextInt();\n\n long result = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n result += i;\n }\n }\n System.out.println(result);\n }",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long result = 0;",
"result",
"0",
"for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\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 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 % 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",
"private static class Graph {\n private Vertex[] vertexes;\n private int size;\n private boolean[] seen;\n\n public Graph(int n) {\n this.size = n;\n this.vertexes = new Vertex[n];\n for (int i = 0; i < n; i++) {\n this.vertexes[i] = new Vertex();\n }\n }\n\n public Graph(int[] vertexes) {\n this.size = vertexes.length;\n this. vertexes = new Vertex[vertexes.length];\n for (int i = 0; i < vertexes.length; i++) {\n this.vertexes[i] = new Vertex(vertexes[i]);\n }\n }\n\n public void addEdge(int from, int to) {\n this.addEdge(from, to, 0);\n }\n\n public void addEdge(int from, int to, int weight) {\n this.vertexes[from].addEdge(to, weight);\n }\n\n public void initDfs() {\n this.seen = new boolean[this.size];\n }\n\n // 深さ優先探索を実施し、到達可能な頂点をすべて辿り閉路かどうかをチェックする\n public boolean dfs(int now, int from) {\n this.seen[now] = true;\n boolean isCycle = false;\n for (Edge e : this.vertexes[now].getEdges()) {\n if (e.getTo() == from) {\n continue;\n }\n if (seen[e.getTo()]) {\n isCycle = true;\n } else {\n isCycle = isCycle || dfs(e.getTo(), now);\n }\n }\n return isCycle;\n }\n\n public boolean seen(int now) {\n return this.seen[now];\n }\n\n }",
"Graph",
"private Vertex[] vertexes;",
"vertexes",
"private int size;",
"size",
"private boolean[] seen;",
"seen",
"public Graph(int n) {\n this.size = n;\n this.vertexes = new Vertex[n];\n for (int i = 0; i < n; i++) {\n this.vertexes[i] = new Vertex();\n }\n }",
"Graph",
"{\n this.size = n;\n this.vertexes = new Vertex[n];\n for (int i = 0; i < n; i++) {\n this.vertexes[i] = new Vertex();\n }\n }",
"this.size = n",
"this.size",
"this",
"this.size",
"n",
"this.vertexes = new Vertex[n]",
"this.vertexes",
"this",
"this.vertexes",
"new Vertex[n]",
"n",
"for (int i = 0; i < n; i++) {\n this.vertexes[i] = new Vertex();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n this.vertexes[i] = new Vertex();\n }",
"{\n this.vertexes[i] = new Vertex();\n }",
"this.vertexes[i] = new Vertex()",
"this.vertexes[i]",
"this.vertexes",
"this",
"this.vertexes",
"i",
"new Vertex()",
"int n",
"n",
"public Graph(int[] vertexes) {\n this.size = vertexes.length;\n this. vertexes = new Vertex[vertexes.length];\n for (int i = 0; i < vertexes.length; i++) {\n this.vertexes[i] = new Vertex(vertexes[i]);\n }\n }",
"Graph",
"{\n this.size = vertexes.length;\n this. vertexes = new Vertex[vertexes.length];\n for (int i = 0; i < vertexes.length; i++) {\n this.vertexes[i] = new Vertex(vertexes[i]);\n }\n }",
"this.size = vertexes.length",
"this.size",
"this",
"this.size",
"vertexes.length",
"vertexes",
"vertexes.length",
"this. vertexes = new Vertex[vertexes.length]",
"this. vertexes",
"this",
"this. vertexes",
"new Vertex[vertexes.length]",
"vertexes.length",
"vertexes",
"vertexes.length",
"for (int i = 0; i < vertexes.length; i++) {\n this.vertexes[i] = new Vertex(vertexes[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < vertexes.length",
"i",
"vertexes.length",
"vertexes",
"vertexes.length",
"i++",
"i++",
"i",
"{\n this.vertexes[i] = new Vertex(vertexes[i]);\n }",
"{\n this.vertexes[i] = new Vertex(vertexes[i]);\n }",
"this.vertexes[i] = new Vertex(vertexes[i])",
"this.vertexes[i]",
"this.vertexes",
"this",
"this.vertexes",
"i",
"new Vertex(vertexes[i])",
"int[] vertexes",
"vertexes",
"public void addEdge(int from, int to) {\n this.addEdge(from, to, 0);\n }",
"addEdge",
"{\n this.addEdge(from, to, 0);\n }",
"this.addEdge(from, to, 0)",
"this.addEdge",
"this",
"from",
"to",
"0",
"int from",
"from",
"int to",
"to",
"public void addEdge(int from, int to, int weight) {\n this.vertexes[from].addEdge(to, weight);\n }",
"addEdge",
"{\n this.vertexes[from].addEdge(to, weight);\n }",
"this.vertexes[from].addEdge(to, weight)",
"this.vertexes[from].addEdge",
"this.vertexes[from]",
"this.vertexes",
"this",
"this.vertexes",
"from",
"to",
"weight",
"int from",
"from",
"int to",
"to",
"int weight",
"weight",
"public void initDfs() {\n this.seen = new boolean[this.size];\n }",
"initDfs",
"{\n this.seen = new boolean[this.size];\n }",
"this.seen = new boolean[this.size]",
"this.seen",
"this",
"this.seen",
"new boolean[this.size]",
"this.size",
"this",
"this.size",
"// 深さ優先探索を実施し、到達可能な頂点をすべて辿り閉路かどうかをチェックする\n public boolean dfs(int now, int from) {\n this.seen[now] = true;\n boolean isCycle = false;\n for (Edge e : this.vertexes[now].getEdges()) {\n if (e.getTo() == from) {\n continue;\n }\n if (seen[e.getTo()]) {\n isCycle = true;\n } else {\n isCycle = isCycle || dfs(e.getTo(), now);\n }\n }\n return isCycle;\n }",
"dfs",
"{\n this.seen[now] = true;\n boolean isCycle = false;\n for (Edge e : this.vertexes[now].getEdges()) {\n if (e.getTo() == from) {\n continue;\n }\n if (seen[e.getTo()]) {\n isCycle = true;\n } else {\n isCycle = isCycle || dfs(e.getTo(), now);\n }\n }\n return isCycle;\n }",
"this.seen[now] = true",
"this.seen[now]",
"this.seen",
"this",
"this.seen",
"now",
"true",
"boolean isCycle = false;",
"isCycle",
"false",
"for (Edge e : this.vertexes[now].getEdges()) {\n if (e.getTo() == from) {\n continue;\n }\n if (seen[e.getTo()]) {\n isCycle = true;\n } else {\n isCycle = isCycle || dfs(e.getTo(), now);\n }\n }",
"Edge e",
"this.vertexes[now].getEdges()",
"this.vertexes[now].getEdges",
"this.vertexes[now]",
"this.vertexes",
"this",
"this.vertexes",
"now",
"{\n if (e.getTo() == from) {\n continue;\n }\n if (seen[e.getTo()]) {\n isCycle = true;\n } else {\n isCycle = isCycle || dfs(e.getTo(), now);\n }\n }",
"{\n if (e.getTo() == from) {\n continue;\n }\n if (seen[e.getTo()]) {\n isCycle = true;\n } else {\n isCycle = isCycle || dfs(e.getTo(), now);\n }\n }",
"if (e.getTo() == from) {\n continue;\n }",
"e.getTo() == from",
"e.getTo()",
"e.getTo",
"e",
"from",
"{\n continue;\n }",
"continue;",
"if (seen[e.getTo()]) {\n isCycle = true;\n } else {\n isCycle = isCycle || dfs(e.getTo(), now);\n }",
"seen[e.getTo()]",
"seen",
"e.getTo()",
"e.getTo",
"e",
"{\n isCycle = true;\n }",
"isCycle = true",
"isCycle",
"true",
"{\n isCycle = isCycle || dfs(e.getTo(), now);\n }",
"isCycle = isCycle || dfs(e.getTo(), now)",
"isCycle",
"isCycle || dfs(e.getTo(), now)",
"isCycle",
"dfs(e.getTo(), now)",
"dfs",
"e.getTo()",
"e.getTo",
"e",
"now",
"return isCycle;",
"isCycle",
"int now",
"now",
"int from",
"from",
"public boolean seen(int now) {\n return this.seen[now];\n }",
"seen",
"{\n return this.seen[now];\n }",
"return this.seen[now];",
"this.seen[now]",
"this.seen",
"this",
"this.seen",
"now",
"int now",
"now",
"private static class Vertex {\n private int value;\n private List<Edge> edges = new ArrayList<>();\n\n public Vertex() {};\n public Vertex(int value) {\n this.value = value;\n }\n\n public void setValue(int value) {\n this.value = value;\n }\n\n public void addEdge(int to, int weight) {\n edges.add(new Edge(to, weight));\n }\n\n public List<Edge> getEdges() {\n return this.edges;\n }\n }",
"Vertex",
"private int value;",
"value",
"private List<Edge> edges = new ArrayList<>();",
"edges",
"new ArrayList<>()",
"public Vertex() {}",
"Vertex",
"{}",
"public Vertex(int value) {\n this.value = value;\n }",
"Vertex",
"{\n this.value = value;\n }",
"this.value = value",
"this.value",
"this",
"this.value",
"value",
"int value",
"value",
"public void setValue(int value) {\n this.value = value;\n }",
"setValue",
"{\n this.value = value;\n }",
"this.value = value",
"this.value",
"this",
"this.value",
"value",
"int value",
"value",
"public void addEdge(int to, int weight) {\n edges.add(new Edge(to, weight));\n }",
"addEdge",
"{\n edges.add(new Edge(to, weight));\n }",
"edges.add(new Edge(to, weight))",
"edges.add",
"edges",
"new Edge(to, weight)",
"int to",
"to",
"int weight",
"weight",
"public List<Edge> getEdges() {\n return this.edges;\n }",
"getEdges",
"{\n return this.edges;\n }",
"return this.edges;",
"this.edges",
"this",
"this.edges",
"private static class Edge {\n private int to;\n private int weight;\n\n public Edge(int to, int weight) {\n this.to = to;\n this.weight = weight;\n }\n\n public int getTo() {\n return this.to;\n }\n\n public int getWeight() {\n return this.weight;\n }\n }",
"Edge",
"private int to;",
"to",
"private int weight;",
"weight",
"public Edge(int to, int weight) {\n this.to = to;\n this.weight = weight;\n }",
"Edge",
"{\n this.to = to;\n this.weight = weight;\n }",
"this.to = to",
"this.to",
"this",
"this.to",
"to",
"this.weight = weight",
"this.weight",
"this",
"this.weight",
"weight",
"int to",
"to",
"int weight",
"weight",
"public int getTo() {\n return this.to;\n }",
"getTo",
"{\n return this.to;\n }",
"return this.to;",
"this.to",
"this",
"this.to",
"public int getWeight() {\n return this.weight;\n }",
"getWeight",
"{\n return this.weight;\n }",
"return this.weight;",
"this.weight",
"this",
"this.weight",
"private static class FastScanner {\n private BufferedReader reader;\n private StringTokenizer tokenizer;\n\n public FastScanner(InputStream in) {\n this.reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public int[] nextLineToIntArray() {\n String[] stringArray = nextLineToStringArray();\n int[] intArray = new int[stringArray.length];\n for (int i = 0; i < stringArray.length; i++) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n return intArray;\n }\n\n public String[] nextLineToStringArray() {\n return nextLine().split(\"\");\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n\n public String next() {\n if (this.tokenizer == null || !this.tokenizer.hasMoreElements()) {\n try {\n this.tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n return this.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[] nextStringArray(int n) {\n String[] stringArray = new String[n];\n for (int i = 0; i < n; i++) {\n stringArray[i] = next();\n }\n return stringArray;\n }\n\n public int[] nextIntArray(int n) {\n int[] intArray = new int[n];\n for (int i = 0; i < n; i++) {\n intArray[i] = nextInt();\n }\n return intArray;\n }\n\n public long[] nextLongArray(int n) {\n long[] longArray = new long[n];\n for (int i = 0; i < n; i++) {\n longArray[i] = nextLong();\n }\n return longArray;\n }\n\n public double[] nextDoubleArray(int n) {\n double[] doubleArray = new double[n];\n for (int i = 0; i < n; i++) {\n doubleArray[i] = nextDouble();\n }\n return doubleArray;\n }\n }",
"FastScanner",
"private BufferedReader reader;",
"reader",
"private StringTokenizer tokenizer;",
"tokenizer",
"public FastScanner(InputStream in) {\n this.reader = new BufferedReader(new InputStreamReader(in));\n }",
"FastScanner",
"{\n this.reader = new BufferedReader(new InputStreamReader(in));\n }",
"this.reader = new BufferedReader(new InputStreamReader(in))",
"this.reader",
"this",
"this.reader",
"new BufferedReader(new InputStreamReader(in))",
"InputStream in",
"in",
"public int[] nextLineToIntArray() {\n String[] stringArray = nextLineToStringArray();\n int[] intArray = new int[stringArray.length];\n for (int i = 0; i < stringArray.length; i++) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n return intArray;\n }",
"nextLineToIntArray",
"{\n String[] stringArray = nextLineToStringArray();\n int[] intArray = new int[stringArray.length];\n for (int i = 0; i < stringArray.length; i++) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n return intArray;\n }",
"String[] stringArray = nextLineToStringArray();",
"stringArray",
"nextLineToStringArray()",
"nextLineToStringArray",
"int[] intArray = new int[stringArray.length];",
"intArray",
"new int[stringArray.length]",
"stringArray.length",
"stringArray",
"stringArray.length",
"for (int i = 0; i < stringArray.length; i++) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < stringArray.length",
"i",
"stringArray.length",
"stringArray",
"stringArray.length",
"i++",
"i++",
"i",
"{\n intArray[i] = Integer.parseInt(stringArray[i]);\n }",
"{\n intArray[i] = Integer.parseInt(stringArray[i]);\n }",
"intArray[i] = Integer.parseInt(stringArray[i])",
"intArray[i]",
"intArray",
"i",
"Integer.parseInt(stringArray[i])",
"Integer.parseInt",
"Integer",
"stringArray[i]",
"stringArray",
"i",
"return intArray;",
"intArray",
"public String[] nextLineToStringArray() {\n return nextLine().split(\"\");\n }",
"nextLineToStringArray",
"{\n return nextLine().split(\"\");\n }",
"return nextLine().split(\"\");",
"nextLine().split(\"\")",
"nextLine().split",
"nextLine()",
"nextLine",
"\"\"",
"public String nextLine() {\n try {\n return reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }",
"nextLine",
"{\n try {\n return reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }",
"try {\n return reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n e.printStackTrace();\n throw new RuntimeException(e);\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n return reader.readLine();\n }",
"return reader.readLine();",
"reader.readLine()",
"reader.readLine",
"reader",
"public String next() {\n if (this.tokenizer == null || !this.tokenizer.hasMoreElements()) {\n try {\n this.tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n return this.tokenizer.nextToken();\n }",
"next",
"{\n if (this.tokenizer == null || !this.tokenizer.hasMoreElements()) {\n try {\n this.tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n return this.tokenizer.nextToken();\n }",
"if (this.tokenizer == null || !this.tokenizer.hasMoreElements()) {\n try {\n this.tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }",
"this.tokenizer == null || !this.tokenizer.hasMoreElements()",
"this.tokenizer == null",
"this.tokenizer",
"this",
"this.tokenizer",
"null",
"!this.tokenizer.hasMoreElements()",
"this.tokenizer.hasMoreElements()",
"this.tokenizer.hasMoreElements",
"this.tokenizer",
"this",
"this.tokenizer",
"{\n try {\n this.tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }",
"try {\n this.tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n e.printStackTrace();\n throw new RuntimeException(e);\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n this.tokenizer = new StringTokenizer(reader.readLine());\n }",
"this.tokenizer = new StringTokenizer(reader.readLine())",
"this.tokenizer",
"this",
"this.tokenizer",
"new StringTokenizer(reader.readLine())",
"return this.tokenizer.nextToken();",
"this.tokenizer.nextToken()",
"this.tokenizer.nextToken",
"this.tokenizer",
"this",
"this.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[] nextStringArray(int n) {\n String[] stringArray = new String[n];\n for (int i = 0; i < n; i++) {\n stringArray[i] = next();\n }\n return stringArray;\n }",
"nextStringArray",
"{\n String[] stringArray = new String[n];\n for (int i = 0; i < n; i++) {\n stringArray[i] = next();\n }\n return stringArray;\n }",
"String[] stringArray = new String[n];",
"stringArray",
"new String[n]",
"n",
"for (int i = 0; i < n; i++) {\n stringArray[i] = next();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n stringArray[i] = next();\n }",
"{\n stringArray[i] = next();\n }",
"stringArray[i] = next()",
"stringArray[i]",
"stringArray",
"i",
"next()",
"next",
"return stringArray;",
"stringArray",
"int n",
"n",
"public int[] nextIntArray(int n) {\n int[] intArray = new int[n];\n for (int i = 0; i < n; i++) {\n intArray[i] = nextInt();\n }\n return intArray;\n }",
"nextIntArray",
"{\n int[] intArray = new int[n];\n for (int i = 0; i < n; i++) {\n intArray[i] = nextInt();\n }\n return intArray;\n }",
"int[] intArray = new int[n];",
"intArray",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n intArray[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n intArray[i] = nextInt();\n }",
"{\n intArray[i] = nextInt();\n }",
"intArray[i] = nextInt()",
"intArray[i]",
"intArray",
"i",
"nextInt()",
"nextInt",
"return intArray;",
"intArray",
"int n",
"n",
"public long[] nextLongArray(int n) {\n long[] longArray = new long[n];\n for (int i = 0; i < n; i++) {\n longArray[i] = nextLong();\n }\n return longArray;\n }",
"nextLongArray",
"{\n long[] longArray = new long[n];\n for (int i = 0; i < n; i++) {\n longArray[i] = nextLong();\n }\n return longArray;\n }",
"long[] longArray = new long[n];",
"longArray",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n longArray[i] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n longArray[i] = nextLong();\n }",
"{\n longArray[i] = nextLong();\n }",
"longArray[i] = nextLong()",
"longArray[i]",
"longArray",
"i",
"nextLong()",
"nextLong",
"return longArray;",
"longArray",
"int n",
"n",
"public double[] nextDoubleArray(int n) {\n double[] doubleArray = new double[n];\n for (int i = 0; i < n; i++) {\n doubleArray[i] = nextDouble();\n }\n return doubleArray;\n }",
"nextDoubleArray",
"{\n double[] doubleArray = new double[n];\n for (int i = 0; i < n; i++) {\n doubleArray[i] = nextDouble();\n }\n return doubleArray;\n }",
"double[] doubleArray = new double[n];",
"doubleArray",
"new double[n]",
"n",
"for (int i = 0; i < n; i++) {\n doubleArray[i] = nextDouble();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n doubleArray[i] = nextDouble();\n }",
"{\n doubleArray[i] = nextDouble();\n }",
"doubleArray[i] = nextDouble()",
"doubleArray[i]",
"doubleArray",
"i",
"nextDouble()",
"nextDouble",
"return doubleArray;",
"doubleArray",
"int n",
"n",
"public class Main {\n\n private static FastScanner scanner = new FastScanner(System.in);\n\n public static void main(String[] args) {\n int n = scanner.nextInt();\n\n long result = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n result += i;\n }\n }\n System.out.println(result);\n }\n\n private static class Graph {\n private Vertex[] vertexes;\n private int size;\n private boolean[] seen;\n\n public Graph(int n) {\n this.size = n;\n this.vertexes = new Vertex[n];\n for (int i = 0; i < n; i++) {\n this.vertexes[i] = new Vertex();\n }\n }\n\n public Graph(int[] vertexes) {\n this.size = vertexes.length;\n this. vertexes = new Vertex[vertexes.length];\n for (int i = 0; i < vertexes.length; i++) {\n this.vertexes[i] = new Vertex(vertexes[i]);\n }\n }\n\n public void addEdge(int from, int to) {\n this.addEdge(from, to, 0);\n }\n\n public void addEdge(int from, int to, int weight) {\n this.vertexes[from].addEdge(to, weight);\n }\n\n public void initDfs() {\n this.seen = new boolean[this.size];\n }\n\n // 深さ優先探索を実施し、到達可能な頂点をすべて辿り閉路かどうかをチェックする\n public boolean dfs(int now, int from) {\n this.seen[now] = true;\n boolean isCycle = false;\n for (Edge e : this.vertexes[now].getEdges()) {\n if (e.getTo() == from) {\n continue;\n }\n if (seen[e.getTo()]) {\n isCycle = true;\n } else {\n isCycle = isCycle || dfs(e.getTo(), now);\n }\n }\n return isCycle;\n }\n\n public boolean seen(int now) {\n return this.seen[now];\n }\n\n }\n\n private static class Vertex {\n private int value;\n private List<Edge> edges = new ArrayList<>();\n\n public Vertex() {};\n public Vertex(int value) {\n this.value = value;\n }\n\n public void setValue(int value) {\n this.value = value;\n }\n\n public void addEdge(int to, int weight) {\n edges.add(new Edge(to, weight));\n }\n\n public List<Edge> getEdges() {\n return this.edges;\n }\n }\n\n private static class Edge {\n private int to;\n private int weight;\n\n public Edge(int to, int weight) {\n this.to = to;\n this.weight = weight;\n }\n\n public int getTo() {\n return this.to;\n }\n\n public int getWeight() {\n return this.weight;\n }\n }\n\n private static class FastScanner {\n private BufferedReader reader;\n private StringTokenizer tokenizer;\n\n public FastScanner(InputStream in) {\n this.reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public int[] nextLineToIntArray() {\n String[] stringArray = nextLineToStringArray();\n int[] intArray = new int[stringArray.length];\n for (int i = 0; i < stringArray.length; i++) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n return intArray;\n }\n\n public String[] nextLineToStringArray() {\n return nextLine().split(\"\");\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n\n public String next() {\n if (this.tokenizer == null || !this.tokenizer.hasMoreElements()) {\n try {\n this.tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n return this.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[] nextStringArray(int n) {\n String[] stringArray = new String[n];\n for (int i = 0; i < n; i++) {\n stringArray[i] = next();\n }\n return stringArray;\n }\n\n public int[] nextIntArray(int n) {\n int[] intArray = new int[n];\n for (int i = 0; i < n; i++) {\n intArray[i] = nextInt();\n }\n return intArray;\n }\n\n public long[] nextLongArray(int n) {\n long[] longArray = new long[n];\n for (int i = 0; i < n; i++) {\n longArray[i] = nextLong();\n }\n return longArray;\n }\n\n public double[] nextDoubleArray(int n) {\n double[] doubleArray = new double[n];\n for (int i = 0; i < n; i++) {\n doubleArray[i] = nextDouble();\n }\n return doubleArray;\n }\n }\n\n}",
"public class Main {\n\n private static FastScanner scanner = new FastScanner(System.in);\n\n public static void main(String[] args) {\n int n = scanner.nextInt();\n\n long result = 0;\n for (int i = 1; i <= n; i++) {\n if (i % 3 != 0 && i % 5 != 0) {\n result += i;\n }\n }\n System.out.println(result);\n }\n\n private static class Graph {\n private Vertex[] vertexes;\n private int size;\n private boolean[] seen;\n\n public Graph(int n) {\n this.size = n;\n this.vertexes = new Vertex[n];\n for (int i = 0; i < n; i++) {\n this.vertexes[i] = new Vertex();\n }\n }\n\n public Graph(int[] vertexes) {\n this.size = vertexes.length;\n this. vertexes = new Vertex[vertexes.length];\n for (int i = 0; i < vertexes.length; i++) {\n this.vertexes[i] = new Vertex(vertexes[i]);\n }\n }\n\n public void addEdge(int from, int to) {\n this.addEdge(from, to, 0);\n }\n\n public void addEdge(int from, int to, int weight) {\n this.vertexes[from].addEdge(to, weight);\n }\n\n public void initDfs() {\n this.seen = new boolean[this.size];\n }\n\n // 深さ優先探索を実施し、到達可能な頂点をすべて辿り閉路かどうかをチェックする\n public boolean dfs(int now, int from) {\n this.seen[now] = true;\n boolean isCycle = false;\n for (Edge e : this.vertexes[now].getEdges()) {\n if (e.getTo() == from) {\n continue;\n }\n if (seen[e.getTo()]) {\n isCycle = true;\n } else {\n isCycle = isCycle || dfs(e.getTo(), now);\n }\n }\n return isCycle;\n }\n\n public boolean seen(int now) {\n return this.seen[now];\n }\n\n }\n\n private static class Vertex {\n private int value;\n private List<Edge> edges = new ArrayList<>();\n\n public Vertex() {};\n public Vertex(int value) {\n this.value = value;\n }\n\n public void setValue(int value) {\n this.value = value;\n }\n\n public void addEdge(int to, int weight) {\n edges.add(new Edge(to, weight));\n }\n\n public List<Edge> getEdges() {\n return this.edges;\n }\n }\n\n private static class Edge {\n private int to;\n private int weight;\n\n public Edge(int to, int weight) {\n this.to = to;\n this.weight = weight;\n }\n\n public int getTo() {\n return this.to;\n }\n\n public int getWeight() {\n return this.weight;\n }\n }\n\n private static class FastScanner {\n private BufferedReader reader;\n private StringTokenizer tokenizer;\n\n public FastScanner(InputStream in) {\n this.reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public int[] nextLineToIntArray() {\n String[] stringArray = nextLineToStringArray();\n int[] intArray = new int[stringArray.length];\n for (int i = 0; i < stringArray.length; i++) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n return intArray;\n }\n\n public String[] nextLineToStringArray() {\n return nextLine().split(\"\");\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n\n public String next() {\n if (this.tokenizer == null || !this.tokenizer.hasMoreElements()) {\n try {\n this.tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n return this.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[] nextStringArray(int n) {\n String[] stringArray = new String[n];\n for (int i = 0; i < n; i++) {\n stringArray[i] = next();\n }\n return stringArray;\n }\n\n public int[] nextIntArray(int n) {\n int[] intArray = new int[n];\n for (int i = 0; i < n; i++) {\n intArray[i] = nextInt();\n }\n return intArray;\n }\n\n public long[] nextLongArray(int n) {\n long[] longArray = new long[n];\n for (int i = 0; i < n; i++) {\n longArray[i] = nextLong();\n }\n return longArray;\n }\n\n public double[] nextDoubleArray(int n) {\n double[] doubleArray = new double[n];\n for (int i = 0; i < n; i++) {\n doubleArray[i] = nextDouble();\n }\n return doubleArray;\n }\n }\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
public class Main {
private static FastScanner scanner = new FastScanner(System.in);
public static void main(String[] args) {
int n = scanner.nextInt();
long result = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
result += i;
}
}
System.out.println(result);
}
private static class Graph {
private Vertex[] vertexes;
private int size;
private boolean[] seen;
public Graph(int n) {
this.size = n;
this.vertexes = new Vertex[n];
for (int i = 0; i < n; i++) {
this.vertexes[i] = new Vertex();
}
}
public Graph(int[] vertexes) {
this.size = vertexes.length;
this. vertexes = new Vertex[vertexes.length];
for (int i = 0; i < vertexes.length; i++) {
this.vertexes[i] = new Vertex(vertexes[i]);
}
}
public void addEdge(int from, int to) {
this.addEdge(from, to, 0);
}
public void addEdge(int from, int to, int weight) {
this.vertexes[from].addEdge(to, weight);
}
public void initDfs() {
this.seen = new boolean[this.size];
}
// 深さ優先探索を実施し、到達可能な頂点をすべて辿り閉路かどうかをチェックする
public boolean dfs(int now, int from) {
this.seen[now] = true;
boolean isCycle = false;
for (Edge e : this.vertexes[now].getEdges()) {
if (e.getTo() == from) {
continue;
}
if (seen[e.getTo()]) {
isCycle = true;
} else {
isCycle = isCycle || dfs(e.getTo(), now);
}
}
return isCycle;
}
public boolean seen(int now) {
return this.seen[now];
}
}
private static class Vertex {
private int value;
private List<Edge> edges = new ArrayList<>();
public Vertex() {};
public Vertex(int value) {
this.value = value;
}
public void setValue(int value) {
this.value = value;
}
public void addEdge(int to, int weight) {
edges.add(new Edge(to, weight));
}
public List<Edge> getEdges() {
return this.edges;
}
}
private static class Edge {
private int to;
private int weight;
public Edge(int to, int weight) {
this.to = to;
this.weight = weight;
}
public int getTo() {
return this.to;
}
public int getWeight() {
return this.weight;
}
}
private static class FastScanner {
private BufferedReader reader;
private StringTokenizer tokenizer;
public FastScanner(InputStream in) {
this.reader = new BufferedReader(new InputStreamReader(in));
}
public int[] nextLineToIntArray() {
String[] stringArray = nextLineToStringArray();
int[] intArray = new int[stringArray.length];
for (int i = 0; i < stringArray.length; i++) {
intArray[i] = Integer.parseInt(stringArray[i]);
}
return intArray;
}
public String[] nextLineToStringArray() {
return nextLine().split("");
}
public String nextLine() {
try {
return reader.readLine();
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}
public String next() {
if (this.tokenizer == null || !this.tokenizer.hasMoreElements()) {
try {
this.tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}
return this.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[] nextStringArray(int n) {
String[] stringArray = new String[n];
for (int i = 0; i < n; i++) {
stringArray[i] = next();
}
return stringArray;
}
public int[] nextIntArray(int n) {
int[] intArray = new int[n];
for (int i = 0; i < n; i++) {
intArray[i] = nextInt();
}
return intArray;
}
public long[] nextLongArray(int n) {
long[] longArray = new long[n];
for (int i = 0; i < n; i++) {
longArray[i] = nextLong();
}
return longArray;
}
public double[] nextDoubleArray(int n) {
double[] doubleArray = new double[n];
for (int i = 0; i < n; i++) {
doubleArray[i] = nextDouble();
}
return doubleArray;
}
}
}
|
[
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,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
14,
2,
2,
2,
13,
17,
17,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
77,
8
],
[
77,
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
],
[
36,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
49,
61
],
[
49,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
11,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
9,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
] |
[
"import java.util.ArrayList;\nimport java.util.Scanner;\npublic class Main{\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextInt();\n\t\tlong ans=0;\n\t\tfor(long i =1;i<=N;i++ ) {\n\t\t\tif(i%3==0 &&i%5==0) {\n\t\t\t\t\n\t\t\t}else if(i%3==0 ||i%5==0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tans = ans+i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t}\n\t\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"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\tlong N = sc.nextInt();\n\t\tlong ans=0;\n\t\tfor(long i =1;i<=N;i++ ) {\n\t\t\tif(i%3==0 &&i%5==0) {\n\t\t\t\t\n\t\t\t}else if(i%3==0 ||i%5==0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tans = ans+i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t}\n\t\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextInt();\n\t\tlong ans=0;\n\t\tfor(long i =1;i<=N;i++ ) {\n\t\t\tif(i%3==0 &&i%5==0) {\n\t\t\t\t\n\t\t\t}else if(i%3==0 ||i%5==0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tans = ans+i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextInt();\n\t\tlong ans=0;\n\t\tfor(long i =1;i<=N;i++ ) {\n\t\t\tif(i%3==0 &&i%5==0) {\n\t\t\t\t\n\t\t\t}else if(i%3==0 ||i%5==0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tans = ans+i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ans=0;",
"ans",
"0",
"for(long i =1;i<=N;i++ ) {\n\t\t\tif(i%3==0 &&i%5==0) {\n\t\t\t\t\n\t\t\t}else if(i%3==0 ||i%5==0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tans = ans+i;\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\t\n\t\t\t}else if(i%3==0 ||i%5==0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tans = ans+i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i%3==0 &&i%5==0) {\n\t\t\t\t\n\t\t\t}else if(i%3==0 ||i%5==0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tans = ans+i;\n\t\t\t}\n\t\t}",
"if(i%3==0 &&i%5==0) {\n\t\t\t\t\n\t\t\t}else if(i%3==0 ||i%5==0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tans = ans+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\t\n\t\t\t}",
"if(i%3==0 ||i%5==0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tans = ans+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\t\n\t\t\t}",
"{\n\t\t\t\tans = ans+i;\n\t\t\t}",
"ans = ans+i",
"ans",
"ans+i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextInt();\n\t\tlong ans=0;\n\t\tfor(long i =1;i<=N;i++ ) {\n\t\t\tif(i%3==0 &&i%5==0) {\n\t\t\t\t\n\t\t\t}else if(i%3==0 ||i%5==0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tans = ans+i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t}\n\t\n}",
"public class Main{\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextInt();\n\t\tlong ans=0;\n\t\tfor(long i =1;i<=N;i++ ) {\n\t\t\tif(i%3==0 &&i%5==0) {\n\t\t\t\t\n\t\t\t}else if(i%3==0 ||i%5==0) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tans = ans+i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t}\n\t\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);
long N = sc.nextInt();
long ans=0;
for(long i =1;i<=N;i++ ) {
if(i%3==0 &&i%5==0) {
}else if(i%3==0 ||i%5==0) {
}else {
ans = 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,
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,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
30,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
4,
18,
13,
13,
29,
4,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
6,
13,
12,
13,
23,
13,
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
],
[
298,
23
],
[
298,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
43
],
[
43,
44
],
[
43,
45
],
[
26,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
46,
51
],
[
26,
52
],
[
52,
53
],
[
53,
54
],
[
24,
55
],
[
55,
56
],
[
298,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
61,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
83,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
61,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
59,
103
],
[
103,
104
],
[
59,
105
],
[
105,
106
],
[
59,
107
],
[
107,
108
],
[
298,
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
],
[
109,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
123,
131
],
[
131,
132
],
[
109,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
136,
141
],
[
141,
142
],
[
142,
143
],
[
135,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
152,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
161,
164
],
[
148,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
135,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
109,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
180,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
180,
194
],
[
194,
195
],
[
194,
196
],
[
180,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
201,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
180,
210
],
[
210,
211
],
[
210,
212
],
[
180,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
213,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
224,
225
],
[
224,
226
],
[
219,
227
],
[
227,
228
],
[
228,
229
],
[
218,
230
],
[
230,
231
],
[
230,
232
],
[
218,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
235,
237
],
[
218,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
180,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
109,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
255,
258
],
[
248,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
246,
263
],
[
263,
264
],
[
109,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
268,
269
],
[
272,
270
],
[
282,
271
],
[
279,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
272,
276
],
[
276,
277
],
[
276,
278
],
[
279,
279
],
[
279,
280
],
[
279,
281
],
[
282,
282
],
[
282,
283
],
[
282,
284
],
[
272,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
265,
289
],
[
289,
290
],
[
109,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
0,
297
],
[
297,
298
],
[
297,
299
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n 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, FastReader s, PrintWriter out) {\n long n = s.nextLong();\n long ans = 0l;\n for (long i = 1; i <= n; i++) {\n if ((i % 3 != 0) && (i % 5 != 0)) {\n ans += i;\n }\n }\n\n out.println(ans);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n 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, FastReader s, PrintWriter out) {\n long n = s.nextLong();\n long ans = 0l;\n for (long i = 1; i <= n; i++) {\n if ((i % 3 != 0) && (i % 5 != 0)) {\n ans += i;\n }\n }\n\n out.println(ans);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n 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 FastReader in = new FastReader(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",
"FastReader in = new FastReader(inputStream);",
"in",
"new FastReader(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, FastReader s, PrintWriter out) {\n long n = s.nextLong();\n long ans = 0l;\n for (long i = 1; i <= n; i++) {\n if ((i % 3 != 0) && (i % 5 != 0)) {\n ans += i;\n }\n }\n\n out.println(ans);\n }\n\n }",
"BFizzBuzzSum",
"public void solve(int testNumber, FastReader s, PrintWriter out) {\n long n = s.nextLong();\n long ans = 0l;\n for (long i = 1; i <= n; i++) {\n if ((i % 3 != 0) && (i % 5 != 0)) {\n ans += i;\n }\n }\n\n out.println(ans);\n }",
"solve",
"{\n long n = s.nextLong();\n long ans = 0l;\n for (long i = 1; i <= n; i++) {\n if ((i % 3 != 0) && (i % 5 != 0)) {\n ans += i;\n }\n }\n\n out.println(ans);\n }",
"long n = s.nextLong();",
"n",
"s.nextLong()",
"s.nextLong",
"s",
"long ans = 0l;",
"ans",
"0l",
"for (long i = 1; i <= n; i++) {\n if ((i % 3 != 0) && (i % 5 != 0)) {\n ans += 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 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",
"int testNumber",
"testNumber",
"FastReader s",
"s",
"PrintWriter out",
"out",
"static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }",
"FastReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private FastReader.SpaceCharFilter filter;",
"filter",
"public FastReader(InputStream stream) {\n this.stream = stream;\n }",
"FastReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextLong",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"long res = 0;",
"res",
"0",
"do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"isSpaceChar",
"{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"if (filter != null) {\n return filter.isSpaceChar(c);\n }",
"filter != null",
"filter",
"null",
"{\n return filter.isSpaceChar(c);\n }",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return isWhitespace(c);",
"isWhitespace(c)",
"isWhitespace",
"c",
"int c",
"c",
"public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isWhitespace",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n 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, FastReader s, PrintWriter out) {\n long n = s.nextLong();\n long ans = 0l;\n for (long i = 1; i <= n; i++) {\n if ((i % 3 != 0) && (i % 5 != 0)) {\n ans += i;\n }\n }\n\n out.println(ans);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n 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, FastReader s, PrintWriter out) {\n long n = s.nextLong();\n long ans = 0l;\n for (long i = 1; i <= n; i++) {\n if ((i % 3 != 0) && (i % 5 != 0)) {\n ans += i;\n }\n }\n\n out.println(ans);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
FastReader in = new FastReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
BFizzBuzzSum solver = new BFizzBuzzSum();
solver.solve(1, in, out);
out.close();
}
static class BFizzBuzzSum {
public void solve(int testNumber, FastReader s, PrintWriter out) {
long n = s.nextLong();
long ans = 0l;
for (long i = 1; i <= n; i++) {
if ((i % 3 != 0) && (i % 5 != 0)) {
ans += i;
}
}
out.println(ans);
}
}
static class FastReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private FastReader.SpaceCharFilter filter;
public FastReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) {
return -1;
}
}
return buf[curChar++];
}
public long nextLong() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
long res = 0;
do {
if (c < '0' || c > '9') {
throw new InputMismatchException();
}
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public boolean isSpaceChar(int c) {
if (filter != null) {
return filter.isSpaceChar(c);
}
return isWhitespace(c);
}
public static boolean isWhitespace(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
}
|
[
7,
15,
13,
17,
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,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
23,
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,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
17,
23,
13,
12,
13,
30,
29,
4,
18,
13,
23,
13,
12,
13,
30,
29,
2,
13,
17,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
18,
13,
13,
29,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
299,
5
],
[
299,
6
],
[
6,
7
],
[
6,
8
],
[
299,
9
],
[
9,
10
],
[
9,
11
],
[
299,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
14,
19
],
[
19,
20
],
[
19,
21
],
[
14,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
35,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
14,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
12,
57
],
[
57,
58
],
[
299,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
59,
66
],
[
66,
67
],
[
299,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
68,
75
],
[
75,
76
],
[
299,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
299,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
92,
93
],
[
299,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
102,
103
],
[
299,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
112,
113
],
[
299,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
114,
122
],
[
122,
123
],
[
299,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
124,
131
],
[
131,
132
],
[
299,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
133,
140
],
[
140,
141
],
[
299,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
144,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
152,
154
],
[
144,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
160,
161
],
[
160,
162
],
[
155,
163
],
[
163,
164
],
[
164,
165
],
[
155,
166
],
[
167,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
170,
174
],
[
174,
175
],
[
174,
176
],
[
144,
177
],
[
177,
178
],
[
142,
179
],
[
179,
180
],
[
299,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
186,
188
],
[
183,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
191,
193
],
[
183,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
199,
200
],
[
199,
201
],
[
194,
202
],
[
202,
203
],
[
203,
204
],
[
194,
205
],
[
206,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
210,
211
],
[
209,
212
],
[
209,
213
],
[
213,
214
],
[
213,
215
],
[
183,
216
],
[
216,
217
],
[
181,
218
],
[
218,
219
],
[
299,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
225,
227
],
[
222,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
230,
232
],
[
222,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
233,
238
],
[
238,
239
],
[
238,
240
],
[
233,
241
],
[
241,
242
],
[
242,
243
],
[
233,
244
],
[
245,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
248,
251
],
[
248,
252
],
[
252,
253
],
[
252,
254
],
[
222,
255
],
[
255,
256
],
[
220,
257
],
[
257,
258
],
[
299,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
264,
266
],
[
261,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
269,
271
],
[
261,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
272,
277
],
[
277,
278
],
[
277,
279
],
[
272,
280
],
[
280,
281
],
[
281,
282
],
[
272,
283
],
[
284,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
288,
289
],
[
287,
290
],
[
287,
291
],
[
291,
292
],
[
291,
293
],
[
261,
294
],
[
294,
295
],
[
259,
296
],
[
296,
297
],
[
0,
298
],
[
298,
299
],
[
298,
300
]
] |
[
"import java.util.*;\n\n//update 2020/1/1 23:01\n\npublic class Main{\n\n static Scanner sc = new Scanner(System.in);\n static StringBuilder sb = new StringBuilder();\n\n public static void main(String[] args) {\n\n int n = nextInt();\n\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 /*\n static String toSmall(String s){\n char c = s.charAt(0);\n //if(Character.isUpperCase(c)){\n if(c<=90){\n c += 32;\n }\n return String.valueOf(c);\n }\n static String toBig(String s){\n char c = s.charAt(0);\n //if(Character.isLowerCase(c)){\n if(c>=97){\n c -= 32;\n }\n return String.valueOf(c);\n }\n */\n\n static String toSmall(String s){\n return s.toLowerCase();\n }\n\n static String toBig(String s){\n return s.toUpperCase();\n }\n\n static String next(){\n return sc.next();\n }\n\n static int nextInt(){\n return Integer.parseInt(sc.next());\n }\n\n static long nextLong(){\n return Long.parseLong(sc.next());\n }\n\n static double nextDouble(){\n return Double.parseDouble(sc.next());\n }\n\n static String[] splitString(String s){\n return s.split(\"\");\n }\n\n static char[] splitChar(String s){\n return s.toCharArray();\n }\n\n static int charToInt(char a){\n return a - 48;\n }\n\n////////////////////////////////////////////\n public static int max(int[] a){\n int lng = a.length;\n int max = a[0];\n for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }\n return max;\n }\n public static long max(long[] a){\n int lng = a.length;\n long max = a[0];\n for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }\n return max;\n }\n////////////////////////////////////////////\n\n////////////////////////////////////////////\n public static int min(int[] a){\n int lng = a.length;\n int min = a[0];\n for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }\n return min;\n }\n public static long min(long[] a){\n int lng = a.length;\n long min = a[0];\n for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }\n return min;\n }\n////////////////////////////////////////////\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\n static Scanner sc = new Scanner(System.in);\n static StringBuilder sb = new StringBuilder();\n\n public static void main(String[] args) {\n\n int n = nextInt();\n\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 /*\n static String toSmall(String s){\n char c = s.charAt(0);\n //if(Character.isUpperCase(c)){\n if(c<=90){\n c += 32;\n }\n return String.valueOf(c);\n }\n static String toBig(String s){\n char c = s.charAt(0);\n //if(Character.isLowerCase(c)){\n if(c>=97){\n c -= 32;\n }\n return String.valueOf(c);\n }\n */\n\n static String toSmall(String s){\n return s.toLowerCase();\n }\n\n static String toBig(String s){\n return s.toUpperCase();\n }\n\n static String next(){\n return sc.next();\n }\n\n static int nextInt(){\n return Integer.parseInt(sc.next());\n }\n\n static long nextLong(){\n return Long.parseLong(sc.next());\n }\n\n static double nextDouble(){\n return Double.parseDouble(sc.next());\n }\n\n static String[] splitString(String s){\n return s.split(\"\");\n }\n\n static char[] splitChar(String s){\n return s.toCharArray();\n }\n\n static int charToInt(char a){\n return a - 48;\n }\n\n////////////////////////////////////////////\n public static int max(int[] a){\n int lng = a.length;\n int max = a[0];\n for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }\n return max;\n }\n public static long max(long[] a){\n int lng = a.length;\n long max = a[0];\n for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }\n return max;\n }\n////////////////////////////////////////////\n\n////////////////////////////////////////////\n public static int min(int[] a){\n int lng = a.length;\n int min = a[0];\n for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }\n return min;\n }\n public static long min(long[] a){\n int lng = a.length;\n long min = a[0];\n for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }\n return min;\n }\n////////////////////////////////////////////\n\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"static StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"public static void main(String[] args) {\n\n int n = nextInt();\n\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 }",
"main",
"{\n\n int n = nextInt();\n\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 }",
"int n = nextInt();",
"n",
"nextInt()",
"nextInt",
"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",
"static String toSmall(String s){\n return s.toLowerCase();\n }",
"toSmall",
"{\n return s.toLowerCase();\n }",
"return s.toLowerCase();",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"String s",
"s",
"static String toBig(String s){\n return s.toUpperCase();\n }",
"toBig",
"{\n return s.toUpperCase();\n }",
"return s.toUpperCase();",
"s.toUpperCase()",
"s.toUpperCase",
"s",
"String s",
"s",
"static String next(){\n return sc.next();\n }",
"next",
"{\n return sc.next();\n }",
"return sc.next();",
"sc.next()",
"sc.next",
"sc",
"static int nextInt(){\n return Integer.parseInt(sc.next());\n }",
"nextInt",
"{\n return Integer.parseInt(sc.next());\n }",
"return Integer.parseInt(sc.next());",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"static long nextLong(){\n return Long.parseLong(sc.next());\n }",
"nextLong",
"{\n return Long.parseLong(sc.next());\n }",
"return Long.parseLong(sc.next());",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"static double nextDouble(){\n return Double.parseDouble(sc.next());\n }",
"nextDouble",
"{\n return Double.parseDouble(sc.next());\n }",
"return Double.parseDouble(sc.next());",
"Double.parseDouble(sc.next())",
"Double.parseDouble",
"Double",
"sc.next()",
"sc.next",
"sc",
"static String[] splitString(String s){\n return s.split(\"\");\n }",
"splitString",
"{\n return s.split(\"\");\n }",
"return s.split(\"\");",
"s.split(\"\")",
"s.split",
"s",
"\"\"",
"String s",
"s",
"static char[] splitChar(String s){\n return s.toCharArray();\n }",
"splitChar",
"{\n return s.toCharArray();\n }",
"return s.toCharArray();",
"s.toCharArray()",
"s.toCharArray",
"s",
"String s",
"s",
"static int charToInt(char a){\n return a - 48;\n }",
"charToInt",
"{\n return a - 48;\n }",
"return a - 48;",
"a - 48",
"a",
"48",
"char a",
"a",
"////////////////////////////////////////////\n public static int max(int[] a){\n int lng = a.length;\n int max = a[0];\n for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }\n return max;\n }",
"max",
"{\n int lng = a.length;\n int max = a[0];\n for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }\n return max;\n }",
"int lng = a.length;",
"lng",
"a.length",
"a",
"a.length",
"int max = a[0];",
"max",
"a[0]",
"a",
"0",
"for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<lng",
"i",
"lng",
"i++",
"i++",
"i",
"{\n max = Math.max(max,a[i]);\n }",
"{\n max = Math.max(max,a[i]);\n }",
"max = Math.max(max,a[i])",
"max",
"Math.max(max,a[i])",
"Math.max",
"Math",
"max",
"a[i]",
"a",
"i",
"return max;",
"max",
"int[] a",
"a",
"public static long max(long[] a){\n int lng = a.length;\n long max = a[0];\n for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }\n return max;\n }",
"max",
"{\n int lng = a.length;\n long max = a[0];\n for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }\n return max;\n }",
"int lng = a.length;",
"lng",
"a.length",
"a",
"a.length",
"long max = a[0];",
"max",
"a[0]",
"a",
"0",
"for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<lng",
"i",
"lng",
"i++",
"i++",
"i",
"{\n max = Math.max(max,a[i]);\n }",
"{\n max = Math.max(max,a[i]);\n }",
"max = Math.max(max,a[i])",
"max",
"Math.max(max,a[i])",
"Math.max",
"Math",
"max",
"a[i]",
"a",
"i",
"return max;",
"max",
"long[] a",
"a",
"////////////////////////////////////////////\n public static int min(int[] a){\n int lng = a.length;\n int min = a[0];\n for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }\n return min;\n }",
"min",
"{\n int lng = a.length;\n int min = a[0];\n for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }\n return min;\n }",
"int lng = a.length;",
"lng",
"a.length",
"a",
"a.length",
"int min = a[0];",
"min",
"a[0]",
"a",
"0",
"for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<lng",
"i",
"lng",
"i++",
"i++",
"i",
"{\n min = Math.min(min,a[i]);\n }",
"{\n min = Math.min(min,a[i]);\n }",
"min = Math.min(min,a[i])",
"min",
"Math.min(min,a[i])",
"Math.min",
"Math",
"min",
"a[i]",
"a",
"i",
"return min;",
"min",
"int[] a",
"a",
"public static long min(long[] a){\n int lng = a.length;\n long min = a[0];\n for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }\n return min;\n }",
"min",
"{\n int lng = a.length;\n long min = a[0];\n for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }\n return min;\n }",
"int lng = a.length;",
"lng",
"a.length",
"a",
"a.length",
"long min = a[0];",
"min",
"a[0]",
"a",
"0",
"for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<lng",
"i",
"lng",
"i++",
"i++",
"i",
"{\n min = Math.min(min,a[i]);\n }",
"{\n min = Math.min(min,a[i]);\n }",
"min = Math.min(min,a[i])",
"min",
"Math.min(min,a[i])",
"Math.min",
"Math",
"min",
"a[i]",
"a",
"i",
"return min;",
"min",
"long[] a",
"a",
"public class Main{\n\n static Scanner sc = new Scanner(System.in);\n static StringBuilder sb = new StringBuilder();\n\n public static void main(String[] args) {\n\n int n = nextInt();\n\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 /*\n static String toSmall(String s){\n char c = s.charAt(0);\n //if(Character.isUpperCase(c)){\n if(c<=90){\n c += 32;\n }\n return String.valueOf(c);\n }\n static String toBig(String s){\n char c = s.charAt(0);\n //if(Character.isLowerCase(c)){\n if(c>=97){\n c -= 32;\n }\n return String.valueOf(c);\n }\n */\n\n static String toSmall(String s){\n return s.toLowerCase();\n }\n\n static String toBig(String s){\n return s.toUpperCase();\n }\n\n static String next(){\n return sc.next();\n }\n\n static int nextInt(){\n return Integer.parseInt(sc.next());\n }\n\n static long nextLong(){\n return Long.parseLong(sc.next());\n }\n\n static double nextDouble(){\n return Double.parseDouble(sc.next());\n }\n\n static String[] splitString(String s){\n return s.split(\"\");\n }\n\n static char[] splitChar(String s){\n return s.toCharArray();\n }\n\n static int charToInt(char a){\n return a - 48;\n }\n\n////////////////////////////////////////////\n public static int max(int[] a){\n int lng = a.length;\n int max = a[0];\n for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }\n return max;\n }\n public static long max(long[] a){\n int lng = a.length;\n long max = a[0];\n for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }\n return max;\n }\n////////////////////////////////////////////\n\n////////////////////////////////////////////\n public static int min(int[] a){\n int lng = a.length;\n int min = a[0];\n for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }\n return min;\n }\n public static long min(long[] a){\n int lng = a.length;\n long min = a[0];\n for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }\n return min;\n }\n////////////////////////////////////////////\n\n}",
"public class Main{\n\n static Scanner sc = new Scanner(System.in);\n static StringBuilder sb = new StringBuilder();\n\n public static void main(String[] args) {\n\n int n = nextInt();\n\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 /*\n static String toSmall(String s){\n char c = s.charAt(0);\n //if(Character.isUpperCase(c)){\n if(c<=90){\n c += 32;\n }\n return String.valueOf(c);\n }\n static String toBig(String s){\n char c = s.charAt(0);\n //if(Character.isLowerCase(c)){\n if(c>=97){\n c -= 32;\n }\n return String.valueOf(c);\n }\n */\n\n static String toSmall(String s){\n return s.toLowerCase();\n }\n\n static String toBig(String s){\n return s.toUpperCase();\n }\n\n static String next(){\n return sc.next();\n }\n\n static int nextInt(){\n return Integer.parseInt(sc.next());\n }\n\n static long nextLong(){\n return Long.parseLong(sc.next());\n }\n\n static double nextDouble(){\n return Double.parseDouble(sc.next());\n }\n\n static String[] splitString(String s){\n return s.split(\"\");\n }\n\n static char[] splitChar(String s){\n return s.toCharArray();\n }\n\n static int charToInt(char a){\n return a - 48;\n }\n\n////////////////////////////////////////////\n public static int max(int[] a){\n int lng = a.length;\n int max = a[0];\n for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }\n return max;\n }\n public static long max(long[] a){\n int lng = a.length;\n long max = a[0];\n for(int i=1;i<lng;i++){\n max = Math.max(max,a[i]);\n }\n return max;\n }\n////////////////////////////////////////////\n\n////////////////////////////////////////////\n public static int min(int[] a){\n int lng = a.length;\n int min = a[0];\n for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }\n return min;\n }\n public static long min(long[] a){\n int lng = a.length;\n long min = a[0];\n for(int i=1;i<lng;i++){\n min = Math.min(min,a[i]);\n }\n return min;\n }\n////////////////////////////////////////////\n\n}",
"Main"
] |
import java.util.*;
//update 2020/1/1 23:01
public class Main{
static Scanner sc = new Scanner(System.in);
static StringBuilder sb = new StringBuilder();
public static void main(String[] args) {
int n = 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 String toSmall(String s){
char c = s.charAt(0);
//if(Character.isUpperCase(c)){
if(c<=90){
c += 32;
}
return String.valueOf(c);
}
static String toBig(String s){
char c = s.charAt(0);
//if(Character.isLowerCase(c)){
if(c>=97){
c -= 32;
}
return String.valueOf(c);
}
*/
static String toSmall(String s){
return s.toLowerCase();
}
static String toBig(String s){
return s.toUpperCase();
}
static String next(){
return sc.next();
}
static int nextInt(){
return Integer.parseInt(sc.next());
}
static long nextLong(){
return Long.parseLong(sc.next());
}
static double nextDouble(){
return Double.parseDouble(sc.next());
}
static String[] splitString(String s){
return s.split("");
}
static char[] splitChar(String s){
return s.toCharArray();
}
static int charToInt(char a){
return a - 48;
}
////////////////////////////////////////////
public static int max(int[] a){
int lng = a.length;
int max = a[0];
for(int i=1;i<lng;i++){
max = Math.max(max,a[i]);
}
return max;
}
public static long max(long[] a){
int lng = a.length;
long max = a[0];
for(int i=1;i<lng;i++){
max = Math.max(max,a[i]);
}
return max;
}
////////////////////////////////////////////
////////////////////////////////////////////
public static int min(int[] a){
int lng = a.length;
int min = a[0];
for(int i=1;i<lng;i++){
min = Math.min(min,a[i]);
}
return min;
}
public static long min(long[] a){
int lng = a.length;
long min = a[0];
for(int i=1;i<lng;i++){
min = Math.min(min,a[i]);
}
return min;
}
////////////////////////////////////////////
}
|
[
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,
17,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
33,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tlong N = stdIn.nextLong();\n\t\tlong ans = 0;\n\t\tfor(long a = 1; a <= N; a++){\n\t\t\tif(a % 3 == 0 || a % 5 == 0){\n\t\t\t\tans = ans + 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tans = ans + a;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tstdIn.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tlong N = stdIn.nextLong();\n\t\tlong ans = 0;\n\t\tfor(long a = 1; a <= N; a++){\n\t\t\tif(a % 3 == 0 || a % 5 == 0){\n\t\t\t\tans = ans + 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tans = ans + a;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tstdIn.close();\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tlong N = stdIn.nextLong();\n\t\tlong ans = 0;\n\t\tfor(long a = 1; a <= N; a++){\n\t\t\tif(a % 3 == 0 || a % 5 == 0){\n\t\t\t\tans = ans + 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tans = ans + a;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tstdIn.close();\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tlong N = stdIn.nextLong();\n\t\tlong ans = 0;\n\t\tfor(long a = 1; a <= N; a++){\n\t\t\tif(a % 3 == 0 || a % 5 == 0){\n\t\t\t\tans = ans + 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tans = ans + a;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tstdIn.close();\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"long N = stdIn.nextLong();",
"N",
"stdIn.nextLong()",
"stdIn.nextLong",
"stdIn",
"long ans = 0;",
"ans",
"0",
"for(long a = 1; a <= N; a++){\n\t\t\tif(a % 3 == 0 || a % 5 == 0){\n\t\t\t\tans = ans + 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tans = ans + a;\n\t\t\t}\n\t\t}",
"long a = 1;",
"long a = 1;",
"a",
"1",
"a <= N",
"a",
"N",
"a++",
"a++",
"a",
"{\n\t\t\tif(a % 3 == 0 || a % 5 == 0){\n\t\t\t\tans = ans + 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tans = ans + a;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(a % 3 == 0 || a % 5 == 0){\n\t\t\t\tans = ans + 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tans = ans + a;\n\t\t\t}\n\t\t}",
"if(a % 3 == 0 || a % 5 == 0){\n\t\t\t\tans = ans + 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tans = ans + a;\n\t\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\t\tans = ans + 0;\n\t\t\t}",
"ans = ans + 0",
"ans",
"ans + 0",
"ans",
"0",
"{\n\t\t\t\tans = ans + a;\n\t\t\t}",
"ans = ans + a",
"ans",
"ans + a",
"ans",
"a",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"stdIn.close()",
"stdIn.close",
"stdIn",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tlong N = stdIn.nextLong();\n\t\tlong ans = 0;\n\t\tfor(long a = 1; a <= N; a++){\n\t\t\tif(a % 3 == 0 || a % 5 == 0){\n\t\t\t\tans = ans + 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tans = ans + a;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tstdIn.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tlong N = stdIn.nextLong();\n\t\tlong ans = 0;\n\t\tfor(long a = 1; a <= N; a++){\n\t\t\tif(a % 3 == 0 || a % 5 == 0){\n\t\t\t\tans = ans + 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tans = ans + a;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tstdIn.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
long N = stdIn.nextLong();
long ans = 0;
for(long a = 1; a <= N; a++){
if(a % 3 == 0 || a % 5 == 0){
ans = ans + 0;
}
else{
ans = ans + a;
}
}
System.out.println(ans);
stdIn.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
2,
17,
17,
41,
13,
17,
41,
13,
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,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
9,
0,
13,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
0,
13,
17,
0,
13,
4,
18,
4,
18,
13,
17,
0,
13,
18,
13,
13,
12,
13,
30,
0,
13,
17,
0,
13,
4,
18,
4,
18,
13,
17,
0,
13,
18,
13,
13,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
4,
18,
13,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
4,
18,
13,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
4,
18,
13,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
40,
13,
29,
13,
23,
13,
12,
13,
30,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
20,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
2,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
0,
13,
2,
2,
13,
13,
13,
0,
13,
2,
2,
13,
13,
13,
0,
13,
17,
29,
2,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
14,
2,
13,
17,
29,
13,
41,
13,
17,
41,
13,
41,
13,
0,
13,
8,
2,
13,
13,
13,
13,
0,
13,
8,
2,
13,
13,
13,
13,
0,
13,
13,
42,
2,
2,
13,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
40,
17,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
2,
13,
2,
13,
17,
41,
13,
2,
13,
2,
13,
17,
29,
2,
2,
17,
13,
13,
12,
13,
30,
41,
13,
13,
29,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
18,
13,
13,
29,
4,
18,
13,
13,
18,
13,
13,
29,
8,
2,
4,
18,
13,
13,
18,
13,
13,
17,
4,
18,
13,
13,
18,
13,
13,
4,
18,
13,
13,
18,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
17,
13,
17,
13,
17,
13,
6,
13,
41,
13,
41,
13,
41,
13,
40,
17,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
2,
13,
2,
13,
17,
41,
13,
2,
13,
2,
13,
17,
29,
2,
2,
17,
13,
13,
12,
13,
30,
41,
13,
13,
29,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
18,
13,
13,
29,
4,
18,
13,
13,
18,
13,
13,
29,
8,
2,
4,
18,
13,
13,
18,
13,
13,
17,
4,
18,
13,
13,
18,
13,
13,
4,
18,
13,
13,
18,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
17,
13,
17,
13,
17,
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
],
[
672,
17
],
[
672,
18
],
[
18,
19
],
[
18,
20
],
[
672,
21
],
[
21,
22
],
[
21,
23
],
[
672,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
672,
29
],
[
29,
30
],
[
29,
31
],
[
672,
32
],
[
32,
33
],
[
672,
34
],
[
34,
35
],
[
34,
36
],
[
672,
37
],
[
37,
38
],
[
37,
39
],
[
672,
40
],
[
40,
41
],
[
672,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
65,
77
],
[
64,
78
],
[
78,
79
],
[
78,
80
],
[
44,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
44,
85
],
[
85,
86
],
[
86,
87
],
[
44,
88
],
[
88,
89
],
[
89,
90
],
[
42,
91
],
[
91,
92
],
[
672,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
101,
106
],
[
95,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
672,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
120,
125
],
[
114,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
672,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
133,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
672,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
150,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
672,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
167,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
175,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
672,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
184,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
672,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
202,
203
],
[
203,
204
],
[
202,
205
],
[
205,
206
],
[
206,
207
],
[
205,
208
],
[
196,
209
],
[
209,
210
],
[
672,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
219,
220
],
[
220,
221
],
[
219,
222
],
[
211,
223
],
[
223,
224
],
[
672,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
238,
240
],
[
235,
241
],
[
241,
242
],
[
227,
243
],
[
243,
244
],
[
225,
245
],
[
245,
246
],
[
672,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
254,
259
],
[
259,
260
],
[
259,
261
],
[
254,
262
],
[
262,
263
],
[
263,
264
],
[
254,
265
],
[
266,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
267,
271
],
[
247,
272
],
[
272,
273
],
[
672,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
277,
282
],
[
274,
283
],
[
283,
284
],
[
274,
285
],
[
285,
286
],
[
672,
287
],
[
287,
288
],
[
287,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
290,
295
],
[
295,
296
],
[
296,
297
],
[
295,
298
],
[
287,
299
],
[
299,
300
],
[
672,
301
],
[
301,
302
],
[
301,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
303,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
309,
311
],
[
303,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
312,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
318,
322
],
[
317,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
316,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
332,
336
],
[
316,
337
],
[
337,
338
],
[
337,
339
],
[
303,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
301,
344
],
[
344,
345
],
[
301,
346
],
[
346,
347
],
[
301,
348
],
[
348,
349
],
[
672,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
353,
354
],
[
354,
355
],
[
354,
356
],
[
353,
357
],
[
357,
358
],
[
352,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
359,
363
],
[
363,
364
],
[
352,
365
],
[
365,
366
],
[
365,
367
],
[
352,
368
],
[
368,
369
],
[
352,
370
],
[
370,
371
],
[
352,
372
],
[
372,
373
],
[
372,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
374,
378
],
[
374,
379
],
[
352,
380
],
[
380,
381
],
[
380,
382
],
[
382,
383
],
[
383,
384
],
[
383,
385
],
[
382,
386
],
[
382,
387
],
[
352,
388
],
[
388,
389
],
[
388,
390
],
[
352,
391
],
[
391,
392
],
[
392,
393
],
[
393,
394
],
[
393,
395
],
[
392,
396
],
[
391,
397
],
[
397,
398
],
[
398,
399
],
[
398,
400
],
[
400,
401
],
[
400,
402
],
[
397,
403
],
[
403,
404
],
[
403,
405
],
[
397,
406
],
[
406,
407
],
[
406,
408
],
[
352,
409
],
[
409,
410
],
[
350,
411
],
[
411,
412
],
[
350,
413
],
[
413,
414
],
[
672,
415
],
[
415,
416
],
[
415,
417
],
[
417,
418
],
[
415,
419
],
[
419,
420
],
[
415,
421
],
[
421,
422
],
[
421,
423
],
[
423,
424
],
[
415,
425
],
[
425,
426
],
[
425,
427
],
[
427,
428
],
[
428,
429
],
[
429,
430
],
[
429,
431
],
[
428,
432
],
[
427,
433
],
[
433,
434
],
[
434,
435
],
[
434,
436
],
[
433,
437
],
[
425,
438
],
[
438,
439
],
[
425,
440
],
[
440,
441
],
[
415,
442
],
[
442,
443
],
[
442,
444
],
[
444,
445
],
[
445,
446
],
[
445,
447
],
[
447,
448
],
[
447,
449
],
[
449,
450
],
[
449,
451
],
[
444,
452
],
[
452,
453
],
[
452,
454
],
[
454,
455
],
[
454,
456
],
[
456,
457
],
[
456,
458
],
[
444,
459
],
[
459,
460
],
[
460,
461
],
[
461,
462
],
[
461,
463
],
[
460,
464
],
[
415,
465
],
[
465,
466
],
[
465,
467
],
[
467,
468
],
[
468,
469
],
[
468,
470
],
[
467,
471
],
[
471,
472
],
[
472,
473
],
[
473,
474
],
[
473,
475
],
[
475,
476
],
[
475,
477
],
[
472,
478
],
[
478,
479
],
[
478,
480
],
[
480,
481
],
[
480,
482
],
[
465,
483
],
[
483,
484
],
[
415,
485
],
[
485,
486
],
[
485,
487
],
[
487,
488
],
[
488,
489
],
[
489,
490
],
[
489,
491
],
[
491,
492
],
[
491,
493
],
[
488,
494
],
[
494,
495
],
[
495,
496
],
[
496,
497
],
[
495,
498
],
[
495,
499
],
[
499,
500
],
[
499,
501
],
[
487,
502
],
[
502,
503
],
[
503,
504
],
[
504,
505
],
[
505,
506
],
[
506,
507
],
[
505,
508
],
[
505,
509
],
[
509,
510
],
[
509,
511
],
[
504,
512
],
[
503,
513
],
[
513,
514
],
[
514,
515
],
[
513,
516
],
[
513,
517
],
[
517,
518
],
[
517,
519
],
[
503,
520
],
[
520,
521
],
[
521,
522
],
[
520,
523
],
[
520,
524
],
[
524,
525
],
[
524,
526
],
[
485,
527
],
[
527,
528
],
[
415,
529
],
[
529,
530
],
[
529,
531
],
[
531,
532
],
[
532,
533
],
[
536,
534
],
[
534,
535
],
[
535,
536
],
[
536,
537
],
[
536,
538
],
[
535,
539
],
[
534,
540
],
[
536,
541
],
[
415,
542
],
[
672,
543
],
[
543,
544
],
[
543,
545
],
[
545,
546
],
[
543,
547
],
[
547,
548
],
[
543,
549
],
[
549,
550
],
[
549,
551
],
[
551,
552
],
[
543,
553
],
[
553,
554
],
[
553,
555
],
[
555,
556
],
[
556,
557
],
[
557,
558
],
[
557,
559
],
[
556,
560
],
[
555,
561
],
[
561,
562
],
[
562,
563
],
[
562,
564
],
[
561,
565
],
[
553,
566
],
[
566,
567
],
[
553,
568
],
[
568,
569
],
[
543,
570
],
[
570,
571
],
[
570,
572
],
[
572,
573
],
[
573,
574
],
[
573,
575
],
[
575,
576
],
[
575,
577
],
[
577,
578
],
[
577,
579
],
[
572,
580
],
[
580,
581
],
[
580,
582
],
[
582,
583
],
[
582,
584
],
[
584,
585
],
[
584,
586
],
[
572,
587
],
[
587,
588
],
[
588,
589
],
[
589,
590
],
[
589,
591
],
[
588,
592
],
[
543,
593
],
[
593,
594
],
[
593,
595
],
[
595,
596
],
[
596,
597
],
[
596,
598
],
[
595,
599
],
[
599,
600
],
[
600,
601
],
[
601,
602
],
[
601,
603
],
[
603,
604
],
[
603,
605
],
[
600,
606
],
[
606,
607
],
[
606,
608
],
[
608,
609
],
[
608,
610
],
[
593,
611
],
[
611,
612
],
[
543,
613
],
[
613,
614
],
[
613,
615
],
[
615,
616
],
[
616,
617
],
[
617,
618
],
[
617,
619
],
[
619,
620
],
[
619,
621
],
[
616,
622
],
[
622,
623
],
[
623,
624
],
[
624,
625
],
[
623,
626
],
[
623,
627
],
[
627,
628
],
[
627,
629
],
[
615,
630
],
[
630,
631
],
[
631,
632
],
[
632,
633
],
[
633,
634
],
[
634,
635
],
[
633,
636
],
[
633,
637
],
[
637,
638
],
[
637,
639
],
[
632,
640
],
[
631,
641
],
[
641,
642
],
[
642,
643
],
[
641,
644
],
[
641,
645
],
[
645,
646
],
[
645,
647
],
[
631,
648
],
[
648,
649
],
[
649,
650
],
[
648,
651
],
[
648,
652
],
[
652,
653
],
[
652,
654
],
[
613,
655
],
[
655,
656
],
[
543,
657
],
[
657,
658
],
[
657,
659
],
[
659,
660
],
[
660,
661
],
[
664,
662
],
[
662,
663
],
[
663,
664
],
[
664,
665
],
[
664,
666
],
[
663,
667
],
[
662,
668
],
[
664,
669
],
[
543,
670
],
[
0,
671
],
[
671,
672
],
[
671,
673
]
] |
[
"/*****Author: Satyajeet Singh, Delhi Technological University************************************/\n import java.io.*;\n import java.util.*;\n import java.text.*; \n import java.lang.*;\n import java.math.*;\npublic class Main{\n/*********************************************Constants******************************************/\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out)); \n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static long mod=(long)1e9+7;\n static long mod1=998244353;\n static HashSet<Integer> graph[];\n static int pptr=0,pptrmax=0;\n static String st[];\n/*****************************************Solutions Begins***************************************/\n public static void main(String args[]) throws Exception{\n int n=pi();\n long ans=0;\n for(int i=1;i<=n;i++){\n if(i%5==0||i%3==0)continue;\n ans+=i;\n }\n out.println(ans);\n/****************************************Solutions Ends**************************************************/\n out.flush();\n out.close();\n }\n/****************************************Template Begins************************************************/\n static void nl() throws Exception{\n pptr=0;\n st=br.readLine().split(\" \");\n pptrmax=st.length;\n }\n static void nls() throws Exception{\n pptr=0;\n st=br.readLine().split(\"\");\n pptrmax=st.length;\n }\n static int pi() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Integer.parseInt(st[pptr++]);\n }\n static long pl() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Long.parseLong(st[pptr++]);\n }\n static double pd() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Double.parseDouble(st[pptr++]);\n }\n static String ps() throws Exception{\n if(pptr==pptrmax)\n nl();\n return st[pptr++];\n }\n/***************************************Precision Printing**********************************************/\n static void printPrecision(double d){\n DecimalFormat ft = new DecimalFormat(\"0.000000000000\"); \n out.print(ft.format(d));\n }\n/**************************************Bit Manipulation**************************************************/\n static void printMask(long mask){\n System.out.println(Long.toBinaryString(mask));\n }\n static int countBit(long mask){\n int ans=0;\n while(mask!=0){\n mask&=(mask-1);\n ans++;\n }\n return ans;\n }\n/******************************************Graph*********************************************************/\n static void Makegraph(int n){\n graph=new HashSet[n];\n for(int i=0;i<n;i++){\n graph[i]=new HashSet<>();\n }\n }\n static void addEdge(int a,int b){\n graph[a].add(b);\n }\n // static void addEdge(int a,int b,int c){\n // graph[a].add(new Pair(b,c));\n // } \n/*********************************************PAIR********************************************************/\n static class Pair implements Comparable<Pair> {\n int u;\n int v;\n int index=-1;\n public Pair(int u, int v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }\n public int compareTo(Pair other) {\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/******************************************Long Pair*******************************************************/\n static class Pairl implements Comparable<Pairl> {\n long u;\n long v;\n int index=-1;\n public Pairl(long u, long v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }\n public int compareTo(Pairl other) {\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/*****************************************DEBUG***********************************************************/\n public static void debug(Object... o){\n System.out.println(Arrays.deepToString(o));\n }\n/************************************MODULAR EXPONENTIATION***********************************************/\n static long modulo(long a,long b,long c){\n long x=1;\n long y=a%c;\n while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b /= 2;\n }\n return x%c;\n }\n/********************************************GCD**********************************************************/\n static long gcd(long x, long y){\n if(x==0)\n return y;\n if(y==0)\n return x;\n long r=0, a, b;\n a = (x > y) ? x : y; \n b = (x < y) ? x : y;\n r = b;\n while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }\n return r;\n }\n/********************************************End***********************************************************/\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.text.*;",
"text.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main{\n/*********************************************Constants******************************************/\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out)); \n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static long mod=(long)1e9+7;\n static long mod1=998244353;\n static HashSet<Integer> graph[];\n static int pptr=0,pptrmax=0;\n static String st[];\n/*****************************************Solutions Begins***************************************/\n public static void main(String args[]) throws Exception{\n int n=pi();\n long ans=0;\n for(int i=1;i<=n;i++){\n if(i%5==0||i%3==0)continue;\n ans+=i;\n }\n out.println(ans);\n/****************************************Solutions Ends**************************************************/\n out.flush();\n out.close();\n }\n/****************************************Template Begins************************************************/\n static void nl() throws Exception{\n pptr=0;\n st=br.readLine().split(\" \");\n pptrmax=st.length;\n }\n static void nls() throws Exception{\n pptr=0;\n st=br.readLine().split(\"\");\n pptrmax=st.length;\n }\n static int pi() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Integer.parseInt(st[pptr++]);\n }\n static long pl() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Long.parseLong(st[pptr++]);\n }\n static double pd() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Double.parseDouble(st[pptr++]);\n }\n static String ps() throws Exception{\n if(pptr==pptrmax)\n nl();\n return st[pptr++];\n }\n/***************************************Precision Printing**********************************************/\n static void printPrecision(double d){\n DecimalFormat ft = new DecimalFormat(\"0.000000000000\"); \n out.print(ft.format(d));\n }\n/**************************************Bit Manipulation**************************************************/\n static void printMask(long mask){\n System.out.println(Long.toBinaryString(mask));\n }\n static int countBit(long mask){\n int ans=0;\n while(mask!=0){\n mask&=(mask-1);\n ans++;\n }\n return ans;\n }\n/******************************************Graph*********************************************************/\n static void Makegraph(int n){\n graph=new HashSet[n];\n for(int i=0;i<n;i++){\n graph[i]=new HashSet<>();\n }\n }\n static void addEdge(int a,int b){\n graph[a].add(b);\n }\n // static void addEdge(int a,int b,int c){\n // graph[a].add(new Pair(b,c));\n // } \n/*********************************************PAIR********************************************************/\n static class Pair implements Comparable<Pair> {\n int u;\n int v;\n int index=-1;\n public Pair(int u, int v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }\n public int compareTo(Pair other) {\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/******************************************Long Pair*******************************************************/\n static class Pairl implements Comparable<Pairl> {\n long u;\n long v;\n int index=-1;\n public Pairl(long u, long v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }\n public int compareTo(Pairl other) {\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/*****************************************DEBUG***********************************************************/\n public static void debug(Object... o){\n System.out.println(Arrays.deepToString(o));\n }\n/************************************MODULAR EXPONENTIATION***********************************************/\n static long modulo(long a,long b,long c){\n long x=1;\n long y=a%c;\n while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b /= 2;\n }\n return x%c;\n }\n/********************************************GCD**********************************************************/\n static long gcd(long x, long y){\n if(x==0)\n return y;\n if(y==0)\n return x;\n long r=0, a, b;\n a = (x > y) ? x : y; \n b = (x < y) ? x : y;\n r = b;\n while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }\n return r;\n }\n/********************************************End***********************************************************/\n}",
"Main",
"/*********************************************Constants******************************************/\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));",
"out",
"new PrintWriter(new OutputStreamWriter(System.out))",
"static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"static long mod=(long)1e9+7;",
"mod",
"(long)1e9+7",
"(long)1e9",
"7",
"static long mod1=998244353;",
"mod1",
"998244353",
"static HashSet<Integer> graph[];",
"graph",
"static int pptr=0",
"pptr",
"0",
"pptrmax=0;",
"pptrmax",
"0",
"static String st[];",
"st",
"/*****************************************Solutions Begins***************************************/\n public static void main(String args[]) throws Exception{\n int n=pi();\n long ans=0;\n for(int i=1;i<=n;i++){\n if(i%5==0||i%3==0)continue;\n ans+=i;\n }\n out.println(ans);\n/****************************************Solutions Ends**************************************************/\n out.flush();\n out.close();\n }",
"main",
"{\n int n=pi();\n long ans=0;\n for(int i=1;i<=n;i++){\n if(i%5==0||i%3==0)continue;\n ans+=i;\n }\n out.println(ans);\n/****************************************Solutions Ends**************************************************/\n out.flush();\n out.close();\n }",
"int n=pi();",
"n",
"pi()",
"pi",
"long ans=0;",
"ans",
"0",
"for(int i=1;i<=n;i++){\n if(i%5==0||i%3==0)continue;\n ans+=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)continue;\n ans+=i;\n }",
"{\n if(i%5==0||i%3==0)continue;\n ans+=i;\n }",
"if(i%5==0||i%3==0)continue;",
"i%5==0||i%3==0",
"i%5==0",
"i%5",
"i",
"5",
"0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"continue;",
"ans+=i",
"ans",
"i",
"out.println(ans)",
"out.println",
"out",
"ans",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"String args[]",
"args",
"/****************************************Template Begins************************************************/\n static void nl() throws Exception{\n pptr=0;\n st=br.readLine().split(\" \");\n pptrmax=st.length;\n }",
"nl",
"{\n pptr=0;\n st=br.readLine().split(\" \");\n pptrmax=st.length;\n }",
"pptr=0",
"pptr",
"0",
"st=br.readLine().split(\" \")",
"st",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"pptrmax=st.length",
"pptrmax",
"st.length",
"st",
"st.length",
"static void nls() throws Exception{\n pptr=0;\n st=br.readLine().split(\"\");\n pptrmax=st.length;\n }",
"nls",
"{\n pptr=0;\n st=br.readLine().split(\"\");\n pptrmax=st.length;\n }",
"pptr=0",
"pptr",
"0",
"st=br.readLine().split(\"\")",
"st",
"br.readLine().split(\"\")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\"\"",
"pptrmax=st.length",
"pptrmax",
"st.length",
"st",
"st.length",
"static int pi() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Integer.parseInt(st[pptr++]);\n }",
"pi",
"{\n if(pptr==pptrmax)\n nl();\n return Integer.parseInt(st[pptr++]);\n }",
"if(pptr==pptrmax)\n nl();",
"pptr==pptrmax",
"pptr",
"pptrmax",
"nl()",
"nl",
"return Integer.parseInt(st[pptr++]);",
"Integer.parseInt(st[pptr++])",
"Integer.parseInt",
"Integer",
"st[pptr++]",
"st",
"pptr++",
"pptr",
"static long pl() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Long.parseLong(st[pptr++]);\n }",
"pl",
"{\n if(pptr==pptrmax)\n nl();\n return Long.parseLong(st[pptr++]);\n }",
"if(pptr==pptrmax)\n nl();",
"pptr==pptrmax",
"pptr",
"pptrmax",
"nl()",
"nl",
"return Long.parseLong(st[pptr++]);",
"Long.parseLong(st[pptr++])",
"Long.parseLong",
"Long",
"st[pptr++]",
"st",
"pptr++",
"pptr",
"static double pd() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Double.parseDouble(st[pptr++]);\n }",
"pd",
"{\n if(pptr==pptrmax)\n nl();\n return Double.parseDouble(st[pptr++]);\n }",
"if(pptr==pptrmax)\n nl();",
"pptr==pptrmax",
"pptr",
"pptrmax",
"nl()",
"nl",
"return Double.parseDouble(st[pptr++]);",
"Double.parseDouble(st[pptr++])",
"Double.parseDouble",
"Double",
"st[pptr++]",
"st",
"pptr++",
"pptr",
"static String ps() throws Exception{\n if(pptr==pptrmax)\n nl();\n return st[pptr++];\n }",
"ps",
"{\n if(pptr==pptrmax)\n nl();\n return st[pptr++];\n }",
"if(pptr==pptrmax)\n nl();",
"pptr==pptrmax",
"pptr",
"pptrmax",
"nl()",
"nl",
"return st[pptr++];",
"st[pptr++]",
"st",
"pptr++",
"pptr",
"/***************************************Precision Printing**********************************************/\n static void printPrecision(double d){\n DecimalFormat ft = new DecimalFormat(\"0.000000000000\"); \n out.print(ft.format(d));\n }",
"printPrecision",
"{\n DecimalFormat ft = new DecimalFormat(\"0.000000000000\"); \n out.print(ft.format(d));\n }",
"DecimalFormat ft = new DecimalFormat(\"0.000000000000\");",
"ft",
"new DecimalFormat(\"0.000000000000\")",
"out.print(ft.format(d))",
"out.print",
"out",
"ft.format(d)",
"ft.format",
"ft",
"d",
"double d",
"d",
"/**************************************Bit Manipulation**************************************************/\n static void printMask(long mask){\n System.out.println(Long.toBinaryString(mask));\n }",
"printMask",
"{\n System.out.println(Long.toBinaryString(mask));\n }",
"System.out.println(Long.toBinaryString(mask))",
"System.out.println",
"System.out",
"System",
"System.out",
"Long.toBinaryString(mask)",
"Long.toBinaryString",
"Long",
"mask",
"long mask",
"mask",
"static int countBit(long mask){\n int ans=0;\n while(mask!=0){\n mask&=(mask-1);\n ans++;\n }\n return ans;\n }",
"countBit",
"{\n int ans=0;\n while(mask!=0){\n mask&=(mask-1);\n ans++;\n }\n return ans;\n }",
"int ans=0;",
"ans",
"0",
"while(mask!=0){\n mask&=(mask-1);\n ans++;\n }",
"mask!=0",
"mask",
"0",
"{\n mask&=(mask-1);\n ans++;\n }",
"mask&=(mask-1)",
"mask",
"(mask-1)",
"mask",
"1",
"ans++",
"ans",
"return ans;",
"ans",
"long mask",
"mask",
"/******************************************Graph*********************************************************/\n static void Makegraph(int n){\n graph=new HashSet[n];\n for(int i=0;i<n;i++){\n graph[i]=new HashSet<>();\n }\n }",
"Makegraph",
"{\n graph=new HashSet[n];\n for(int i=0;i<n;i++){\n graph[i]=new HashSet<>();\n }\n }",
"graph=new HashSet[n]",
"graph",
"new HashSet[n]",
"n",
"for(int i=0;i<n;i++){\n graph[i]=new HashSet<>();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n graph[i]=new HashSet<>();\n }",
"{\n graph[i]=new HashSet<>();\n }",
"graph[i]=new HashSet<>()",
"graph[i]",
"graph",
"i",
"new HashSet<>()",
"int n",
"n",
"static void addEdge(int a,int b){\n graph[a].add(b);\n }",
"addEdge",
"{\n graph[a].add(b);\n }",
"graph[a].add(b)",
"graph[a].add",
"graph[a]",
"graph",
"a",
"b",
"int a",
"a",
"int b",
"b",
"/*****************************************DEBUG***********************************************************/\n public static void debug(Object... o){\n System.out.println(Arrays.deepToString(o));\n }",
"debug",
"{\n System.out.println(Arrays.deepToString(o));\n }",
"System.out.println(Arrays.deepToString(o))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.deepToString(o)",
"Arrays.deepToString",
"Arrays",
"o",
"Object... o",
"o",
"/************************************MODULAR EXPONENTIATION***********************************************/\n static long modulo(long a,long b,long c){\n long x=1;\n long y=a%c;\n while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b /= 2;\n }\n return x%c;\n }",
"modulo",
"{\n long x=1;\n long y=a%c;\n while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b /= 2;\n }\n return x%c;\n }",
"long x=1;",
"x",
"1",
"long y=a%c;",
"y",
"a%c",
"a",
"c",
"while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b /= 2;\n }",
"b > 0",
"b",
"0",
"{\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b /= 2;\n }",
"if(b%2 == 1)\n x=(x*y)%c;",
"b%2 == 1",
"b%2",
"b",
"2",
"1",
"x=(x*y)%c",
"x",
"(x*y)%c",
"(x*y)",
"x",
"y",
"c",
"y = (y*y)%c",
"y",
"(y*y)%c",
"(y*y)",
"y",
"y",
"c",
"b /= 2",
"b",
"2",
"return x%c;",
"x%c",
"x",
"c",
"long a",
"a",
"long b",
"b",
"long c",
"c",
"/********************************************GCD**********************************************************/\n static long gcd(long x, long y){\n if(x==0)\n return y;\n if(y==0)\n return x;\n long r=0, a, b;\n a = (x > y) ? x : y; \n b = (x < y) ? x : y;\n r = b;\n while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }\n return r;\n }",
"gcd",
"{\n if(x==0)\n return y;\n if(y==0)\n return x;\n long r=0, a, b;\n a = (x > y) ? x : y; \n b = (x < y) ? x : y;\n r = b;\n while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }\n return r;\n }",
"if(x==0)\n return y;",
"x==0",
"x",
"0",
"return y;",
"y",
"if(y==0)\n return x;",
"y==0",
"y",
"0",
"return x;",
"x",
"long r=0",
"r",
"0",
"a",
"a",
"b;",
"b",
"a = (x > y) ? x : y",
"a",
"(x > y) ? x : y",
"(x > y)",
"x",
"y",
"x",
"y",
"b = (x < y) ? x : y",
"b",
"(x < y) ? x : y",
"(x < y)",
"x",
"y",
"x",
"y",
"r = b",
"r",
"b",
"while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }",
"a % b != 0",
"a % b",
"a",
"b",
"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 r;",
"r",
"long x",
"x",
"long y",
"y",
" static class Pair implements Comparable<Pair> {\n int u;\n int v;\n int index=-1;\n public Pair(int u, int v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }\n public int compareTo(Pair other) {\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }",
"Pair",
"int u;",
"u",
"int v;",
"v",
"int index=-1;",
"index",
"-1",
"1",
"public Pair(int u, int v) {\n this.u = u;\n this.v = v;\n }",
"Pair",
"{\n this.u = u;\n this.v = v;\n }",
"this.u = u",
"this.u",
"this",
"this.u",
"u",
"this.v = v",
"this.v",
"this",
"this.v",
"v",
"int u",
"u",
"int v",
"v",
"public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }",
"hashCode",
"{\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }",
"int hu = (int) (u ^ (u >>> 32));",
"hu",
"(int) (u ^ (u >>> 32))",
"u",
"(u >>> 32)",
"u",
"32",
"int hv = (int) (v ^ (v >>> 32));",
"hv",
"(int) (v ^ (v >>> 32))",
"v",
"(v >>> 32)",
"v",
"32",
"return 31 * hu + hv;",
"31 * hu + hv",
"31 * hu",
"31",
"hu",
"hv",
"public boolean equals(Object o) {\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }",
"equals",
"{\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }",
"Pair other = (Pair) o;",
"other",
"(Pair) o",
"return u == other.u && v == other.v;",
"u == other.u && v == other.v",
"u == other.u",
"u",
"other.u",
"other",
"other.u",
"v == other.v",
"v",
"other.v",
"other",
"other.v",
"Object o",
"o",
"public int compareTo(Pair other) {\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }",
"compareTo",
"{\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }",
"if(index!=other.index)\n return Long.compare(index, other.index);",
"index!=other.index",
"index",
"other.index",
"other",
"other.index",
"return Long.compare(index, other.index);",
"Long.compare(index, other.index)",
"Long.compare",
"Long",
"index",
"other.index",
"other",
"other.index",
"return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);",
"Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u)",
"Long.compare(v, other.v)!=0",
"Long.compare(v, other.v)",
"Long.compare",
"Long",
"v",
"other.v",
"other",
"other.v",
"0",
"Long.compare(v, other.v)",
"Long.compare",
"Long",
"v",
"other.v",
"other",
"other.v",
"Long.compare(u, other.u)",
"Long.compare",
"Long",
"u",
"other.u",
"other",
"other.u",
"Pair other",
"other",
"public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }",
"toString",
"{\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }",
"return \"[u=\" + u + \", v=\" + v + \"]\";",
"\"[u=\" + u + \", v=\" + v + \"]\"",
"v",
"\", v=\"",
"\"[u=\" + u + \", v=\" + v + \"]\"",
"\"[u=\"",
"u",
"\", v=\"",
"v",
"\"]\"",
"Comparable",
" static class Pairl implements Comparable<Pairl> {\n long u;\n long v;\n int index=-1;\n public Pairl(long u, long v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }\n public int compareTo(Pairl other) {\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }",
"Pairl",
"long u;",
"u",
"long v;",
"v",
"int index=-1;",
"index",
"-1",
"1",
"public Pairl(long u, long v) {\n this.u = u;\n this.v = v;\n }",
"Pairl",
"{\n this.u = u;\n this.v = v;\n }",
"this.u = u",
"this.u",
"this",
"this.u",
"u",
"this.v = v",
"this.v",
"this",
"this.v",
"v",
"long u",
"u",
"long v",
"v",
"public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }",
"hashCode",
"{\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }",
"int hu = (int) (u ^ (u >>> 32));",
"hu",
"(int) (u ^ (u >>> 32))",
"u",
"(u >>> 32)",
"u",
"32",
"int hv = (int) (v ^ (v >>> 32));",
"hv",
"(int) (v ^ (v >>> 32))",
"v",
"(v >>> 32)",
"v",
"32",
"return 31 * hu + hv;",
"31 * hu + hv",
"31 * hu",
"31",
"hu",
"hv",
"public boolean equals(Object o) {\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }",
"equals",
"{\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }",
"Pairl other = (Pairl) o;",
"other",
"(Pairl) o",
"return u == other.u && v == other.v;",
"u == other.u && v == other.v",
"u == other.u",
"u",
"other.u",
"other",
"other.u",
"v == other.v",
"v",
"other.v",
"other",
"other.v",
"Object o",
"o",
"public int compareTo(Pairl other) {\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }",
"compareTo",
"{\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }",
"if(index!=other.index)\n return Long.compare(index, other.index);",
"index!=other.index",
"index",
"other.index",
"other",
"other.index",
"return Long.compare(index, other.index);",
"Long.compare(index, other.index)",
"Long.compare",
"Long",
"index",
"other.index",
"other",
"other.index",
"return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);",
"Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u)",
"Long.compare(v, other.v)!=0",
"Long.compare(v, other.v)",
"Long.compare",
"Long",
"v",
"other.v",
"other",
"other.v",
"0",
"Long.compare(v, other.v)",
"Long.compare",
"Long",
"v",
"other.v",
"other",
"other.v",
"Long.compare(u, other.u)",
"Long.compare",
"Long",
"u",
"other.u",
"other",
"other.u",
"Pairl other",
"other",
"public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }",
"toString",
"{\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }",
"return \"[u=\" + u + \", v=\" + v + \"]\";",
"\"[u=\" + u + \", v=\" + v + \"]\"",
"v",
"\", v=\"",
"\"[u=\" + u + \", v=\" + v + \"]\"",
"\"[u=\"",
"u",
"\", v=\"",
"v",
"\"]\"",
"Comparable",
"public class Main{\n/*********************************************Constants******************************************/\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out)); \n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static long mod=(long)1e9+7;\n static long mod1=998244353;\n static HashSet<Integer> graph[];\n static int pptr=0,pptrmax=0;\n static String st[];\n/*****************************************Solutions Begins***************************************/\n public static void main(String args[]) throws Exception{\n int n=pi();\n long ans=0;\n for(int i=1;i<=n;i++){\n if(i%5==0||i%3==0)continue;\n ans+=i;\n }\n out.println(ans);\n/****************************************Solutions Ends**************************************************/\n out.flush();\n out.close();\n }\n/****************************************Template Begins************************************************/\n static void nl() throws Exception{\n pptr=0;\n st=br.readLine().split(\" \");\n pptrmax=st.length;\n }\n static void nls() throws Exception{\n pptr=0;\n st=br.readLine().split(\"\");\n pptrmax=st.length;\n }\n static int pi() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Integer.parseInt(st[pptr++]);\n }\n static long pl() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Long.parseLong(st[pptr++]);\n }\n static double pd() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Double.parseDouble(st[pptr++]);\n }\n static String ps() throws Exception{\n if(pptr==pptrmax)\n nl();\n return st[pptr++];\n }\n/***************************************Precision Printing**********************************************/\n static void printPrecision(double d){\n DecimalFormat ft = new DecimalFormat(\"0.000000000000\"); \n out.print(ft.format(d));\n }\n/**************************************Bit Manipulation**************************************************/\n static void printMask(long mask){\n System.out.println(Long.toBinaryString(mask));\n }\n static int countBit(long mask){\n int ans=0;\n while(mask!=0){\n mask&=(mask-1);\n ans++;\n }\n return ans;\n }\n/******************************************Graph*********************************************************/\n static void Makegraph(int n){\n graph=new HashSet[n];\n for(int i=0;i<n;i++){\n graph[i]=new HashSet<>();\n }\n }\n static void addEdge(int a,int b){\n graph[a].add(b);\n }\n // static void addEdge(int a,int b,int c){\n // graph[a].add(new Pair(b,c));\n // } \n/*********************************************PAIR********************************************************/\n static class Pair implements Comparable<Pair> {\n int u;\n int v;\n int index=-1;\n public Pair(int u, int v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }\n public int compareTo(Pair other) {\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/******************************************Long Pair*******************************************************/\n static class Pairl implements Comparable<Pairl> {\n long u;\n long v;\n int index=-1;\n public Pairl(long u, long v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }\n public int compareTo(Pairl other) {\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/*****************************************DEBUG***********************************************************/\n public static void debug(Object... o){\n System.out.println(Arrays.deepToString(o));\n }\n/************************************MODULAR EXPONENTIATION***********************************************/\n static long modulo(long a,long b,long c){\n long x=1;\n long y=a%c;\n while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b /= 2;\n }\n return x%c;\n }\n/********************************************GCD**********************************************************/\n static long gcd(long x, long y){\n if(x==0)\n return y;\n if(y==0)\n return x;\n long r=0, a, b;\n a = (x > y) ? x : y; \n b = (x < y) ? x : y;\n r = b;\n while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }\n return r;\n }\n/********************************************End***********************************************************/\n}",
"public class Main{\n/*********************************************Constants******************************************/\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out)); \n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static long mod=(long)1e9+7;\n static long mod1=998244353;\n static HashSet<Integer> graph[];\n static int pptr=0,pptrmax=0;\n static String st[];\n/*****************************************Solutions Begins***************************************/\n public static void main(String args[]) throws Exception{\n int n=pi();\n long ans=0;\n for(int i=1;i<=n;i++){\n if(i%5==0||i%3==0)continue;\n ans+=i;\n }\n out.println(ans);\n/****************************************Solutions Ends**************************************************/\n out.flush();\n out.close();\n }\n/****************************************Template Begins************************************************/\n static void nl() throws Exception{\n pptr=0;\n st=br.readLine().split(\" \");\n pptrmax=st.length;\n }\n static void nls() throws Exception{\n pptr=0;\n st=br.readLine().split(\"\");\n pptrmax=st.length;\n }\n static int pi() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Integer.parseInt(st[pptr++]);\n }\n static long pl() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Long.parseLong(st[pptr++]);\n }\n static double pd() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Double.parseDouble(st[pptr++]);\n }\n static String ps() throws Exception{\n if(pptr==pptrmax)\n nl();\n return st[pptr++];\n }\n/***************************************Precision Printing**********************************************/\n static void printPrecision(double d){\n DecimalFormat ft = new DecimalFormat(\"0.000000000000\"); \n out.print(ft.format(d));\n }\n/**************************************Bit Manipulation**************************************************/\n static void printMask(long mask){\n System.out.println(Long.toBinaryString(mask));\n }\n static int countBit(long mask){\n int ans=0;\n while(mask!=0){\n mask&=(mask-1);\n ans++;\n }\n return ans;\n }\n/******************************************Graph*********************************************************/\n static void Makegraph(int n){\n graph=new HashSet[n];\n for(int i=0;i<n;i++){\n graph[i]=new HashSet<>();\n }\n }\n static void addEdge(int a,int b){\n graph[a].add(b);\n }\n // static void addEdge(int a,int b,int c){\n // graph[a].add(new Pair(b,c));\n // } \n/*********************************************PAIR********************************************************/\n static class Pair implements Comparable<Pair> {\n int u;\n int v;\n int index=-1;\n public Pair(int u, int v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }\n public int compareTo(Pair other) {\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/******************************************Long Pair*******************************************************/\n static class Pairl implements Comparable<Pairl> {\n long u;\n long v;\n int index=-1;\n public Pairl(long u, long v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }\n public int compareTo(Pairl other) {\n if(index!=other.index)\n return Long.compare(index, other.index);\n return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/*****************************************DEBUG***********************************************************/\n public static void debug(Object... o){\n System.out.println(Arrays.deepToString(o));\n }\n/************************************MODULAR EXPONENTIATION***********************************************/\n static long modulo(long a,long b,long c){\n long x=1;\n long y=a%c;\n while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b /= 2;\n }\n return x%c;\n }\n/********************************************GCD**********************************************************/\n static long gcd(long x, long y){\n if(x==0)\n return y;\n if(y==0)\n return x;\n long r=0, a, b;\n a = (x > y) ? x : y; \n b = (x < y) ? x : y;\n r = b;\n while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }\n return r;\n }\n/********************************************End***********************************************************/\n}",
"Main"
] |
/*****Author: Satyajeet Singh, Delhi Technological University************************************/
import java.io.*;
import java.util.*;
import java.text.*;
import java.lang.*;
import java.math.*;
public class Main{
/*********************************************Constants******************************************/
static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static long mod=(long)1e9+7;
static long mod1=998244353;
static HashSet<Integer> graph[];
static int pptr=0,pptrmax=0;
static String st[];
/*****************************************Solutions Begins***************************************/
public static void main(String args[]) throws Exception{
int n=pi();
long ans=0;
for(int i=1;i<=n;i++){
if(i%5==0||i%3==0)continue;
ans+=i;
}
out.println(ans);
/****************************************Solutions Ends**************************************************/
out.flush();
out.close();
}
/****************************************Template Begins************************************************/
static void nl() throws Exception{
pptr=0;
st=br.readLine().split(" ");
pptrmax=st.length;
}
static void nls() throws Exception{
pptr=0;
st=br.readLine().split("");
pptrmax=st.length;
}
static int pi() throws Exception{
if(pptr==pptrmax)
nl();
return Integer.parseInt(st[pptr++]);
}
static long pl() throws Exception{
if(pptr==pptrmax)
nl();
return Long.parseLong(st[pptr++]);
}
static double pd() throws Exception{
if(pptr==pptrmax)
nl();
return Double.parseDouble(st[pptr++]);
}
static String ps() throws Exception{
if(pptr==pptrmax)
nl();
return st[pptr++];
}
/***************************************Precision Printing**********************************************/
static void printPrecision(double d){
DecimalFormat ft = new DecimalFormat("0.000000000000");
out.print(ft.format(d));
}
/**************************************Bit Manipulation**************************************************/
static void printMask(long mask){
System.out.println(Long.toBinaryString(mask));
}
static int countBit(long mask){
int ans=0;
while(mask!=0){
mask&=(mask-1);
ans++;
}
return ans;
}
/******************************************Graph*********************************************************/
static void Makegraph(int n){
graph=new HashSet[n];
for(int i=0;i<n;i++){
graph[i]=new HashSet<>();
}
}
static void addEdge(int a,int b){
graph[a].add(b);
}
// static void addEdge(int a,int b,int c){
// graph[a].add(new Pair(b,c));
// }
/*********************************************PAIR********************************************************/
static class Pair implements Comparable<Pair> {
int u;
int v;
int index=-1;
public Pair(int u, int v) {
this.u = u;
this.v = v;
}
public int hashCode() {
int hu = (int) (u ^ (u >>> 32));
int hv = (int) (v ^ (v >>> 32));
return 31 * hu + hv;
}
public boolean equals(Object o) {
Pair other = (Pair) o;
return u == other.u && v == other.v;
}
public int compareTo(Pair other) {
if(index!=other.index)
return Long.compare(index, other.index);
return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);
}
public String toString() {
return "[u=" + u + ", v=" + v + "]";
}
}
/******************************************Long Pair*******************************************************/
static class Pairl implements Comparable<Pairl> {
long u;
long v;
int index=-1;
public Pairl(long u, long v) {
this.u = u;
this.v = v;
}
public int hashCode() {
int hu = (int) (u ^ (u >>> 32));
int hv = (int) (v ^ (v >>> 32));
return 31 * hu + hv;
}
public boolean equals(Object o) {
Pairl other = (Pairl) o;
return u == other.u && v == other.v;
}
public int compareTo(Pairl other) {
if(index!=other.index)
return Long.compare(index, other.index);
return Long.compare(v, other.v)!=0?Long.compare(v, other.v):Long.compare(u, other.u);
}
public String toString() {
return "[u=" + u + ", v=" + v + "]";
}
}
/*****************************************DEBUG***********************************************************/
public static void debug(Object... o){
System.out.println(Arrays.deepToString(o));
}
/************************************MODULAR EXPONENTIATION***********************************************/
static long modulo(long a,long b,long c){
long x=1;
long y=a%c;
while(b > 0){
if(b%2 == 1)
x=(x*y)%c;
y = (y*y)%c;
b /= 2;
}
return x%c;
}
/********************************************GCD**********************************************************/
static long gcd(long x, long y){
if(x==0)
return y;
if(y==0)
return x;
long r=0, a, b;
a = (x > y) ? x : y;
b = (x < y) ? x : y;
r = b;
while(a % b != 0){
r = a % b;
a = b;
b = r;
}
return r;
}
/********************************************End***********************************************************/
}
|
[
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
64,
11
],
[
64,
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
],
[
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
],
[
52,
54
],
[
14,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
12,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"import java.util.*;\nimport java.io.*;\nimport java.lang.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n 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",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n 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",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\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 ans += i;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\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 ans += i;\n }\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long 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",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\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 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\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 ans += i;\n }\n }\n System.out.println(ans);\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
import java.lang.*;
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; 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,
18,
13,
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,
23,
13,
12,
13,
30,
29,
2,
2,
2,
17,
13,
13,
17,
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
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
28,
34
],
[
24,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
22,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
42,
48
],
[
6,
49
],
[
49,
50
],
[
65,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
51,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n System.out.println(sum(n)-sum(n/3)*3-sum(n/5)*5+sum(n/15)*15);\n \n\t\n\t}\n static long sum(long n){\n return (1 + n) * n / 2;\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n System.out.println(sum(n)-sum(n/3)*3-sum(n/5)*5+sum(n/15)*15);\n \n\t\n\t}\n static long sum(long n){\n return (1 + n) * n / 2;\n }\n}",
"Main",
"public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n System.out.println(sum(n)-sum(n/3)*3-sum(n/5)*5+sum(n/15)*15);\n \n\t\n\t}",
"main",
"{\n\tScanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n System.out.println(sum(n)-sum(n/3)*3-sum(n/5)*5+sum(n/15)*15);\n \n\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n = sc.nextLong();",
"n",
"sc.nextLong()",
"sc.nextLong",
"sc",
"System.out.println(sum(n)-sum(n/3)*3-sum(n/5)*5+sum(n/15)*15)",
"System.out.println",
"System.out",
"System",
"System.out",
"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",
"String[] args",
"args",
"static long sum(long n){\n return (1 + n) * n / 2;\n }",
"sum",
"{\n return (1 + n) * n / 2;\n }",
"return (1 + n) * n / 2;",
"(1 + n) * n / 2",
"(1 + n) * n",
"(1 + n)",
"1",
"n",
"n",
"2",
"long n",
"n",
"public class Main{\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n System.out.println(sum(n)-sum(n/3)*3-sum(n/5)*5+sum(n/15)*15);\n \n\t\n\t}\n static long sum(long n){\n return (1 + n) * n / 2;\n }\n}",
"public class Main{\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n System.out.println(sum(n)-sum(n/3)*3-sum(n/5)*5+sum(n/15)*15);\n \n\t\n\t}\n static long sum(long n){\n return (1 + n) * n / 2;\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
System.out.println(sum(n)-sum(n/3)*3-sum(n/5)*5+sum(n/15)*15);
}
static long sum(long n){
return (1 + 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,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
14,
40,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
103,
14
],
[
103,
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
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
17,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
17,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
48,
54
],
[
17,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
60,
62
],
[
17,
63
],
[
63,
64
],
[
63,
65
],
[
17,
66
],
[
66,
67
],
[
66,
68
],
[
17,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
74,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
73,
91
],
[
91,
92
],
[
91,
93
],
[
17,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
15,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n List<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }\n\n String arr01[] = mylist.get(0).split(\" \");\n\n int n = Integer.valueOf(arr01[0]);\n\n long mysum = 0;\n\n int cnt = 0;\n\n while (cnt <= n) {\n\n if (!(cnt % 3 == 0 || cnt % 5 == 0)) {\n mysum += cnt;\n }\n\n cnt += 1;\n\n }\n\n System.out.println(mysum);\n\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n List<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }\n\n String arr01[] = mylist.get(0).split(\" \");\n\n int n = Integer.valueOf(arr01[0]);\n\n long mysum = 0;\n\n int cnt = 0;\n\n while (cnt <= n) {\n\n if (!(cnt % 3 == 0 || cnt % 5 == 0)) {\n mysum += cnt;\n }\n\n cnt += 1;\n\n }\n\n System.out.println(mysum);\n\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n List<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }\n\n String arr01[] = mylist.get(0).split(\" \");\n\n int n = Integer.valueOf(arr01[0]);\n\n long mysum = 0;\n\n int cnt = 0;\n\n while (cnt <= n) {\n\n if (!(cnt % 3 == 0 || cnt % 5 == 0)) {\n mysum += cnt;\n }\n\n cnt += 1;\n\n }\n\n System.out.println(mysum);\n\n }",
"main",
"{\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n List<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }\n\n String arr01[] = mylist.get(0).split(\" \");\n\n int n = Integer.valueOf(arr01[0]);\n\n long mysum = 0;\n\n int cnt = 0;\n\n while (cnt <= n) {\n\n if (!(cnt % 3 == 0 || cnt % 5 == 0)) {\n mysum += cnt;\n }\n\n cnt += 1;\n\n }\n\n System.out.println(mysum);\n\n }",
"InputStreamReader is = new InputStreamReader(System.in);",
"is",
"new InputStreamReader(System.in)",
"BufferedReader reader = new BufferedReader(is);",
"reader",
"new BufferedReader(is)",
"List<String> mylist = new ArrayList<>();",
"mylist",
"new ArrayList<>()",
"String strinput = reader.readLine();",
"strinput",
"reader.readLine()",
"reader.readLine",
"reader",
"while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }",
"strinput != null",
"strinput",
"null",
"{\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }",
"mylist.add(strinput)",
"mylist.add",
"mylist",
"strinput",
"strinput = reader.readLine()",
"strinput",
"reader.readLine()",
"reader.readLine",
"reader",
"String arr01[] = mylist.get(0).split(\" \");",
"arr01",
"mylist.get(0).split(\" \")",
"mylist.get(0).split",
"mylist.get(0)",
"mylist.get",
"mylist",
"0",
"\" \"",
"int n = Integer.valueOf(arr01[0]);",
"n",
"Integer.valueOf(arr01[0])",
"Integer.valueOf",
"Integer",
"arr01[0]",
"arr01",
"0",
"long mysum = 0;",
"mysum",
"0",
"int cnt = 0;",
"cnt",
"0",
"while (cnt <= n) {\n\n if (!(cnt % 3 == 0 || cnt % 5 == 0)) {\n mysum += cnt;\n }\n\n cnt += 1;\n\n }",
"cnt <= n",
"cnt",
"n",
"{\n\n if (!(cnt % 3 == 0 || cnt % 5 == 0)) {\n mysum += cnt;\n }\n\n cnt += 1;\n\n }",
"if (!(cnt % 3 == 0 || cnt % 5 == 0)) {\n mysum += cnt;\n }",
"!(cnt % 3 == 0 || cnt % 5 == 0)",
"(cnt % 3 == 0 || cnt % 5 == 0)",
"cnt % 3 == 0",
"cnt % 3",
"cnt",
"3",
"0",
"cnt % 5 == 0",
"cnt % 5",
"cnt",
"5",
"0",
"{\n mysum += cnt;\n }",
"mysum += cnt",
"mysum",
"cnt",
"cnt += 1",
"cnt",
"1",
"System.out.println(mysum)",
"System.out.println",
"System.out",
"System",
"System.out",
"mysum",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n List<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }\n\n String arr01[] = mylist.get(0).split(\" \");\n\n int n = Integer.valueOf(arr01[0]);\n\n long mysum = 0;\n\n int cnt = 0;\n\n while (cnt <= n) {\n\n if (!(cnt % 3 == 0 || cnt % 5 == 0)) {\n mysum += cnt;\n }\n\n cnt += 1;\n\n }\n\n System.out.println(mysum);\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n List<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }\n\n String arr01[] = mylist.get(0).split(\" \");\n\n int n = Integer.valueOf(arr01[0]);\n\n long mysum = 0;\n\n int cnt = 0;\n\n while (cnt <= n) {\n\n if (!(cnt % 3 == 0 || cnt % 5 == 0)) {\n mysum += cnt;\n }\n\n cnt += 1;\n\n }\n\n System.out.println(mysum);\n\n }\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) throws Exception {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader reader = new BufferedReader(is);
List<String> mylist = new ArrayList<>();
// 標準入力からの値を変数strinputに代入
String strinput = reader.readLine();
while (strinput != null) {
mylist.add(strinput);
strinput = reader.readLine();
}
String arr01[] = mylist.get(0).split(" ");
int n = Integer.valueOf(arr01[0]);
long mysum = 0;
int cnt = 0;
while (cnt <= n) {
if (!(cnt % 3 == 0 || cnt % 5 == 0)) {
mysum += cnt;
}
cnt += 1;
}
System.out.println(mysum);
}
}
|
[
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,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
79,
5
],
[
79,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
32,
64
],
[
64,
65
],
[
64,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] |
[
"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 i = sc.nextInt();\n\t\tlong sum = 0;\n\n\t\t//入力した数分繰り返す\n\t\tfor (int j = 1; j <= i; j++) {\n\n\t\t\t//Jが3、5両方割りきれる\n\t\t\tif (j % 3 == 0 && j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが3で割り切れる\n\t\t\telse if (j % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが5で割り切れる\n\t\t\telse if (j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//3でも5でも割り切れない\n\t\t\telse {\n\n\t\t\t}\n\t\t\tsum += j;\n\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t\tsc.close();\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint i = sc.nextInt();\n\t\tlong sum = 0;\n\n\t\t//入力した数分繰り返す\n\t\tfor (int j = 1; j <= i; j++) {\n\n\t\t\t//Jが3、5両方割りきれる\n\t\t\tif (j % 3 == 0 && j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが3で割り切れる\n\t\t\telse if (j % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが5で割り切れる\n\t\t\telse if (j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//3でも5でも割り切れない\n\t\t\telse {\n\n\t\t\t}\n\t\t\tsum += j;\n\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t\tsc.close();\n\n\t}\n\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 i = sc.nextInt();\n\t\tlong sum = 0;\n\n\t\t//入力した数分繰り返す\n\t\tfor (int j = 1; j <= i; j++) {\n\n\t\t\t//Jが3、5両方割りきれる\n\t\t\tif (j % 3 == 0 && j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが3で割り切れる\n\t\t\telse if (j % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが5で割り切れる\n\t\t\telse if (j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//3でも5でも割り切れない\n\t\t\telse {\n\n\t\t\t}\n\t\t\tsum += j;\n\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t\tsc.close();\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint i = sc.nextInt();\n\t\tlong sum = 0;\n\n\t\t//入力した数分繰り返す\n\t\tfor (int j = 1; j <= i; j++) {\n\n\t\t\t//Jが3、5両方割りきれる\n\t\t\tif (j % 3 == 0 && j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが3で割り切れる\n\t\t\telse if (j % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが5で割り切れる\n\t\t\telse if (j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//3でも5でも割り切れない\n\t\t\telse {\n\n\t\t\t}\n\t\t\tsum += j;\n\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t\tsc.close();\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int i = sc.nextInt();",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"for (int j = 1; j <= i; j++) {\n\n\t\t\t//Jが3、5両方割りきれる\n\t\t\tif (j % 3 == 0 && j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが3で割り切れる\n\t\t\telse if (j % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが5で割り切れる\n\t\t\telse if (j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//3でも5でも割り切れない\n\t\t\telse {\n\n\t\t\t}\n\t\t\tsum += j;\n\n\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= i",
"j",
"i",
"j++",
"j++",
"j",
"{\n\n\t\t\t//Jが3、5両方割りきれる\n\t\t\tif (j % 3 == 0 && j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが3で割り切れる\n\t\t\telse if (j % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが5で割り切れる\n\t\t\telse if (j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//3でも5でも割り切れない\n\t\t\telse {\n\n\t\t\t}\n\t\t\tsum += j;\n\n\t\t}",
"{\n\n\t\t\t//Jが3、5両方割りきれる\n\t\t\tif (j % 3 == 0 && j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが3で割り切れる\n\t\t\telse if (j % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが5で割り切れる\n\t\t\telse if (j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//3でも5でも割り切れない\n\t\t\telse {\n\n\t\t\t}\n\t\t\tsum += j;\n\n\t\t}",
"if (j % 3 == 0 && j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが3で割り切れる\n\t\t\telse if (j % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが5で割り切れる\n\t\t\telse if (j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//3でも5でも割り切れない\n\t\t\telse {\n\n\t\t\t}",
"j % 3 == 0 && j % 5 == 0",
"j % 3 == 0",
"j % 3",
"j",
"3",
"0",
"j % 5 == 0",
"j % 5",
"j",
"5",
"0",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"if (j % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが5で割り切れる\n\t\t\telse if (j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//3でも5でも割り切れない\n\t\t\telse {\n\n\t\t\t}",
"j % 3 == 0",
"j % 3",
"j",
"3",
"0",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"if (j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//3でも5でも割り切れない\n\t\t\telse {\n\n\t\t\t}",
"j % 5 == 0",
"j % 5",
"j",
"5",
"0",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"{\n\n\t\t\t}",
"sum += j",
"sum",
"j",
"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\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint i = sc.nextInt();\n\t\tlong sum = 0;\n\n\t\t//入力した数分繰り返す\n\t\tfor (int j = 1; j <= i; j++) {\n\n\t\t\t//Jが3、5両方割りきれる\n\t\t\tif (j % 3 == 0 && j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが3で割り切れる\n\t\t\telse if (j % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが5で割り切れる\n\t\t\telse if (j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//3でも5でも割り切れない\n\t\t\telse {\n\n\t\t\t}\n\t\t\tsum += j;\n\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t\tsc.close();\n\n\t}\n\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 i = sc.nextInt();\n\t\tlong sum = 0;\n\n\t\t//入力した数分繰り返す\n\t\tfor (int j = 1; j <= i; j++) {\n\n\t\t\t//Jが3、5両方割りきれる\n\t\t\tif (j % 3 == 0 && j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが3で割り切れる\n\t\t\telse if (j % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Jが5で割り切れる\n\t\t\telse if (j % 5 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//3でも5でも割り切れない\n\t\t\telse {\n\n\t\t\t}\n\t\t\tsum += j;\n\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t\tsc.close();\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int i = sc.nextInt();
long sum = 0;
//入力した数分繰り返す
for (int j = 1; j <= i; j++) {
//Jが3、5両方割りきれる
if (j % 3 == 0 && j % 5 == 0) {
continue;
}
//Jが3で割り切れる
else if (j % 3 == 0) {
continue;
}
//Jが5で割り切れる
else if (j % 5 == 0) {
continue;
}
//3でも5でも割り切れない
else {
}
sum += j;
}
System.out.println(sum);
sc.close();
}
}
|
[
7,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
18,
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,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
51,
2
],
[
51,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
5,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
14,
19
],
[
19,
20
],
[
19,
21
],
[
14,
22
],
[
22,
23
],
[
23,
24
],
[
14,
25
],
[
26,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
27,
39
],
[
39,
40
],
[
39,
41
],
[
5,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
3,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
] |
[
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tlong sum=0;\n\t\tint N = new java.util.Scanner(System.in).nextInt();\n\t\tfor(int i =1;i<=N;i++){\n\t\t\tif(i%3!=0&&i%5!=0)sum+=i;\n\t\t\n\t\t}\n\t\t\t\t\n\t\tSystem.out.println(sum);\n\n\t}\n\n\t\n\t\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tlong sum=0;\n\t\tint N = new java.util.Scanner(System.in).nextInt();\n\t\tfor(int i =1;i<=N;i++){\n\t\t\tif(i%3!=0&&i%5!=0)sum+=i;\n\t\t\n\t\t}\n\t\t\t\t\n\t\tSystem.out.println(sum);\n\n\t}\n\n\t\n\t\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tlong sum=0;\n\t\tint N = new java.util.Scanner(System.in).nextInt();\n\t\tfor(int i =1;i<=N;i++){\n\t\t\tif(i%3!=0&&i%5!=0)sum+=i;\n\t\t\n\t\t}\n\t\t\t\t\n\t\tSystem.out.println(sum);\n\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tlong sum=0;\n\t\tint N = new java.util.Scanner(System.in).nextInt();\n\t\tfor(int i =1;i<=N;i++){\n\t\t\tif(i%3!=0&&i%5!=0)sum+=i;\n\t\t\n\t\t}\n\t\t\t\t\n\t\tSystem.out.println(sum);\n\n\t}",
"long sum=0;",
"sum",
"0",
"int N = new java.util.Scanner(System.in).nextInt();",
"N",
"new java.util.Scanner(System.in).nextInt()",
"new java.util.Scanner(System.in).nextInt",
"new java.util.Scanner(System.in)",
"for(int i =1;i<=N;i++){\n\t\t\tif(i%3!=0&&i%5!=0)sum+=i;\n\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)sum+=i;\n\t\t\n\t\t}",
"{\n\t\t\tif(i%3!=0&&i%5!=0)sum+=i;\n\t\t\n\t\t}",
"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",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tlong sum=0;\n\t\tint N = new java.util.Scanner(System.in).nextInt();\n\t\tfor(int i =1;i<=N;i++){\n\t\t\tif(i%3!=0&&i%5!=0)sum+=i;\n\t\t\n\t\t}\n\t\t\t\t\n\t\tSystem.out.println(sum);\n\n\t}\n\n\t\n\t\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tlong sum=0;\n\t\tint N = new java.util.Scanner(System.in).nextInt();\n\t\tfor(int i =1;i<=N;i++){\n\t\t\tif(i%3!=0&&i%5!=0)sum+=i;\n\t\t\n\t\t}\n\t\t\t\t\n\t\tSystem.out.println(sum);\n\n\t}\n\n\t\n\t\n\n}",
"Main"
] |
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
long sum=0;
int N = new java.util.Scanner(System.in).nextInt();
for(int i =1;i<=N;i++){
if(i%3!=0&&i%5!=0)sum+=i;
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
41,
13,
2,
2,
2,
2,
2,
13,
2,
13,
17,
17,
2,
2,
2,
2,
13,
2,
13,
17,
17,
2,
13,
17,
17,
2,
2,
2,
2,
13,
2,
13,
17,
17,
2,
13,
17,
17,
2,
2,
2,
2,
13,
2,
13,
17,
17,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
79,
5
],
[
79,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
23,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
24,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
33,
39
],
[
32,
40
],
[
40,
41
],
[
40,
42
],
[
31,
43
],
[
23,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
46,
52
],
[
45,
53
],
[
53,
54
],
[
53,
55
],
[
44,
56
],
[
21,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
59,
65
],
[
58,
66
],
[
66,
67
],
[
66,
68
],
[
57,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Long n;\n Scanner sc = new Scanner(System.in);\n n = sc.nextLong();\n Long sum = n*(n+1)/2-(n-n%3+3)*(n/3)/2-(n-n%5+5)*(n/5)/2+(n-n%15+15)*(n/15)/2;\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;\n Scanner sc = new Scanner(System.in);\n n = sc.nextLong();\n Long sum = n*(n+1)/2-(n-n%3+3)*(n/3)/2-(n-n%5+5)*(n/5)/2+(n-n%15+15)*(n/15)/2;\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n Long n;\n Scanner sc = new Scanner(System.in);\n n = sc.nextLong();\n Long sum = n*(n+1)/2-(n-n%3+3)*(n/3)/2-(n-n%5+5)*(n/5)/2+(n-n%15+15)*(n/15)/2;\n System.out.println(sum);\n }",
"main",
"{\n Long n;\n Scanner sc = new Scanner(System.in);\n n = sc.nextLong();\n Long sum = n*(n+1)/2-(n-n%3+3)*(n/3)/2-(n-n%5+5)*(n/5)/2+(n-n%15+15)*(n/15)/2;\n System.out.println(sum);\n }",
"Long n;",
"n",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"n = sc.nextLong()",
"n",
"sc.nextLong()",
"sc.nextLong",
"sc",
"Long sum = n*(n+1)/2-(n-n%3+3)*(n/3)/2-(n-n%5+5)*(n/5)/2+(n-n%15+15)*(n/15)/2;",
"sum",
"n*(n+1)/2-(n-n%3+3)*(n/3)/2-(n-n%5+5)*(n/5)/2+(n-n%15+15)*(n/15)/2",
"n*(n+1)/2-(n-n%3+3)*(n/3)/2-(n-n%5+5)*(n/5)/2",
"n*(n+1)/2-(n-n%3+3)*(n/3)/2-(n-n%5+5)*(n/5)/2",
"n*(n+1)/2",
"n*(n+1)",
"n",
"(n+1)",
"n",
"1",
"2",
"(n-n%3+3)*(n/3)/2",
"(n-n%3+3)*(n/3)",
"(n-n%3+3)",
"n-n%3",
"n",
"n%3",
"n",
"3",
"3",
"(n/3)",
"n",
"3",
"2",
"(n-n%5+5)*(n/5)/2",
"(n-n%5+5)*(n/5)",
"(n-n%5+5)",
"n-n%5",
"n",
"n%5",
"n",
"5",
"5",
"(n/5)",
"n",
"5",
"2",
"(n-n%15+15)*(n/15)/2",
"(n-n%15+15)*(n/15)",
"(n-n%15+15)",
"n-n%15",
"n",
"n%15",
"n",
"15",
"15",
"(n/15)",
"n",
"15",
"2",
"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;\n Scanner sc = new Scanner(System.in);\n n = sc.nextLong();\n Long sum = n*(n+1)/2-(n-n%3+3)*(n/3)/2-(n-n%5+5)*(n/5)/2+(n-n%15+15)*(n/15)/2;\n System.out.println(sum);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Long n;\n Scanner sc = new Scanner(System.in);\n n = sc.nextLong();\n Long sum = n*(n+1)/2-(n-n%3+3)*(n/3)/2-(n-n%5+5)*(n/5)/2+(n-n%15+15)*(n/15)/2;\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Long n;
Scanner sc = new Scanner(System.in);
n = sc.nextLong();
Long sum = n*(n+1)/2-(n-n%3+3)*(n/3)/2-(n-n%5+5)*(n/5)/2+(n-n%15+15)*(n/15)/2;
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
30,
0,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
18,
13,
17,
14,
2,
13,
17,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
41,
13,
17,
42,
13,
30,
4,
13,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
17,
14,
2,
4,
18,
13,
17,
30,
4,
18,
13,
4,
18,
18,
13,
13,
17,
30,
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,
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,
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
],
[
246,
8
],
[
246,
9
],
[
9,
10
],
[
246,
11
],
[
11,
12
],
[
11,
13
],
[
246,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
24,
26
],
[
16,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
32,
44
],
[
32,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
31,
49
],
[
49,
50
],
[
16,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
246,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
59,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
59,
84
],
[
84,
85
],
[
84,
86
],
[
59,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
98,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
109,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
103,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
57,
123
],
[
123,
124
],
[
246,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
128,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
138,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
127,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
246,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
159,
160
],
[
246,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
168,
169
],
[
246,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
174,
177
],
[
177,
178
],
[
246,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
186,
191
],
[
191,
192
],
[
191,
193
],
[
186,
194
],
[
194,
195
],
[
195,
196
],
[
186,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
202,
203
],
[
181,
204
],
[
204,
205
],
[
179,
206
],
[
206,
207
],
[
246,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
246,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
228,
229
],
[
228,
230
],
[
223,
231
],
[
231,
232
],
[
232,
233
],
[
223,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
239,
240
],
[
218,
241
],
[
241,
242
],
[
216,
243
],
[
243,
244
],
[
0,
245
],
[
245,
246
],
[
245,
247
]
] |
[
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\t\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint tmp = 0;\n\t\tlong result = 0;\n\t\twhile(tmp <= N) {\n\t\t\tif(tmp % 3 == 0 || tmp % 5 == 0) {\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tresult += tmp;\n\t\t\t}\n\t\t\ttmp++;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static 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\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(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}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\t\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint tmp = 0;\n\t\tlong result = 0;\n\t\twhile(tmp <= N) {\n\t\t\tif(tmp % 3 == 0 || tmp % 5 == 0) {\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tresult += tmp;\n\t\t\t}\n\t\t\ttmp++;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static 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\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(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}",
"Main",
"//Switch input source (stdin/file)\n\tprivate static BufferedReader br;",
"br",
"//Input read utility\n\tprivate static StringTokenizer tokenizer = null;",
"tokenizer",
"null",
"private static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint tmp = 0;\n\t\tlong result = 0;\n\t\twhile(tmp <= N) {\n\t\t\tif(tmp % 3 == 0 || tmp % 5 == 0) {\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tresult += tmp;\n\t\t\t}\n\t\t\ttmp++;\n\t\t}\n\t\tSystem.out.println(result);\n\t}",
"solve",
"{\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint tmp = 0;\n\t\tlong result = 0;\n\t\twhile(tmp <= N) {\n\t\t\tif(tmp % 3 == 0 || tmp % 5 == 0) {\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tresult += tmp;\n\t\t\t}\n\t\t\ttmp++;\n\t\t}\n\t\tSystem.out.println(result);\n\t}",
"int N = ni();",
"N",
"ni()",
"ni",
"int tmp = 0;",
"tmp",
"0",
"long result = 0;",
"result",
"0",
"while(tmp <= N) {\n\t\t\tif(tmp % 3 == 0 || tmp % 5 == 0) {\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tresult += tmp;\n\t\t\t}\n\t\t\ttmp++;\n\t\t}",
"tmp <= N",
"tmp",
"N",
"{\n\t\t\tif(tmp % 3 == 0 || tmp % 5 == 0) {\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tresult += tmp;\n\t\t\t}\n\t\t\ttmp++;\n\t\t}",
"if(tmp % 3 == 0 || tmp % 5 == 0) {\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tresult += tmp;\n\t\t\t}",
"tmp % 3 == 0 || tmp % 5 == 0",
"tmp % 3 == 0",
"tmp % 3",
"tmp",
"3",
"0",
"tmp % 5 == 0",
"tmp % 5",
"tmp",
"5",
"0",
"{\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tresult += tmp;\n\t\t\t}",
"result += tmp",
"result",
"tmp",
"tmp++",
"tmp",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"public static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}",
"main",
"{\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String debugDataPath = System.getenv(\"DD_PATH\");",
"debugDataPath",
"System.getenv(\"DD_PATH\")",
"System.getenv",
"System",
"\"DD_PATH\"",
"if(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"debugDataPath != null",
"debugDataPath",
"null",
"{\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"try{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}",
"br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))",
"br",
"new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))",
"boolean hasNext = true;",
"hasNext",
"true",
"while(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}",
"hasNext",
"{\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}",
"solve()",
"solve",
"try{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}",
"br.mark(1)",
"br.mark",
"br",
"1",
"if(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}",
"br.read() > 0",
"br.read()",
"br.read",
"br",
"0",
"{\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t}",
"br.reset()",
"br.reset",
"br",
"System.out.println(\"---\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"---\"",
"{\n\t\t\t\t\thasNext = false;\n\t\t\t\t}",
"hasNext = false",
"hasNext",
"false",
"String[] args",
"args",
"public static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}",
"next",
"{\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"try {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t}",
"tokenizer = new StringTokenizer(br.readLine())",
"tokenizer",
"new StringTokenizer(br.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}",
"ni",
"{\n\t\treturn Integer.parseInt(next());\n\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}",
"nl",
"{\n\t\treturn Long.parseLong(next());\n\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}",
"nd",
"{\n\t\treturn Double.parseDouble(next());\n\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"//Get next int array from one line\n\tprivate static 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",
"//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}",
"ns",
"{\n\t\treturn next().toCharArray();\n\t}",
"return next().toCharArray();",
"next().toCharArray()",
"next().toCharArray",
"next()",
"next",
"//Get next long array from one line\n\tprivate static long[] nal(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}",
"nal",
"{\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",
"public class Main {\t\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint tmp = 0;\n\t\tlong result = 0;\n\t\twhile(tmp <= N) {\n\t\t\tif(tmp % 3 == 0 || tmp % 5 == 0) {\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tresult += tmp;\n\t\t\t}\n\t\t\ttmp++;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static 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\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(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}",
"public class Main {\t\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint tmp = 0;\n\t\tlong result = 0;\n\t\twhile(tmp <= N) {\n\t\t\tif(tmp % 3 == 0 || tmp % 5 == 0) {\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tresult += tmp;\n\t\t\t}\n\t\t\ttmp++;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static 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\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(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}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
private static void solve(){
//Implement solution here.
int N = ni();
int tmp = 0;
long result = 0;
while(tmp <= N) {
if(tmp % 3 == 0 || tmp % 5 == 0) {
} else {
result += tmp;
}
tmp++;
}
System.out.println(result);
}
//Switch input source (stdin/file)
private static BufferedReader br;
public static void main(String[] args){
br = new BufferedReader(new InputStreamReader(System.in));
String debugDataPath = System.getenv("DD_PATH");
if(debugDataPath != null){
try{
br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));
}catch(Exception e){
throw new RuntimeException(e);
}
}
boolean hasNext = true;
while(hasNext){
solve();
try{
br.mark(1);
if(br.read() > 0){
br.reset();
System.out.println("---");
} else {
hasNext = false;
}
}catch(Exception e){
throw new RuntimeException(e);
}
}
}
//Input read utility
private static StringTokenizer tokenizer = null;
public static String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(br.readLine());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
//Get next single int
private static int ni() {
return Integer.parseInt(next());
}
//Get next single long
private static long nl() {
return Long.parseLong(next());
}
//Get next single double
private static double nd() {
return Double.parseDouble(next());
}
//Get next int array from one line
private static int[] na(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = ni();
return a;
}
//Get next char array from one line
private static char[] ns() {
return next().toCharArray();
}
//Get next long array from one line
private static long[] nal(int n) {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nl();
return a;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
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,
41,
13,
4,
18,
13,
13,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
41,
13,
4,
18,
13,
13,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
41,
13,
4,
18,
13,
13,
0,
13,
17,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
13,
29,
4,
18,
13,
20,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
137,
5
],
[
137,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
40,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
52,
59
],
[
59,
60
],
[
59,
61
],
[
40,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
68,
75
],
[
75,
76
],
[
75,
77
],
[
62,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
84,
91
],
[
91,
92
],
[
91,
93
],
[
78,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
6,
106
],
[
106,
107
],
[
137,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
114,
116
],
[
110,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
117,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
126,
127
],
[
110,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
133,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String a = lines[0];\n int num = Integer.parseInt(a);\n \n long total = 0;\n for (int i = 1; i <= num; i++){\n if (i % 3 == 0 && i % 5 == 0){\n String s = Integer.toString(i);\n s = \"FizzBuzz\";\n } else if (i % 3 == 0){\n String s = Integer.toString(i);\n s = \"Fizz\";\n } else if (i % 5 == 0){\n String s = Integer.toString(i);\n s = \"Buzz\";\n } else {\n total = total + i;\n }\n }\n System.out.println(total);\n \n}\n \n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n \n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String a = lines[0];\n int num = Integer.parseInt(a);\n \n long total = 0;\n for (int i = 1; i <= num; i++){\n if (i % 3 == 0 && i % 5 == 0){\n String s = Integer.toString(i);\n s = \"FizzBuzz\";\n } else if (i % 3 == 0){\n String s = Integer.toString(i);\n s = \"Fizz\";\n } else if (i % 5 == 0){\n String s = Integer.toString(i);\n s = \"Buzz\";\n } else {\n total = total + i;\n }\n }\n System.out.println(total);\n \n}\n \n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n \n}",
"Main",
"public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String a = lines[0];\n int num = Integer.parseInt(a);\n \n long total = 0;\n for (int i = 1; i <= num; i++){\n if (i % 3 == 0 && i % 5 == 0){\n String s = Integer.toString(i);\n s = \"FizzBuzz\";\n } else if (i % 3 == 0){\n String s = Integer.toString(i);\n s = \"Fizz\";\n } else if (i % 5 == 0){\n String s = Integer.toString(i);\n s = \"Buzz\";\n } else {\n total = total + i;\n }\n }\n System.out.println(total);\n \n}",
"main",
"{\n String[] lines = getStdin();\n String a = lines[0];\n int num = Integer.parseInt(a);\n \n long total = 0;\n for (int i = 1; i <= num; i++){\n if (i % 3 == 0 && i % 5 == 0){\n String s = Integer.toString(i);\n s = \"FizzBuzz\";\n } else if (i % 3 == 0){\n String s = Integer.toString(i);\n s = \"Fizz\";\n } else if (i % 5 == 0){\n String s = Integer.toString(i);\n s = \"Buzz\";\n } else {\n total = total + i;\n }\n }\n System.out.println(total);\n \n}",
"String[] lines = getStdin();",
"lines",
"getStdin()",
"getStdin",
"String a = lines[0];",
"a",
"lines[0]",
"lines",
"0",
"int num = Integer.parseInt(a);",
"num",
"Integer.parseInt(a)",
"Integer.parseInt",
"Integer",
"a",
"long total = 0;",
"total",
"0",
"for (int i = 1; i <= num; i++){\n if (i % 3 == 0 && i % 5 == 0){\n String s = Integer.toString(i);\n s = \"FizzBuzz\";\n } else if (i % 3 == 0){\n String s = Integer.toString(i);\n s = \"Fizz\";\n } else if (i % 5 == 0){\n String s = Integer.toString(i);\n s = \"Buzz\";\n } else {\n total = total + 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 String s = Integer.toString(i);\n s = \"FizzBuzz\";\n } else if (i % 3 == 0){\n String s = Integer.toString(i);\n s = \"Fizz\";\n } else if (i % 5 == 0){\n String s = Integer.toString(i);\n s = \"Buzz\";\n } else {\n total = total + i;\n }\n }",
"{\n if (i % 3 == 0 && i % 5 == 0){\n String s = Integer.toString(i);\n s = \"FizzBuzz\";\n } else if (i % 3 == 0){\n String s = Integer.toString(i);\n s = \"Fizz\";\n } else if (i % 5 == 0){\n String s = Integer.toString(i);\n s = \"Buzz\";\n } else {\n total = total + i;\n }\n }",
"if (i % 3 == 0 && i % 5 == 0){\n String s = Integer.toString(i);\n s = \"FizzBuzz\";\n } else if (i % 3 == 0){\n String s = Integer.toString(i);\n s = \"Fizz\";\n } else if (i % 5 == 0){\n String s = Integer.toString(i);\n s = \"Buzz\";\n } else {\n total = 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 String s = Integer.toString(i);\n s = \"FizzBuzz\";\n }",
"String s = Integer.toString(i);",
"s",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"s = \"FizzBuzz\"",
"s",
"\"FizzBuzz\"",
"if (i % 3 == 0){\n String s = Integer.toString(i);\n s = \"Fizz\";\n } else if (i % 5 == 0){\n String s = Integer.toString(i);\n s = \"Buzz\";\n } else {\n total = total + i;\n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n String s = Integer.toString(i);\n s = \"Fizz\";\n }",
"String s = Integer.toString(i);",
"s",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"s = \"Fizz\"",
"s",
"\"Fizz\"",
"if (i % 5 == 0){\n String s = Integer.toString(i);\n s = \"Buzz\";\n } else {\n total = total + i;\n }",
"i % 5 == 0",
"i % 5",
"i",
"5",
"0",
"{\n String s = Integer.toString(i);\n s = \"Buzz\";\n }",
"String s = Integer.toString(i);",
"s",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"s = \"Buzz\"",
"s",
"\"Buzz\"",
"{\n total = total + i;\n }",
"total = total + i",
"total",
"total + i",
"total",
"i",
"System.out.println(total)",
"System.out.println",
"System.out",
"System",
"System.out",
"total",
"String[] args",
"args",
"private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }",
"getStdin",
"{\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"ArrayList<String> lines = new ArrayList<>();",
"lines",
"new ArrayList<>()",
"while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\n lines.add(scanner.nextLine());\n }",
"lines.add(scanner.nextLine())",
"lines.add",
"lines",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"return lines.toArray(new String[lines.size()]);",
"lines.toArray(new String[lines.size()])",
"lines.toArray",
"lines",
"new String[lines.size()]",
"lines.size()",
"lines.size",
"lines",
"public class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String a = lines[0];\n int num = Integer.parseInt(a);\n \n long total = 0;\n for (int i = 1; i <= num; i++){\n if (i % 3 == 0 && i % 5 == 0){\n String s = Integer.toString(i);\n s = \"FizzBuzz\";\n } else if (i % 3 == 0){\n String s = Integer.toString(i);\n s = \"Fizz\";\n } else if (i % 5 == 0){\n String s = Integer.toString(i);\n s = \"Buzz\";\n } else {\n total = total + i;\n }\n }\n System.out.println(total);\n \n}\n \n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n \n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String a = lines[0];\n int num = Integer.parseInt(a);\n \n long total = 0;\n for (int i = 1; i <= num; i++){\n if (i % 3 == 0 && i % 5 == 0){\n String s = Integer.toString(i);\n s = \"FizzBuzz\";\n } else if (i % 3 == 0){\n String s = Integer.toString(i);\n s = \"Fizz\";\n } else if (i % 5 == 0){\n String s = Integer.toString(i);\n s = \"Buzz\";\n } else {\n total = total + i;\n }\n }\n System.out.println(total);\n \n}\n \n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n \n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
String[] lines = getStdin();
String a = lines[0];
int num = Integer.parseInt(a);
long total = 0;
for (int i = 1; i <= num; i++){
if (i % 3 == 0 && i % 5 == 0){
String s = Integer.toString(i);
s = "FizzBuzz";
} else if (i % 3 == 0){
String s = Integer.toString(i);
s = "Fizz";
} else if (i % 5 == 0){
String s = Integer.toString(i);
s = "Buzz";
} else {
total = total + i;
}
}
System.out.println(total);
}
private static String[] getStdin() {
Scanner scanner = new Scanner(System.in);
ArrayList<String> lines = new ArrayList<>();
while (scanner.hasNext()) {
lines.add(scanner.nextLine());
}
return lines.toArray(new String[lines.size()]);
}
}
|
[
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,
4,
18,
13,
17,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
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
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n double sum = 0;\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0){\n sum += i;\n }\n }\n \n System.out.println(String.format(\"%.0f\", sum));\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\tint n = sc.nextInt();\n double sum = 0;\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0){\n sum += i;\n }\n }\n \n System.out.println(String.format(\"%.0f\", sum));\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n double sum = 0;\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0){\n sum += i;\n }\n }\n \n System.out.println(String.format(\"%.0f\", sum));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n double sum = 0;\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0){\n sum += i;\n }\n }\n \n System.out.println(String.format(\"%.0f\", sum));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double sum = 0;",
"sum",
"0",
"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",
"System.out.println(String.format(\"%.0f\", sum))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%.0f\", sum)",
"String.format",
"String",
"\"%.0f\"",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n double sum = 0;\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0){\n sum += i;\n }\n }\n \n System.out.println(String.format(\"%.0f\", sum));\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n double sum = 0;\n for(int i = 1; i <= n; i++){\n if(i % 3 != 0 && i % 5 != 0){\n sum += i;\n }\n }\n \n System.out.println(String.format(\"%.0f\", sum));\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
double sum = 0;
for(int i = 1; i <= n; i++){
if(i % 3 != 0 && i % 5 != 0){
sum += i;
}
}
System.out.println(String.format("%.0f", sum));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
0,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
0,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
0,
13,
13,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
4,
13,
17,
12,
13,
30,
29,
4,
18,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
212,
8
],
[
212,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
31,
36
],
[
11,
37
],
[
37,
38
],
[
38,
39
],
[
9,
40
],
[
40,
41
],
[
212,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
54,
60
],
[
46,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
61,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
46,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
78,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
46,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
95,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
46,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
44,
116
],
[
116,
117
],
[
44,
118
],
[
118,
119
],
[
44,
120
],
[
120,
121
],
[
212,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
122,
126
],
[
126,
127
],
[
122,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
128,
137
],
[
137,
138
],
[
122,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
142,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
152,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
141,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
122,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
173,
174
],
[
122,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
182,
183
],
[
122,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
188,
191
],
[
191,
192
],
[
122,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
197,
201
],
[
122,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
0,
211
],
[
211,
212
],
[
211,
213
]
] |
[
"import java.io.*;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n// int t = in.nextInt();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException {\n long n = in.nextLong();\n long s = n * (n+1) / 2;\n for (long i = 3; i <= n; i+=3) {\n s -= i;\n }\n for (long i = 5; i <= n; i+=5) {\n s -= i;\n }\n for (long i = 15; i <= n; i+=15) {\n s += i;\n }\n out.println(s);\n }\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 long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public String nextLine() throws IOException {\n return reader.readLine().trim();\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n// int t = in.nextInt();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException {\n long n = in.nextLong();\n long s = n * (n+1) / 2;\n for (long i = 3; i <= n; i+=3) {\n s -= i;\n }\n for (long i = 5; i <= n; i+=5) {\n s -= i;\n }\n for (long i = 15; i <= n; i+=15) {\n s += i;\n }\n out.println(s);\n }\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 long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public String nextLine() throws IOException {\n return reader.readLine().trim();\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n// int t = in.nextInt();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n// int t = in.nextInt();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"Task solver = new Task();",
"solver",
"new Task()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException {\n long n = in.nextLong();\n long s = n * (n+1) / 2;\n for (long i = 3; i <= n; i+=3) {\n s -= i;\n }\n for (long i = 5; i <= n; i+=5) {\n s -= i;\n }\n for (long i = 15; i <= n; i+=15) {\n s += i;\n }\n out.println(s);\n }\n }",
"Task",
"public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException {\n long n = in.nextLong();\n long s = n * (n+1) / 2;\n for (long i = 3; i <= n; i+=3) {\n s -= i;\n }\n for (long i = 5; i <= n; i+=5) {\n s -= i;\n }\n for (long i = 15; i <= n; i+=15) {\n s += i;\n }\n out.println(s);\n }",
"solve",
"{\n long n = in.nextLong();\n long s = n * (n+1) / 2;\n for (long i = 3; i <= n; i+=3) {\n s -= i;\n }\n for (long i = 5; i <= n; i+=5) {\n s -= i;\n }\n for (long i = 15; i <= n; i+=15) {\n s += i;\n }\n out.println(s);\n }",
"long n = in.nextLong();",
"n",
"in.nextLong()",
"in.nextLong",
"in",
"long s = n * (n+1) / 2;",
"s",
"n * (n+1) / 2",
"n * (n+1)",
"n",
"(n+1)",
"n",
"1",
"2",
"for (long i = 3; i <= n; i+=3) {\n s -= i;\n }",
"long i = 3;",
"long i = 3;",
"i",
"3",
"i <= n",
"i",
"n",
"i+=3",
"i+=3",
"i",
"3",
"{\n s -= i;\n }",
"{\n s -= i;\n }",
"s -= i",
"s",
"i",
"for (long i = 5; i <= n; i+=5) {\n s -= i;\n }",
"long i = 5;",
"long i = 5;",
"i",
"5",
"i <= n",
"i",
"n",
"i+=5",
"i+=5",
"i",
"5",
"{\n s -= i;\n }",
"{\n s -= i;\n }",
"s -= i",
"s",
"i",
"for (long i = 15; i <= n; i+=15) {\n s += i;\n }",
"long i = 15;",
"long i = 15;",
"i",
"15",
"i <= n",
"i",
"n",
"i+=15",
"i+=15",
"i",
"15",
"{\n s += i;\n }",
"{\n s += i;\n }",
"s += i",
"s",
"i",
"out.println(s)",
"out.println",
"out",
"s",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"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 long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public String nextLine() throws IOException {\n return reader.readLine().trim();\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 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 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 char nextChar() {\n return next().charAt(0);\n }",
"nextChar",
"{\n return next().charAt(0);\n }",
"return next().charAt(0);",
"next().charAt(0)",
"next().charAt",
"next()",
"next",
"0",
"public String nextLine() throws IOException {\n return reader.readLine().trim();\n }",
"nextLine",
"{\n return reader.readLine().trim();\n }",
"return reader.readLine().trim();",
"reader.readLine().trim()",
"reader.readLine().trim",
"reader.readLine()",
"reader.readLine",
"reader",
"public class Main {\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n// int t = in.nextInt();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException {\n long n = in.nextLong();\n long s = n * (n+1) / 2;\n for (long i = 3; i <= n; i+=3) {\n s -= i;\n }\n for (long i = 5; i <= n; i+=5) {\n s -= i;\n }\n for (long i = 15; i <= n; i+=15) {\n s += i;\n }\n out.println(s);\n }\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 long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public String nextLine() throws IOException {\n return reader.readLine().trim();\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n// int t = in.nextInt();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException {\n long n = in.nextLong();\n long s = n * (n+1) / 2;\n for (long i = 3; i <= n; i+=3) {\n s -= i;\n }\n for (long i = 5; i <= n; i+=5) {\n s -= i;\n }\n for (long i = 15; i <= n; i+=15) {\n s += i;\n }\n out.println(s);\n }\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 long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public String nextLine() throws IOException {\n return reader.readLine().trim();\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
Task solver = new Task();
// int t = in.nextInt();
solver.solve(1, in, out);
out.close();
}
static class Task {
public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException {
long n = in.nextLong();
long s = n * (n+1) / 2;
for (long i = 3; i <= n; i+=3) {
s -= i;
}
for (long i = 5; i <= n; i+=5) {
s -= i;
}
for (long i = 15; i <= n; i+=15) {
s += i;
}
out.println(s);
}
}
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 long nextLong() {
return Long.parseLong(next());
}
public double nextDouble() {
return Double.parseDouble(next());
}
public int nextInt() {
return Integer.parseInt(next());
}
public char nextChar() {
return next().charAt(0);
}
public String nextLine() throws IOException {
return reader.readLine().trim();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
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,
17,
4,
13,
13,
30,
9,
14,
2,
17,
4,
13,
13,
30,
9,
14,
2,
2,
17,
4,
13,
13,
2,
17,
4,
13,
13,
30,
9,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
2,
13,
13,
23,
13,
12,
13,
30,
29,
2,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
6
],
[
6,
7
],
[
6,
8
],
[
102,
9
],
[
9,
10
],
[
9,
11
],
[
102,
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
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
42,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
50,
56
],
[
56,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
59,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
58,
70
],
[
70,
71
],
[
41,
72
],
[
72,
73
],
[
72,
74
],
[
14,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
12,
81
],
[
81,
82
],
[
102,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
83,
90
],
[
90,
91
],
[
102,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
92,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n static final int FIZZ_VAL = 3;\n static final int BUZZ_VAL = 5;\n\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n final int iInputVal = Integer.parseInt(sc.next());\n long lResult = 0;\n for (int iColumn = 1; iColumn <= iInputVal; iColumn++) {\n if (0 == isFizz(iColumn)) {\n continue;\n } else if (0 == isBuzz(iColumn)) {\n continue;\n } else if (0 == isFizz(iColumn) && 0 == isBuzz(iColumn)) {\n continue;\n }\n lResult += iColumn;\n }\n\n System.out.print(lResult);\n }\n\n private static int isFizz(final int iVal) {\n return iVal % FIZZ_VAL;\n }\n\n private static int isBuzz(final int iVal) {\n return iVal % BUZZ_VAL;\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n static final int FIZZ_VAL = 3;\n static final int BUZZ_VAL = 5;\n\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n final int iInputVal = Integer.parseInt(sc.next());\n long lResult = 0;\n for (int iColumn = 1; iColumn <= iInputVal; iColumn++) {\n if (0 == isFizz(iColumn)) {\n continue;\n } else if (0 == isBuzz(iColumn)) {\n continue;\n } else if (0 == isFizz(iColumn) && 0 == isBuzz(iColumn)) {\n continue;\n }\n lResult += iColumn;\n }\n\n System.out.print(lResult);\n }\n\n private static int isFizz(final int iVal) {\n return iVal % FIZZ_VAL;\n }\n\n private static int isBuzz(final int iVal) {\n return iVal % BUZZ_VAL;\n }\n\n}",
"Main",
"static final int FIZZ_VAL = 3;",
"FIZZ_VAL",
"3",
"static final int BUZZ_VAL = 5;",
"BUZZ_VAL",
"5",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n final int iInputVal = Integer.parseInt(sc.next());\n long lResult = 0;\n for (int iColumn = 1; iColumn <= iInputVal; iColumn++) {\n if (0 == isFizz(iColumn)) {\n continue;\n } else if (0 == isBuzz(iColumn)) {\n continue;\n } else if (0 == isFizz(iColumn) && 0 == isBuzz(iColumn)) {\n continue;\n }\n lResult += iColumn;\n }\n\n System.out.print(lResult);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n final int iInputVal = Integer.parseInt(sc.next());\n long lResult = 0;\n for (int iColumn = 1; iColumn <= iInputVal; iColumn++) {\n if (0 == isFizz(iColumn)) {\n continue;\n } else if (0 == isBuzz(iColumn)) {\n continue;\n } else if (0 == isFizz(iColumn) && 0 == isBuzz(iColumn)) {\n continue;\n }\n lResult += iColumn;\n }\n\n System.out.print(lResult);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int iInputVal = Integer.parseInt(sc.next());",
"iInputVal",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"long lResult = 0;",
"lResult",
"0",
"for (int iColumn = 1; iColumn <= iInputVal; iColumn++) {\n if (0 == isFizz(iColumn)) {\n continue;\n } else if (0 == isBuzz(iColumn)) {\n continue;\n } else if (0 == isFizz(iColumn) && 0 == isBuzz(iColumn)) {\n continue;\n }\n lResult += iColumn;\n }",
"int iColumn = 1;",
"int iColumn = 1;",
"iColumn",
"1",
"iColumn <= iInputVal",
"iColumn",
"iInputVal",
"iColumn++",
"iColumn++",
"iColumn",
"{\n if (0 == isFizz(iColumn)) {\n continue;\n } else if (0 == isBuzz(iColumn)) {\n continue;\n } else if (0 == isFizz(iColumn) && 0 == isBuzz(iColumn)) {\n continue;\n }\n lResult += iColumn;\n }",
"{\n if (0 == isFizz(iColumn)) {\n continue;\n } else if (0 == isBuzz(iColumn)) {\n continue;\n } else if (0 == isFizz(iColumn) && 0 == isBuzz(iColumn)) {\n continue;\n }\n lResult += iColumn;\n }",
"if (0 == isFizz(iColumn)) {\n continue;\n } else if (0 == isBuzz(iColumn)) {\n continue;\n } else if (0 == isFizz(iColumn) && 0 == isBuzz(iColumn)) {\n continue;\n }",
"0 == isFizz(iColumn)",
"0",
"isFizz(iColumn)",
"isFizz",
"iColumn",
"{\n continue;\n }",
"continue;",
"if (0 == isBuzz(iColumn)) {\n continue;\n } else if (0 == isFizz(iColumn) && 0 == isBuzz(iColumn)) {\n continue;\n }",
"0 == isBuzz(iColumn)",
"0",
"isBuzz(iColumn)",
"isBuzz",
"iColumn",
"{\n continue;\n }",
"continue;",
"if (0 == isFizz(iColumn) && 0 == isBuzz(iColumn)) {\n continue;\n }",
"0 == isFizz(iColumn) && 0 == isBuzz(iColumn)",
"0 == isFizz(iColumn)",
"0",
"isFizz(iColumn)",
"isFizz",
"iColumn",
"0 == isBuzz(iColumn)",
"0",
"isBuzz(iColumn)",
"isBuzz",
"iColumn",
"{\n continue;\n }",
"continue;",
"lResult += iColumn",
"lResult",
"iColumn",
"System.out.print(lResult)",
"System.out.print",
"System.out",
"System",
"System.out",
"lResult",
"String[] args",
"args",
"private static int isFizz(final int iVal) {\n return iVal % FIZZ_VAL;\n }",
"isFizz",
"{\n return iVal % FIZZ_VAL;\n }",
"return iVal % FIZZ_VAL;",
"iVal % FIZZ_VAL",
"iVal",
"FIZZ_VAL",
"final int iVal",
"iVal",
"private static int isBuzz(final int iVal) {\n return iVal % BUZZ_VAL;\n }",
"isBuzz",
"{\n return iVal % BUZZ_VAL;\n }",
"return iVal % BUZZ_VAL;",
"iVal % BUZZ_VAL",
"iVal",
"BUZZ_VAL",
"final int iVal",
"iVal",
"public class Main {\n\n static final int FIZZ_VAL = 3;\n static final int BUZZ_VAL = 5;\n\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n final int iInputVal = Integer.parseInt(sc.next());\n long lResult = 0;\n for (int iColumn = 1; iColumn <= iInputVal; iColumn++) {\n if (0 == isFizz(iColumn)) {\n continue;\n } else if (0 == isBuzz(iColumn)) {\n continue;\n } else if (0 == isFizz(iColumn) && 0 == isBuzz(iColumn)) {\n continue;\n }\n lResult += iColumn;\n }\n\n System.out.print(lResult);\n }\n\n private static int isFizz(final int iVal) {\n return iVal % FIZZ_VAL;\n }\n\n private static int isBuzz(final int iVal) {\n return iVal % BUZZ_VAL;\n }\n\n}",
"public class Main {\n\n static final int FIZZ_VAL = 3;\n static final int BUZZ_VAL = 5;\n\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n final int iInputVal = Integer.parseInt(sc.next());\n long lResult = 0;\n for (int iColumn = 1; iColumn <= iInputVal; iColumn++) {\n if (0 == isFizz(iColumn)) {\n continue;\n } else if (0 == isBuzz(iColumn)) {\n continue;\n } else if (0 == isFizz(iColumn) && 0 == isBuzz(iColumn)) {\n continue;\n }\n lResult += iColumn;\n }\n\n System.out.print(lResult);\n }\n\n private static int isFizz(final int iVal) {\n return iVal % FIZZ_VAL;\n }\n\n private static int isBuzz(final int iVal) {\n return iVal % BUZZ_VAL;\n }\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static final int FIZZ_VAL = 3;
static final int BUZZ_VAL = 5;
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
final int iInputVal = Integer.parseInt(sc.next());
long lResult = 0;
for (int iColumn = 1; iColumn <= iInputVal; iColumn++) {
if (0 == isFizz(iColumn)) {
continue;
} else if (0 == isBuzz(iColumn)) {
continue;
} else if (0 == isFizz(iColumn) && 0 == isBuzz(iColumn)) {
continue;
}
lResult += iColumn;
}
System.out.print(lResult);
}
private static int isFizz(final int iVal) {
return iVal % FIZZ_VAL;
}
private static int isBuzz(final int iVal) {
return iVal % BUZZ_VAL;
}
}
|
[
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.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tlong N = input.nextLong();\n\t\tlong sum=0;\n\t\t\n\t\tfor(long i=0;i<=N;i++) {\n\t\t\tif(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.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tlong N = input.nextLong();\n\t\tlong sum=0;\n\t\t\n\t\tfor(long i=0;i<=N;i++) {\n\t\t\tif(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 input = new Scanner(System.in);\n\t\tlong N = input.nextLong();\n\t\tlong sum=0;\n\t\t\n\t\tfor(long i=0;i<=N;i++) {\n\t\t\tif(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 input = new Scanner(System.in);\n\t\tlong N = input.nextLong();\n\t\tlong sum=0;\n\t\t\n\t\tfor(long i=0;i<=N;i++) {\n\t\t\tif(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 input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"long N = input.nextLong();",
"N",
"input.nextLong()",
"input.nextLong",
"input",
"long sum=0;",
"sum",
"0",
"for(long i=0;i<=N;i++) {\n\t\t\tif(i%5!=0 && i%3!=0) {\n\t\t\t\tsum+=i;\n\t\t\t}\n\t\t}",
"long i=0;",
"long i=0;",
"i",
"0",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%5!=0 && i%3!=0) {\n\t\t\t\tsum+=i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i%5!=0 && i%3!=0) {\n\t\t\t\tsum+=i;\n\t\t\t}\n\t\t}",
"if(i%5!=0 && i%3!=0) {\n\t\t\t\tsum+=i;\n\t\t\t}",
"i%5!=0 && i%3!=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\tpublic static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tlong N = input.nextLong();\n\t\tlong sum=0;\n\t\t\n\t\tfor(long i=0;i<=N;i++) {\n\t\t\tif(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\tpublic static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tlong N = input.nextLong();\n\t\tlong sum=0;\n\t\t\n\t\tfor(long i=0;i<=N;i++) {\n\t\t\tif(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.*;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
long N = input.nextLong();
long sum=0;
for(long i=0;i<=N;i++) {
if(i%5!=0 && i%3!=0) {
sum+=i;
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
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
],
[
8,
15
],
[
15,
16
],
[
15,
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
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
6,
61
],
[
61,
62
],
[
69,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"\n\nimport java.util.Scanner;\n\npublic class Main {\n static class Solution {\n public void find() {\n\n }\n\n }\n\n public static void main(String[] args) {\n Solution sol = new Solution();\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long res = 0;\n for(int i=1; i<=n; i++) {\n if(i%3 != 0 && i%5 != 0) {\n res += i;\n }\n }\n System.out.println(res);\n sol.find();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static class Solution {\n public void find() {\n\n }\n\n }\n\n public static void main(String[] args) {\n Solution sol = new Solution();\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long res = 0;\n for(int i=1; i<=n; i++) {\n if(i%3 != 0 && i%5 != 0) {\n res += i;\n }\n }\n System.out.println(res);\n sol.find();\n }\n}",
"Main",
"public static void main(String[] args) {\n Solution sol = new Solution();\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long res = 0;\n for(int i=1; i<=n; i++) {\n if(i%3 != 0 && i%5 != 0) {\n res += i;\n }\n }\n System.out.println(res);\n sol.find();\n }",
"main",
"{\n Solution sol = new Solution();\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long res = 0;\n for(int i=1; i<=n; i++) {\n if(i%3 != 0 && i%5 != 0) {\n res += i;\n }\n }\n System.out.println(res);\n sol.find();\n }",
"Solution sol = new Solution();",
"sol",
"new Solution()",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long res = 0;",
"res",
"0",
"for(int i=1; i<=n; i++) {\n if(i%3 != 0 && i%5 != 0) {\n res += 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 res += i;\n }\n }",
"{\n if(i%3 != 0 && i%5 != 0) {\n res += i;\n }\n }",
"if(i%3 != 0 && i%5 != 0) {\n res += 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 res += i;\n }",
"res += i",
"res",
"i",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"sol.find()",
"sol.find",
"sol",
"String[] args",
"args",
"static class Solution {\n public void find() {\n\n }\n\n }",
"Solution",
"public void find() {\n\n }",
"find",
"{\n\n }",
"public class Main {\n static class Solution {\n public void find() {\n\n }\n\n }\n\n public static void main(String[] args) {\n Solution sol = new Solution();\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long res = 0;\n for(int i=1; i<=n; i++) {\n if(i%3 != 0 && i%5 != 0) {\n res += i;\n }\n }\n System.out.println(res);\n sol.find();\n }\n}",
"public class Main {\n static class Solution {\n public void find() {\n\n }\n\n }\n\n public static void main(String[] args) {\n Solution sol = new Solution();\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long res = 0;\n for(int i=1; i<=n; i++) {\n if(i%3 != 0 && i%5 != 0) {\n res += i;\n }\n }\n System.out.println(res);\n sol.find();\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static class Solution {
public void find() {
}
}
public static void main(String[] args) {
Solution sol = new Solution();
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long res = 0;
for(int i=1; i<=n; i++) {
if(i%3 != 0 && i%5 != 0) {
res += i;
}
}
System.out.println(res);
sol.find();
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.