node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
17,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
63,
8
],
[
63,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
11,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
11,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
9,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] |
[
"import java.util.Scanner;\nimport java.util.HashSet;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint N, cnt = 0;\n\t\tString hin;\n\t\tScanner scan = new Scanner(System.in);\n\t\tN= scan.nextInt();\n\t\t\n\t\tHashSet name = new HashSet();\n\t\t\n\t\tfor(int i = 1; i <= N; i++) {\n\t\t\thin = scan.next();\n\t\t\tname.add(hin);\n\t\t}\n\t\tSystem.out.println(name.size());\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint N, cnt = 0;\n\t\tString hin;\n\t\tScanner scan = new Scanner(System.in);\n\t\tN= scan.nextInt();\n\t\t\n\t\tHashSet name = new HashSet();\n\t\t\n\t\tfor(int i = 1; i <= N; i++) {\n\t\t\thin = scan.next();\n\t\t\tname.add(hin);\n\t\t}\n\t\tSystem.out.println(name.size());\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tint N, cnt = 0;\n\t\tString hin;\n\t\tScanner scan = new Scanner(System.in);\n\t\tN= scan.nextInt();\n\t\t\n\t\tHashSet name = new HashSet();\n\t\t\n\t\tfor(int i = 1; i <= N; i++) {\n\t\t\thin = scan.next();\n\t\t\tname.add(hin);\n\t\t}\n\t\tSystem.out.println(name.size());\n\t}",
"main",
"{\n\t\tint N, cnt = 0;\n\t\tString hin;\n\t\tScanner scan = new Scanner(System.in);\n\t\tN= scan.nextInt();\n\t\t\n\t\tHashSet name = new HashSet();\n\t\t\n\t\tfor(int i = 1; i <= N; i++) {\n\t\t\thin = scan.next();\n\t\t\tname.add(hin);\n\t\t}\n\t\tSystem.out.println(name.size());\n\t}",
"int N",
"N",
"cnt = 0;",
"cnt",
"0",
"String hin;",
"hin",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"N= scan.nextInt()",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"HashSet name = new HashSet();",
"name",
"new HashSet()",
"for(int i = 1; i <= N; i++) {\n\t\t\thin = scan.next();\n\t\t\tname.add(hin);\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\thin = scan.next();\n\t\t\tname.add(hin);\n\t\t}",
"{\n\t\t\thin = scan.next();\n\t\t\tname.add(hin);\n\t\t}",
"hin = scan.next()",
"hin",
"scan.next()",
"scan.next",
"scan",
"name.add(hin)",
"name.add",
"name",
"hin",
"System.out.println(name.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"name.size()",
"name.size",
"name",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint N, cnt = 0;\n\t\tString hin;\n\t\tScanner scan = new Scanner(System.in);\n\t\tN= scan.nextInt();\n\t\t\n\t\tHashSet name = new HashSet();\n\t\t\n\t\tfor(int i = 1; i <= N; i++) {\n\t\t\thin = scan.next();\n\t\t\tname.add(hin);\n\t\t}\n\t\tSystem.out.println(name.size());\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint N, cnt = 0;\n\t\tString hin;\n\t\tScanner scan = new Scanner(System.in);\n\t\tN= scan.nextInt();\n\t\t\n\t\tHashSet name = new HashSet();\n\t\t\n\t\tfor(int i = 1; i <= N; i++) {\n\t\t\thin = scan.next();\n\t\t\tname.add(hin);\n\t\t}\n\t\tSystem.out.println(name.size());\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
import java.util.HashSet;
public class Main {
public static void main(String[] args) {
int N, cnt = 0;
String hin;
Scanner scan = new Scanner(System.in);
N= scan.nextInt();
HashSet name = new HashSet();
for(int i = 1; i <= N; i++) {
hin = scan.next();
name.add(hin);
}
System.out.println(name.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
23,
13,
23,
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,
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
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
34,
35
],
[
34,
36
],
[
0,
37
],
[
37,
38
],
[
37,
39
],
[
0,
40
],
[
40,
41
],
[
40,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
],
[
0,
64
],
[
199,
65
],
[
199,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
68,
74
],
[
74,
75
],
[
74,
76
],
[
68,
78
],
[
78,
79
],
[
78,
80
],
[
68,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
81,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
98,
99
],
[
68,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
104,
105
],
[
66,
106
],
[
106,
107
],
[
66,
108
],
[
108,
109
],
[
66,
110
],
[
110,
111
],
[
199,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
114,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
114,
125
],
[
125,
126
],
[
125,
127
],
[
114,
128
],
[
128,
129
],
[
128,
130
],
[
114,
131
],
[
131,
132
],
[
131,
133
],
[
114,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
134,
138
],
[
134,
139
],
[
114,
140
],
[
140,
141
],
[
141,
142
],
[
112,
143
],
[
143,
144
],
[
199,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
145,
149
],
[
149,
150
],
[
145,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
157,
158
],
[
157,
159
],
[
151,
160
],
[
160,
161
],
[
145,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
165,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
175,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
164,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
145,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
193,
196
],
[
196,
197
],
[
0,
198
],
[
198,
199
],
[
198,
200
]
] |
[
"import java.io.InputStream;\nimport java.io.OutputStream;\nimport java.util.*;\nimport java.io.PrintWriter;\nimport java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\nimport 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\npublic class Main{\n //WRWWRWRR wwwrrrrwwwwrrr\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n String[] ss = new String[n];\n Set<String> res = new HashSet<>();\n for(int i=0;i<n;i++){\n res.add(in.next());\n }\n out.println(res.size());\n\n }\n //\tpublic static void main(String[] args){\n//\t\tScanner scanner = new Scanner(new InputStreamReader(System.in));\n//\t\tint n = Integer.parseInt(scanner.nextLine());\n//\t\tString s = scanner.nextLine();\n//\t\tLinkedList<Integer> q = new LinkedList<>();\n//\t\tfor(int i=0;i<n;i++){\n//\t\t\tif(s.charAt(i)=='W'){\n//\t\t\t\tq.add(i);\n//\t\t\t}\n//\t\t}\n//\t\tint res = 0;\n//\t\tfor(int i=n-1;i>=0;i--){\n//\t\t\tif(q.size()==0) break;\n//\t\t\tif(s.charAt(i)=='R'){\n//\t\t\t\tint v = q.poll();\n//\t\t\t\tif(v>i) break;\n//\t\t\t\tres++;\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println(res);\n//\n//\t}\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 Main solver = new Main();\n// int num = in.nextInt();\n// while(num-->0){\n// solver.solve(1, in, out);\n// }\n solver.solve(1, in, out);\n out.close();\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}",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.util.*;",
"util.*",
"java",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.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 //WRWWRWRR wwwrrrrwwwwrrr\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n String[] ss = new String[n];\n Set<String> res = new HashSet<>();\n for(int i=0;i<n;i++){\n res.add(in.next());\n }\n out.println(res.size());\n\n }\n //\tpublic static void main(String[] args){\n//\t\tScanner scanner = new Scanner(new InputStreamReader(System.in));\n//\t\tint n = Integer.parseInt(scanner.nextLine());\n//\t\tString s = scanner.nextLine();\n//\t\tLinkedList<Integer> q = new LinkedList<>();\n//\t\tfor(int i=0;i<n;i++){\n//\t\t\tif(s.charAt(i)=='W'){\n//\t\t\t\tq.add(i);\n//\t\t\t}\n//\t\t}\n//\t\tint res = 0;\n//\t\tfor(int i=n-1;i>=0;i--){\n//\t\t\tif(q.size()==0) break;\n//\t\t\tif(s.charAt(i)=='R'){\n//\t\t\t\tint v = q.poll();\n//\t\t\t\tif(v>i) break;\n//\t\t\t\tres++;\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println(res);\n//\n//\t}\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 Main solver = new Main();\n// int num = in.nextInt();\n// while(num-->0){\n// solver.solve(1, in, out);\n// }\n solver.solve(1, in, out);\n out.close();\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",
"//WRWWRWRR wwwrrrrwwwwrrr\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n String[] ss = new String[n];\n Set<String> res = new HashSet<>();\n for(int i=0;i<n;i++){\n res.add(in.next());\n }\n out.println(res.size());\n\n }",
"solve",
"{\n int n = in.nextInt();\n String[] ss = new String[n];\n Set<String> res = new HashSet<>();\n for(int i=0;i<n;i++){\n res.add(in.next());\n }\n out.println(res.size());\n\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"String[] ss = new String[n];",
"ss",
"new String[n]",
"n",
"Set<String> res = new HashSet<>();",
"res",
"new HashSet<>()",
"for(int i=0;i<n;i++){\n res.add(in.next());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res.add(in.next());\n }",
"{\n res.add(in.next());\n }",
"res.add(in.next())",
"res.add",
"res",
"in.next()",
"in.next",
"in",
"out.println(res.size())",
"out.println",
"out",
"res.size()",
"res.size",
"res",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"//\tpublic static void main(String[] args){\n//\t\tScanner scanner = new Scanner(new InputStreamReader(System.in));\n//\t\tint n = Integer.parseInt(scanner.nextLine());\n//\t\tString s = scanner.nextLine();\n//\t\tLinkedList<Integer> q = new LinkedList<>();\n//\t\tfor(int i=0;i<n;i++){\n//\t\t\tif(s.charAt(i)=='W'){\n//\t\t\t\tq.add(i);\n//\t\t\t}\n//\t\t}\n//\t\tint res = 0;\n//\t\tfor(int i=n-1;i>=0;i--){\n//\t\t\tif(q.size()==0) break;\n//\t\t\tif(s.charAt(i)=='R'){\n//\t\t\t\tint v = q.poll();\n//\t\t\t\tif(v>i) break;\n//\t\t\t\tres++;\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println(res);\n//\n//\t}\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 Main solver = new Main();\n// int num = in.nextInt();\n// while(num-->0){\n// solver.solve(1, in, out);\n// }\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 Main solver = new Main();\n// int num = in.nextInt();\n// while(num-->0){\n// solver.solve(1, in, out);\n// }\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)",
"Main solver = new Main();",
"solver",
"new Main()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }",
"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 //WRWWRWRR wwwrrrrwwwwrrr\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n String[] ss = new String[n];\n Set<String> res = new HashSet<>();\n for(int i=0;i<n;i++){\n res.add(in.next());\n }\n out.println(res.size());\n\n }\n //\tpublic static void main(String[] args){\n//\t\tScanner scanner = new Scanner(new InputStreamReader(System.in));\n//\t\tint n = Integer.parseInt(scanner.nextLine());\n//\t\tString s = scanner.nextLine();\n//\t\tLinkedList<Integer> q = new LinkedList<>();\n//\t\tfor(int i=0;i<n;i++){\n//\t\t\tif(s.charAt(i)=='W'){\n//\t\t\t\tq.add(i);\n//\t\t\t}\n//\t\t}\n//\t\tint res = 0;\n//\t\tfor(int i=n-1;i>=0;i--){\n//\t\t\tif(q.size()==0) break;\n//\t\t\tif(s.charAt(i)=='R'){\n//\t\t\t\tint v = q.poll();\n//\t\t\t\tif(v>i) break;\n//\t\t\t\tres++;\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println(res);\n//\n//\t}\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 Main solver = new Main();\n// int num = in.nextInt();\n// while(num-->0){\n// solver.solve(1, in, out);\n// }\n solver.solve(1, in, out);\n out.close();\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 //WRWWRWRR wwwrrrrwwwwrrr\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n String[] ss = new String[n];\n Set<String> res = new HashSet<>();\n for(int i=0;i<n;i++){\n res.add(in.next());\n }\n out.println(res.size());\n\n }\n //\tpublic static void main(String[] args){\n//\t\tScanner scanner = new Scanner(new InputStreamReader(System.in));\n//\t\tint n = Integer.parseInt(scanner.nextLine());\n//\t\tString s = scanner.nextLine();\n//\t\tLinkedList<Integer> q = new LinkedList<>();\n//\t\tfor(int i=0;i<n;i++){\n//\t\t\tif(s.charAt(i)=='W'){\n//\t\t\t\tq.add(i);\n//\t\t\t}\n//\t\t}\n//\t\tint res = 0;\n//\t\tfor(int i=n-1;i>=0;i--){\n//\t\t\tif(q.size()==0) break;\n//\t\t\tif(s.charAt(i)=='R'){\n//\t\t\t\tint v = q.poll();\n//\t\t\t\tif(v>i) break;\n//\t\t\t\tres++;\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println(res);\n//\n//\t}\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 Main solver = new Main();\n// int num = in.nextInt();\n// while(num-->0){\n// solver.solve(1, in, out);\n// }\n solver.solve(1, in, out);\n out.close();\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.InputStream;
import java.io.OutputStream;
import java.util.*;
import java.io.PrintWriter;
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
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;
public class Main{
//WRWWRWRR wwwrrrrwwwwrrr
public void solve(int testNumber, InputReader in, PrintWriter out) {
int n = in.nextInt();
String[] ss = new String[n];
Set<String> res = new HashSet<>();
for(int i=0;i<n;i++){
res.add(in.next());
}
out.println(res.size());
}
// public static void main(String[] args){
// Scanner scanner = new Scanner(new InputStreamReader(System.in));
// int n = Integer.parseInt(scanner.nextLine());
// String s = scanner.nextLine();
// LinkedList<Integer> q = new LinkedList<>();
// for(int i=0;i<n;i++){
// if(s.charAt(i)=='W'){
// q.add(i);
// }
// }
// int res = 0;
// for(int i=n-1;i>=0;i--){
// if(q.size()==0) break;
// if(s.charAt(i)=='R'){
// int v = q.poll();
// if(v>i) break;
// res++;
// }
// }
// System.out.println(res);
//
// }
public static void main(String[] args){
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
Main solver = new Main();
// int num = in.nextInt();
// while(num-->0){
// solver.solve(1, in, out);
// }
solver.solve(1, in, out);
out.close();
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
42,
2,
40,
13,
17,
30,
4,
18,
13,
4,
13,
4,
13,
4,
18,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
17,
14,
40,
13,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
17,
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,
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,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
2,
13,
17,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
4,
18,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
2,
13,
17,
17,
30,
41,
13,
4,
13,
13,
2,
13,
17,
29,
2,
2,
13,
13,
13,
30,
29,
2,
2,
13,
4,
13,
13,
2,
13,
17,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
2,
13,
13,
29,
4,
13,
13,
2,
13,
13,
41,
13,
17,
41,
13,
17,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
2,
13,
17,
0,
13,
13,
41,
13,
2,
2,
13,
4,
13,
13,
2,
13,
17,
13,
29,
13,
23,
13,
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
],
[
494,
11
],
[
494,
12
],
[
12,
13
],
[
494,
14
],
[
14,
15
],
[
494,
16
],
[
16,
17
],
[
16,
18
],
[
494,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
21,
23
],
[
494,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
26,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
494,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
52,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
52,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
52,
73
],
[
73,
74
],
[
73,
75
],
[
52,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
76,
81
],
[
81,
82
],
[
52,
83
],
[
83,
84
],
[
84,
85
],
[
52,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
95,
99
],
[
94,
100
],
[
52,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
50,
106
],
[
106,
107
],
[
494,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
108,
115
],
[
115,
116
],
[
494,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
117,
124
],
[
124,
125
],
[
494,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
128,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
126,
138
],
[
138,
139
],
[
494,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
494,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
494,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
494,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
494,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
172,
177
],
[
177,
178
],
[
177,
179
],
[
177,
180
],
[
180,
181
],
[
180,
182
],
[
168,
183
],
[
183,
184
],
[
168,
185
],
[
185,
186
],
[
494,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
196,
199
],
[
199,
200
],
[
199,
201
],
[
187,
202
],
[
202,
203
],
[
187,
204
],
[
204,
205
],
[
494,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
210,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
221,
223
],
[
206,
224
],
[
224,
225
],
[
494,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
236,
238
],
[
232,
239
],
[
239,
240
],
[
239,
241
],
[
232,
242
],
[
242,
243
],
[
243,
244
],
[
232,
245
],
[
246,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
250,
251
],
[
249,
252
],
[
252,
253
],
[
252,
254
],
[
246,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
257,
259
],
[
246,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
260,
264
],
[
264,
265
],
[
264,
266
],
[
246,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
267,
271
],
[
228,
272
],
[
272,
273
],
[
273,
274
],
[
272,
275
],
[
226,
276
],
[
276,
277
],
[
226,
278
],
[
278,
279
],
[
494,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
283,
287
],
[
287,
288
],
[
282,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
291,
293
],
[
290,
294
],
[
289,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
298,
300
],
[
298,
301
],
[
301,
302
],
[
301,
303
],
[
295,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
305,
309
],
[
289,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
315,
317
],
[
315,
318
],
[
318,
319
],
[
318,
320
],
[
312,
321
],
[
280,
322
],
[
322,
323
],
[
280,
324
],
[
324,
325
],
[
494,
326
],
[
326,
327
],
[
326,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
332,
334
],
[
329,
335
],
[
335,
336
],
[
336,
337
],
[
336,
338
],
[
336,
339
],
[
339,
340
],
[
339,
341
],
[
328,
342
],
[
342,
343
],
[
342,
344
],
[
328,
345
],
[
345,
346
],
[
345,
347
],
[
328,
348
],
[
348,
349
],
[
328,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
350,
355
],
[
355,
356
],
[
355,
357
],
[
350,
358
],
[
358,
359
],
[
359,
360
],
[
350,
361
],
[
362,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
365,
367
],
[
362,
368
],
[
368,
369
],
[
368,
370
],
[
362,
371
],
[
371,
372
],
[
371,
373
],
[
373,
374
],
[
373,
375
],
[
362,
376
],
[
376,
377
],
[
376,
378
],
[
328,
379
],
[
379,
380
],
[
379,
381
],
[
381,
382
],
[
382,
383
],
[
382,
384
],
[
384,
385
],
[
384,
386
],
[
384,
387
],
[
387,
388
],
[
387,
389
],
[
381,
390
],
[
328,
391
],
[
391,
392
],
[
326,
393
],
[
393,
394
],
[
326,
395
],
[
395,
396
],
[
494,
397
],
[
397,
398
],
[
397,
399
],
[
399,
400
],
[
397,
401
],
[
401,
402
],
[
397,
403
],
[
403,
404
],
[
403,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
397,
409
],
[
409,
410
],
[
409,
411
],
[
411,
412
],
[
412,
413
],
[
412,
414
],
[
409,
415
],
[
415,
416
],
[
397,
417
],
[
417,
418
],
[
417,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
422,
423
],
[
422,
424
],
[
421,
425
],
[
425,
426
],
[
426,
427
],
[
427,
428
],
[
420,
429
],
[
429,
430
],
[
430,
431
],
[
431,
432
],
[
431,
433
],
[
433,
434
],
[
434,
435
],
[
435,
436
],
[
430,
437
],
[
437,
438
],
[
438,
439
],
[
438,
440
],
[
419,
441
],
[
441,
442
],
[
442,
443
],
[
443,
444
],
[
397,
445
],
[
445,
446
],
[
445,
447
],
[
447,
448
],
[
448,
449
],
[
449,
450
],
[
450,
451
],
[
449,
452
],
[
452,
453
],
[
397,
454
],
[
454,
455
],
[
454,
456
],
[
456,
457
],
[
457,
458
],
[
458,
459
],
[
459,
460
],
[
458,
461
],
[
461,
462
],
[
397,
463
],
[
463,
464
],
[
463,
465
],
[
465,
466
],
[
466,
467
],
[
467,
468
],
[
468,
469
],
[
467,
470
],
[
470,
471
],
[
397,
472
],
[
472,
473
],
[
472,
474
],
[
474,
475
],
[
475,
476
],
[
475,
477
],
[
474,
478
],
[
478,
479
],
[
479,
480
],
[
479,
481
],
[
481,
482
],
[
482,
483
],
[
483,
484
],
[
478,
485
],
[
485,
486
],
[
486,
487
],
[
486,
488
],
[
488,
489
],
[
489,
490
],
[
474,
491
],
[
491,
492
],
[
0,
493
],
[
493,
494
],
[
493,
495
]
] |
[
" \nimport java.util.*;import java.io.*;import java.math.*;\n\npublic class Main\n{\n\n public static void process()throws IOException\n {\n int n=ni();\n HashSet<String> set = new HashSet<String>();\n while(n-- >0){\n set.add(nln());\n }\n pn(set.size());\n }\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 int t=1;\n //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 \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 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 static long mod=(long)1e9+7l;\n\n static void r_sort(int arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n int temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }\n\n static long mpow(long x, long n) {\n if(n == 0)\n return 1;\n if(n % 2 == 0) {\n long root = mpow(x, n / 2);\n return root * root % mod;\n }else {\n return x * mpow(x, n - 1) % mod;\n }\n }\n \n static long mcomb(long a, long b) {\n if(b > a - b)\n return mcomb(a, a - b);\n long m = 1;\n long d = 1;\n long i;\n for(i = 0; i < b; i++) {\n m *= (a - i);\n m %= mod;\n d *= (i + 1);\n d %= mod;\n }\n long ans = m * mpow(d, mod - 2) % mod;\n return ans;\n }\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}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main\n{\n\n public static void process()throws IOException\n {\n int n=ni();\n HashSet<String> set = new HashSet<String>();\n while(n-- >0){\n set.add(nln());\n }\n pn(set.size());\n }\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 int t=1;\n //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 \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 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 static long mod=(long)1e9+7l;\n\n static void r_sort(int arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n int temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }\n\n static long mpow(long x, long n) {\n if(n == 0)\n return 1;\n if(n % 2 == 0) {\n long root = mpow(x, n / 2);\n return root * root % mod;\n }else {\n return x * mpow(x, n - 1) % mod;\n }\n }\n \n static long mcomb(long a, long b) {\n if(b > a - b)\n return mcomb(a, a - b);\n long m = 1;\n long d = 1;\n long i;\n for(i = 0; i < b; i++) {\n m *= (a - i);\n m %= mod;\n d *= (i + 1);\n d %= mod;\n }\n long ans = m * mpow(d, mod - 2) % mod;\n return ans;\n }\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}",
"Main",
"static AnotherReader sc;",
"sc",
"static PrintWriter out;",
"out",
"static boolean multipleTC=false;",
"multipleTC",
"false",
"static long mod=(long)1e9+7l;",
"mod",
"(long)1e9+7l",
"(long)1e9",
"7l",
"public static void process()throws IOException\n {\n int n=ni();\n HashSet<String> set = new HashSet<String>();\n while(n-- >0){\n set.add(nln());\n }\n pn(set.size());\n }",
"process",
"{\n int n=ni();\n HashSet<String> set = new HashSet<String>();\n while(n-- >0){\n set.add(nln());\n }\n pn(set.size());\n }",
"int n=ni();",
"n",
"ni()",
"ni",
"HashSet<String> set = new HashSet<String>();",
"set",
"new HashSet<String>()",
"while(n-- >0){\n set.add(nln());\n }",
"n-- >0",
"n--",
"n",
"0",
"{\n set.add(nln());\n }",
"set.add(nln())",
"set.add",
"set",
"nln()",
"nln",
"pn(set.size())",
"pn",
"set.size()",
"set.size",
"set",
"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 int t=1;\n //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 int t=1;\n //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",
"int t=1;",
"t",
"1",
"while(t-->0)\n process();",
"t-->0",
"t--",
"t",
"0",
"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 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 void r_sort(int arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n int temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }",
"r_sort",
"{\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n int temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }",
"Random r = new Random();",
"r",
"new Random()",
"for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n int temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n }",
"int i = n-1;",
"int i = n-1;",
"i",
"n-1",
"n",
"1",
"i > 0",
"i",
"0",
"i--",
"i--",
"i",
"{ \n int j = r.nextInt(i+1); \n \n int temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n }",
"{ \n int j = r.nextInt(i+1); \n \n int temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n }",
"int j = r.nextInt(i+1);",
"j",
"r.nextInt(i+1)",
"r.nextInt",
"r",
"i+1",
"i",
"1",
"int temp = arr[i];",
"temp",
"arr[i]",
"arr",
"i",
"arr[i] = arr[j]",
"arr[i]",
"arr",
"i",
"arr[j]",
"arr",
"j",
"arr[j] = temp",
"arr[j]",
"arr",
"j",
"temp",
"Arrays.sort(arr)",
"Arrays.sort",
"Arrays",
"arr",
"int arr[]",
"arr",
"int n",
"n",
"static long mpow(long x, long n) {\n if(n == 0)\n return 1;\n if(n % 2 == 0) {\n long root = mpow(x, n / 2);\n return root * root % mod;\n }else {\n return x * mpow(x, n - 1) % mod;\n }\n }",
"mpow",
"{\n if(n == 0)\n return 1;\n if(n % 2 == 0) {\n long root = mpow(x, n / 2);\n return root * root % mod;\n }else {\n return x * mpow(x, n - 1) % mod;\n }\n }",
"if(n == 0)\n return 1;",
"n == 0",
"n",
"0",
"return 1;",
"1",
"if(n % 2 == 0) {\n long root = mpow(x, n / 2);\n return root * root % mod;\n }else {\n return x * mpow(x, n - 1) % mod;\n }",
"n % 2 == 0",
"n % 2",
"n",
"2",
"0",
"{\n long root = mpow(x, n / 2);\n return root * root % mod;\n }",
"long root = mpow(x, n / 2);",
"root",
"mpow(x, n / 2)",
"mpow",
"x",
"n / 2",
"n",
"2",
"return root * root % mod;",
"root * root % mod",
"root * root",
"root",
"root",
"mod",
"{\n return x * mpow(x, n - 1) % mod;\n }",
"return x * mpow(x, n - 1) % mod;",
"x * mpow(x, n - 1) % mod",
"x * mpow(x, n - 1)",
"x",
"mpow(x, n - 1)",
"mpow",
"x",
"n - 1",
"n",
"1",
"mod",
"long x",
"x",
"long n",
"n",
"static long mcomb(long a, long b) {\n if(b > a - b)\n return mcomb(a, a - b);\n long m = 1;\n long d = 1;\n long i;\n for(i = 0; i < b; i++) {\n m *= (a - i);\n m %= mod;\n d *= (i + 1);\n d %= mod;\n }\n long ans = m * mpow(d, mod - 2) % mod;\n return ans;\n }",
"mcomb",
"{\n if(b > a - b)\n return mcomb(a, a - b);\n long m = 1;\n long d = 1;\n long i;\n for(i = 0; i < b; i++) {\n m *= (a - i);\n m %= mod;\n d *= (i + 1);\n d %= mod;\n }\n long ans = m * mpow(d, mod - 2) % mod;\n return ans;\n }",
"if(b > a - b)\n return mcomb(a, a - b);",
"b > a - b",
"b",
"a - b",
"a",
"b",
"return mcomb(a, a - b);",
"mcomb(a, a - b)",
"mcomb",
"a",
"a - b",
"a",
"b",
"long m = 1;",
"m",
"1",
"long d = 1;",
"d",
"1",
"long i;",
"i",
"for(i = 0; i < b; i++) {\n m *= (a - i);\n m %= mod;\n d *= (i + 1);\n d %= mod;\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < b",
"i",
"b",
"i++",
"i++",
"i",
"{\n m *= (a - i);\n m %= mod;\n d *= (i + 1);\n d %= mod;\n }",
"{\n m *= (a - i);\n m %= mod;\n d *= (i + 1);\n d %= mod;\n }",
"m *= (a - i)",
"m",
"(a - i)",
"a",
"i",
"m %= mod",
"m",
"mod",
"d *= (i + 1)",
"d",
"(i + 1)",
"i",
"1",
"d %= mod",
"d",
"mod",
"long ans = m * mpow(d, mod - 2) % mod;",
"ans",
"m * mpow(d, mod - 2) % mod",
"m * mpow(d, mod - 2)",
"m",
"mpow(d, mod - 2)",
"mpow",
"d",
"mod - 2",
"mod",
"2",
"mod",
"return ans;",
"ans",
"long a",
"a",
"long b",
"b",
"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\n public static void process()throws IOException\n {\n int n=ni();\n HashSet<String> set = new HashSet<String>();\n while(n-- >0){\n set.add(nln());\n }\n pn(set.size());\n }\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 int t=1;\n //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 \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 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 static long mod=(long)1e9+7l;\n\n static void r_sort(int arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n int temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }\n\n static long mpow(long x, long n) {\n if(n == 0)\n return 1;\n if(n % 2 == 0) {\n long root = mpow(x, n / 2);\n return root * root % mod;\n }else {\n return x * mpow(x, n - 1) % mod;\n }\n }\n \n static long mcomb(long a, long b) {\n if(b > a - b)\n return mcomb(a, a - b);\n long m = 1;\n long d = 1;\n long i;\n for(i = 0; i < b; i++) {\n m *= (a - i);\n m %= mod;\n d *= (i + 1);\n d %= mod;\n }\n long ans = m * mpow(d, mod - 2) % mod;\n return ans;\n }\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}",
"public class Main\n{\n\n public static void process()throws IOException\n {\n int n=ni();\n HashSet<String> set = new HashSet<String>();\n while(n-- >0){\n set.add(nln());\n }\n pn(set.size());\n }\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 int t=1;\n //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 \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 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 static long mod=(long)1e9+7l;\n\n static void r_sort(int arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n int temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }\n\n static long mpow(long x, long n) {\n if(n == 0)\n return 1;\n if(n % 2 == 0) {\n long root = mpow(x, n / 2);\n return root * root % mod;\n }else {\n return x * mpow(x, n - 1) % mod;\n }\n }\n \n static long mcomb(long a, long b) {\n if(b > a - b)\n return mcomb(a, a - b);\n long m = 1;\n long d = 1;\n long i;\n for(i = 0; i < b; i++) {\n m *= (a - i);\n m %= mod;\n d *= (i + 1);\n d %= mod;\n }\n long ans = m * mpow(d, mod - 2) % mod;\n return ans;\n }\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}",
"Main"
] |
import java.util.*;import java.io.*;import java.math.*;
public class Main
{
public static void process()throws IOException
{
int n=ni();
HashSet<String> set = new HashSet<String>();
while(n-- >0){
set.add(nln());
}
pn(set.size());
}
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=1;
//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 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 long mod=(long)1e9+7l;
static void r_sort(int arr[],int n){
Random r = new Random();
for (int i = n-1; i > 0; i--){
int j = r.nextInt(i+1);
int temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
Arrays.sort(arr);
}
static long mpow(long x, long n) {
if(n == 0)
return 1;
if(n % 2 == 0) {
long root = mpow(x, n / 2);
return root * root % mod;
}else {
return x * mpow(x, n - 1) % mod;
}
}
static long mcomb(long a, long b) {
if(b > a - b)
return mcomb(a, a - b);
long m = 1;
long d = 1;
long i;
for(i = 0; i < b; i++) {
m *= (a - i);
m %= mod;
d *= (i + 1);
d %= mod;
}
long ans = m * mpow(d, mod - 2) % mod;
return ans;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////
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,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
18,
13,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
17,
4,
18,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
40,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
80,
14
],
[
80,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
17,
19
],
[
80,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
22,
31
],
[
31,
32
],
[
31,
33
],
[
22,
34
],
[
34,
35
],
[
34,
36
],
[
22,
37
],
[
37,
38
],
[
38,
39
],
[
22,
40
],
[
40,
41
],
[
22,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
71
],
[
71,
72
],
[
22,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
20,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] |
[
"import java.io.IOException;\nimport java.io.PrintStream;\nimport java.util.HashSet;\nimport java.util.Scanner;\n\npublic class Main {\n\tstatic PrintStream o = System.out;\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tHashSet<String> get = new HashSet<String>(n);\n\t\tint res = 0;\n\t\tsc.nextLine();\n\t\tString one;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tone = sc.nextLine();\n\t\t\tif (!get.contains(one)) {\n\t\t\t\tget.add(one);\n\t\t\t\tres++;\n\t\t\t}\n\t\t}\n\t\to.println(res);\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.PrintStream;",
"PrintStream",
"java.io",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic PrintStream o = System.out;\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tHashSet<String> get = new HashSet<String>(n);\n\t\tint res = 0;\n\t\tsc.nextLine();\n\t\tString one;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tone = sc.nextLine();\n\t\t\tif (!get.contains(one)) {\n\t\t\t\tget.add(one);\n\t\t\t\tres++;\n\t\t\t}\n\t\t}\n\t\to.println(res);\n\t}\n}",
"Main",
"static PrintStream o = System.out;",
"o",
"System.out",
"System",
"System.out",
"public static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tHashSet<String> get = new HashSet<String>(n);\n\t\tint res = 0;\n\t\tsc.nextLine();\n\t\tString one;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tone = sc.nextLine();\n\t\t\tif (!get.contains(one)) {\n\t\t\t\tget.add(one);\n\t\t\t\tres++;\n\t\t\t}\n\t\t}\n\t\to.println(res);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tHashSet<String> get = new HashSet<String>(n);\n\t\tint res = 0;\n\t\tsc.nextLine();\n\t\tString one;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tone = sc.nextLine();\n\t\t\tif (!get.contains(one)) {\n\t\t\t\tget.add(one);\n\t\t\t\tres++;\n\t\t\t}\n\t\t}\n\t\to.println(res);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"HashSet<String> get = new HashSet<String>(n);",
"get",
"new HashSet<String>(n)",
"int res = 0;",
"res",
"0",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String one;",
"one",
"for (int i = 0; i < n; i++) {\n\t\t\tone = sc.nextLine();\n\t\t\tif (!get.contains(one)) {\n\t\t\t\tget.add(one);\n\t\t\t\tres++;\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\tone = sc.nextLine();\n\t\t\tif (!get.contains(one)) {\n\t\t\t\tget.add(one);\n\t\t\t\tres++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tone = sc.nextLine();\n\t\t\tif (!get.contains(one)) {\n\t\t\t\tget.add(one);\n\t\t\t\tres++;\n\t\t\t}\n\t\t}",
"one = sc.nextLine()",
"one",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (!get.contains(one)) {\n\t\t\t\tget.add(one);\n\t\t\t\tres++;\n\t\t\t}",
"!get.contains(one)",
"get.contains(one)",
"get.contains",
"get",
"one",
"{\n\t\t\t\tget.add(one);\n\t\t\t\tres++;\n\t\t\t}",
"get.add(one)",
"get.add",
"get",
"one",
"res++",
"res",
"o.println(res)",
"o.println",
"o",
"res",
"String[] args",
"args",
"public class Main {\n\tstatic PrintStream o = System.out;\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tHashSet<String> get = new HashSet<String>(n);\n\t\tint res = 0;\n\t\tsc.nextLine();\n\t\tString one;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tone = sc.nextLine();\n\t\t\tif (!get.contains(one)) {\n\t\t\t\tget.add(one);\n\t\t\t\tres++;\n\t\t\t}\n\t\t}\n\t\to.println(res);\n\t}\n}",
"public class Main {\n\tstatic PrintStream o = System.out;\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tHashSet<String> get = new HashSet<String>(n);\n\t\tint res = 0;\n\t\tsc.nextLine();\n\t\tString one;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tone = sc.nextLine();\n\t\t\tif (!get.contains(one)) {\n\t\t\t\tget.add(one);\n\t\t\t\tres++;\n\t\t\t}\n\t\t}\n\t\to.println(res);\n\t}\n}",
"Main"
] |
import java.io.IOException;
import java.io.PrintStream;
import java.util.HashSet;
import java.util.Scanner;
public class Main {
static PrintStream o = System.out;
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
HashSet<String> get = new HashSet<String>(n);
int res = 0;
sc.nextLine();
String one;
for (int i = 0; i < n; i++) {
one = sc.nextLine();
if (!get.contains(one)) {
get.add(one);
res++;
}
}
o.println(res);
}
}
|
[
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,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
63,
14
],
[
63,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
17,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
17,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
15,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.HashMap;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n HashMap map = new HashMap<String, Integer>();\n for (int i = 0; i < n; i++) {\n map.put(br.readLine(), i);\n }\n\n System.out.println(map.size());\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.HashMap;",
"HashMap",
"java.util",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n HashMap map = new HashMap<String, Integer>();\n for (int i = 0; i < n; i++) {\n map.put(br.readLine(), i);\n }\n\n System.out.println(map.size());\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n HashMap map = new HashMap<String, Integer>();\n for (int i = 0; i < n; i++) {\n map.put(br.readLine(), i);\n }\n\n System.out.println(map.size());\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n HashMap map = new HashMap<String, Integer>();\n for (int i = 0; i < n; i++) {\n map.put(br.readLine(), i);\n }\n\n System.out.println(map.size());\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",
"HashMap map = new HashMap<String, Integer>();",
"map",
"new HashMap<String, Integer>()",
"for (int i = 0; i < n; i++) {\n map.put(br.readLine(), i);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n map.put(br.readLine(), i);\n }",
"{\n map.put(br.readLine(), i);\n }",
"map.put(br.readLine(), i)",
"map.put",
"map",
"br.readLine()",
"br.readLine",
"br",
"i",
"System.out.println(map.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"map.size()",
"map.size",
"map",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n HashMap map = new HashMap<String, Integer>();\n for (int i = 0; i < n; i++) {\n map.put(br.readLine(), i);\n }\n\n System.out.println(map.size());\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n HashMap map = new HashMap<String, Integer>();\n for (int i = 0; i < n; i++) {\n map.put(br.readLine(), i);\n }\n\n System.out.println(map.size());\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
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());
HashMap map = new HashMap<String, Integer>();
for (int i = 0; i < n; i++) {
map.put(br.readLine(), i);
}
System.out.println(map.size());
}
}
|
[
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,
41,
13,
17,
42,
2,
13,
13,
30,
4,
18,
13,
4,
18,
13,
17,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
57,
11
],
[
57,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
33,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
14,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
52,
53
],
[
12,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner scan =new Scanner(System.in);\n\n int N =scan.nextInt();\n\n Map<String,Integer> map=new HashMap<>();\n\n int i=0;\n\n\nwhile(i<N){\n map.put(scan.next(),1);\n\n i=i+1;\n\n}\n\nSystem.out.println(map.size());\n\n\n }\n}",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n\n Scanner scan =new Scanner(System.in);\n\n int N =scan.nextInt();\n\n Map<String,Integer> map=new HashMap<>();\n\n int i=0;\n\n\nwhile(i<N){\n map.put(scan.next(),1);\n\n i=i+1;\n\n}\n\nSystem.out.println(map.size());\n\n\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner scan =new Scanner(System.in);\n\n int N =scan.nextInt();\n\n Map<String,Integer> map=new HashMap<>();\n\n int i=0;\n\n\nwhile(i<N){\n map.put(scan.next(),1);\n\n i=i+1;\n\n}\n\nSystem.out.println(map.size());\n\n\n }",
"main",
"{\n\n Scanner scan =new Scanner(System.in);\n\n int N =scan.nextInt();\n\n Map<String,Integer> map=new HashMap<>();\n\n int i=0;\n\n\nwhile(i<N){\n map.put(scan.next(),1);\n\n i=i+1;\n\n}\n\nSystem.out.println(map.size());\n\n\n }",
"Scanner scan =new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N =scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"Map<String,Integer> map=new HashMap<>();",
"map",
"new HashMap<>()",
"int i=0;",
"i",
"0",
"while(i<N){\n map.put(scan.next(),1);\n\n i=i+1;\n\n}",
"i<N",
"i",
"N",
"{\n map.put(scan.next(),1);\n\n i=i+1;\n\n}",
"map.put(scan.next(),1)",
"map.put",
"map",
"scan.next()",
"scan.next",
"scan",
"1",
"i=i+1",
"i",
"i+1",
"i",
"1",
"System.out.println(map.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"map.size()",
"map.size",
"map",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n Scanner scan =new Scanner(System.in);\n\n int N =scan.nextInt();\n\n Map<String,Integer> map=new HashMap<>();\n\n int i=0;\n\n\nwhile(i<N){\n map.put(scan.next(),1);\n\n i=i+1;\n\n}\n\nSystem.out.println(map.size());\n\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n Scanner scan =new Scanner(System.in);\n\n int N =scan.nextInt();\n\n Map<String,Integer> map=new HashMap<>();\n\n int i=0;\n\n\nwhile(i<N){\n map.put(scan.next(),1);\n\n i=i+1;\n\n}\n\nSystem.out.println(map.size());\n\n\n }\n}",
"Main"
] |
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan =new Scanner(System.in);
int N =scan.nextInt();
Map<String,Integer> map=new HashMap<>();
int i=0;
while(i<N){
map.put(scan.next(),1);
i=i+1;
}
System.out.println(map.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
6,
55
],
[
55,
56
]
] |
[
"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 Set<String> set = new HashSet<>();\n String blank = sc.nextLine();\n for (int i=0; i<n; i++) {\n String str = sc.nextLine();\n set.add(str);\n }\n System.out.println(set.size());\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 Set<String> set = new HashSet<>();\n String blank = sc.nextLine();\n for (int i=0; i<n; i++) {\n String str = sc.nextLine();\n set.add(str);\n }\n System.out.println(set.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n Set<String> set = new HashSet<>();\n String blank = sc.nextLine();\n for (int i=0; i<n; i++) {\n String str = sc.nextLine();\n set.add(str);\n }\n System.out.println(set.size());\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n Set<String> set = new HashSet<>();\n String blank = sc.nextLine();\n for (int i=0; i<n; i++) {\n String str = sc.nextLine();\n set.add(str);\n }\n System.out.println(set.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Set<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"String blank = sc.nextLine();",
"blank",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int i=0; i<n; i++) {\n String str = sc.nextLine();\n set.add(str);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String str = sc.nextLine();\n set.add(str);\n }",
"{\n String str = sc.nextLine();\n set.add(str);\n }",
"String str = sc.nextLine();",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"set.add(str)",
"set.add",
"set",
"str",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
Set<String> set = new HashSet<>();
String blank = sc.nextLine();
for (int i=0; i<n; i++) {
String str = sc.nextLine();
set.add(str);
}
System.out.println(set.size());
}
}
|
[
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,
4,
18,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
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
],
[
14,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
14,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
59,
60
],
[
12,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt(); \n\t\tSet<String> set = new HashSet<String>();\n\t\tscanner.nextLine();\n\t\tString s;\n\t\tfor(int i =0;i<n;i++) {\n\t\t\ts = scanner.nextLine();\n\t\t\tset.add(s);\n\t\t}\n\t\n\t\tSystem.out.println(set.size());\n\t}\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt(); \n\t\tSet<String> set = new HashSet<String>();\n\t\tscanner.nextLine();\n\t\tString s;\n\t\tfor(int i =0;i<n;i++) {\n\t\t\ts = scanner.nextLine();\n\t\t\tset.add(s);\n\t\t}\n\t\n\t\tSystem.out.println(set.size());\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt(); \n\t\tSet<String> set = new HashSet<String>();\n\t\tscanner.nextLine();\n\t\tString s;\n\t\tfor(int i =0;i<n;i++) {\n\t\t\ts = scanner.nextLine();\n\t\t\tset.add(s);\n\t\t}\n\t\n\t\tSystem.out.println(set.size());\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt(); \n\t\tSet<String> set = new HashSet<String>();\n\t\tscanner.nextLine();\n\t\tString s;\n\t\tfor(int i =0;i<n;i++) {\n\t\t\ts = scanner.nextLine();\n\t\t\tset.add(s);\n\t\t}\n\t\n\t\tSystem.out.println(set.size());\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"Set<String> set = new HashSet<String>();",
"set",
"new HashSet<String>()",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"String s;",
"s",
"for(int i =0;i<n;i++) {\n\t\t\ts = scanner.nextLine();\n\t\t\tset.add(s);\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ts = scanner.nextLine();\n\t\t\tset.add(s);\n\t\t}",
"{\n\t\t\ts = scanner.nextLine();\n\t\t\tset.add(s);\n\t\t}",
"s = scanner.nextLine()",
"s",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"set.add(s)",
"set.add",
"set",
"s",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt(); \n\t\tSet<String> set = new HashSet<String>();\n\t\tscanner.nextLine();\n\t\tString s;\n\t\tfor(int i =0;i<n;i++) {\n\t\t\ts = scanner.nextLine();\n\t\t\tset.add(s);\n\t\t}\n\t\n\t\tSystem.out.println(set.size());\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt(); \n\t\tSet<String> set = new HashSet<String>();\n\t\tscanner.nextLine();\n\t\tString s;\n\t\tfor(int i =0;i<n;i++) {\n\t\t\ts = scanner.nextLine();\n\t\t\tset.add(s);\n\t\t}\n\t\n\t\tSystem.out.println(set.size());\n\t}\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
Set<String> set = new HashSet<String>();
scanner.nextLine();
String s;
for(int i =0;i<n;i++) {
s = scanner.nextLine();
set.add(s);
}
System.out.println(set.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
21,
24
],
[
20,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
6,
43
],
[
43,
44
]
] |
[
"/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\n\n\nimport java.util.*;\n\n/**\n *\n * @author Admin\n */\nclass Main {\n \n \n public static void main(String args[])\n {\n Scanner s=new Scanner(System.in);\n \n int a=s.nextInt();\n \n TreeSet<String> set=new TreeSet<>();\n \n while(a-->0)\n {\n String str=s.next();\n \n set.add(str);\n }\n System.out.println(set.size());\n \n \n }\n \n \n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n \n \n public static void main(String args[])\n {\n Scanner s=new Scanner(System.in);\n \n int a=s.nextInt();\n \n TreeSet<String> set=new TreeSet<>();\n \n while(a-->0)\n {\n String str=s.next();\n \n set.add(str);\n }\n System.out.println(set.size());\n \n \n }\n \n \n}",
"Main",
"public static void main(String args[])\n {\n Scanner s=new Scanner(System.in);\n \n int a=s.nextInt();\n \n TreeSet<String> set=new TreeSet<>();\n \n while(a-->0)\n {\n String str=s.next();\n \n set.add(str);\n }\n System.out.println(set.size());\n \n \n }",
"main",
"{\n Scanner s=new Scanner(System.in);\n \n int a=s.nextInt();\n \n TreeSet<String> set=new TreeSet<>();\n \n while(a-->0)\n {\n String str=s.next();\n \n set.add(str);\n }\n System.out.println(set.size());\n \n \n }",
"Scanner s=new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int a=s.nextInt();",
"a",
"s.nextInt()",
"s.nextInt",
"s",
"TreeSet<String> set=new TreeSet<>();",
"set",
"new TreeSet<>()",
"while(a-->0)\n {\n String str=s.next();\n \n set.add(str);\n }",
"a-->0",
"a--",
"a",
"0",
"{\n String str=s.next();\n \n set.add(str);\n }",
"String str=s.next();",
"str",
"s.next()",
"s.next",
"s",
"set.add(str)",
"set.add",
"set",
"str",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"String args[]",
"args"
] |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.util.*;
/**
*
* @author Admin
*/
class Main {
public static void main(String args[])
{
Scanner s=new Scanner(System.in);
int a=s.nextInt();
TreeSet<String> set=new TreeSet<>();
while(a-->0)
{
String str=s.next();
set.add(str);
}
System.out.println(set.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
72,
17
],
[
72,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
20,
36
],
[
36,
37
],
[
36,
38
],
[
20,
39
],
[
39,
40
],
[
39,
41
],
[
20,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
20,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
67,
68
],
[
18,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.util.HashSet;\nimport java.util.Set;\n\npublic class Main {\n public static void main(String[] args)throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(in.readLine());\n String[] str = new String[n];\n Set<String> set = new HashSet<>();\n int count = 0;\n for(int i=0; i<n; i++) {\n set.add(in.readLine());\n }\n System.out.println(set.size());\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n public static void main(String[] args)throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(in.readLine());\n String[] str = new String[n];\n Set<String> set = new HashSet<>();\n int count = 0;\n for(int i=0; i<n; i++) {\n set.add(in.readLine());\n }\n System.out.println(set.size());\n }\n}",
"Main",
"public static void main(String[] args)throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(in.readLine());\n String[] str = new String[n];\n Set<String> set = new HashSet<>();\n int count = 0;\n for(int i=0; i<n; i++) {\n set.add(in.readLine());\n }\n System.out.println(set.size());\n }",
"main",
"{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(in.readLine());\n String[] str = new String[n];\n Set<String> set = new HashSet<>();\n int count = 0;\n for(int i=0; i<n; i++) {\n set.add(in.readLine());\n }\n System.out.println(set.size());\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(in.readLine());",
"n",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"String[] str = new String[n];",
"str",
"new String[n]",
"n",
"Set<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"int count = 0;",
"count",
"0",
"for(int i=0; i<n; i++) {\n set.add(in.readLine());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n set.add(in.readLine());\n }",
"{\n set.add(in.readLine());\n }",
"set.add(in.readLine())",
"set.add",
"set",
"in.readLine()",
"in.readLine",
"in",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args)throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(in.readLine());\n String[] str = new String[n];\n Set<String> set = new HashSet<>();\n int count = 0;\n for(int i=0; i<n; i++) {\n set.add(in.readLine());\n }\n System.out.println(set.size());\n }\n}",
"public class Main {\n public static void main(String[] args)throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(in.readLine());\n String[] str = new String[n];\n Set<String> set = new HashSet<>();\n int count = 0;\n for(int i=0; i<n; i++) {\n set.add(in.readLine());\n }\n System.out.println(set.size());\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
public class Main {
public static void main(String[] args)throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(in.readLine());
String[] str = new String[n];
Set<String> set = new HashSet<>();
int count = 0;
for(int i=0; i<n; i++) {
set.add(in.readLine());
}
System.out.println(set.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
13,
12,
13,
30,
0,
13,
4,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
18,
13,
13,
41,
13,
4,
18,
13,
20,
4,
18,
13,
29,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
118,
5
],
[
118,
6
],
[
6,
7
],
[
118,
8
],
[
8,
9
],
[
118,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
118,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
32,
34
],
[
23,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
23,
56
],
[
56,
57
],
[
57,
58
],
[
23,
59
],
[
59,
60
],
[
118,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
118,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
83,
93
],
[
93,
94
],
[
94,
95
],
[
83,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
101,
103
],
[
79,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
110,
111
],
[
111,
112
],
[
79,
113
],
[
113,
114
],
[
77,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }\n \n // 変数一覧\n int n;\n String[] s;\n\n public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n s = new String[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n }\n sc.close();\n\n // 解答処理\n solve();\n }\n \n private void solve() {\n s = deduplication(s);\n System.out.println(s.length);\n }\n\n // 配列内の重複を排除\n private String[] deduplication(String[] s) {\n Set<String> deduplicatedList = new LinkedHashSet<String>();\n for (int i = 0; i < s.length; i++) {\n deduplicatedList.add(s[i]);\n }\n String[] ret = deduplicatedList.toArray(new String[deduplicatedList.size()]);\n return ret;\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }\n \n // 変数一覧\n int n;\n String[] s;\n\n public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n s = new String[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n }\n sc.close();\n\n // 解答処理\n solve();\n }\n \n private void solve() {\n s = deduplication(s);\n System.out.println(s.length);\n }\n\n // 配列内の重複を排除\n private String[] deduplication(String[] s) {\n Set<String> deduplicatedList = new LinkedHashSet<String>();\n for (int i = 0; i < s.length; i++) {\n deduplicatedList.add(s[i]);\n }\n String[] ret = deduplicatedList.toArray(new String[deduplicatedList.size()]);\n return ret;\n }\n}",
"Main",
"// 変数一覧\n int n;",
"n",
"String[] s;",
"s",
"public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }",
"main",
"{\n Main main = new Main();\n main.run();\n }",
"Main main = new Main();",
"main",
"new Main()",
"main.run()",
"main.run",
"main",
"String[] args",
"args",
"public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n s = new String[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n }\n sc.close();\n\n // 解答処理\n solve();\n }",
"run",
"{\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n s = new String[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n }\n sc.close();\n\n // 解答処理\n solve();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"s = new String[n]",
"s",
"new String[n]",
"n",
"for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s[i] = sc.next();\n }",
"{\n s[i] = sc.next();\n }",
"s[i] = sc.next()",
"s[i]",
"s",
"i",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"solve()",
"solve",
"private void solve() {\n s = deduplication(s);\n System.out.println(s.length);\n }",
"solve",
"{\n s = deduplication(s);\n System.out.println(s.length);\n }",
"s = deduplication(s)",
"s",
"deduplication(s)",
"deduplication",
"s",
"System.out.println(s.length)",
"System.out.println",
"System.out",
"System",
"System.out",
"s.length",
"s",
"s.length",
"// 配列内の重複を排除\n private String[] deduplication(String[] s) {\n Set<String> deduplicatedList = new LinkedHashSet<String>();\n for (int i = 0; i < s.length; i++) {\n deduplicatedList.add(s[i]);\n }\n String[] ret = deduplicatedList.toArray(new String[deduplicatedList.size()]);\n return ret;\n }",
"deduplication",
"{\n Set<String> deduplicatedList = new LinkedHashSet<String>();\n for (int i = 0; i < s.length; i++) {\n deduplicatedList.add(s[i]);\n }\n String[] ret = deduplicatedList.toArray(new String[deduplicatedList.size()]);\n return ret;\n }",
"Set<String> deduplicatedList = new LinkedHashSet<String>();",
"deduplicatedList",
"new LinkedHashSet<String>()",
"for (int i = 0; i < s.length; i++) {\n deduplicatedList.add(s[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n deduplicatedList.add(s[i]);\n }",
"{\n deduplicatedList.add(s[i]);\n }",
"deduplicatedList.add(s[i])",
"deduplicatedList.add",
"deduplicatedList",
"s[i]",
"s",
"i",
"String[] ret = deduplicatedList.toArray(new String[deduplicatedList.size()]);",
"ret",
"deduplicatedList.toArray(new String[deduplicatedList.size()])",
"deduplicatedList.toArray",
"deduplicatedList",
"new String[deduplicatedList.size()]",
"deduplicatedList.size()",
"deduplicatedList.size",
"deduplicatedList",
"return ret;",
"ret",
"String[] s",
"s",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }\n \n // 変数一覧\n int n;\n String[] s;\n\n public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n s = new String[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n }\n sc.close();\n\n // 解答処理\n solve();\n }\n \n private void solve() {\n s = deduplication(s);\n System.out.println(s.length);\n }\n\n // 配列内の重複を排除\n private String[] deduplication(String[] s) {\n Set<String> deduplicatedList = new LinkedHashSet<String>();\n for (int i = 0; i < s.length; i++) {\n deduplicatedList.add(s[i]);\n }\n String[] ret = deduplicatedList.toArray(new String[deduplicatedList.size()]);\n return ret;\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }\n \n // 変数一覧\n int n;\n String[] s;\n\n public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n s = new String[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n }\n sc.close();\n\n // 解答処理\n solve();\n }\n \n private void solve() {\n s = deduplication(s);\n System.out.println(s.length);\n }\n\n // 配列内の重複を排除\n private String[] deduplication(String[] s) {\n Set<String> deduplicatedList = new LinkedHashSet<String>();\n for (int i = 0; i < s.length; i++) {\n deduplicatedList.add(s[i]);\n }\n String[] ret = deduplicatedList.toArray(new String[deduplicatedList.size()]);\n return ret;\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Main main = new Main();
main.run();
}
// 変数一覧
int n;
String[] s;
public void run() {
// 入力情報取得
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
s = new String[n];
for (int i = 0; i < n; i++) {
s[i] = sc.next();
}
sc.close();
// 解答処理
solve();
}
private void solve() {
s = deduplication(s);
System.out.println(s.length);
}
// 配列内の重複を排除
private String[] deduplication(String[] s) {
Set<String> deduplicatedList = new LinkedHashSet<String>();
for (int i = 0; i < s.length; i++) {
deduplicatedList.add(s[i]);
}
String[] ret = deduplicatedList.toArray(new String[deduplicatedList.size()]);
return ret;
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
17,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
6,
8
],
[
72,
9
],
[
9,
10
],
[
9,
11
],
[
72,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
72,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
72,
22
],
[
22,
23
],
[
22,
24
],
[
72,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
33,
35
],
[
27,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
53,
54
],
[
27,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
72,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
63,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] |
[
"import java.util.*;\n\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 998244353;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = 200001;\n\n\n\tvoid doIt() {\n\t\tint N = sc.nextInt();\n\t\tSet<String> set = new HashSet<>();\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tset.add(sc.next());\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 998244353;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = 200001;\n\n\n\tvoid doIt() {\n\t\tint N = sc.nextInt();\n\t\tSet<String> set = new HashSet<>();\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tset.add(sc.next());\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int MOD = 998244353;",
"MOD",
"998244353",
"final int MAX = Integer.MAX_VALUE;",
"MAX",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"final long LMAX = Long.MAX_VALUE;",
"LMAX",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"int len = 200001;",
"len",
"200001",
"void doIt() {\n\t\tint N = sc.nextInt();\n\t\tSet<String> set = new HashSet<>();\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tset.add(sc.next());\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}",
"doIt",
"{\n\t\tint N = sc.nextInt();\n\t\tSet<String> set = new HashSet<>();\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tset.add(sc.next());\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Set<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"for(int i = 0; i < N; i++) {\n\t\t\tset.add(sc.next());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tset.add(sc.next());\n\t\t}",
"{\n\t\t\tset.add(sc.next());\n\t\t}",
"set.add(sc.next())",
"set.add",
"set",
"sc.next()",
"sc.next",
"sc",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"public static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}",
"main",
"{\n\t\tnew Main().doIt();\n\t}",
"new Main().doIt()",
"new Main().doIt",
"new Main()",
"String[] args",
"args",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 998244353;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = 200001;\n\n\n\tvoid doIt() {\n\t\tint N = sc.nextInt();\n\t\tSet<String> set = new HashSet<>();\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tset.add(sc.next());\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n}",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 998244353;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = 200001;\n\n\n\tvoid doIt() {\n\t\tint N = sc.nextInt();\n\t\tSet<String> set = new HashSet<>();\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tset.add(sc.next());\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
Scanner sc = new Scanner(System.in);
final int MOD = 998244353;
final int MAX = Integer.MAX_VALUE;
final long LMAX = Long.MAX_VALUE;
int len = 200001;
void doIt() {
int N = sc.nextInt();
Set<String> set = new HashSet<>();
for(int i = 0; i < N; i++) {
set.add(sc.next());
}
System.out.println(set.size());
}
public static void main(String[] args) {
new Main().doIt();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
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
],
[
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
],
[
36,
39
],
[
39,
40
],
[
40,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
] |
[
"import java.util.*;\n\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n Set<String> gift = new HashSet<String>(); \n int N = sc.nextInt();\n sc.nextLine();\n \n for (int i = 0; i < N; i++) {\n gift.add(sc.nextLine());\n }\n\n System.out.println(gift.size());\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n Set<String> gift = new HashSet<String>(); \n int N = sc.nextInt();\n sc.nextLine();\n \n for (int i = 0; i < N; i++) {\n gift.add(sc.nextLine());\n }\n\n System.out.println(gift.size());\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n Set<String> gift = new HashSet<String>(); \n int N = sc.nextInt();\n sc.nextLine();\n \n for (int i = 0; i < N; i++) {\n gift.add(sc.nextLine());\n }\n\n System.out.println(gift.size());\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n Set<String> gift = new HashSet<String>(); \n int N = sc.nextInt();\n sc.nextLine();\n \n for (int i = 0; i < N; i++) {\n gift.add(sc.nextLine());\n }\n\n System.out.println(gift.size());\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Set<String> gift = new HashSet<String>();",
"gift",
"new HashSet<String>()",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int i = 0; i < N; i++) {\n gift.add(sc.nextLine());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n gift.add(sc.nextLine());\n }",
"{\n gift.add(sc.nextLine());\n }",
"gift.add(sc.nextLine())",
"gift.add",
"gift",
"sc.nextLine()",
"sc.nextLine",
"sc",
"System.out.println(gift.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"gift.size()",
"gift.size",
"gift",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n Set<String> gift = new HashSet<String>(); \n int N = sc.nextInt();\n sc.nextLine();\n \n for (int i = 0; i < N; i++) {\n gift.add(sc.nextLine());\n }\n\n System.out.println(gift.size());\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n Set<String> gift = new HashSet<String>(); \n int N = sc.nextInt();\n sc.nextLine();\n \n for (int i = 0; i < N; i++) {\n gift.add(sc.nextLine());\n }\n\n System.out.println(gift.size());\n\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Set<String> gift = new HashSet<String>();
int N = sc.nextInt();
sc.nextLine();
for (int i = 0; i < N; i++) {
gift.add(sc.nextLine());
}
System.out.println(gift.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,
4,
18,
13,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
90,
14
],
[
90,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
17,
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
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
17,
54
],
[
54,
55
],
[
54,
56
],
[
17,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
57,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
17,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
85,
86
],
[
15,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] |
[
"import java.util.ArrayList;\nimport java.util.LinkedHashSet;\nimport java.util.Scanner;\nimport java.util.Set;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString num = sc.nextLine();\n\t\tint n = Integer.valueOf(num);\n\t\tArrayList<String> s = new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ts.add(sc.nextLine());\n\t\t}\n\t\tSet<String> linkedHashSet = new LinkedHashSet<String>();\n\t for (int i = 0; i < s.size(); i++) {\n\t \tlinkedHashSet.add(s.get(i));\n\t }\n\t System.out.println(linkedHashSet.size());\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.LinkedHashSet;",
"LinkedHashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString num = sc.nextLine();\n\t\tint n = Integer.valueOf(num);\n\t\tArrayList<String> s = new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ts.add(sc.nextLine());\n\t\t}\n\t\tSet<String> linkedHashSet = new LinkedHashSet<String>();\n\t for (int i = 0; i < s.size(); i++) {\n\t \tlinkedHashSet.add(s.get(i));\n\t }\n\t System.out.println(linkedHashSet.size());\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString num = sc.nextLine();\n\t\tint n = Integer.valueOf(num);\n\t\tArrayList<String> s = new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ts.add(sc.nextLine());\n\t\t}\n\t\tSet<String> linkedHashSet = new LinkedHashSet<String>();\n\t for (int i = 0; i < s.size(); i++) {\n\t \tlinkedHashSet.add(s.get(i));\n\t }\n\t System.out.println(linkedHashSet.size());\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString num = sc.nextLine();\n\t\tint n = Integer.valueOf(num);\n\t\tArrayList<String> s = new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ts.add(sc.nextLine());\n\t\t}\n\t\tSet<String> linkedHashSet = new LinkedHashSet<String>();\n\t for (int i = 0; i < s.size(); i++) {\n\t \tlinkedHashSet.add(s.get(i));\n\t }\n\t System.out.println(linkedHashSet.size());\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String num = sc.nextLine();",
"num",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int n = Integer.valueOf(num);",
"n",
"Integer.valueOf(num)",
"Integer.valueOf",
"Integer",
"num",
"ArrayList<String> s = new ArrayList<String>();",
"s",
"new ArrayList<String>()",
"for(int i=0;i<n;i++) {\n\t\t\ts.add(sc.nextLine());\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ts.add(sc.nextLine());\n\t\t}",
"{\n\t\t\ts.add(sc.nextLine());\n\t\t}",
"s.add(sc.nextLine())",
"s.add",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"Set<String> linkedHashSet = new LinkedHashSet<String>();",
"linkedHashSet",
"new LinkedHashSet<String>()",
"for (int i = 0; i < s.size(); i++) {\n\t \tlinkedHashSet.add(s.get(i));\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.size()",
"i",
"s.size()",
"s.size",
"s",
"i++",
"i++",
"i",
"{\n\t \tlinkedHashSet.add(s.get(i));\n\t }",
"{\n\t \tlinkedHashSet.add(s.get(i));\n\t }",
"linkedHashSet.add(s.get(i))",
"linkedHashSet.add",
"linkedHashSet",
"s.get(i)",
"s.get",
"s",
"i",
"System.out.println(linkedHashSet.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"linkedHashSet.size()",
"linkedHashSet.size",
"linkedHashSet",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString num = sc.nextLine();\n\t\tint n = Integer.valueOf(num);\n\t\tArrayList<String> s = new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ts.add(sc.nextLine());\n\t\t}\n\t\tSet<String> linkedHashSet = new LinkedHashSet<String>();\n\t for (int i = 0; i < s.size(); i++) {\n\t \tlinkedHashSet.add(s.get(i));\n\t }\n\t System.out.println(linkedHashSet.size());\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString num = sc.nextLine();\n\t\tint n = Integer.valueOf(num);\n\t\tArrayList<String> s = new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ts.add(sc.nextLine());\n\t\t}\n\t\tSet<String> linkedHashSet = new LinkedHashSet<String>();\n\t for (int i = 0; i < s.size(); i++) {\n\t \tlinkedHashSet.add(s.get(i));\n\t }\n\t System.out.println(linkedHashSet.size());\n\t}\n}",
"Main"
] |
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
String num = sc.nextLine();
int n = Integer.valueOf(num);
ArrayList<String> s = new ArrayList<String>();
for(int i=0;i<n;i++) {
s.add(sc.nextLine());
}
Set<String> linkedHashSet = new LinkedHashSet<String>();
for (int i = 0; i < s.size(); i++) {
linkedHashSet.add(s.get(i));
}
System.out.println(linkedHashSet.size());
}
}
|
[
7,
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,
4,
18,
13,
4,
18,
13,
41,
13,
20,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
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
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
6,
50
],
[
50,
51
]
] |
[
"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 List<String> s = new ArrayList<>();\n\n\n for (int i = 0; i < n; i++) {\n s.add(sc.next());\n }\n List<String> list = new ArrayList<>(new HashSet<>(s));\n\n System.out.println(list.size());\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 List<String> s = new ArrayList<>();\n\n\n for (int i = 0; i < n; i++) {\n s.add(sc.next());\n }\n List<String> list = new ArrayList<>(new HashSet<>(s));\n\n System.out.println(list.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n List<String> s = new ArrayList<>();\n\n\n for (int i = 0; i < n; i++) {\n s.add(sc.next());\n }\n List<String> list = new ArrayList<>(new HashSet<>(s));\n\n System.out.println(list.size());\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n List<String> s = new ArrayList<>();\n\n\n for (int i = 0; i < n; i++) {\n s.add(sc.next());\n }\n List<String> list = new ArrayList<>(new HashSet<>(s));\n\n System.out.println(list.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"List<String> s = new ArrayList<>();",
"s",
"new ArrayList<>()",
"for (int i = 0; i < n; i++) {\n s.add(sc.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s.add(sc.next());\n }",
"{\n s.add(sc.next());\n }",
"s.add(sc.next())",
"s.add",
"s",
"sc.next()",
"sc.next",
"sc",
"List<String> list = new ArrayList<>(new HashSet<>(s));",
"list",
"new ArrayList<>(new HashSet<>(s))",
"System.out.println(list.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"list.size()",
"list.size",
"list",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
List<String> s = new ArrayList<>();
for (int i = 0; i < n; i++) {
s.add(sc.next());
}
List<String> list = new ArrayList<>(new HashSet<>(s));
System.out.println(list.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
42,
2,
40,
13,
17,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
12,
13,
30,
4,
18,
13,
4,
18,
13,
12,
13,
30,
38,
30,
41,
13,
20,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
4,
18,
13,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
156,
29
],
[
156,
30
],
[
30,
31
],
[
30,
32
],
[
156,
33
],
[
33,
34
],
[
33,
35
],
[
156,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
38,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
56,
57
],
[
38,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
156,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
156,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
84,
85
],
[
156,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
86,
90
],
[
90,
91
],
[
86,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
92,
101
],
[
101,
102
],
[
86,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
106,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
116,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
105,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
86,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
137,
138
],
[
86,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
86,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
156,
154
],
[
0,
155
],
[
155,
156
],
[
155,
157
]
] |
[
"\nimport java.io.BufferedReader;\nimport java.io.Closeable;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.HashSet;\nimport java.util.Set;\nimport java.util.StringTokenizer;\n\npublic class Main implements Closeable {\n\n private InputReader in = new InputReader(System.in);\n private PrintWriter out = new PrintWriter(System.out);\n\n public void solve() {\n int n = in.ni();\n Set<String> set = new HashSet<>();\n while(n-- > 0) set.add(in.next());\n out.println(set.size());\n }\n\n @Override\n public void close() throws IOException {\n in.close();\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ni() {\n return Integer.parseInt(next());\n }\n\n public long nl() {\n return Long.parseLong(next());\n }\n\n public void close() throws IOException {\n reader.close();\n }\n }\n\n public static void main(String[] args) throws IOException {\n try (Main instance = new Main()) {\n instance.solve();\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.Closeable;",
"Closeable",
"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.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main implements Closeable {\n\n private InputReader in = new InputReader(System.in);\n private PrintWriter out = new PrintWriter(System.out);\n\n public void solve() {\n int n = in.ni();\n Set<String> set = new HashSet<>();\n while(n-- > 0) set.add(in.next());\n out.println(set.size());\n }\n\n @Override\n public void close() throws IOException {\n in.close();\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ni() {\n return Integer.parseInt(next());\n }\n\n public long nl() {\n return Long.parseLong(next());\n }\n\n public void close() throws IOException {\n reader.close();\n }\n }\n\n public static void main(String[] args) throws IOException {\n try (Main instance = new Main()) {\n instance.solve();\n }\n }\n}",
"Main",
"private InputReader in = new InputReader(System.in);",
"in",
"new InputReader(System.in)",
"private PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public void solve() {\n int n = in.ni();\n Set<String> set = new HashSet<>();\n while(n-- > 0) set.add(in.next());\n out.println(set.size());\n }",
"solve",
"{\n int n = in.ni();\n Set<String> set = new HashSet<>();\n while(n-- > 0) set.add(in.next());\n out.println(set.size());\n }",
"int n = in.ni();",
"n",
"in.ni()",
"in.ni",
"in",
"Set<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"while(n-- > 0) set.add(in.next());",
"n-- > 0",
"n--",
"n",
"0",
"set.add(in.next())",
"set.add",
"set",
"in.next()",
"in.next",
"in",
"out.println(set.size())",
"out.println",
"out",
"set.size()",
"set.size",
"set",
"@Override\n public void close() throws IOException {\n in.close();\n out.close();\n }",
"close",
"{\n in.close();\n out.close();\n }",
"in.close()",
"in.close",
"in",
"out.close()",
"out.close",
"out",
"public static void main(String[] args) throws IOException {\n try (Main instance = new Main()) {\n instance.solve();\n }\n }",
"main",
"{\n try (Main instance = new Main()) {\n instance.solve();\n }\n }",
"try (Main instance = new Main()) {\n instance.solve();\n }",
"{\n instance.solve();\n }",
"Main instance = new Main()",
"Main instance = new Main()",
"new Main()",
"instance.solve()",
"instance.solve",
"instance",
"String[] args",
"args",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ni() {\n return Integer.parseInt(next());\n }\n\n public long nl() {\n return Long.parseLong(next());\n }\n\n public void close() throws IOException {\n reader.close();\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 ni() {\n return Integer.parseInt(next());\n }",
"ni",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nl() {\n return Long.parseLong(next());\n }",
"nl",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public void close() throws IOException {\n reader.close();\n }",
"close",
"{\n reader.close();\n }",
"reader.close()",
"reader.close",
"reader",
"Closeable",
"public class Main implements Closeable {\n\n private InputReader in = new InputReader(System.in);\n private PrintWriter out = new PrintWriter(System.out);\n\n public void solve() {\n int n = in.ni();\n Set<String> set = new HashSet<>();\n while(n-- > 0) set.add(in.next());\n out.println(set.size());\n }\n\n @Override\n public void close() throws IOException {\n in.close();\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ni() {\n return Integer.parseInt(next());\n }\n\n public long nl() {\n return Long.parseLong(next());\n }\n\n public void close() throws IOException {\n reader.close();\n }\n }\n\n public static void main(String[] args) throws IOException {\n try (Main instance = new Main()) {\n instance.solve();\n }\n }\n}",
"public class Main implements Closeable {\n\n private InputReader in = new InputReader(System.in);\n private PrintWriter out = new PrintWriter(System.out);\n\n public void solve() {\n int n = in.ni();\n Set<String> set = new HashSet<>();\n while(n-- > 0) set.add(in.next());\n out.println(set.size());\n }\n\n @Override\n public void close() throws IOException {\n in.close();\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ni() {\n return Integer.parseInt(next());\n }\n\n public long nl() {\n return Long.parseLong(next());\n }\n\n public void close() throws IOException {\n reader.close();\n }\n }\n\n public static void main(String[] args) throws IOException {\n try (Main instance = new Main()) {\n instance.solve();\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.Set;
import java.util.StringTokenizer;
public class Main implements Closeable {
private InputReader in = new InputReader(System.in);
private PrintWriter out = new PrintWriter(System.out);
public void solve() {
int n = in.ni();
Set<String> set = new HashSet<>();
while(n-- > 0) set.add(in.next());
out.println(set.size());
}
@Override
public void close() throws IOException {
in.close();
out.close();
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int ni() {
return Integer.parseInt(next());
}
public long nl() {
return Long.parseLong(next());
}
public void close() throws IOException {
reader.close();
}
}
public static void main(String[] args) throws IOException {
try (Main instance = new Main()) {
instance.solve();
}
}
}
|
[
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,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
65,
11
],
[
65,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
49,
53
],
[
14,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
12,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] |
[
"import java.util.*;\nimport java.math.*;\nimport java.io.*;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tHashMap<String, Integer> mp = new HashMap<>();\n\t\tString meh = in.nextLine();\n\t\tfor(int qq=1; qq<=n; qq++){\n\t\t\tString a = in.nextLine();\n\t\t\tmp.put(a, 1);\n\t\t}\n\t\tSystem.out.println(mp.size());\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tHashMap<String, Integer> mp = new HashMap<>();\n\t\tString meh = in.nextLine();\n\t\tfor(int qq=1; qq<=n; qq++){\n\t\t\tString a = in.nextLine();\n\t\t\tmp.put(a, 1);\n\t\t}\n\t\tSystem.out.println(mp.size());\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tHashMap<String, Integer> mp = new HashMap<>();\n\t\tString meh = in.nextLine();\n\t\tfor(int qq=1; qq<=n; qq++){\n\t\t\tString a = in.nextLine();\n\t\t\tmp.put(a, 1);\n\t\t}\n\t\tSystem.out.println(mp.size());\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tHashMap<String, Integer> mp = new HashMap<>();\n\t\tString meh = in.nextLine();\n\t\tfor(int qq=1; qq<=n; qq++){\n\t\t\tString a = in.nextLine();\n\t\t\tmp.put(a, 1);\n\t\t}\n\t\tSystem.out.println(mp.size());\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"HashMap<String, Integer> mp = new HashMap<>();",
"mp",
"new HashMap<>()",
"String meh = in.nextLine();",
"meh",
"in.nextLine()",
"in.nextLine",
"in",
"for(int qq=1; qq<=n; qq++){\n\t\t\tString a = in.nextLine();\n\t\t\tmp.put(a, 1);\n\t\t}",
"int qq=1;",
"int qq=1;",
"qq",
"1",
"qq<=n",
"qq",
"n",
"qq++",
"qq++",
"qq",
"{\n\t\t\tString a = in.nextLine();\n\t\t\tmp.put(a, 1);\n\t\t}",
"{\n\t\t\tString a = in.nextLine();\n\t\t\tmp.put(a, 1);\n\t\t}",
"String a = in.nextLine();",
"a",
"in.nextLine()",
"in.nextLine",
"in",
"mp.put(a, 1)",
"mp.put",
"mp",
"a",
"1",
"System.out.println(mp.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"mp.size()",
"mp.size",
"mp",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tHashMap<String, Integer> mp = new HashMap<>();\n\t\tString meh = in.nextLine();\n\t\tfor(int qq=1; qq<=n; qq++){\n\t\t\tString a = in.nextLine();\n\t\t\tmp.put(a, 1);\n\t\t}\n\t\tSystem.out.println(mp.size());\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tHashMap<String, Integer> mp = new HashMap<>();\n\t\tString meh = in.nextLine();\n\t\tfor(int qq=1; qq<=n; qq++){\n\t\t\tString a = in.nextLine();\n\t\t\tmp.put(a, 1);\n\t\t}\n\t\tSystem.out.println(mp.size());\n\t}\n}",
"Main"
] |
import java.util.*;
import java.math.*;
import java.io.*;
public class Main{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
HashMap<String, Integer> mp = new HashMap<>();
String meh = in.nextLine();
for(int qq=1; qq<=n; qq++){
String a = in.nextLine();
mp.put(a, 1);
}
System.out.println(mp.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
55,
8
],
[
55,
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
],
[
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
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
42,
43
],
[
11,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
50,
51
],
[
9,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int N = sc.nextInt();\n sc.nextLine();\n HashSet hs = new HashSet();\n\t\tfor(int i = 0; i < N; i++) hs.add(sc.nextLine());\n System.out.println(hs.size());\n } \n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int N = sc.nextInt();\n sc.nextLine();\n HashSet hs = new HashSet();\n\t\tfor(int i = 0; i < N; i++) hs.add(sc.nextLine());\n System.out.println(hs.size());\n } \n}",
"Main",
"public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int N = sc.nextInt();\n sc.nextLine();\n HashSet hs = new HashSet();\n\t\tfor(int i = 0; i < N; i++) hs.add(sc.nextLine());\n System.out.println(hs.size());\n }",
"main",
"{\n Scanner sc= new Scanner(System.in);\n int N = sc.nextInt();\n sc.nextLine();\n HashSet hs = new HashSet();\n\t\tfor(int i = 0; i < N; i++) hs.add(sc.nextLine());\n System.out.println(hs.size());\n }",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"HashSet hs = new HashSet();",
"hs",
"new HashSet()",
"for(int i = 0; i < N; i++) hs.add(sc.nextLine());",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"hs.add(sc.nextLine());",
"hs.add(sc.nextLine())",
"hs.add",
"hs",
"sc.nextLine()",
"sc.nextLine",
"sc",
"System.out.println(hs.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"hs.size()",
"hs.size",
"hs",
"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 sc.nextLine();\n HashSet hs = new HashSet();\n\t\tfor(int i = 0; i < N; i++) hs.add(sc.nextLine());\n System.out.println(hs.size());\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 sc.nextLine();\n HashSet hs = new HashSet();\n\t\tfor(int i = 0; i < N; i++) hs.add(sc.nextLine());\n System.out.println(hs.size());\n } \n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
int N = sc.nextInt();
sc.nextLine();
HashSet hs = new HashSet();
for(int i = 0; i < N; i++) hs.add(sc.nextLine());
System.out.println(hs.size());
}
}
|
[
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,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
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,
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
],
[
39,
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
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
60,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
69,
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 int N = sc.nextInt();\n String[] Sz = new String[N];\n for (int i = 0; i < N; i++){\n Sz[i] = sc.next();\n }\n\n HashSet<String> set = new HashSet<String>();\n for (int i = 0; i < N; i++){\n set.add(Sz[i]);\n }\n System.out.println(set.size());\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 String[] Sz = new String[N];\n for (int i = 0; i < N; i++){\n Sz[i] = sc.next();\n }\n\n HashSet<String> set = new HashSet<String>();\n for (int i = 0; i < N; i++){\n set.add(Sz[i]);\n }\n System.out.println(set.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] Sz = new String[N];\n for (int i = 0; i < N; i++){\n Sz[i] = sc.next();\n }\n\n HashSet<String> set = new HashSet<String>();\n for (int i = 0; i < N; i++){\n set.add(Sz[i]);\n }\n System.out.println(set.size());\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] Sz = new String[N];\n for (int i = 0; i < N; i++){\n Sz[i] = sc.next();\n }\n\n HashSet<String> set = new HashSet<String>();\n for (int i = 0; i < N; i++){\n set.add(Sz[i]);\n }\n System.out.println(set.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] Sz = new String[N];",
"Sz",
"new String[N]",
"N",
"for (int i = 0; i < N; i++){\n Sz[i] = sc.next();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n Sz[i] = sc.next();\n }",
"{\n Sz[i] = sc.next();\n }",
"Sz[i] = sc.next()",
"Sz[i]",
"Sz",
"i",
"sc.next()",
"sc.next",
"sc",
"HashSet<String> set = new HashSet<String>();",
"set",
"new HashSet<String>()",
"for (int i = 0; i < N; i++){\n set.add(Sz[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n set.add(Sz[i]);\n }",
"{\n set.add(Sz[i]);\n }",
"set.add(Sz[i])",
"set.add",
"set",
"Sz[i]",
"Sz",
"i",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"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 String[] Sz = new String[N];\n for (int i = 0; i < N; i++){\n Sz[i] = sc.next();\n }\n\n HashSet<String> set = new HashSet<String>();\n for (int i = 0; i < N; i++){\n set.add(Sz[i]);\n }\n System.out.println(set.size());\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 String[] Sz = new String[N];\n for (int i = 0; i < N; i++){\n Sz[i] = sc.next();\n }\n\n HashSet<String> set = new HashSet<String>();\n for (int i = 0; i < N; i++){\n set.add(Sz[i]);\n }\n System.out.println(set.size());\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();
String[] Sz = new String[N];
for (int i = 0; i < N; i++){
Sz[i] = sc.next();
}
HashSet<String> set = new HashSet<String>();
for (int i = 0; i < N; i++){
set.add(Sz[i]);
}
System.out.println(set.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
65,
17
],
[
65,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
20,
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
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
20,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
18,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.HashSet;\nimport java.util.Set;\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\tSet<String> s = new HashSet<>();\n\t\t\n\t\tfor(int i=0; i<N; i++) {\n\t\t\ts.add(br.readLine());\n\t\t}\n\t\t\n\t\tSystem.out.println(s.size());\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"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\tSet<String> s = new HashSet<>();\n\t\t\n\t\tfor(int i=0; i<N; i++) {\n\t\t\ts.add(br.readLine());\n\t\t}\n\t\t\n\t\tSystem.out.println(s.size());\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\tSet<String> s = new HashSet<>();\n\t\t\n\t\tfor(int i=0; i<N; i++) {\n\t\t\ts.add(br.readLine());\n\t\t}\n\t\t\n\t\tSystem.out.println(s.size());\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\tSet<String> s = new HashSet<>();\n\t\t\n\t\tfor(int i=0; i<N; i++) {\n\t\t\ts.add(br.readLine());\n\t\t}\n\t\t\n\t\tSystem.out.println(s.size());\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",
"Set<String> s = new HashSet<>();",
"s",
"new HashSet<>()",
"for(int i=0; i<N; i++) {\n\t\t\ts.add(br.readLine());\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\ts.add(br.readLine());\n\t\t}",
"{\n\t\t\ts.add(br.readLine());\n\t\t}",
"s.add(br.readLine())",
"s.add",
"s",
"br.readLine()",
"br.readLine",
"br",
"System.out.println(s.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"s.size()",
"s.size",
"s",
"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\tSet<String> s = new HashSet<>();\n\t\t\n\t\tfor(int i=0; i<N; i++) {\n\t\t\ts.add(br.readLine());\n\t\t}\n\t\t\n\t\tSystem.out.println(s.size());\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\tSet<String> s = new HashSet<>();\n\t\t\n\t\tfor(int i=0; i<N; i++) {\n\t\t\ts.add(br.readLine());\n\t\t}\n\t\t\n\t\tSystem.out.println(s.size());\n\t}\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Set;
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());
Set<String> s = new HashSet<>();
for(int i=0; i<N; i++) {
s.add(br.readLine());
}
System.out.println(s.size());
}
}
|
[
7,
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,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
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
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n Set<String> b = new HashSet<String>();\n for (int i=0;i<a;i++){\n String t = scan.next();\n b.add(t);\n }\n System.out.println(b.size());\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n Set<String> b = new HashSet<String>();\n for (int i=0;i<a;i++){\n String t = scan.next();\n b.add(t);\n }\n System.out.println(b.size());\n }\n\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n Set<String> b = new HashSet<String>();\n for (int i=0;i<a;i++){\n String t = scan.next();\n b.add(t);\n }\n System.out.println(b.size());\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n Set<String> b = new HashSet<String>();\n for (int i=0;i<a;i++){\n String t = scan.next();\n b.add(t);\n }\n System.out.println(b.size());\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int a = scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"Set<String> b = new HashSet<String>();",
"b",
"new HashSet<String>()",
"for (int i=0;i<a;i++){\n String t = scan.next();\n b.add(t);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\n String t = scan.next();\n b.add(t);\n }",
"{\n String t = scan.next();\n b.add(t);\n }",
"String t = scan.next();",
"t",
"scan.next()",
"scan.next",
"scan",
"b.add(t)",
"b.add",
"b",
"t",
"System.out.println(b.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"b.size()",
"b.size",
"b",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n Set<String> b = new HashSet<String>();\n for (int i=0;i<a;i++){\n String t = scan.next();\n b.add(t);\n }\n System.out.println(b.size());\n }\n\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n Set<String> b = new HashSet<String>();\n for (int i=0;i<a;i++){\n String t = scan.next();\n b.add(t);\n }\n System.out.println(b.size());\n }\n\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
Set<String> b = new HashSet<String>();
for (int i=0;i<a;i++){
String t = scan.next();
b.add(t);
}
System.out.println(b.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
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
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
47,
51
],
[
6,
52
],
[
52,
53
]
] |
[
"import java.util.*;\nclass Main{\n static public void main(String args[]){\n\tScanner sc=new Scanner(System.in);\n\tSet<String> set=new HashSet<String>();\n\t\n\tint num=sc.nextInt();\n\tfor(int i=0;i<=num;i++){\n\t\tString str=sc.nextLine();\n\t\tset.add(str);\n\t}\n\tSystem.out.println(set.size()-1);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n static public void main(String args[]){\n\tScanner sc=new Scanner(System.in);\n\tSet<String> set=new HashSet<String>();\n\t\n\tint num=sc.nextInt();\n\tfor(int i=0;i<=num;i++){\n\t\tString str=sc.nextLine();\n\t\tset.add(str);\n\t}\n\tSystem.out.println(set.size()-1);\n }\n}",
"Main",
"static public void main(String args[]){\n\tScanner sc=new Scanner(System.in);\n\tSet<String> set=new HashSet<String>();\n\t\n\tint num=sc.nextInt();\n\tfor(int i=0;i<=num;i++){\n\t\tString str=sc.nextLine();\n\t\tset.add(str);\n\t}\n\tSystem.out.println(set.size()-1);\n }",
"main",
"{\n\tScanner sc=new Scanner(System.in);\n\tSet<String> set=new HashSet<String>();\n\t\n\tint num=sc.nextInt();\n\tfor(int i=0;i<=num;i++){\n\t\tString str=sc.nextLine();\n\t\tset.add(str);\n\t}\n\tSystem.out.println(set.size()-1);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Set<String> set=new HashSet<String>();",
"set",
"new HashSet<String>()",
"int num=sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<=num;i++){\n\t\tString str=sc.nextLine();\n\t\tset.add(str);\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\tString str=sc.nextLine();\n\t\tset.add(str);\n\t}",
"{\n\t\tString str=sc.nextLine();\n\t\tset.add(str);\n\t}",
"String str=sc.nextLine();",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"set.add(str)",
"set.add",
"set",
"str",
"System.out.println(set.size()-1)",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()-1",
"set.size()",
"set.size",
"set",
"1",
"String args[]",
"args"
] |
import java.util.*;
class Main{
static public void main(String args[]){
Scanner sc=new Scanner(System.in);
Set<String> set=new HashSet<String>();
int num=sc.nextInt();
for(int i=0;i<=num;i++){
String str=sc.nextLine();
set.add(str);
}
System.out.println(set.size()-1);
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
18,
13,
13,
18,
13,
2,
13,
17,
30,
40,
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
],
[
327,
5
],
[
327,
6
],
[
6,
7
],
[
6,
8
],
[
327,
9
],
[
9,
10
],
[
9,
11
],
[
327,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
14,
19
],
[
19,
20
],
[
19,
21
],
[
14,
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
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
14,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
14,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
49,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
64,
76
],
[
76,
77
],
[
77,
78
],
[
14,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
12,
85
],
[
85,
86
],
[
327,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
87,
94
],
[
94,
95
],
[
327,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
96,
103
],
[
103,
104
],
[
327,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
327,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
120,
121
],
[
327,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
130,
131
],
[
327,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
140,
141
],
[
327,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
142,
150
],
[
150,
151
],
[
327,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
152,
159
],
[
159,
160
],
[
327,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
161,
168
],
[
168,
169
],
[
327,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
175,
177
],
[
172,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
180,
182
],
[
172,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
188,
190
],
[
183,
191
],
[
191,
192
],
[
192,
193
],
[
183,
194
],
[
195,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
198,
202
],
[
202,
203
],
[
202,
204
],
[
172,
205
],
[
205,
206
],
[
170,
207
],
[
207,
208
],
[
327,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
214,
216
],
[
211,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
219,
221
],
[
211,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
222,
227
],
[
227,
228
],
[
227,
229
],
[
222,
230
],
[
230,
231
],
[
231,
232
],
[
222,
233
],
[
234,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
238,
239
],
[
237,
240
],
[
237,
241
],
[
241,
242
],
[
241,
243
],
[
211,
244
],
[
244,
245
],
[
209,
246
],
[
246,
247
],
[
327,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
253,
255
],
[
250,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
258,
260
],
[
250,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
261,
266
],
[
266,
267
],
[
266,
268
],
[
261,
269
],
[
269,
270
],
[
270,
271
],
[
261,
272
],
[
273,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
276,
279
],
[
276,
280
],
[
280,
281
],
[
280,
282
],
[
250,
283
],
[
283,
284
],
[
248,
285
],
[
285,
286
],
[
327,
287
],
[
287,
288
],
[
287,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
292,
294
],
[
289,
295
],
[
295,
296
],
[
295,
297
],
[
297,
298
],
[
297,
299
],
[
289,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
300,
305
],
[
305,
306
],
[
305,
307
],
[
300,
308
],
[
308,
309
],
[
309,
310
],
[
300,
311
],
[
312,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
315,
318
],
[
315,
319
],
[
319,
320
],
[
319,
321
],
[
289,
322
],
[
322,
323
],
[
287,
324
],
[
324,
325
],
[
0,
326
],
[
326,
327
],
[
326,
328
]
] |
[
"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 String[] S = new String[n];\n for(int i=0;i<n;i++){\n S[i] = next();\n }\n\n Arrays.sort(S);\n\n int ans = 1;\n\n for(int i=0;i<n-1;i++){\n if(!S[i].equals(S[i+1])){\n ans++;\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 String[] S = new String[n];\n for(int i=0;i<n;i++){\n S[i] = next();\n }\n\n Arrays.sort(S);\n\n int ans = 1;\n\n for(int i=0;i<n-1;i++){\n if(!S[i].equals(S[i+1])){\n ans++;\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 String[] S = new String[n];\n for(int i=0;i<n;i++){\n S[i] = next();\n }\n\n Arrays.sort(S);\n\n int ans = 1;\n\n for(int i=0;i<n-1;i++){\n if(!S[i].equals(S[i+1])){\n ans++;\n }\n }\n\n System.out.println(ans);\n\n }",
"main",
"{\n\n int n = nextInt();\n String[] S = new String[n];\n for(int i=0;i<n;i++){\n S[i] = next();\n }\n\n Arrays.sort(S);\n\n int ans = 1;\n\n for(int i=0;i<n-1;i++){\n if(!S[i].equals(S[i+1])){\n ans++;\n }\n }\n\n System.out.println(ans);\n\n }",
"int n = nextInt();",
"n",
"nextInt()",
"nextInt",
"String[] S = new String[n];",
"S",
"new String[n]",
"n",
"for(int i=0;i<n;i++){\n S[i] = next();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n S[i] = next();\n }",
"{\n S[i] = next();\n }",
"S[i] = next()",
"S[i]",
"S",
"i",
"next()",
"next",
"Arrays.sort(S)",
"Arrays.sort",
"Arrays",
"S",
"int ans = 1;",
"ans",
"1",
"for(int i=0;i<n-1;i++){\n if(!S[i].equals(S[i+1])){\n ans++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n-1",
"i",
"n-1",
"n",
"1",
"i++",
"i++",
"i",
"{\n if(!S[i].equals(S[i+1])){\n ans++;\n }\n }",
"{\n if(!S[i].equals(S[i+1])){\n ans++;\n }\n }",
"if(!S[i].equals(S[i+1])){\n ans++;\n }",
"!S[i].equals(S[i+1])",
"S[i].equals(S[i+1])",
"S[i].equals",
"S[i]",
"S",
"i",
"S[i+1]",
"S",
"i+1",
"i",
"1",
"{\n ans++;\n }",
"ans++",
"ans",
"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 String[] S = new String[n];\n for(int i=0;i<n;i++){\n S[i] = next();\n }\n\n Arrays.sort(S);\n\n int ans = 1;\n\n for(int i=0;i<n-1;i++){\n if(!S[i].equals(S[i+1])){\n ans++;\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 String[] S = new String[n];\n for(int i=0;i<n;i++){\n S[i] = next();\n }\n\n Arrays.sort(S);\n\n int ans = 1;\n\n for(int i=0;i<n-1;i++){\n if(!S[i].equals(S[i+1])){\n ans++;\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();
String[] S = new String[n];
for(int i=0;i<n;i++){
S[i] = next();
}
Arrays.sort(S);
int ans = 1;
for(int i=0;i<n-1;i++){
if(!S[i].equals(S[i+1])){
ans++;
}
}
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,
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,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
150,
14
],
[
150,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
17,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
17,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
15,
59
],
[
59,
60
],
[
150,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
61,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
61,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
76,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
86,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
75,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
61,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
61,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
61,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
126,
127
],
[
61,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
134,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
130,
147
],
[
147,
148
],
[
0,
149
],
[
149,
150
],
[
149,
151
]
] |
[
"//package april2020;\n\nimport java.util.*;\nimport java.lang.*;\nimport java.math.*;\nimport java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tFastReader scn = new FastReader();\n\t\t\n\t\tint n = scn.nextInt();\n\t\t\n\t\tHashSet<String> hs = new HashSet<String>();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString t = scn.next();\n\t\t\ths.add(t);\n\t\t}\n\t\tSystem.out.println(hs.size());\n\t}\n\tstatic class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tFastReader scn = new FastReader();\n\t\t\n\t\tint n = scn.nextInt();\n\t\t\n\t\tHashSet<String> hs = new HashSet<String>();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString t = scn.next();\n\t\t\ths.add(t);\n\t\t}\n\t\tSystem.out.println(hs.size());\n\t}\n\tstatic class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tFastReader scn = new FastReader();\n\t\t\n\t\tint n = scn.nextInt();\n\t\t\n\t\tHashSet<String> hs = new HashSet<String>();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString t = scn.next();\n\t\t\ths.add(t);\n\t\t}\n\t\tSystem.out.println(hs.size());\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tFastReader scn = new FastReader();\n\t\t\n\t\tint n = scn.nextInt();\n\t\t\n\t\tHashSet<String> hs = new HashSet<String>();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString t = scn.next();\n\t\t\ths.add(t);\n\t\t}\n\t\tSystem.out.println(hs.size());\n\t}",
"FastReader scn = new FastReader();",
"scn",
"new FastReader()",
"int n = scn.nextInt();",
"n",
"scn.nextInt()",
"scn.nextInt",
"scn",
"HashSet<String> hs = new HashSet<String>();",
"hs",
"new HashSet<String>()",
"for(int i=0;i<n;i++) {\n\t\t\tString t = scn.next();\n\t\t\ths.add(t);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString t = scn.next();\n\t\t\ths.add(t);\n\t\t}",
"{\n\t\t\tString t = scn.next();\n\t\t\ths.add(t);\n\t\t}",
"String t = scn.next();",
"t",
"scn.next()",
"scn.next",
"scn",
"hs.add(t)",
"hs.add",
"hs",
"t",
"System.out.println(hs.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"hs.size()",
"hs.size",
"hs",
"String[] args",
"args",
"static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }",
"FastReader",
"{ \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"next",
"{ \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{ \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }",
"try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }",
"catch (IOException e) \n { \n e.printStackTrace(); \n }",
"IOException e",
"{ \n e.printStackTrace(); \n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n st = new StringTokenizer(br.readLine()); \n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() \n { \n return Integer.parseInt(next()); \n }",
"nextInt",
"{ \n return Integer.parseInt(next()); \n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() \n { \n return Long.parseLong(next()); \n }",
"nextLong",
"{ \n return Long.parseLong(next()); \n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() \n { \n return Double.parseDouble(next()); \n }",
"nextDouble",
"{ \n return Double.parseDouble(next()); \n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }",
"nextLine",
"{ \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }",
"String str = \"\";",
"str",
"\"\"",
"try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }",
"catch (IOException e) \n { \n e.printStackTrace(); \n }",
"IOException e",
"{ \n e.printStackTrace(); \n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n str = br.readLine(); \n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tFastReader scn = new FastReader();\n\t\t\n\t\tint n = scn.nextInt();\n\t\t\n\t\tHashSet<String> hs = new HashSet<String>();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString t = scn.next();\n\t\t\ths.add(t);\n\t\t}\n\t\tSystem.out.println(hs.size());\n\t}\n\tstatic class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tFastReader scn = new FastReader();\n\t\t\n\t\tint n = scn.nextInt();\n\t\t\n\t\tHashSet<String> hs = new HashSet<String>();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString t = scn.next();\n\t\t\ths.add(t);\n\t\t}\n\t\tSystem.out.println(hs.size());\n\t}\n\tstatic class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }\n\n}",
"Main"
] |
//package april2020;
import java.util.*;
import java.lang.*;
import java.math.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
FastReader scn = new FastReader();
int n = scn.nextInt();
HashSet<String> hs = new HashSet<String>();
for(int i=0;i<n;i++) {
String t = scn.next();
hs.add(t);
}
System.out.println(hs.size());
}
static class FastReader
{
BufferedReader br;
StringTokenizer st;
public FastReader()
{
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next()
{
while (st == null || !st.hasMoreElements())
{
try
{
st = new StringTokenizer(br.readLine());
}
catch (IOException e)
{
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt()
{
return Integer.parseInt(next());
}
long nextLong()
{
return Long.parseLong(next());
}
double nextDouble()
{
return Double.parseDouble(next());
}
String nextLine()
{
String str = "";
try
{
str = br.readLine();
}
catch (IOException e)
{
e.printStackTrace();
}
return str;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
64,
8
],
[
64,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
16,
28
],
[
28,
29
],
[
28,
30
],
[
16,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
16,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
59,
60
],
[
9,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[]args) {\n try {\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n\n HashSet<String> lottery = new HashSet<String>();\n for(int i = 0;i<n;i++) {\n String words = br.readLine();\n lottery.add(words);\n }\nSystem.out.println(lottery.size());\n\n }catch(Exception e) {\n }\n }\n\n \n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[]args) {\n try {\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n\n HashSet<String> lottery = new HashSet<String>();\n for(int i = 0;i<n;i++) {\n String words = br.readLine();\n lottery.add(words);\n }\nSystem.out.println(lottery.size());\n\n }catch(Exception e) {\n }\n }\n\n \n}",
"Main",
"public static void main(String[]args) {\n try {\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n\n HashSet<String> lottery = new HashSet<String>();\n for(int i = 0;i<n;i++) {\n String words = br.readLine();\n lottery.add(words);\n }\nSystem.out.println(lottery.size());\n\n }catch(Exception e) {\n }\n }",
"main",
"{\n try {\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n\n HashSet<String> lottery = new HashSet<String>();\n for(int i = 0;i<n;i++) {\n String words = br.readLine();\n lottery.add(words);\n }\nSystem.out.println(lottery.size());\n\n }catch(Exception e) {\n }\n }",
"try {\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n\n HashSet<String> lottery = new HashSet<String>();\n for(int i = 0;i<n;i++) {\n String words = br.readLine();\n lottery.add(words);\n }\nSystem.out.println(lottery.size());\n\n }catch(Exception e) {\n }",
"catch(Exception e) {\n }",
"Exception e",
"{\n }",
"{\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n\n HashSet<String> lottery = new HashSet<String>();\n for(int i = 0;i<n;i++) {\n String words = br.readLine();\n lottery.add(words);\n }\nSystem.out.println(lottery.size());\n\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",
"HashSet<String> lottery = new HashSet<String>();",
"lottery",
"new HashSet<String>()",
"for(int i = 0;i<n;i++) {\n String words = br.readLine();\n lottery.add(words);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String words = br.readLine();\n lottery.add(words);\n }",
"{\n String words = br.readLine();\n lottery.add(words);\n }",
"String words = br.readLine();",
"words",
"br.readLine()",
"br.readLine",
"br",
"lottery.add(words)",
"lottery.add",
"lottery",
"words",
"System.out.println(lottery.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"lottery.size()",
"lottery.size",
"lottery",
"String[]args",
"args",
"public class Main {\n public static void main(String[]args) {\n try {\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n\n HashSet<String> lottery = new HashSet<String>();\n for(int i = 0;i<n;i++) {\n String words = br.readLine();\n lottery.add(words);\n }\nSystem.out.println(lottery.size());\n\n }catch(Exception e) {\n }\n }\n\n \n}",
"public class Main {\n public static void main(String[]args) {\n try {\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n\n HashSet<String> lottery = new HashSet<String>();\n for(int i = 0;i<n;i++) {\n String words = br.readLine();\n lottery.add(words);\n }\nSystem.out.println(lottery.size());\n\n }catch(Exception e) {\n }\n }\n\n \n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[]args) {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
HashSet<String> lottery = new HashSet<String>();
for(int i = 0;i<n;i++) {
String words = br.readLine();
lottery.add(words);
}
System.out.println(lottery.size());
}catch(Exception e) {
}
}
}
|
[
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,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
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
],
[
58,
11
],
[
58,
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
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
14,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
12,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n\n Set<String> list = new HashSet<>();\n for (int i = 0; i < N; i++) {\n list.add(scanner.next());\n }\n System.out.println(list.stream().count());\n }\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n\n Set<String> list = new HashSet<>();\n for (int i = 0; i < N; i++) {\n list.add(scanner.next());\n }\n System.out.println(list.stream().count());\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n\n Set<String> list = new HashSet<>();\n for (int i = 0; i < N; i++) {\n list.add(scanner.next());\n }\n System.out.println(list.stream().count());\n }",
"main",
"{\n\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n\n Set<String> list = new HashSet<>();\n for (int i = 0; i < N; i++) {\n list.add(scanner.next());\n }\n System.out.println(list.stream().count());\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"Set<String> list = new HashSet<>();",
"list",
"new HashSet<>()",
"for (int i = 0; i < N; i++) {\n list.add(scanner.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n list.add(scanner.next());\n }",
"{\n list.add(scanner.next());\n }",
"list.add(scanner.next())",
"list.add",
"list",
"scanner.next()",
"scanner.next",
"scanner",
"System.out.println(list.stream().count())",
"System.out.println",
"System.out",
"System",
"System.out",
"list.stream().count()",
"list.stream().count",
"list.stream()",
"list.stream",
"list",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n\n Set<String> list = new HashSet<>();\n for (int i = 0; i < N; i++) {\n list.add(scanner.next());\n }\n System.out.println(list.stream().count());\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n\n Set<String> list = new HashSet<>();\n for (int i = 0; i < N; i++) {\n list.add(scanner.next());\n }\n System.out.println(list.stream().count());\n }\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
Set<String> list = new HashSet<>();
for (int i = 0; i < N; i++) {
list.add(scanner.next());
}
System.out.println(list.stream().count());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
4,
18,
13,
17,
17,
41,
13,
39,
39,
17,
17,
39,
17,
40,
17,
39,
17,
17,
39,
40,
17,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
17,
23,
13,
12,
13,
30,
29,
2,
4,
18,
13,
13,
4,
18,
13,
17,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
29,
4,
13,
13,
13,
14,
2,
2,
13,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
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,
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
],
[
249,
17
],
[
249,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
20,
24
],
[
249,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
27,
35
],
[
35,
36
],
[
35,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
249,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
44,
53
],
[
53,
54
],
[
53,
55
],
[
44,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
73,
74
],
[
44,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
81,
82
],
[
44,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
42,
87
],
[
87,
88
],
[
249,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
89,
102
],
[
102,
103
],
[
249,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
113,
116
],
[
106,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
123,
124
],
[
124,
125
],
[
106,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
127,
130
],
[
130,
131
],
[
130,
132
],
[
104,
133
],
[
133,
134
],
[
104,
135
],
[
135,
136
],
[
249,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
137,
141
],
[
141,
142
],
[
137,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
145,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
143,
156
],
[
156,
157
],
[
143,
158
],
[
158,
159
],
[
249,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
160,
164
],
[
164,
165
],
[
160,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
160,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
175,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
185,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
174,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
160,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
204,
207
],
[
207,
208
],
[
160,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
216,
217
],
[
160,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
222,
225
],
[
225,
226
],
[
160,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
233,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
244,
245
],
[
229,
246
],
[
246,
247
],
[
0,
248
],
[
248,
249
],
[
248,
250
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PipedInputStream;\nimport java.util.*;\n\npublic class Main {\n private static final int MOD = (int) Math.pow(10, 9);\n private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n long n = sc.nextLong();\n Set<String> set = new HashSet<>();\n\n for (int i = 0; i < n; i++) {\n set.add(sc.next());\n }\n System.out.println(set.size());\n\n System.exit(0);\n }\n static private class Point {\n public int x;\n public int y;\n Point(int x, int y) {\n this.x = x;\n this.y = y;\n }\n }\n\n static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }\n\n static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PipedInputStream;",
"PipedInputStream",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static final int MOD = (int) Math.pow(10, 9);\n private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n long n = sc.nextLong();\n Set<String> set = new HashSet<>();\n\n for (int i = 0; i < n; i++) {\n set.add(sc.next());\n }\n System.out.println(set.size());\n\n System.exit(0);\n }\n static private class Point {\n public int x;\n public int y;\n Point(int x, int y) {\n this.x = x;\n this.y = y;\n }\n }\n\n static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }\n\n static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main",
"private static final int MOD = (int) Math.pow(10, 9);",
"MOD",
"(int) Math.pow(10, 9)",
"Math.pow",
"Math",
"10",
"9",
"private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};",
"DIRS",
"{{0, 1}, {0, -1}, {1, 0}, {-1, 0}}",
"{0, 1}",
"0",
"1",
"{0, -1}",
"0",
"-1",
"1",
"{1, 0}",
"1",
"0",
"{-1, 0}",
"-1",
"1",
"0",
"public static void main(String[] args) {\n FastReader sc = new FastReader();\n long n = sc.nextLong();\n Set<String> set = new HashSet<>();\n\n for (int i = 0; i < n; i++) {\n set.add(sc.next());\n }\n System.out.println(set.size());\n\n System.exit(0);\n }",
"main",
"{\n FastReader sc = new FastReader();\n long n = sc.nextLong();\n Set<String> set = new HashSet<>();\n\n for (int i = 0; i < n; i++) {\n set.add(sc.next());\n }\n System.out.println(set.size());\n\n System.exit(0);\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"long n = sc.nextLong();",
"n",
"sc.nextLong()",
"sc.nextLong",
"sc",
"Set<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"for (int i = 0; i < n; i++) {\n set.add(sc.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n set.add(sc.next());\n }",
"{\n set.add(sc.next());\n }",
"set.add(sc.next())",
"set.add",
"set",
"sc.next()",
"sc.next",
"sc",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }",
"log2",
"{\n return (int)(Math.log(x) / Math.log(2));\n }",
"return (int)(Math.log(x) / Math.log(2));",
"(int)(Math.log(x) / Math.log(2))",
"Math.log(x)",
"Math.log",
"Math",
"x",
"Math.log(2)",
"Math.log",
"Math",
"2",
"int x",
"x",
"static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }",
"gcd",
"{\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }",
"if (m < n) { return gcd(n, m); }",
"m < n",
"m",
"n",
"{ return gcd(n, m); }",
"return gcd(n, m);",
"gcd(n, m)",
"gcd",
"n",
"m",
"if (m % n == 0) { return n; }",
"m % n == 0",
"m % n",
"m",
"n",
"0",
"{ return n; }",
"return n;",
"n",
"return gcd(n, m%n);",
"gcd(n, m%n)",
"gcd",
"n",
"m%n",
"m",
"n",
"long m",
"m",
"long n",
"n",
"static private class Point {\n public int x;\n public int y;\n Point(int x, int y) {\n this.x = x;\n this.y = y;\n }\n }",
"Point",
"public int x;",
"x",
"public int y;",
"y",
"Point(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"Point",
"{\n this.x = x;\n this.y = y;\n }",
"this.x = x",
"this.x",
"this",
"this.x",
"x",
"this.y = y",
"this.y",
"this",
"this.y",
"y",
"int x",
"x",
"int y",
"y",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n private static final int MOD = (int) Math.pow(10, 9);\n private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n long n = sc.nextLong();\n Set<String> set = new HashSet<>();\n\n for (int i = 0; i < n; i++) {\n set.add(sc.next());\n }\n System.out.println(set.size());\n\n System.exit(0);\n }\n static private class Point {\n public int x;\n public int y;\n Point(int x, int y) {\n this.x = x;\n this.y = y;\n }\n }\n\n static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }\n\n static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"public class Main {\n private static final int MOD = (int) Math.pow(10, 9);\n private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n long n = sc.nextLong();\n Set<String> set = new HashSet<>();\n\n for (int i = 0; i < n; i++) {\n set.add(sc.next());\n }\n System.out.println(set.size());\n\n System.exit(0);\n }\n static private class Point {\n public int x;\n public int y;\n Point(int x, int y) {\n this.x = x;\n this.y = y;\n }\n }\n\n static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }\n\n static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try{\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PipedInputStream;
import java.util.*;
public class Main {
private static final int MOD = (int) Math.pow(10, 9);
private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};
public static void main(String[] args) {
FastReader sc = new FastReader();
long n = sc.nextLong();
Set<String> set = new HashSet<>();
for (int i = 0; i < n; i++) {
set.add(sc.next());
}
System.out.println(set.size());
System.exit(0);
}
static private class Point {
public int x;
public int y;
Point(int x, int y) {
this.x = x;
this.y = y;
}
}
static private int log2(int x) {
return (int)(Math.log(x) / Math.log(2));
}
static private long gcd(long m, long n) {
if (m < n) { return gcd(n, m); }
if (m % n == 0) { return n; }
return gcd(n, m%n);
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try{
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
58,
11
],
[
58,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
14,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
12,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.Scanner;\nimport java.util.Set;\nimport java.util.TreeSet;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scanner.nextLine());\n\t\tSet<String> Ss = new TreeSet<>();\n\t\tfor(int i = 0; i < N; i++) Ss.add(scanner.nextLine());\n\t\tSystem.out.println(Ss.size());\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"import java.util.TreeSet;",
"TreeSet",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scanner.nextLine());\n\t\tSet<String> Ss = new TreeSet<>();\n\t\tfor(int i = 0; i < N; i++) Ss.add(scanner.nextLine());\n\t\tSystem.out.println(Ss.size());\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scanner.nextLine());\n\t\tSet<String> Ss = new TreeSet<>();\n\t\tfor(int i = 0; i < N; i++) Ss.add(scanner.nextLine());\n\t\tSystem.out.println(Ss.size());\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scanner.nextLine());\n\t\tSet<String> Ss = new TreeSet<>();\n\t\tfor(int i = 0; i < N; i++) Ss.add(scanner.nextLine());\n\t\tSystem.out.println(Ss.size());\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = Integer.parseInt(scanner.nextLine());",
"N",
"Integer.parseInt(scanner.nextLine())",
"Integer.parseInt",
"Integer",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"Set<String> Ss = new TreeSet<>();",
"Ss",
"new TreeSet<>()",
"for(int i = 0; i < N; i++) Ss.add(scanner.nextLine());",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"Ss.add(scanner.nextLine());",
"Ss.add(scanner.nextLine())",
"Ss.add",
"Ss",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"System.out.println(Ss.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"Ss.size()",
"Ss.size",
"Ss",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scanner.nextLine());\n\t\tSet<String> Ss = new TreeSet<>();\n\t\tfor(int i = 0; i < N; i++) Ss.add(scanner.nextLine());\n\t\tSystem.out.println(Ss.size());\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scanner.nextLine());\n\t\tSet<String> Ss = new TreeSet<>();\n\t\tfor(int i = 0; i < N; i++) Ss.add(scanner.nextLine());\n\t\tSystem.out.println(Ss.size());\n\t}\n}",
"Main"
] |
import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = Integer.parseInt(scanner.nextLine());
Set<String> Ss = new TreeSet<>();
for(int i = 0; i < N; i++) Ss.add(scanner.nextLine());
System.out.println(Ss.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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
59,
14
],
[
59,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
17,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
17,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
15,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n Set<String> set = new HashSet<>();\n for (int i=0; i<num; i++) {\n set.add(sc.next());\n }\n\n System.out.println(set.size());\n }\n}",
"import java.io.File;",
"File",
"java.io",
"import java.io.FileInputStream;",
"FileInputStream",
"java.io",
"import java.io.FileNotFoundException;",
"FileNotFoundException",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n Set<String> set = new HashSet<>();\n for (int i=0; i<num; i++) {\n set.add(sc.next());\n }\n\n System.out.println(set.size());\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n Set<String> set = new HashSet<>();\n for (int i=0; i<num; i++) {\n set.add(sc.next());\n }\n\n System.out.println(set.size());\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n Set<String> set = new HashSet<>();\n for (int i=0; i<num; i++) {\n set.add(sc.next());\n }\n\n System.out.println(set.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Set<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"for (int i=0; i<num; i++) {\n set.add(sc.next());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num",
"i",
"num",
"i++",
"i++",
"i",
"{\n set.add(sc.next());\n }",
"{\n set.add(sc.next());\n }",
"set.add(sc.next())",
"set.add",
"set",
"sc.next()",
"sc.next",
"sc",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n Set<String> set = new HashSet<>();\n for (int i=0; i<num; i++) {\n set.add(sc.next());\n }\n\n System.out.println(set.size());\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n Set<String> set = new HashSet<>();\n for (int i=0; i<num; i++) {\n set.add(sc.next());\n }\n\n System.out.println(set.size());\n }\n}",
"Main"
] |
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
Set<String> set = new HashSet<>();
for (int i=0; i<num; i++) {
set.add(sc.next());
}
System.out.println(set.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
42,
2,
40,
13,
17,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
29,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
39,
40
],
[
11,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
9,
49
],
[
49,
50
]
] |
[
"import java.util.*;\nimport java.io.*;\nclass Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st= new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n HashSet<String> hs = new HashSet();\n while(n--!=0){\n hs.add(br.readLine());\n }\n System.out.println(hs.size());\n \n\n }\n}\n\n//10 3 10 3",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st= new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n HashSet<String> hs = new HashSet();\n while(n--!=0){\n hs.add(br.readLine());\n }\n System.out.println(hs.size());\n \n\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st= new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n HashSet<String> hs = new HashSet();\n while(n--!=0){\n hs.add(br.readLine());\n }\n System.out.println(hs.size());\n \n\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st= new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n HashSet<String> hs = new HashSet();\n while(n--!=0){\n hs.add(br.readLine());\n }\n System.out.println(hs.size());\n \n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st= new StringTokenizer(br.readLine());",
"st",
"new StringTokenizer(br.readLine())",
"int n = Integer.parseInt(st.nextToken());",
"n",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"HashSet<String> hs = new HashSet();",
"hs",
"new HashSet()",
"while(n--!=0){\n hs.add(br.readLine());\n }",
"n--!=0",
"n--",
"n",
"0",
"{\n hs.add(br.readLine());\n }",
"hs.add(br.readLine())",
"hs.add",
"hs",
"br.readLine()",
"br.readLine",
"br",
"System.out.println(hs.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"hs.size()",
"hs.size",
"hs",
"String[] args",
"args"
] |
import java.util.*;
import java.io.*;
class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st= new StringTokenizer(br.readLine());
int n = Integer.parseInt(st.nextToken());
HashSet<String> hs = new HashSet();
while(n--!=0){
hs.add(br.readLine());
}
System.out.println(hs.size());
}
}
//10 3 10 3
|
[
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,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
56,
11
],
[
56,
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
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
14,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
12,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.util.LinkedHashSet;\nimport java.util.Scanner;\nimport java.util.Set;\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\tSet<String> linkhash = new LinkedHashSet<String>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlinkhash.add(sc.next());\n\t\t}\n\t\tSystem.out.println(linkhash.size());\n\t}\n}",
"import java.util.LinkedHashSet;",
"LinkedHashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"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\tSet<String> linkhash = new LinkedHashSet<String>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlinkhash.add(sc.next());\n\t\t}\n\t\tSystem.out.println(linkhash.size());\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\tSet<String> linkhash = new LinkedHashSet<String>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlinkhash.add(sc.next());\n\t\t}\n\t\tSystem.out.println(linkhash.size());\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tSet<String> linkhash = new LinkedHashSet<String>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlinkhash.add(sc.next());\n\t\t}\n\t\tSystem.out.println(linkhash.size());\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Set<String> linkhash = new LinkedHashSet<String>();",
"linkhash",
"new LinkedHashSet<String>()",
"for (int i = 0; i < n; i++) {\n\t\t\tlinkhash.add(sc.next());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tlinkhash.add(sc.next());\n\t\t}",
"{\n\t\t\tlinkhash.add(sc.next());\n\t\t}",
"linkhash.add(sc.next())",
"linkhash.add",
"linkhash",
"sc.next()",
"sc.next",
"sc",
"System.out.println(linkhash.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"linkhash.size()",
"linkhash.size",
"linkhash",
"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\tSet<String> linkhash = new LinkedHashSet<String>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlinkhash.add(sc.next());\n\t\t}\n\t\tSystem.out.println(linkhash.size());\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tSet<String> linkhash = new LinkedHashSet<String>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlinkhash.add(sc.next());\n\t\t}\n\t\tSystem.out.println(linkhash.size());\n\t}\n}",
"Main"
] |
import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
Set<String> linkhash = new LinkedHashSet<String>();
for (int i = 0; i < n; i++) {
linkhash.add(sc.next());
}
System.out.println(linkhash.size());
}
}
|
[
7,
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,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
41,
13,
20,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0 ; i < N; i++) {\n\t\t\tString s = scan.next();\n\t\t\tlist.add(s);\n\t\t}\n\t\tscan.close();\n\t\tList<String> ans = new ArrayList<>(new HashSet<>(list));\n\t\tSystem.out.println(ans.size());\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0 ; i < N; i++) {\n\t\t\tString s = scan.next();\n\t\t\tlist.add(s);\n\t\t}\n\t\tscan.close();\n\t\tList<String> ans = new ArrayList<>(new HashSet<>(list));\n\t\tSystem.out.println(ans.size());\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0 ; i < N; i++) {\n\t\t\tString s = scan.next();\n\t\t\tlist.add(s);\n\t\t}\n\t\tscan.close();\n\t\tList<String> ans = new ArrayList<>(new HashSet<>(list));\n\t\tSystem.out.println(ans.size());\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0 ; i < N; i++) {\n\t\t\tString s = scan.next();\n\t\t\tlist.add(s);\n\t\t}\n\t\tscan.close();\n\t\tList<String> ans = new ArrayList<>(new HashSet<>(list));\n\t\tSystem.out.println(ans.size());\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"List<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"for (int i = 0 ; i < N; i++) {\n\t\t\tString s = scan.next();\n\t\t\tlist.add(s);\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tString s = scan.next();\n\t\t\tlist.add(s);\n\t\t}",
"{\n\t\t\tString s = scan.next();\n\t\t\tlist.add(s);\n\t\t}",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"list.add(s)",
"list.add",
"list",
"s",
"scan.close()",
"scan.close",
"scan",
"List<String> ans = new ArrayList<>(new HashSet<>(list));",
"ans",
"new ArrayList<>(new HashSet<>(list))",
"System.out.println(ans.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"ans.size()",
"ans.size",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0 ; i < N; i++) {\n\t\t\tString s = scan.next();\n\t\t\tlist.add(s);\n\t\t}\n\t\tscan.close();\n\t\tList<String> ans = new ArrayList<>(new HashSet<>(list));\n\t\tSystem.out.println(ans.size());\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0 ; i < N; i++) {\n\t\t\tString s = scan.next();\n\t\t\tlist.add(s);\n\t\t}\n\t\tscan.close();\n\t\tList<String> ans = new ArrayList<>(new HashSet<>(list));\n\t\tSystem.out.println(ans.size());\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
List<String> list = new ArrayList<String>();
for (int i = 0 ; i < N; i++) {
String s = scan.next();
list.add(s);
}
scan.close();
List<String> ans = new ArrayList<>(new HashSet<>(list));
System.out.println(ans.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
28,
13,
13,
30,
30,
41,
13,
4,
18,
13,
13,
4,
18,
13,
13,
8,
2,
13,
17,
17,
2,
13,
17,
4,
18,
18,
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
],
[
14,
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
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
45,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
49,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
74,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n //コード\n Scanner scanner = new Scanner(System.in);\n Integer N = Integer.parseInt(scanner.next());\n List<String> S = new ArrayList<>();\n Map<String, Integer> R = new HashMap<String, Integer>();\n\n\n for (int i = 0; i < N; i++) {\n S.add(scanner.next());\n }\n\n for (String temp : S) {\n Integer count = R.get(temp);\n R.put(temp, (count == null) ? 1 : count + 1);\n }\n\n System.out.println(R.size());\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n //コード\n Scanner scanner = new Scanner(System.in);\n Integer N = Integer.parseInt(scanner.next());\n List<String> S = new ArrayList<>();\n Map<String, Integer> R = new HashMap<String, Integer>();\n\n\n for (int i = 0; i < N; i++) {\n S.add(scanner.next());\n }\n\n for (String temp : S) {\n Integer count = R.get(temp);\n R.put(temp, (count == null) ? 1 : count + 1);\n }\n\n System.out.println(R.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n //コード\n Scanner scanner = new Scanner(System.in);\n Integer N = Integer.parseInt(scanner.next());\n List<String> S = new ArrayList<>();\n Map<String, Integer> R = new HashMap<String, Integer>();\n\n\n for (int i = 0; i < N; i++) {\n S.add(scanner.next());\n }\n\n for (String temp : S) {\n Integer count = R.get(temp);\n R.put(temp, (count == null) ? 1 : count + 1);\n }\n\n System.out.println(R.size());\n }",
"main",
"{\n //コード\n Scanner scanner = new Scanner(System.in);\n Integer N = Integer.parseInt(scanner.next());\n List<String> S = new ArrayList<>();\n Map<String, Integer> R = new HashMap<String, Integer>();\n\n\n for (int i = 0; i < N; i++) {\n S.add(scanner.next());\n }\n\n for (String temp : S) {\n Integer count = R.get(temp);\n R.put(temp, (count == null) ? 1 : count + 1);\n }\n\n System.out.println(R.size());\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"Integer N = Integer.parseInt(scanner.next());",
"N",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"List<String> S = new ArrayList<>();",
"S",
"new ArrayList<>()",
"Map<String, Integer> R = new HashMap<String, Integer>();",
"R",
"new HashMap<String, Integer>()",
"for (int i = 0; i < N; i++) {\n S.add(scanner.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n S.add(scanner.next());\n }",
"{\n S.add(scanner.next());\n }",
"S.add(scanner.next())",
"S.add",
"S",
"scanner.next()",
"scanner.next",
"scanner",
"for (String temp : S) {\n Integer count = R.get(temp);\n R.put(temp, (count == null) ? 1 : count + 1);\n }",
"String temp",
"S",
"{\n Integer count = R.get(temp);\n R.put(temp, (count == null) ? 1 : count + 1);\n }",
"{\n Integer count = R.get(temp);\n R.put(temp, (count == null) ? 1 : count + 1);\n }",
"Integer count = R.get(temp);",
"count",
"R.get(temp)",
"R.get",
"R",
"temp",
"R.put(temp, (count == null) ? 1 : count + 1)",
"R.put",
"R",
"temp",
"(count == null) ? 1 : count + 1",
"(count == null)",
"count",
"null",
"1",
"count + 1",
"count",
"1",
"System.out.println(R.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"R.size()",
"R.size",
"R",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n //コード\n Scanner scanner = new Scanner(System.in);\n Integer N = Integer.parseInt(scanner.next());\n List<String> S = new ArrayList<>();\n Map<String, Integer> R = new HashMap<String, Integer>();\n\n\n for (int i = 0; i < N; i++) {\n S.add(scanner.next());\n }\n\n for (String temp : S) {\n Integer count = R.get(temp);\n R.put(temp, (count == null) ? 1 : count + 1);\n }\n\n System.out.println(R.size());\n }\n}",
"public class Main {\n public static void main(String[] args) {\n //コード\n Scanner scanner = new Scanner(System.in);\n Integer N = Integer.parseInt(scanner.next());\n List<String> S = new ArrayList<>();\n Map<String, Integer> R = new HashMap<String, Integer>();\n\n\n for (int i = 0; i < N; i++) {\n S.add(scanner.next());\n }\n\n for (String temp : S) {\n Integer count = R.get(temp);\n R.put(temp, (count == null) ? 1 : count + 1);\n }\n\n System.out.println(R.size());\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
//コード
Scanner scanner = new Scanner(System.in);
Integer N = Integer.parseInt(scanner.next());
List<String> S = new ArrayList<>();
Map<String, Integer> R = new HashMap<String, Integer>();
for (int i = 0; i < N; i++) {
S.add(scanner.next());
}
for (String temp : S) {
Integer count = R.get(temp);
R.put(temp, (count == null) ? 1 : count + 1);
}
System.out.println(R.size());
}
}
|
[
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,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
63,
11
],
[
63,
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
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
14,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
14,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
12,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] |
[
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n // Your code here!\n\n Scanner sc = new Scanner(System.in);\n int i = sc.nextInt();\n List<String> tinko = new ArrayList<>();\n\n for(int t = 0;t < i;t++){\n tinko.add(sc.next());\n }\n\n Long kosuu = tinko.stream().distinct().count();\n\n System.out.println(kosuu);\n\n }\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\tpublic static void main(String[] args) throws Exception {\n // Your code here!\n\n Scanner sc = new Scanner(System.in);\n int i = sc.nextInt();\n List<String> tinko = new ArrayList<>();\n\n for(int t = 0;t < i;t++){\n tinko.add(sc.next());\n }\n\n Long kosuu = tinko.stream().distinct().count();\n\n System.out.println(kosuu);\n\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // Your code here!\n\n Scanner sc = new Scanner(System.in);\n int i = sc.nextInt();\n List<String> tinko = new ArrayList<>();\n\n for(int t = 0;t < i;t++){\n tinko.add(sc.next());\n }\n\n Long kosuu = tinko.stream().distinct().count();\n\n System.out.println(kosuu);\n\n }",
"main",
"{\n // Your code here!\n\n Scanner sc = new Scanner(System.in);\n int i = sc.nextInt();\n List<String> tinko = new ArrayList<>();\n\n for(int t = 0;t < i;t++){\n tinko.add(sc.next());\n }\n\n Long kosuu = tinko.stream().distinct().count();\n\n System.out.println(kosuu);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int i = sc.nextInt();",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"List<String> tinko = new ArrayList<>();",
"tinko",
"new ArrayList<>()",
"for(int t = 0;t < i;t++){\n tinko.add(sc.next());\n }",
"int t = 0;",
"int t = 0;",
"t",
"0",
"t < i",
"t",
"i",
"t++",
"t++",
"t",
"{\n tinko.add(sc.next());\n }",
"{\n tinko.add(sc.next());\n }",
"tinko.add(sc.next())",
"tinko.add",
"tinko",
"sc.next()",
"sc.next",
"sc",
"Long kosuu = tinko.stream().distinct().count();",
"kosuu",
"tinko.stream().distinct().count()",
"tinko.stream().distinct().count",
"tinko.stream().distinct()",
"tinko.stream().distinct",
"tinko.stream()",
"tinko.stream",
"tinko",
"System.out.println(kosuu)",
"System.out.println",
"System.out",
"System",
"System.out",
"kosuu",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n // Your code here!\n\n Scanner sc = new Scanner(System.in);\n int i = sc.nextInt();\n List<String> tinko = new ArrayList<>();\n\n for(int t = 0;t < i;t++){\n tinko.add(sc.next());\n }\n\n Long kosuu = tinko.stream().distinct().count();\n\n System.out.println(kosuu);\n\n }\n\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n // Your code here!\n\n Scanner sc = new Scanner(System.in);\n int i = sc.nextInt();\n List<String> tinko = new ArrayList<>();\n\n for(int t = 0;t < i;t++){\n tinko.add(sc.next());\n }\n\n Long kosuu = tinko.stream().distinct().count();\n\n System.out.println(kosuu);\n\n }\n\n}",
"Main"
] |
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int i = sc.nextInt();
List<String> tinko = new ArrayList<>();
for(int t = 0;t < i;t++){
tinko.add(sc.next());
}
Long kosuu = tinko.stream().distinct().count();
System.out.println(kosuu);
}
}
|
[
7,
15,
13,
17,
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,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
79,
8
],
[
79,
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,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
24,
34
],
[
34,
35
],
[
35,
36
],
[
24,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
11,
46
],
[
46,
47
],
[
46,
48
],
[
11,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
11,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
74,
75
],
[
9,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\npublic class Main{\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n String[] arr=new String[n];\n for (int i = 0; i <arr.length ; i++) {\n arr[i]=sc.next();\n }\n HashSet<String> hs = new HashSet<String>();\n for(int i = 0; i < n; i++)\n {\n // add all the elements to the HashSet\n hs.add(arr[i]);\n }\n System.out.println(hs.size());\n }\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n String[] arr=new String[n];\n for (int i = 0; i <arr.length ; i++) {\n arr[i]=sc.next();\n }\n HashSet<String> hs = new HashSet<String>();\n for(int i = 0; i < n; i++)\n {\n // add all the elements to the HashSet\n hs.add(arr[i]);\n }\n System.out.println(hs.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n String[] arr=new String[n];\n for (int i = 0; i <arr.length ; i++) {\n arr[i]=sc.next();\n }\n HashSet<String> hs = new HashSet<String>();\n for(int i = 0; i < n; i++)\n {\n // add all the elements to the HashSet\n hs.add(arr[i]);\n }\n System.out.println(hs.size());\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n String[] arr=new String[n];\n for (int i = 0; i <arr.length ; i++) {\n arr[i]=sc.next();\n }\n HashSet<String> hs = new HashSet<String>();\n for(int i = 0; i < n; i++)\n {\n // add all the elements to the HashSet\n hs.add(arr[i]);\n }\n System.out.println(hs.size());\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] arr=new String[n];",
"arr",
"new String[n]",
"n",
"for (int i = 0; i <arr.length ; i++) {\n arr[i]=sc.next();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"{\n arr[i]=sc.next();\n }",
"{\n arr[i]=sc.next();\n }",
"arr[i]=sc.next()",
"arr[i]",
"arr",
"i",
"sc.next()",
"sc.next",
"sc",
"HashSet<String> hs = new HashSet<String>();",
"hs",
"new HashSet<String>()",
"for(int i = 0; i < n; i++)\n {\n // add all the elements to the HashSet\n hs.add(arr[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n // add all the elements to the HashSet\n hs.add(arr[i]);\n }",
"{\n // add all the elements to the HashSet\n hs.add(arr[i]);\n }",
"hs.add(arr[i])",
"hs.add",
"hs",
"arr[i]",
"arr",
"i",
"System.out.println(hs.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"hs.size()",
"hs.size",
"hs",
"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 String[] arr=new String[n];\n for (int i = 0; i <arr.length ; i++) {\n arr[i]=sc.next();\n }\n HashSet<String> hs = new HashSet<String>();\n for(int i = 0; i < n; i++)\n {\n // add all the elements to the HashSet\n hs.add(arr[i]);\n }\n System.out.println(hs.size());\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 String[] arr=new String[n];\n for (int i = 0; i <arr.length ; i++) {\n arr[i]=sc.next();\n }\n HashSet<String> hs = new HashSet<String>();\n for(int i = 0; i < n; i++)\n {\n // add all the elements to the HashSet\n hs.add(arr[i]);\n }\n System.out.println(hs.size());\n }\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String[] arr=new String[n];
for (int i = 0; i <arr.length ; i++) {
arr[i]=sc.next();
}
HashSet<String> hs = new HashSet<String>();
for(int i = 0; i < n; i++)
{
// add all the elements to the HashSet
hs.add(arr[i]);
}
System.out.println(hs.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
18,
13,
13,
4,
18,
18,
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,
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
],
[
42,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] |
[
"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 String[]str = new String[N];\n \n Set<String> set = new HashSet<String>();\n for(int i=0;i<N;i++){\n str[i]=sc.next();\n set.add(str[i]);\n }\n \n \n \n System.out.println(set.size());\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 String[]str = new String[N];\n \n Set<String> set = new HashSet<String>();\n for(int i=0;i<N;i++){\n str[i]=sc.next();\n set.add(str[i]);\n }\n \n \n \n System.out.println(set.size());\n }\n}",
"Main",
"public static void main(String[]args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[]str = new String[N];\n \n Set<String> set = new HashSet<String>();\n for(int i=0;i<N;i++){\n str[i]=sc.next();\n set.add(str[i]);\n }\n \n \n \n System.out.println(set.size());\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[]str = new String[N];\n \n Set<String> set = new HashSet<String>();\n for(int i=0;i<N;i++){\n str[i]=sc.next();\n set.add(str[i]);\n }\n \n \n \n System.out.println(set.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[]str = new String[N];",
"str",
"new String[N]",
"N",
"Set<String> set = new HashSet<String>();",
"set",
"new HashSet<String>()",
"for(int i=0;i<N;i++){\n str[i]=sc.next();\n set.add(str[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n str[i]=sc.next();\n set.add(str[i]);\n }",
"{\n str[i]=sc.next();\n set.add(str[i]);\n }",
"str[i]=sc.next()",
"str[i]",
"str",
"i",
"sc.next()",
"sc.next",
"sc",
"set.add(str[i])",
"set.add",
"set",
"str[i]",
"str",
"i",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"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 String[]str = new String[N];\n \n Set<String> set = new HashSet<String>();\n for(int i=0;i<N;i++){\n str[i]=sc.next();\n set.add(str[i]);\n }\n \n \n \n System.out.println(set.size());\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 String[]str = new String[N];\n \n Set<String> set = new HashSet<String>();\n for(int i=0;i<N;i++){\n str[i]=sc.next();\n set.add(str[i]);\n }\n \n \n \n System.out.println(set.size());\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();
String[]str = new String[N];
Set<String> set = new HashSet<String>();
for(int i=0;i<N;i++){
str[i]=sc.next();
set.add(str[i]);
}
System.out.println(set.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
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
],
[
123,
17
],
[
123,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
20,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
20,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
18,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
64,
68
],
[
68,
69
],
[
64,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
64,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
79,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
89,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
78,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
64,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
64,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.HashSet;\nimport java.util.StringTokenizer;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\t\tFastScanner sc = new FastScanner();\n\n\t\t\t\tint Kuji = sc.nextInt();\n\t\t\t\t//リスト定義\n\t\t\t\t//List<String> gift = new ArrayList<String>();\n\t\t\t\tHashSet<String> hs = new HashSet<String>();\n\n\t\t\t\t//kujiの個数回繰り返す。\n\t\t\tfor(int i = 1; i <= Kuji; i++) {\n\t\t\t\tString syohin = sc.next();\n\t\t\t\t//リストの中にデータがなければ追加する\n\t\t\t\t\ths.add(syohin);\n\t\t\t}\n\t\t\t\t//リストの数を出力する。\n\t\tSystem.out.println(hs.size());\n\t\t\t}\n\t\t}\n\n\nclass FastScanner {\n\n\tBufferedReader br;\n\n\tStringTokenizer st;\n\n\n\n\tpublic FastScanner() {\n\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\n\t}\n\n\n\n\tString next() {\n\n\t\twhile (st == null || !st.hasMoreElements()) {\n\n\t\t\ttry {\n\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn st.nextToken();\n\n\t}\n\n\n\n\tint nextInt() {\n\n\t\treturn Integer.parseInt(next());\n\n\t}\n\n\n\n\tlong nextLong() {\n\n\t\treturn Long.parseLong(next());\n\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\t\tFastScanner sc = new FastScanner();\n\n\t\t\t\tint Kuji = sc.nextInt();\n\t\t\t\t//リスト定義\n\t\t\t\t//List<String> gift = new ArrayList<String>();\n\t\t\t\tHashSet<String> hs = new HashSet<String>();\n\n\t\t\t\t//kujiの個数回繰り返す。\n\t\t\tfor(int i = 1; i <= Kuji; i++) {\n\t\t\t\tString syohin = sc.next();\n\t\t\t\t//リストの中にデータがなければ追加する\n\t\t\t\t\ths.add(syohin);\n\t\t\t}\n\t\t\t\t//リストの数を出力する。\n\t\tSystem.out.println(hs.size());\n\t\t\t}\n\t\t}",
"Main",
"public static void main(String[] args) {\n\n\t\t\t\tFastScanner sc = new FastScanner();\n\n\t\t\t\tint Kuji = sc.nextInt();\n\t\t\t\t//リスト定義\n\t\t\t\t//List<String> gift = new ArrayList<String>();\n\t\t\t\tHashSet<String> hs = new HashSet<String>();\n\n\t\t\t\t//kujiの個数回繰り返す。\n\t\t\tfor(int i = 1; i <= Kuji; i++) {\n\t\t\t\tString syohin = sc.next();\n\t\t\t\t//リストの中にデータがなければ追加する\n\t\t\t\t\ths.add(syohin);\n\t\t\t}\n\t\t\t\t//リストの数を出力する。\n\t\tSystem.out.println(hs.size());\n\t\t\t}",
"main",
"{\n\n\t\t\t\tFastScanner sc = new FastScanner();\n\n\t\t\t\tint Kuji = sc.nextInt();\n\t\t\t\t//リスト定義\n\t\t\t\t//List<String> gift = new ArrayList<String>();\n\t\t\t\tHashSet<String> hs = new HashSet<String>();\n\n\t\t\t\t//kujiの個数回繰り返す。\n\t\t\tfor(int i = 1; i <= Kuji; i++) {\n\t\t\t\tString syohin = sc.next();\n\t\t\t\t//リストの中にデータがなければ追加する\n\t\t\t\t\ths.add(syohin);\n\t\t\t}\n\t\t\t\t//リストの数を出力する。\n\t\tSystem.out.println(hs.size());\n\t\t\t}",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"int Kuji = sc.nextInt();",
"Kuji",
"sc.nextInt()",
"sc.nextInt",
"sc",
"HashSet<String> hs = new HashSet<String>();",
"hs",
"new HashSet<String>()",
"for(int i = 1; i <= Kuji; i++) {\n\t\t\t\tString syohin = sc.next();\n\t\t\t\t//リストの中にデータがなければ追加する\n\t\t\t\t\ths.add(syohin);\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= Kuji",
"i",
"Kuji",
"i++",
"i++",
"i",
"{\n\t\t\t\tString syohin = sc.next();\n\t\t\t\t//リストの中にデータがなければ追加する\n\t\t\t\t\ths.add(syohin);\n\t\t\t}",
"{\n\t\t\t\tString syohin = sc.next();\n\t\t\t\t//リストの中にデータがなければ追加する\n\t\t\t\t\ths.add(syohin);\n\t\t\t}",
"String syohin = sc.next();",
"syohin",
"sc.next()",
"sc.next",
"sc",
"hs.add(syohin)",
"hs.add",
"hs",
"syohin",
"System.out.println(hs.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"hs.size()",
"hs.size",
"hs",
"String[] args",
"args",
"class FastScanner {\n\n\tBufferedReader br;\n\n\tStringTokenizer st;\n\n\n\n\tpublic FastScanner() {\n\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\n\t}\n\n\n\n\tString next() {\n\n\t\twhile (st == null || !st.hasMoreElements()) {\n\n\t\t\ttry {\n\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn st.nextToken();\n\n\t}\n\n\n\n\tint nextInt() {\n\n\t\treturn Integer.parseInt(next());\n\n\t}\n\n\n\n\tlong nextLong() {\n\n\t\treturn Long.parseLong(next());\n\n\t}\n\n}",
"FastScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastScanner() {\n\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\n\t}",
"FastScanner",
"{\n\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\n\t}",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n\n\t\twhile (st == null || !st.hasMoreElements()) {\n\n\t\t\ttry {\n\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn st.nextToken();\n\n\t}",
"next",
"{\n\n\t\twhile (st == null || !st.hasMoreElements()) {\n\n\t\t\ttry {\n\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn st.nextToken();\n\n\t}",
"while (st == null || !st.hasMoreElements()) {\n\n\t\t\ttry {\n\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t}\n\n\t\t}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n\n\t\t\ttry {\n\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t}\n\n\t\t}",
"try {\n\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t}",
"catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t}",
"IOException e",
"{\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\n\t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\n\t\treturn Integer.parseInt(next());\n\n\t}",
"nextInt",
"{\n\n\t\treturn Integer.parseInt(next());\n\n\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\n\t\treturn Long.parseLong(next());\n\n\t}",
"nextLong",
"{\n\n\t\treturn Long.parseLong(next());\n\n\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\t\tFastScanner sc = new FastScanner();\n\n\t\t\t\tint Kuji = sc.nextInt();\n\t\t\t\t//リスト定義\n\t\t\t\t//List<String> gift = new ArrayList<String>();\n\t\t\t\tHashSet<String> hs = new HashSet<String>();\n\n\t\t\t\t//kujiの個数回繰り返す。\n\t\t\tfor(int i = 1; i <= Kuji; i++) {\n\t\t\t\tString syohin = sc.next();\n\t\t\t\t//リストの中にデータがなければ追加する\n\t\t\t\t\ths.add(syohin);\n\t\t\t}\n\t\t\t\t//リストの数を出力する。\n\t\tSystem.out.println(hs.size());\n\t\t\t}\n\t\t}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\t\tFastScanner sc = new FastScanner();\n\n\t\t\t\tint Kuji = sc.nextInt();\n\t\t\t\t//リスト定義\n\t\t\t\t//List<String> gift = new ArrayList<String>();\n\t\t\t\tHashSet<String> hs = new HashSet<String>();\n\n\t\t\t\t//kujiの個数回繰り返す。\n\t\t\tfor(int i = 1; i <= Kuji; i++) {\n\t\t\t\tString syohin = sc.next();\n\t\t\t\t//リストの中にデータがなければ追加する\n\t\t\t\t\ths.add(syohin);\n\t\t\t}\n\t\t\t\t//リストの数を出力する。\n\t\tSystem.out.println(hs.size());\n\t\t\t}\n\t\t}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
FastScanner sc = new FastScanner();
int Kuji = sc.nextInt();
//リスト定義
//List<String> gift = new ArrayList<String>();
HashSet<String> hs = new HashSet<String>();
//kujiの個数回繰り返す。
for(int i = 1; i <= Kuji; i++) {
String syohin = sc.next();
//リストの中にデータがなければ追加する
hs.add(syohin);
}
//リストの数を出力する。
System.out.println(hs.size());
}
}
class FastScanner {
BufferedReader br;
StringTokenizer st;
public FastScanner() {
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());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
9,
30,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
60,
8
],
[
60,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
26,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
42,
43
],
[
37,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
44,
49
],
[
49,
50
],
[
11,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
9,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.math.*;\nimport java.util.*;\n\n\npublic class Main {\n\n public static void main(String args[]){\n Scanner scan =new Scanner(System.in);\n HashSet<String> items =new HashSet<String>();\n int N =scan.nextInt();\n int i=0;\n while(N-->0) {\n String s=scan.next();\n if(items.contains(s)){\n continue;\n }\n else {\n items.add(s);\n i++;\n }\n }\n System.out.println(i);\n }\n\n}",
"import java.math.*;",
"math.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String args[]){\n Scanner scan =new Scanner(System.in);\n HashSet<String> items =new HashSet<String>();\n int N =scan.nextInt();\n int i=0;\n while(N-->0) {\n String s=scan.next();\n if(items.contains(s)){\n continue;\n }\n else {\n items.add(s);\n i++;\n }\n }\n System.out.println(i);\n }\n\n}",
"Main",
"public static void main(String args[]){\n Scanner scan =new Scanner(System.in);\n HashSet<String> items =new HashSet<String>();\n int N =scan.nextInt();\n int i=0;\n while(N-->0) {\n String s=scan.next();\n if(items.contains(s)){\n continue;\n }\n else {\n items.add(s);\n i++;\n }\n }\n System.out.println(i);\n }",
"main",
"{\n Scanner scan =new Scanner(System.in);\n HashSet<String> items =new HashSet<String>();\n int N =scan.nextInt();\n int i=0;\n while(N-->0) {\n String s=scan.next();\n if(items.contains(s)){\n continue;\n }\n else {\n items.add(s);\n i++;\n }\n }\n System.out.println(i);\n }",
"Scanner scan =new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"HashSet<String> items =new HashSet<String>();",
"items",
"new HashSet<String>()",
"int N =scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int i=0;",
"i",
"0",
"while(N-->0) {\n String s=scan.next();\n if(items.contains(s)){\n continue;\n }\n else {\n items.add(s);\n i++;\n }\n }",
"N-->0",
"N--",
"N",
"0",
"{\n String s=scan.next();\n if(items.contains(s)){\n continue;\n }\n else {\n items.add(s);\n i++;\n }\n }",
"String s=scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"if(items.contains(s)){\n continue;\n }\n else {\n items.add(s);\n i++;\n }",
"items.contains(s)",
"items.contains",
"items",
"s",
"{\n continue;\n }",
"continue;",
"{\n items.add(s);\n i++;\n }",
"items.add(s)",
"items.add",
"items",
"s",
"i++",
"i",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"String args[]",
"args",
"public class Main {\n\n public static void main(String args[]){\n Scanner scan =new Scanner(System.in);\n HashSet<String> items =new HashSet<String>();\n int N =scan.nextInt();\n int i=0;\n while(N-->0) {\n String s=scan.next();\n if(items.contains(s)){\n continue;\n }\n else {\n items.add(s);\n i++;\n }\n }\n System.out.println(i);\n }\n\n}",
"public class Main {\n\n public static void main(String args[]){\n Scanner scan =new Scanner(System.in);\n HashSet<String> items =new HashSet<String>();\n int N =scan.nextInt();\n int i=0;\n while(N-->0) {\n String s=scan.next();\n if(items.contains(s)){\n continue;\n }\n else {\n items.add(s);\n i++;\n }\n }\n System.out.println(i);\n }\n\n}",
"Main"
] |
import java.math.*;
import java.util.*;
public class Main {
public static void main(String args[]){
Scanner scan =new Scanner(System.in);
HashSet<String> items =new HashSet<String>();
int N =scan.nextInt();
int i=0;
while(N-->0) {
String s=scan.next();
if(items.contains(s)){
continue;
}
else {
items.add(s);
i++;
}
}
System.out.println(i);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
42,
2,
40,
13,
17,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
6,
42
],
[
42,
43
]
] |
[
"import java.util.*;\nclass Main\n{\n public static void main(String args[])\n {\n Scanner ob=new Scanner(System.in);\n int n =ob.nextInt();\n ob.nextLine();\n HashSet<String> set = new HashSet<>();\n while(n-->0)\n set.add(ob.nextLine());\n System.out.println(set.size());\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main\n{\n public static void main(String args[])\n {\n Scanner ob=new Scanner(System.in);\n int n =ob.nextInt();\n ob.nextLine();\n HashSet<String> set = new HashSet<>();\n while(n-->0)\n set.add(ob.nextLine());\n System.out.println(set.size());\n\n }\n}",
"Main",
"public static void main(String args[])\n {\n Scanner ob=new Scanner(System.in);\n int n =ob.nextInt();\n ob.nextLine();\n HashSet<String> set = new HashSet<>();\n while(n-->0)\n set.add(ob.nextLine());\n System.out.println(set.size());\n\n }",
"main",
"{\n Scanner ob=new Scanner(System.in);\n int n =ob.nextInt();\n ob.nextLine();\n HashSet<String> set = new HashSet<>();\n while(n-->0)\n set.add(ob.nextLine());\n System.out.println(set.size());\n\n }",
"Scanner ob=new Scanner(System.in);",
"ob",
"new Scanner(System.in)",
"int n =ob.nextInt();",
"n",
"ob.nextInt()",
"ob.nextInt",
"ob",
"ob.nextLine()",
"ob.nextLine",
"ob",
"HashSet<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"while(n-->0)\n set.add(ob.nextLine());",
"n-->0",
"n--",
"n",
"0",
"set.add(ob.nextLine())",
"set.add",
"set",
"ob.nextLine()",
"ob.nextLine",
"ob",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"String args[]",
"args"
] |
import java.util.*;
class Main
{
public static void main(String args[])
{
Scanner ob=new Scanner(System.in);
int n =ob.nextInt();
ob.nextLine();
HashSet<String> set = new HashSet<>();
while(n-->0)
set.add(ob.nextLine());
System.out.println(set.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
17,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
13,
28,
13,
13,
30,
30,
14,
4,
18,
13,
13,
30,
40,
13,
30,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
66,
5
],
[
66,
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
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
37,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] |
[
"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 int n = sn.nextInt();\n List<String> s = new ArrayList<>();\n int cnt = 0;\n\t\tSet<String> checkHash = new HashSet<String>();\n \n while (sn.hasNext()) {\n s.add(sn.nextLine());\n }\n \n for(String str : s) {\n if(checkHash.contains(str)) {\n\t\t\t\t// 重複があればtrueをセットし終了\n\t\t\t\tcnt++;\n\t\t\t} else {\n\t\t\t\t// 重複しなければハッシュセットへ追加\n\t\t\t\tcheckHash.add(str);\n\t\t\t}\n }\n System.out.print(n - cnt);\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 int n = sn.nextInt();\n List<String> s = new ArrayList<>();\n int cnt = 0;\n\t\tSet<String> checkHash = new HashSet<String>();\n \n while (sn.hasNext()) {\n s.add(sn.nextLine());\n }\n \n for(String str : s) {\n if(checkHash.contains(str)) {\n\t\t\t\t// 重複があればtrueをセットし終了\n\t\t\t\tcnt++;\n\t\t\t} else {\n\t\t\t\t// 重複しなければハッシュセットへ追加\n\t\t\t\tcheckHash.add(str);\n\t\t\t}\n }\n System.out.print(n - cnt);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sn = new Scanner(System.in);\n \n int n = sn.nextInt();\n List<String> s = new ArrayList<>();\n int cnt = 0;\n\t\tSet<String> checkHash = new HashSet<String>();\n \n while (sn.hasNext()) {\n s.add(sn.nextLine());\n }\n \n for(String str : s) {\n if(checkHash.contains(str)) {\n\t\t\t\t// 重複があればtrueをセットし終了\n\t\t\t\tcnt++;\n\t\t\t} else {\n\t\t\t\t// 重複しなければハッシュセットへ追加\n\t\t\t\tcheckHash.add(str);\n\t\t\t}\n }\n System.out.print(n - cnt);\n }",
"main",
"{\n Scanner sn = new Scanner(System.in);\n \n int n = sn.nextInt();\n List<String> s = new ArrayList<>();\n int cnt = 0;\n\t\tSet<String> checkHash = new HashSet<String>();\n \n while (sn.hasNext()) {\n s.add(sn.nextLine());\n }\n \n for(String str : s) {\n if(checkHash.contains(str)) {\n\t\t\t\t// 重複があればtrueをセットし終了\n\t\t\t\tcnt++;\n\t\t\t} else {\n\t\t\t\t// 重複しなければハッシュセットへ追加\n\t\t\t\tcheckHash.add(str);\n\t\t\t}\n }\n System.out.print(n - cnt);\n }",
"Scanner sn = new Scanner(System.in);",
"sn",
"new Scanner(System.in)",
"int n = sn.nextInt();",
"n",
"sn.nextInt()",
"sn.nextInt",
"sn",
"List<String> s = new ArrayList<>();",
"s",
"new ArrayList<>()",
"int cnt = 0;",
"cnt",
"0",
"Set<String> checkHash = new HashSet<String>();",
"checkHash",
"new HashSet<String>()",
"while (sn.hasNext()) {\n s.add(sn.nextLine());\n }",
"sn.hasNext()",
"sn.hasNext",
"sn",
"{\n s.add(sn.nextLine());\n }",
"s.add(sn.nextLine())",
"s.add",
"s",
"sn.nextLine()",
"sn.nextLine",
"sn",
"for(String str : s) {\n if(checkHash.contains(str)) {\n\t\t\t\t// 重複があればtrueをセットし終了\n\t\t\t\tcnt++;\n\t\t\t} else {\n\t\t\t\t// 重複しなければハッシュセットへ追加\n\t\t\t\tcheckHash.add(str);\n\t\t\t}\n }",
"String str",
"s",
"{\n if(checkHash.contains(str)) {\n\t\t\t\t// 重複があればtrueをセットし終了\n\t\t\t\tcnt++;\n\t\t\t} else {\n\t\t\t\t// 重複しなければハッシュセットへ追加\n\t\t\t\tcheckHash.add(str);\n\t\t\t}\n }",
"{\n if(checkHash.contains(str)) {\n\t\t\t\t// 重複があればtrueをセットし終了\n\t\t\t\tcnt++;\n\t\t\t} else {\n\t\t\t\t// 重複しなければハッシュセットへ追加\n\t\t\t\tcheckHash.add(str);\n\t\t\t}\n }",
"if(checkHash.contains(str)) {\n\t\t\t\t// 重複があればtrueをセットし終了\n\t\t\t\tcnt++;\n\t\t\t} else {\n\t\t\t\t// 重複しなければハッシュセットへ追加\n\t\t\t\tcheckHash.add(str);\n\t\t\t}",
"checkHash.contains(str)",
"checkHash.contains",
"checkHash",
"str",
"{\n\t\t\t\t// 重複があればtrueをセットし終了\n\t\t\t\tcnt++;\n\t\t\t}",
"cnt++",
"cnt",
"{\n\t\t\t\t// 重複しなければハッシュセットへ追加\n\t\t\t\tcheckHash.add(str);\n\t\t\t}",
"checkHash.add(str)",
"checkHash.add",
"checkHash",
"str",
"System.out.print(n - cnt)",
"System.out.print",
"System.out",
"System",
"System.out",
"n - cnt",
"n",
"cnt",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sn = new Scanner(System.in);\n \n int n = sn.nextInt();\n List<String> s = new ArrayList<>();\n int cnt = 0;\n\t\tSet<String> checkHash = new HashSet<String>();\n \n while (sn.hasNext()) {\n s.add(sn.nextLine());\n }\n \n for(String str : s) {\n if(checkHash.contains(str)) {\n\t\t\t\t// 重複があればtrueをセットし終了\n\t\t\t\tcnt++;\n\t\t\t} else {\n\t\t\t\t// 重複しなければハッシュセットへ追加\n\t\t\t\tcheckHash.add(str);\n\t\t\t}\n }\n System.out.print(n - cnt);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sn = new Scanner(System.in);\n \n int n = sn.nextInt();\n List<String> s = new ArrayList<>();\n int cnt = 0;\n\t\tSet<String> checkHash = new HashSet<String>();\n \n while (sn.hasNext()) {\n s.add(sn.nextLine());\n }\n \n for(String str : s) {\n if(checkHash.contains(str)) {\n\t\t\t\t// 重複があればtrueをセットし終了\n\t\t\t\tcnt++;\n\t\t\t} else {\n\t\t\t\t// 重複しなければハッシュセットへ追加\n\t\t\t\tcheckHash.add(str);\n\t\t\t}\n }\n System.out.print(n - cnt);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sn = new Scanner(System.in);
int n = sn.nextInt();
List<String> s = new ArrayList<>();
int cnt = 0;
Set<String> checkHash = new HashSet<String>();
while (sn.hasNext()) {
s.add(sn.nextLine());
}
for(String str : s) {
if(checkHash.contains(str)) {
// 重複があればtrueをセットし終了
cnt++;
} else {
// 重複しなければハッシュセットへ追加
checkHash.add(str);
}
}
System.out.print(n - cnt);
}
}
|
[
7,
15,
13,
17,
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,
4,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
18,
13,
13,
18,
13,
2,
13,
17,
30,
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
],
[
91,
8
],
[
91,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
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
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
11,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
51,
61
],
[
61,
62
],
[
62,
63
],
[
51,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
66,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
11,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
9,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
] |
[
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tString A[] = new String[N];\n\t\tint count = 1;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = scanner.next();\n\t\t}\n\t\tArrays.sort(A);\n\n\t\tfor (int i = 0; i < N - 1; i++) {\n\t\t\tif (!(A[i].equals(A[i + 1]))) {\n\t\t\t\tcount += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tString A[] = new String[N];\n\t\tint count = 1;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = scanner.next();\n\t\t}\n\t\tArrays.sort(A);\n\n\t\tfor (int i = 0; i < N - 1; i++) {\n\t\t\tif (!(A[i].equals(A[i + 1]))) {\n\t\t\t\tcount += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tString A[] = new String[N];\n\t\tint count = 1;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = scanner.next();\n\t\t}\n\t\tArrays.sort(A);\n\n\t\tfor (int i = 0; i < N - 1; i++) {\n\t\t\tif (!(A[i].equals(A[i + 1]))) {\n\t\t\t\tcount += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tString A[] = new String[N];\n\t\tint count = 1;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = scanner.next();\n\t\t}\n\t\tArrays.sort(A);\n\n\t\tfor (int i = 0; i < N - 1; i++) {\n\t\t\tif (!(A[i].equals(A[i + 1]))) {\n\t\t\t\tcount += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String A[] = new String[N];",
"A",
"new String[N]",
"N",
"int count = 1;",
"count",
"1",
"for (int i = 0; i < N; i++) {\n\t\t\tA[i] = scanner.next();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tA[i] = scanner.next();\n\t\t}",
"{\n\t\t\tA[i] = scanner.next();\n\t\t}",
"A[i] = scanner.next()",
"A[i]",
"A",
"i",
"scanner.next()",
"scanner.next",
"scanner",
"Arrays.sort(A)",
"Arrays.sort",
"Arrays",
"A",
"for (int i = 0; i < N - 1; i++) {\n\t\t\tif (!(A[i].equals(A[i + 1]))) {\n\t\t\t\tcount += 1;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N - 1",
"i",
"N - 1",
"N",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tif (!(A[i].equals(A[i + 1]))) {\n\t\t\t\tcount += 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (!(A[i].equals(A[i + 1]))) {\n\t\t\t\tcount += 1;\n\t\t\t}\n\t\t}",
"if (!(A[i].equals(A[i + 1]))) {\n\t\t\t\tcount += 1;\n\t\t\t}",
"!(A[i].equals(A[i + 1]))",
"(A[i].equals(A[i + 1]))",
"A[i].equals",
"A[i]",
"A",
"i",
"A[i + 1]",
"A",
"i + 1",
"i",
"1",
"{\n\t\t\t\tcount += 1;\n\t\t\t}",
"count += 1",
"count",
"1",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tString A[] = new String[N];\n\t\tint count = 1;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = scanner.next();\n\t\t}\n\t\tArrays.sort(A);\n\n\t\tfor (int i = 0; i < N - 1; i++) {\n\t\t\tif (!(A[i].equals(A[i + 1]))) {\n\t\t\t\tcount += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tString A[] = new String[N];\n\t\tint count = 1;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = scanner.next();\n\t\t}\n\t\tArrays.sort(A);\n\n\t\tfor (int i = 0; i < N - 1; i++) {\n\t\t\tif (!(A[i].equals(A[i + 1]))) {\n\t\t\t\tcount += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main"
] |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
String A[] = new String[N];
int count = 1;
for (int i = 0; i < N; i++) {
A[i] = scanner.next();
}
Arrays.sort(A);
for (int i = 0; i < N - 1; i++) {
if (!(A[i].equals(A[i + 1]))) {
count += 1;
}
}
System.out.println(count);
}
}
|
[
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,
4,
18,
13,
41,
13,
17,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
18,
13,
13,
18,
13,
2,
13,
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
],
[
90,
5
],
[
90,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
48,
58
],
[
58,
59
],
[
59,
60
],
[
48,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
63,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
6,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] |
[
"\nimport java.util.*;\npublic class Main{\n public static void main(String[] args) {\n Scanner kbd = new Scanner(System.in);\n int n=kbd.nextInt();\n String[] A= new String[n];\n for(int i=0;i<n;i++){\n A[i]=kbd.next();\n}\nint x=1;\nArrays.sort(A);\nfor(int i=0;i<n-1;i++){\nif(!(A[i].equals(A[i+1]))){\n x=x+1;\n}\n}\nSystem.out.println(x);\n}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args) {\n Scanner kbd = new Scanner(System.in);\n int n=kbd.nextInt();\n String[] A= new String[n];\n for(int i=0;i<n;i++){\n A[i]=kbd.next();\n}\nint x=1;\nArrays.sort(A);\nfor(int i=0;i<n-1;i++){\nif(!(A[i].equals(A[i+1]))){\n x=x+1;\n}\n}\nSystem.out.println(x);\n}\n}",
"Main",
"public static void main(String[] args) {\n Scanner kbd = new Scanner(System.in);\n int n=kbd.nextInt();\n String[] A= new String[n];\n for(int i=0;i<n;i++){\n A[i]=kbd.next();\n}\nint x=1;\nArrays.sort(A);\nfor(int i=0;i<n-1;i++){\nif(!(A[i].equals(A[i+1]))){\n x=x+1;\n}\n}\nSystem.out.println(x);\n}",
"main",
"{\n Scanner kbd = new Scanner(System.in);\n int n=kbd.nextInt();\n String[] A= new String[n];\n for(int i=0;i<n;i++){\n A[i]=kbd.next();\n}\nint x=1;\nArrays.sort(A);\nfor(int i=0;i<n-1;i++){\nif(!(A[i].equals(A[i+1]))){\n x=x+1;\n}\n}\nSystem.out.println(x);\n}",
"Scanner kbd = new Scanner(System.in);",
"kbd",
"new Scanner(System.in)",
"int n=kbd.nextInt();",
"n",
"kbd.nextInt()",
"kbd.nextInt",
"kbd",
"String[] A= new String[n];",
"A",
"new String[n]",
"n",
"for(int i=0;i<n;i++){\n A[i]=kbd.next();\n}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n A[i]=kbd.next();\n}",
"{\n A[i]=kbd.next();\n}",
"A[i]=kbd.next()",
"A[i]",
"A",
"i",
"kbd.next()",
"kbd.next",
"kbd",
"int x=1;",
"x",
"1",
"Arrays.sort(A)",
"Arrays.sort",
"Arrays",
"A",
"for(int i=0;i<n-1;i++){\nif(!(A[i].equals(A[i+1]))){\n x=x+1;\n}\n}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n-1",
"i",
"n-1",
"n",
"1",
"i++",
"i++",
"i",
"{\nif(!(A[i].equals(A[i+1]))){\n x=x+1;\n}\n}",
"{\nif(!(A[i].equals(A[i+1]))){\n x=x+1;\n}\n}",
"if(!(A[i].equals(A[i+1]))){\n x=x+1;\n}",
"!(A[i].equals(A[i+1]))",
"(A[i].equals(A[i+1]))",
"A[i].equals",
"A[i]",
"A",
"i",
"A[i+1]",
"A",
"i+1",
"i",
"1",
"{\n x=x+1;\n}",
"x=x+1",
"x",
"x+1",
"x",
"1",
"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 kbd = new Scanner(System.in);\n int n=kbd.nextInt();\n String[] A= new String[n];\n for(int i=0;i<n;i++){\n A[i]=kbd.next();\n}\nint x=1;\nArrays.sort(A);\nfor(int i=0;i<n-1;i++){\nif(!(A[i].equals(A[i+1]))){\n x=x+1;\n}\n}\nSystem.out.println(x);\n}\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner kbd = new Scanner(System.in);\n int n=kbd.nextInt();\n String[] A= new String[n];\n for(int i=0;i<n;i++){\n A[i]=kbd.next();\n}\nint x=1;\nArrays.sort(A);\nfor(int i=0;i<n-1;i++){\nif(!(A[i].equals(A[i+1]))){\n x=x+1;\n}\n}\nSystem.out.println(x);\n}\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner kbd = new Scanner(System.in);
int n=kbd.nextInt();
String[] A= new String[n];
for(int i=0;i<n;i++){
A[i]=kbd.next();
}
int x=1;
Arrays.sort(A);
for(int i=0;i<n-1;i++){
if(!(A[i].equals(A[i+1]))){
x=x+1;
}
}
System.out.println(x);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
2,
13,
17,
17,
30,
41,
13,
4,
13,
13,
2,
13,
17,
29,
2,
2,
13,
13,
13,
30,
29,
2,
2,
13,
4,
13,
13,
2,
13,
17,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
2,
13,
13,
29,
4,
13,
13,
2,
13,
13,
41,
13,
17,
41,
13,
17,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
2,
13,
17,
0,
13,
13,
41,
13,
2,
2,
13,
4,
13,
13,
2,
13,
17,
13,
29,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
20,
2,
13,
17,
0,
18,
36,
13,
20,
2,
13,
17,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
36,
13,
13,
13,
4,
18,
13,
18,
36,
13,
17,
23,
13,
12,
13,
30,
41,
13,
13,
42,
2,
13,
18,
18,
36,
13,
13,
30,
0,
13,
18,
18,
36,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
13,
41,
13,
4,
13,
13,
14,
2,
13,
13,
29,
14,
2,
18,
18,
36,
13,
13,
18,
18,
36,
13,
13,
30,
0,
18,
18,
36,
13,
13,
18,
18,
36,
13,
13,
0,
18,
18,
36,
13,
13,
13,
30,
0,
18,
18,
36,
13,
13,
18,
18,
36,
13,
13,
0,
18,
18,
36,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
18,
18,
36,
13,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
13,
41,
13,
4,
13,
13,
29,
2,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
711,
20
],
[
711,
21
],
[
21,
22
],
[
711,
23
],
[
23,
24
],
[
711,
25
],
[
25,
26
],
[
711,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
29,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
29,
41
],
[
41,
42
],
[
41,
43
],
[
29,
44
],
[
44,
45
],
[
29,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
29,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
68,
69
],
[
29,
70
],
[
70,
71
],
[
71,
72
],
[
27,
73
],
[
73,
74
],
[
0,
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,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
83,
101
],
[
101,
102
],
[
83,
103
],
[
103,
104
],
[
83,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
115,
117
],
[
107,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
120,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
118,
136
],
[
136,
137
],
[
118,
138
],
[
138,
139
],
[
118,
140
],
[
140,
141
],
[
0,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
142,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
146,
154
],
[
154,
155
],
[
142,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
158,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
174,
177
],
[
177,
178
],
[
177,
179
],
[
171,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
165,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
191,
193
],
[
191,
194
],
[
194,
195
],
[
194,
196
],
[
188,
197
],
[
156,
198
],
[
198,
199
],
[
156,
200
],
[
200,
201
],
[
142,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
208,
210
],
[
205,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
212,
215
],
[
215,
216
],
[
215,
217
],
[
204,
218
],
[
218,
219
],
[
218,
220
],
[
204,
221
],
[
221,
222
],
[
221,
223
],
[
204,
224
],
[
224,
225
],
[
204,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
226,
231
],
[
231,
232
],
[
231,
233
],
[
226,
234
],
[
234,
235
],
[
235,
236
],
[
226,
237
],
[
238,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
241,
243
],
[
238,
244
],
[
244,
245
],
[
244,
246
],
[
238,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
249,
251
],
[
238,
252
],
[
252,
253
],
[
252,
254
],
[
204,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
260,
262
],
[
260,
263
],
[
263,
264
],
[
263,
265
],
[
257,
266
],
[
204,
267
],
[
267,
268
],
[
202,
269
],
[
269,
270
],
[
202,
271
],
[
271,
272
],
[
0,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
273,
277
],
[
277,
278
],
[
273,
279
],
[
279,
280
],
[
279,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
287,
288
],
[
287,
289
],
[
281,
290
],
[
290,
291
],
[
291,
292
],
[
291,
293
],
[
290,
294
],
[
295,
296
],
[
295,
297
],
[
281,
298
],
[
298,
299
],
[
281,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
300,
305
],
[
305,
306
],
[
305,
307
],
[
300,
308
],
[
308,
309
],
[
309,
310
],
[
300,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
313,
317
],
[
312,
318
],
[
281,
319
],
[
319,
320
],
[
320,
321
],
[
319,
322
],
[
322,
323
],
[
322,
324
],
[
319,
325
],
[
279,
326
],
[
326,
327
],
[
273,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
330,
334
],
[
334,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
338,
339
],
[
338,
340
],
[
337,
341
],
[
334,
342
],
[
342,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
345,
349
],
[
330,
350
],
[
350,
351
],
[
328,
352
],
[
352,
353
],
[
273,
354
],
[
354,
355
],
[
354,
356
],
[
356,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
359,
361
],
[
356,
362
],
[
362,
363
],
[
362,
364
],
[
364,
365
],
[
364,
366
],
[
356,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
367,
371
],
[
356,
372
],
[
372,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
374,
378
],
[
373,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
379,
383
],
[
372,
384
],
[
384,
385
],
[
385,
386
],
[
386,
387
],
[
387,
388
],
[
387,
389
],
[
386,
390
],
[
385,
391
],
[
391,
392
],
[
392,
393
],
[
392,
394
],
[
391,
395
],
[
384,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
398,
400
],
[
397,
401
],
[
396,
402
],
[
372,
403
],
[
403,
404
],
[
404,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
405,
409
],
[
404,
410
],
[
410,
411
],
[
411,
412
],
[
411,
413
],
[
410,
414
],
[
403,
415
],
[
415,
416
],
[
416,
417
],
[
417,
418
],
[
417,
419
],
[
416,
420
],
[
415,
421
],
[
354,
422
],
[
422,
423
],
[
354,
424
],
[
424,
425
],
[
273,
426
],
[
426,
427
],
[
426,
428
],
[
428,
429
],
[
429,
430
],
[
430,
431
],
[
431,
432
],
[
431,
433
],
[
430,
434
],
[
434,
435
],
[
434,
436
],
[
426,
437
],
[
437,
438
],
[
273,
439
],
[
439,
440
],
[
439,
441
],
[
441,
442
],
[
442,
443
],
[
442,
444
],
[
444,
445
],
[
444,
446
],
[
441,
447
],
[
447,
448
],
[
447,
449
],
[
449,
450
],
[
449,
451
],
[
441,
452
],
[
452,
453
],
[
453,
454
],
[
453,
455
],
[
439,
456
],
[
456,
457
],
[
439,
458
],
[
458,
459
],
[
0,
460
],
[
460,
461
],
[
460,
462
],
[
462,
463
],
[
462,
464
],
[
464,
465
],
[
464,
466
],
[
460,
467
],
[
467,
468
],
[
467,
469
],
[
460,
471
],
[
471,
472
],
[
471,
473
],
[
460,
474
],
[
474,
475
],
[
474,
476
],
[
460,
477
],
[
477,
478
],
[
477,
479
],
[
479,
480
],
[
480,
481
],
[
481,
482
],
[
481,
483
],
[
480,
484
],
[
484,
485
],
[
485,
486
],
[
480,
487
],
[
487,
488
],
[
488,
489
],
[
488,
490
],
[
487,
491
],
[
491,
492
],
[
492,
493
],
[
492,
494
],
[
494,
495
],
[
495,
496
],
[
496,
497
],
[
491,
498
],
[
498,
499
],
[
499,
500
],
[
499,
501
],
[
501,
502
],
[
502,
503
],
[
501,
504
],
[
487,
505
],
[
505,
506
],
[
506,
507
],
[
506,
508
],
[
505,
509
],
[
509,
510
],
[
510,
511
],
[
479,
512
],
[
512,
513
],
[
460,
514
],
[
514,
515
],
[
514,
516
],
[
516,
517
],
[
517,
518
],
[
518,
519
],
[
517,
520
],
[
520,
521
],
[
521,
522
],
[
521,
523
],
[
523,
524
],
[
517,
525
],
[
525,
526
],
[
526,
527
],
[
460,
528
],
[
528,
529
],
[
528,
530
],
[
530,
531
],
[
531,
532
],
[
532,
533
],
[
533,
534
],
[
533,
535
],
[
532,
536
],
[
536,
537
],
[
536,
538
],
[
528,
539
],
[
539,
540
],
[
460,
541
],
[
541,
542
],
[
541,
543
],
[
543,
544
],
[
544,
545
],
[
545,
546
],
[
546,
547
],
[
545,
548
],
[
548,
549
],
[
549,
550
],
[
549,
551
],
[
551,
552
],
[
551,
553
],
[
544,
554
],
[
554,
555
],
[
543,
556
],
[
556,
557
],
[
557,
558
],
[
460,
559
],
[
559,
560
],
[
559,
561
],
[
561,
562
],
[
562,
563
],
[
563,
564
],
[
564,
565
],
[
562,
566
],
[
566,
567
],
[
561,
568
],
[
568,
569
],
[
568,
570
],
[
561,
571
],
[
571,
572
],
[
571,
573
],
[
573,
574
],
[
561,
575
],
[
575,
576
],
[
576,
577
],
[
576,
578
],
[
575,
579
],
[
579,
580
],
[
580,
581
],
[
581,
582
],
[
580,
583
],
[
579,
584
],
[
584,
585
],
[
584,
586
],
[
586,
587
],
[
561,
588
],
[
588,
589
],
[
589,
590
],
[
590,
591
],
[
460,
592
],
[
592,
593
],
[
592,
594
],
[
594,
595
],
[
595,
596
],
[
596,
597
],
[
597,
598
],
[
595,
599
],
[
599,
600
],
[
594,
601
],
[
601,
602
],
[
601,
603
],
[
594,
604
],
[
604,
605
],
[
604,
606
],
[
594,
607
],
[
607,
608
],
[
607,
609
],
[
609,
610
],
[
594,
611
],
[
611,
612
],
[
612,
613
],
[
612,
614
],
[
611,
615
],
[
615,
616
],
[
616,
617
],
[
616,
618
],
[
615,
619
],
[
619,
620
],
[
619,
621
],
[
621,
622
],
[
594,
623
],
[
623,
624
],
[
624,
625
],
[
625,
626
],
[
625,
627
],
[
624,
628
],
[
628,
629
],
[
628,
630
],
[
623,
631
],
[
631,
632
],
[
632,
633
],
[
594,
634
],
[
634,
635
],
[
634,
636
],
[
636,
637
],
[
637,
638
],
[
638,
639
],
[
639,
640
],
[
639,
641
],
[
638,
642
],
[
642,
643
],
[
642,
644
],
[
637,
645
],
[
645,
646
],
[
646,
647
],
[
646,
648
],
[
645,
649
],
[
649,
650
],
[
649,
651
],
[
651,
652
],
[
651,
653
],
[
637,
654
],
[
654,
655
],
[
655,
656
],
[
656,
657
],
[
656,
658
],
[
658,
659
],
[
655,
660
],
[
660,
661
],
[
661,
662
],
[
661,
663
],
[
654,
664
],
[
664,
665
],
[
665,
666
],
[
666,
667
],
[
666,
668
],
[
668,
669
],
[
666,
670
],
[
654,
671
],
[
671,
672
],
[
672,
673
],
[
636,
674
],
[
674,
675
],
[
674,
676
],
[
676,
677
],
[
460,
678
],
[
678,
679
],
[
678,
680
],
[
680,
681
],
[
681,
682
],
[
681,
683
],
[
683,
684
],
[
680,
685
],
[
685,
686
],
[
686,
687
],
[
687,
688
],
[
687,
689
],
[
689,
690
],
[
689,
691
],
[
686,
692
],
[
692,
693
],
[
692,
694
],
[
694,
695
],
[
694,
696
],
[
685,
697
],
[
697,
698
],
[
680,
699
],
[
699,
700
],
[
460,
701
],
[
701,
702
],
[
701,
703
],
[
703,
704
],
[
704,
705
],
[
705,
706
],
[
706,
707
],
[
705,
708
],
[
708,
709
],
[
0,
710
],
[
710,
711
],
[
710,
712
]
] |
[
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.HashSet;\nimport java.util.NoSuchElementException;\n\npublic class Main {\n\n\tstatic int n;\n\tstatic int k;\n\tstatic int[] x;\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner scan = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tint n = scan.nextInt();\n\t\tHashSet<String> set = new HashSet<>();\n\t\tint i;\n\t\tfor(i = 0; i < n; i++)\n\t\t\tset.add(scan.next());\n\n\t\tout.print(set.size());\n\t\tout.flush();\n\t}\n}\n\nclass Po {\n\tint x;\n\tint y;\n\tlong h;\n\n\tPo(int x, int y, long h) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.h = h;\n\t}\n}\n\nclass res {\n\tString name = \"\";\n\tint point = 0;\n\tint n = 0;\n\n\tres(String name, int point, int n) {\n\t\tthis.name = name;\n\t\tthis.point = point;\n\t\tthis.n = n;\n\t}\n}\n\nclass cal {\n\tlong mod;\n\n\tcal(long x) {\n\t\tthis.mod = x;\n\t}\n\n\tlong mpow(long x, long n) {\n\t\tif (n == 0)\n\t\t\treturn 1;\n\t\tif (n % 2 == 0) {\n\t\t\tlong root = mpow(x, n / 2);\n\t\t\treturn root * root % mod;\n\t\t} else {\n\t\t\treturn x * mpow(x, n - 1) % mod;\n\t\t}\n\t}\n\n\tlong mcomb(long a, long b) {\n\t\tif (b > a - b)\n\t\t\treturn mcomb(a, a - b);\n\t\tlong m = 1;\n\t\tlong d = 1;\n\t\tlong i;\n\t\tfor (i = 0; i < b; i++) {\n\t\t\tm *= (a - i);\n\t\t\tm %= mod;\n\t\t\td *= (i + 1);\n\t\t\td %= mod;\n\t\t}\n\t\tlong ans = m * mpow(d, mod - 2) % mod;\n\n\t\treturn ans;\n\t}\n}\n\nclass unionFind {\n\tint[] par;\n\tint[] size;\n\n\tunionFind(int x) {\n\t\tthis.par = new int[x + 1];\n\t\tthis.size = new int[x + 1];\n\n\t\tint i;\n\t\tfor (i = 0; i <= x; i++)\n\t\t\tthis.par[i] = i;\n\t\tArrays.fill(this.size, 1);\n\t}\n\n\tint root(int x) {\n\t\tint r = x;\n\t\twhile (r != this.par[r]) {\n\t\t\tr = this.par[r];\n\t\t}\n\n\t\treturn r;\n\t}\n\n\tvoid union(int x, int y) {\n\t\tint rx = root(x);\n\t\tint ry = root(y);\n\t\tif (rx == ry)\n\t\t\treturn;\n\n\t\tif (this.size[rx] < this.size[ry]) {\n\t\t\tthis.size[ry] += this.size[rx];\n\t\t\tthis.par[rx] = ry;\n\t\t} else {\n\t\t\tthis.size[rx] += this.size[ry];\n\t\t\tthis.par[ry] = rx;\n\t\t}\n\t}\n\n\tint size(int x) {\n\t\treturn this.size[root(x)];\n\t}\n\n\tboolean same(int x, int y) {\n\t\tint rx = root(x);\n\t\tint ry = root(y);\n\n\t\treturn rx == ry;\n\t}\n}\n\nclass FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}\n\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}\n\n\tpublic String next() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tpublic long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}\n\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"public class Main {\n\n\tstatic int n;\n\tstatic int k;\n\tstatic int[] x;\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner scan = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tint n = scan.nextInt();\n\t\tHashSet<String> set = new HashSet<>();\n\t\tint i;\n\t\tfor(i = 0; i < n; i++)\n\t\t\tset.add(scan.next());\n\n\t\tout.print(set.size());\n\t\tout.flush();\n\t}\n}",
"Main",
"static int n;",
"n",
"static int k;",
"k",
"static int[] x;",
"x",
"public static void main(String[] args) {\n\t\tFastScanner scan = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tint n = scan.nextInt();\n\t\tHashSet<String> set = new HashSet<>();\n\t\tint i;\n\t\tfor(i = 0; i < n; i++)\n\t\t\tset.add(scan.next());\n\n\t\tout.print(set.size());\n\t\tout.flush();\n\t}",
"main",
"{\n\t\tFastScanner scan = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tint n = scan.nextInt();\n\t\tHashSet<String> set = new HashSet<>();\n\t\tint i;\n\t\tfor(i = 0; i < n; i++)\n\t\t\tset.add(scan.next());\n\n\t\tout.print(set.size());\n\t\tout.flush();\n\t}",
"FastScanner scan = new FastScanner();",
"scan",
"new FastScanner()",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"HashSet<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"int i;",
"i",
"for(i = 0; i < n; i++)\n\t\t\tset.add(scan.next());",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"set.add(scan.next());",
"set.add(scan.next())",
"set.add",
"set",
"scan.next()",
"scan.next",
"scan",
"out.print(set.size())",
"out.print",
"out",
"set.size()",
"set.size",
"set",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"class Po {\n\tint x;\n\tint y;\n\tlong h;\n\n\tPo(int x, int y, long h) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.h = h;\n\t}\n}",
"Po",
"int x;",
"x",
"int y;",
"y",
"long h;",
"h",
"Po(int x, int y, long h) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.h = h;\n\t}",
"Po",
"{\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.h = h;\n\t}",
"this.x = x",
"this.x",
"this",
"this.x",
"x",
"this.y = y",
"this.y",
"this",
"this.y",
"y",
"this.h = h",
"this.h",
"this",
"this.h",
"h",
"int x",
"x",
"int y",
"y",
"long h",
"h",
"class res {\n\tString name = \"\";\n\tint point = 0;\n\tint n = 0;\n\n\tres(String name, int point, int n) {\n\t\tthis.name = name;\n\t\tthis.point = point;\n\t\tthis.n = n;\n\t}\n}",
"res",
"String name = \"\";",
"name",
"\"\"",
"int point = 0;",
"point",
"0",
"int n = 0;",
"n",
"0",
"res(String name, int point, int n) {\n\t\tthis.name = name;\n\t\tthis.point = point;\n\t\tthis.n = n;\n\t}",
"res",
"{\n\t\tthis.name = name;\n\t\tthis.point = point;\n\t\tthis.n = n;\n\t}",
"this.name = name",
"this.name",
"this",
"this.name",
"name",
"this.point = point",
"this.point",
"this",
"this.point",
"point",
"this.n = n",
"this.n",
"this",
"this.n",
"n",
"String name",
"name",
"int point",
"point",
"int n",
"n",
"class cal {\n\tlong mod;\n\n\tcal(long x) {\n\t\tthis.mod = x;\n\t}\n\n\tlong mpow(long x, long n) {\n\t\tif (n == 0)\n\t\t\treturn 1;\n\t\tif (n % 2 == 0) {\n\t\t\tlong root = mpow(x, n / 2);\n\t\t\treturn root * root % mod;\n\t\t} else {\n\t\t\treturn x * mpow(x, n - 1) % mod;\n\t\t}\n\t}\n\n\tlong mcomb(long a, long b) {\n\t\tif (b > a - b)\n\t\t\treturn mcomb(a, a - b);\n\t\tlong m = 1;\n\t\tlong d = 1;\n\t\tlong i;\n\t\tfor (i = 0; i < b; i++) {\n\t\t\tm *= (a - i);\n\t\t\tm %= mod;\n\t\t\td *= (i + 1);\n\t\t\td %= mod;\n\t\t}\n\t\tlong ans = m * mpow(d, mod - 2) % mod;\n\n\t\treturn ans;\n\t}\n}",
"cal",
"long mod;",
"mod",
"cal(long x) {\n\t\tthis.mod = x;\n\t}",
"cal",
"{\n\t\tthis.mod = x;\n\t}",
"this.mod = x",
"this.mod",
"this",
"this.mod",
"x",
"long x",
"x",
"long mpow(long x, long n) {\n\t\tif (n == 0)\n\t\t\treturn 1;\n\t\tif (n % 2 == 0) {\n\t\t\tlong root = mpow(x, n / 2);\n\t\t\treturn root * root % mod;\n\t\t} else {\n\t\t\treturn x * mpow(x, n - 1) % mod;\n\t\t}\n\t}",
"mpow",
"{\n\t\tif (n == 0)\n\t\t\treturn 1;\n\t\tif (n % 2 == 0) {\n\t\t\tlong root = mpow(x, n / 2);\n\t\t\treturn root * root % mod;\n\t\t} else {\n\t\t\treturn x * mpow(x, n - 1) % mod;\n\t\t}\n\t}",
"if (n == 0)\n\t\t\treturn 1;",
"n == 0",
"n",
"0",
"return 1;",
"1",
"if (n % 2 == 0) {\n\t\t\tlong root = mpow(x, n / 2);\n\t\t\treturn root * root % mod;\n\t\t} else {\n\t\t\treturn x * mpow(x, n - 1) % mod;\n\t\t}",
"n % 2 == 0",
"n % 2",
"n",
"2",
"0",
"{\n\t\t\tlong root = mpow(x, n / 2);\n\t\t\treturn root * root % mod;\n\t\t}",
"long root = mpow(x, n / 2);",
"root",
"mpow(x, n / 2)",
"mpow",
"x",
"n / 2",
"n",
"2",
"return root * root % mod;",
"root * root % mod",
"root * root",
"root",
"root",
"mod",
"{\n\t\t\treturn x * mpow(x, n - 1) % mod;\n\t\t}",
"return x * mpow(x, n - 1) % mod;",
"x * mpow(x, n - 1) % mod",
"x * mpow(x, n - 1)",
"x",
"mpow(x, n - 1)",
"mpow",
"x",
"n - 1",
"n",
"1",
"mod",
"long x",
"x",
"long n",
"n",
"long mcomb(long a, long b) {\n\t\tif (b > a - b)\n\t\t\treturn mcomb(a, a - b);\n\t\tlong m = 1;\n\t\tlong d = 1;\n\t\tlong i;\n\t\tfor (i = 0; i < b; i++) {\n\t\t\tm *= (a - i);\n\t\t\tm %= mod;\n\t\t\td *= (i + 1);\n\t\t\td %= mod;\n\t\t}\n\t\tlong ans = m * mpow(d, mod - 2) % mod;\n\n\t\treturn ans;\n\t}",
"mcomb",
"{\n\t\tif (b > a - b)\n\t\t\treturn mcomb(a, a - b);\n\t\tlong m = 1;\n\t\tlong d = 1;\n\t\tlong i;\n\t\tfor (i = 0; i < b; i++) {\n\t\t\tm *= (a - i);\n\t\t\tm %= mod;\n\t\t\td *= (i + 1);\n\t\t\td %= mod;\n\t\t}\n\t\tlong ans = m * mpow(d, mod - 2) % mod;\n\n\t\treturn ans;\n\t}",
"if (b > a - b)\n\t\t\treturn mcomb(a, a - b);",
"b > a - b",
"b",
"a - b",
"a",
"b",
"return mcomb(a, a - b);",
"mcomb(a, a - b)",
"mcomb",
"a",
"a - b",
"a",
"b",
"long m = 1;",
"m",
"1",
"long d = 1;",
"d",
"1",
"long i;",
"i",
"for (i = 0; i < b; i++) {\n\t\t\tm *= (a - i);\n\t\t\tm %= mod;\n\t\t\td *= (i + 1);\n\t\t\td %= mod;\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < b",
"i",
"b",
"i++",
"i++",
"i",
"{\n\t\t\tm *= (a - i);\n\t\t\tm %= mod;\n\t\t\td *= (i + 1);\n\t\t\td %= mod;\n\t\t}",
"{\n\t\t\tm *= (a - i);\n\t\t\tm %= mod;\n\t\t\td *= (i + 1);\n\t\t\td %= mod;\n\t\t}",
"m *= (a - i)",
"m",
"(a - i)",
"a",
"i",
"m %= mod",
"m",
"mod",
"d *= (i + 1)",
"d",
"(i + 1)",
"i",
"1",
"d %= mod",
"d",
"mod",
"long ans = m * mpow(d, mod - 2) % mod;",
"ans",
"m * mpow(d, mod - 2) % mod",
"m * mpow(d, mod - 2)",
"m",
"mpow(d, mod - 2)",
"mpow",
"d",
"mod - 2",
"mod",
"2",
"mod",
"return ans;",
"ans",
"long a",
"a",
"long b",
"b",
"class unionFind {\n\tint[] par;\n\tint[] size;\n\n\tunionFind(int x) {\n\t\tthis.par = new int[x + 1];\n\t\tthis.size = new int[x + 1];\n\n\t\tint i;\n\t\tfor (i = 0; i <= x; i++)\n\t\t\tthis.par[i] = i;\n\t\tArrays.fill(this.size, 1);\n\t}\n\n\tint root(int x) {\n\t\tint r = x;\n\t\twhile (r != this.par[r]) {\n\t\t\tr = this.par[r];\n\t\t}\n\n\t\treturn r;\n\t}\n\n\tvoid union(int x, int y) {\n\t\tint rx = root(x);\n\t\tint ry = root(y);\n\t\tif (rx == ry)\n\t\t\treturn;\n\n\t\tif (this.size[rx] < this.size[ry]) {\n\t\t\tthis.size[ry] += this.size[rx];\n\t\t\tthis.par[rx] = ry;\n\t\t} else {\n\t\t\tthis.size[rx] += this.size[ry];\n\t\t\tthis.par[ry] = rx;\n\t\t}\n\t}\n\n\tint size(int x) {\n\t\treturn this.size[root(x)];\n\t}\n\n\tboolean same(int x, int y) {\n\t\tint rx = root(x);\n\t\tint ry = root(y);\n\n\t\treturn rx == ry;\n\t}\n}",
"unionFind",
"int[] par;",
"par",
"int[] size;",
"size",
"unionFind(int x) {\n\t\tthis.par = new int[x + 1];\n\t\tthis.size = new int[x + 1];\n\n\t\tint i;\n\t\tfor (i = 0; i <= x; i++)\n\t\t\tthis.par[i] = i;\n\t\tArrays.fill(this.size, 1);\n\t}",
"unionFind",
"{\n\t\tthis.par = new int[x + 1];\n\t\tthis.size = new int[x + 1];\n\n\t\tint i;\n\t\tfor (i = 0; i <= x; i++)\n\t\t\tthis.par[i] = i;\n\t\tArrays.fill(this.size, 1);\n\t}",
"this.par = new int[x + 1]",
"this.par",
"this",
"this.par",
"new int[x + 1]",
"x + 1",
"x",
"1",
"this.size = new int[x + 1]",
"this.size",
"this",
"this.size",
"new int[x + 1]",
"x + 1",
"x",
"1",
"int i;",
"i",
"for (i = 0; i <= x; i++)\n\t\t\tthis.par[i] = i;",
"i = 0;",
"i = 0",
"i",
"0",
"i <= x",
"i",
"x",
"i++",
"i++",
"i",
"this.par[i] = i;",
"this.par[i] = i",
"this.par[i]",
"this.par",
"this",
"this.par",
"i",
"i",
"Arrays.fill(this.size, 1)",
"Arrays.fill",
"Arrays",
"this.size",
"this",
"this.size",
"1",
"int x",
"x",
"int root(int x) {\n\t\tint r = x;\n\t\twhile (r != this.par[r]) {\n\t\t\tr = this.par[r];\n\t\t}\n\n\t\treturn r;\n\t}",
"root",
"{\n\t\tint r = x;\n\t\twhile (r != this.par[r]) {\n\t\t\tr = this.par[r];\n\t\t}\n\n\t\treturn r;\n\t}",
"int r = x;",
"r",
"x",
"while (r != this.par[r]) {\n\t\t\tr = this.par[r];\n\t\t}",
"r != this.par[r]",
"r",
"this.par[r]",
"this.par",
"this",
"this.par",
"r",
"{\n\t\t\tr = this.par[r];\n\t\t}",
"r = this.par[r]",
"r",
"this.par[r]",
"this.par",
"this",
"this.par",
"r",
"return r;",
"r",
"int x",
"x",
"void union(int x, int y) {\n\t\tint rx = root(x);\n\t\tint ry = root(y);\n\t\tif (rx == ry)\n\t\t\treturn;\n\n\t\tif (this.size[rx] < this.size[ry]) {\n\t\t\tthis.size[ry] += this.size[rx];\n\t\t\tthis.par[rx] = ry;\n\t\t} else {\n\t\t\tthis.size[rx] += this.size[ry];\n\t\t\tthis.par[ry] = rx;\n\t\t}\n\t}",
"union",
"{\n\t\tint rx = root(x);\n\t\tint ry = root(y);\n\t\tif (rx == ry)\n\t\t\treturn;\n\n\t\tif (this.size[rx] < this.size[ry]) {\n\t\t\tthis.size[ry] += this.size[rx];\n\t\t\tthis.par[rx] = ry;\n\t\t} else {\n\t\t\tthis.size[rx] += this.size[ry];\n\t\t\tthis.par[ry] = rx;\n\t\t}\n\t}",
"int rx = root(x);",
"rx",
"root(x)",
"root",
"x",
"int ry = root(y);",
"ry",
"root(y)",
"root",
"y",
"if (rx == ry)\n\t\t\treturn;",
"rx == ry",
"rx",
"ry",
"return;",
"if (this.size[rx] < this.size[ry]) {\n\t\t\tthis.size[ry] += this.size[rx];\n\t\t\tthis.par[rx] = ry;\n\t\t} else {\n\t\t\tthis.size[rx] += this.size[ry];\n\t\t\tthis.par[ry] = rx;\n\t\t}",
"this.size[rx] < this.size[ry]",
"this.size[rx]",
"this.size",
"this",
"this.size",
"rx",
"this.size[ry]",
"this.size",
"this",
"this.size",
"ry",
"{\n\t\t\tthis.size[ry] += this.size[rx];\n\t\t\tthis.par[rx] = ry;\n\t\t}",
"this.size[ry] += this.size[rx]",
"this.size[ry]",
"this.size",
"this",
"this.size",
"ry",
"this.size[rx]",
"this.size",
"this",
"this.size",
"rx",
"this.par[rx] = ry",
"this.par[rx]",
"this.par",
"this",
"this.par",
"rx",
"ry",
"{\n\t\t\tthis.size[rx] += this.size[ry];\n\t\t\tthis.par[ry] = rx;\n\t\t}",
"this.size[rx] += this.size[ry]",
"this.size[rx]",
"this.size",
"this",
"this.size",
"rx",
"this.size[ry]",
"this.size",
"this",
"this.size",
"ry",
"this.par[ry] = rx",
"this.par[ry]",
"this.par",
"this",
"this.par",
"ry",
"rx",
"int x",
"x",
"int y",
"y",
"int size(int x) {\n\t\treturn this.size[root(x)];\n\t}",
"size",
"{\n\t\treturn this.size[root(x)];\n\t}",
"return this.size[root(x)];",
"this.size[root(x)]",
"this.size",
"this",
"this.size",
"root(x)",
"root",
"x",
"int x",
"x",
"boolean same(int x, int y) {\n\t\tint rx = root(x);\n\t\tint ry = root(y);\n\n\t\treturn rx == ry;\n\t}",
"same",
"{\n\t\tint rx = root(x);\n\t\tint ry = root(y);\n\n\t\treturn rx == ry;\n\t}",
"int rx = root(x);",
"rx",
"root(x)",
"root",
"x",
"int ry = root(y);",
"ry",
"root(y)",
"root",
"y",
"return rx == ry;",
"rx == ry",
"rx",
"ry",
"int x",
"x",
"int y",
"y",
"class FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}\n\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}\n\n\tpublic String next() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tpublic long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}\n\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\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\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"hasNextByte",
"{\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"if (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"ptr < buflen",
"ptr",
"buflen",
"{\n\t\t\treturn true;\n\t\t}",
"return true;",
"true",
"{\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"ptr = 0",
"ptr",
"0",
"try {\n\t\t\t\tbuflen = in.read(buffer);\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\tbuflen = in.read(buffer);\n\t\t\t}",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}",
"buflen <= 0",
"buflen",
"0",
"{\n\t\t\t\treturn false;\n\t\t\t}",
"return false;",
"false",
"return true;",
"true",
"private int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}",
"readByte",
"{\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}",
"if (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}",
"isPrintableChar",
"{\n\t\treturn 33 <= c && c <= 126;\n\t}",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"public boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}",
"hasNext",
"{\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}",
"while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;",
"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\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}",
"next",
"{\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}",
"if (!hasNext())\n\t\t\tthrow new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"nextLong",
"{\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"if (!hasNext())\n\t\t\tthrow new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"if (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"b == '-'",
"b",
"'-'",
"{\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n\t\t\tthrow new NumberFormatException();\n\t\t}",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"true",
"{\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"if ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t}",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t\t\t\treturn minus ? -n : n;\n\t\t\t}",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}",
"nextInt",
"{\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}",
"long nl = nextLong();",
"nl",
"nextLong()",
"nextLong",
"if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow 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() {\n\t\treturn Double.parseDouble(next());\n\t}",
"nextDouble",
"{\n\t\treturn Double.parseDouble(next());\n\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\n\tstatic int n;\n\tstatic int k;\n\tstatic int[] x;\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner scan = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tint n = scan.nextInt();\n\t\tHashSet<String> set = new HashSet<>();\n\t\tint i;\n\t\tfor(i = 0; i < n; i++)\n\t\t\tset.add(scan.next());\n\n\t\tout.print(set.size());\n\t\tout.flush();\n\t}\n}",
"public class Main {\n\n\tstatic int n;\n\tstatic int k;\n\tstatic int[] x;\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner scan = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tint n = scan.nextInt();\n\t\tHashSet<String> set = new HashSet<>();\n\t\tint i;\n\t\tfor(i = 0; i < n; i++)\n\t\t\tset.add(scan.next());\n\n\t\tout.print(set.size());\n\t\tout.flush();\n\t}\n}",
"Main"
] |
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.HashSet;
import java.util.NoSuchElementException;
public class Main {
static int n;
static int k;
static int[] x;
public static void main(String[] args) {
FastScanner scan = new FastScanner();
PrintWriter out = new PrintWriter(System.out);
int n = scan.nextInt();
HashSet<String> set = new HashSet<>();
int i;
for(i = 0; i < n; i++)
set.add(scan.next());
out.print(set.size());
out.flush();
}
}
class Po {
int x;
int y;
long h;
Po(int x, int y, long h) {
this.x = x;
this.y = y;
this.h = h;
}
}
class res {
String name = "";
int point = 0;
int n = 0;
res(String name, int point, int n) {
this.name = name;
this.point = point;
this.n = n;
}
}
class cal {
long mod;
cal(long x) {
this.mod = x;
}
long mpow(long x, long n) {
if (n == 0)
return 1;
if (n % 2 == 0) {
long root = mpow(x, n / 2);
return root * root % mod;
} else {
return x * mpow(x, n - 1) % mod;
}
}
long mcomb(long a, long b) {
if (b > a - b)
return mcomb(a, a - b);
long m = 1;
long d = 1;
long i;
for (i = 0; i < b; i++) {
m *= (a - i);
m %= mod;
d *= (i + 1);
d %= mod;
}
long ans = m * mpow(d, mod - 2) % mod;
return ans;
}
}
class unionFind {
int[] par;
int[] size;
unionFind(int x) {
this.par = new int[x + 1];
this.size = new int[x + 1];
int i;
for (i = 0; i <= x; i++)
this.par[i] = i;
Arrays.fill(this.size, 1);
}
int root(int x) {
int r = x;
while (r != this.par[r]) {
r = this.par[r];
}
return r;
}
void union(int x, int y) {
int rx = root(x);
int ry = root(y);
if (rx == ry)
return;
if (this.size[rx] < this.size[ry]) {
this.size[ry] += this.size[rx];
this.par[rx] = ry;
} else {
this.size[rx] += this.size[ry];
this.par[ry] = rx;
}
}
int size(int x) {
return this.size[root(x)];
}
boolean same(int x, int y) {
int rx = root(x);
int ry = root(y);
return rx == ry;
}
}
class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
} else {
ptr = 0;
try {
buflen = in.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() {
if (hasNextByte())
return buffer[ptr++];
else
return -1;
}
private static boolean isPrintableChar(int c) {
return 33 <= c && c <= 126;
}
public boolean hasNext() {
while (hasNextByte() && !isPrintableChar(buffer[ptr]))
ptr++;
return hasNextByte();
}
public String next() {
if (!hasNext())
throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while (isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public long nextLong() {
if (!hasNext())
throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while (true) {
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
} else if (b == -1 || !isPrintableChar(b)) {
return minus ? -n : n;
} else {
throw new NumberFormatException();
}
b = readByte();
}
}
public int nextInt() {
long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)
throw new NumberFormatException();
return (int) nl;
}
public double nextDouble() {
return Double.parseDouble(next());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
20,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
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
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n\t\tList<String> listA = new ArrayList<String>(); \n \n for (int i=0; i<n; i++) {\n\t\t\tlistA.add((scan.next()));\n }\n\n List<String> listB = new ArrayList<String>(new HashSet<>(listA));\n\n// System.out.println(listA);\n// System.out.println(listB);\n\n System.out.println(listB.size());\n\t scan.close();\t\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n\t\tList<String> listA = new ArrayList<String>(); \n \n for (int i=0; i<n; i++) {\n\t\t\tlistA.add((scan.next()));\n }\n\n List<String> listB = new ArrayList<String>(new HashSet<>(listA));\n\n// System.out.println(listA);\n// System.out.println(listB);\n\n System.out.println(listB.size());\n\t scan.close();\t\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n\t\tList<String> listA = new ArrayList<String>(); \n \n for (int i=0; i<n; i++) {\n\t\t\tlistA.add((scan.next()));\n }\n\n List<String> listB = new ArrayList<String>(new HashSet<>(listA));\n\n// System.out.println(listA);\n// System.out.println(listB);\n\n System.out.println(listB.size());\n\t scan.close();\t\n }",
"main",
"{\n\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n\t\tList<String> listA = new ArrayList<String>(); \n \n for (int i=0; i<n; i++) {\n\t\t\tlistA.add((scan.next()));\n }\n\n List<String> listB = new ArrayList<String>(new HashSet<>(listA));\n\n// System.out.println(listA);\n// System.out.println(listB);\n\n System.out.println(listB.size());\n\t scan.close();\t\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"List<String> listA = new ArrayList<String>();",
"listA",
"new ArrayList<String>()",
"for (int i=0; i<n; i++) {\n\t\t\tlistA.add((scan.next()));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tlistA.add((scan.next()));\n }",
"{\n\t\t\tlistA.add((scan.next()));\n }",
"listA.add((scan.next()))",
"listA.add",
"listA",
"(scan.next())",
"scan.next",
"scan",
"List<String> listB = new ArrayList<String>(new HashSet<>(listA));",
"listB",
"new ArrayList<String>(new HashSet<>(listA))",
"System.out.println(listB.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"listB.size()",
"listB.size",
"listB",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n\t\tList<String> listA = new ArrayList<String>(); \n \n for (int i=0; i<n; i++) {\n\t\t\tlistA.add((scan.next()));\n }\n\n List<String> listB = new ArrayList<String>(new HashSet<>(listA));\n\n// System.out.println(listA);\n// System.out.println(listB);\n\n System.out.println(listB.size());\n\t scan.close();\t\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n\t\tList<String> listA = new ArrayList<String>(); \n \n for (int i=0; i<n; i++) {\n\t\t\tlistA.add((scan.next()));\n }\n\n List<String> listB = new ArrayList<String>(new HashSet<>(listA));\n\n// System.out.println(listA);\n// System.out.println(listB);\n\n System.out.println(listB.size());\n\t scan.close();\t\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
List<String> listA = new ArrayList<String>();
for (int i=0; i<n; i++) {
listA.add((scan.next()));
}
List<String> listB = new ArrayList<String>(new HashSet<>(listA));
// System.out.println(listA);
// System.out.println(listB);
System.out.println(listB.size());
scan.close();
}
}
|
[
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,
4,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
18,
13,
13,
18,
13,
2,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
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
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
48,
58
],
[
58,
59
],
[
59,
60
],
[
48,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
63,
75
],
[
75,
76
],
[
76,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n \n //入力\n int N = sc.nextInt();//くじ引き回数\n String item[] = new String[N];\n int count =1;\n \n \n //景品を配列へ\n for(int i =0; i<N; i++){\n \titem[i] = sc.next();\n }\n \n //景品を昇順に並び替え\n Arrays.sort(item);\n \n //景品が被っていたらカウント\n for(int i =0; i<N-1; i++){\n if(!item[i].equals(item[i+1])){\n count++;\n }\n }\n System.out.println(count);\n }\n} ",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n \n //入力\n int N = sc.nextInt();//くじ引き回数\n String item[] = new String[N];\n int count =1;\n \n \n //景品を配列へ\n for(int i =0; i<N; i++){\n \titem[i] = sc.next();\n }\n \n //景品を昇順に並び替え\n Arrays.sort(item);\n \n //景品が被っていたらカウント\n for(int i =0; i<N-1; i++){\n if(!item[i].equals(item[i+1])){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n \n //入力\n int N = sc.nextInt();//くじ引き回数\n String item[] = new String[N];\n int count =1;\n \n \n //景品を配列へ\n for(int i =0; i<N; i++){\n \titem[i] = sc.next();\n }\n \n //景品を昇順に並び替え\n Arrays.sort(item);\n \n //景品が被っていたらカウント\n for(int i =0; i<N-1; i++){\n if(!item[i].equals(item[i+1])){\n count++;\n }\n }\n System.out.println(count);\n }",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n \n //入力\n int N = sc.nextInt();//くじ引き回数\n String item[] = new String[N];\n int count =1;\n \n \n //景品を配列へ\n for(int i =0; i<N; i++){\n \titem[i] = sc.next();\n }\n \n //景品を昇順に並び替え\n Arrays.sort(item);\n \n //景品が被っていたらカウント\n for(int i =0; i<N-1; i++){\n if(!item[i].equals(item[i+1])){\n count++;\n }\n }\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String item[] = new String[N];",
"item",
"new String[N]",
"N",
"int count =1;",
"count",
"1",
"for(int i =0; i<N; i++){\n \titem[i] = sc.next();\n }",
"int i =0;",
"int i =0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n \titem[i] = sc.next();\n }",
"{\n \titem[i] = sc.next();\n }",
"item[i] = sc.next()",
"item[i]",
"item",
"i",
"sc.next()",
"sc.next",
"sc",
"Arrays.sort(item)",
"Arrays.sort",
"Arrays",
"item",
"for(int i =0; i<N-1; i++){\n if(!item[i].equals(item[i+1])){\n count++;\n }\n }",
"int i =0;",
"int i =0;",
"i",
"0",
"i<N-1",
"i",
"N-1",
"N",
"1",
"i++",
"i++",
"i",
"{\n if(!item[i].equals(item[i+1])){\n count++;\n }\n }",
"{\n if(!item[i].equals(item[i+1])){\n count++;\n }\n }",
"if(!item[i].equals(item[i+1])){\n count++;\n }",
"!item[i].equals(item[i+1])",
"item[i].equals(item[i+1])",
"item[i].equals",
"item[i]",
"item",
"i",
"item[i+1]",
"item",
"i+1",
"i",
"1",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n \n //入力\n int N = sc.nextInt();//くじ引き回数\n String item[] = new String[N];\n int count =1;\n \n \n //景品を配列へ\n for(int i =0; i<N; i++){\n \titem[i] = sc.next();\n }\n \n //景品を昇順に並び替え\n Arrays.sort(item);\n \n //景品が被っていたらカウント\n for(int i =0; i<N-1; i++){\n if(!item[i].equals(item[i+1])){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n \n //入力\n int N = sc.nextInt();//くじ引き回数\n String item[] = new String[N];\n int count =1;\n \n \n //景品を配列へ\n for(int i =0; i<N; i++){\n \titem[i] = sc.next();\n }\n \n //景品を昇順に並び替え\n Arrays.sort(item);\n \n //景品が被っていたらカウント\n for(int i =0; i<N-1; i++){\n if(!item[i].equals(item[i+1])){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//入力
int N = sc.nextInt();//くじ引き回数
String item[] = new String[N];
int count =1;
//景品を配列へ
for(int i =0; i<N; i++){
item[i] = sc.next();
}
//景品を昇順に並び替え
Arrays.sort(item);
//景品が被っていたらカウント
for(int i =0; i<N-1; i++){
if(!item[i].equals(item[i+1])){
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
56,
8
],
[
56,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
9,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.util.Scanner;\nimport java.util.*;\n\n\npublic class Main {\n \n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n\n Set<String> prize = new HashSet<String>();\n int times = scanner.nextInt();\n\n for(int i = 0; i < times; i++) {\n String str = scanner.next();\n prize.add(str);\n }\n\n System.out.println(prize.size());\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n \n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n\n Set<String> prize = new HashSet<String>();\n int times = scanner.nextInt();\n\n for(int i = 0; i < times; i++) {\n String str = scanner.next();\n prize.add(str);\n }\n\n System.out.println(prize.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n\n Set<String> prize = new HashSet<String>();\n int times = scanner.nextInt();\n\n for(int i = 0; i < times; i++) {\n String str = scanner.next();\n prize.add(str);\n }\n\n System.out.println(prize.size());\n }",
"main",
"{\n\n Scanner scanner = new Scanner(System.in);\n\n Set<String> prize = new HashSet<String>();\n int times = scanner.nextInt();\n\n for(int i = 0; i < times; i++) {\n String str = scanner.next();\n prize.add(str);\n }\n\n System.out.println(prize.size());\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"Set<String> prize = new HashSet<String>();",
"prize",
"new HashSet<String>()",
"int times = scanner.nextInt();",
"times",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i = 0; i < times; i++) {\n String str = scanner.next();\n prize.add(str);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < times",
"i",
"times",
"i++",
"i++",
"i",
"{\n String str = scanner.next();\n prize.add(str);\n }",
"{\n String str = scanner.next();\n prize.add(str);\n }",
"String str = scanner.next();",
"str",
"scanner.next()",
"scanner.next",
"scanner",
"prize.add(str)",
"prize.add",
"prize",
"str",
"System.out.println(prize.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"prize.size()",
"prize.size",
"prize",
"String[] args",
"args",
"public class Main {\n \n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n\n Set<String> prize = new HashSet<String>();\n int times = scanner.nextInt();\n\n for(int i = 0; i < times; i++) {\n String str = scanner.next();\n prize.add(str);\n }\n\n System.out.println(prize.size());\n }\n}",
"public class Main {\n \n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n\n Set<String> prize = new HashSet<String>();\n int times = scanner.nextInt();\n\n for(int i = 0; i < times; i++) {\n String str = scanner.next();\n prize.add(str);\n }\n\n System.out.println(prize.size());\n }\n}",
"Main"
] |
import java.util.Scanner;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Set<String> prize = new HashSet<String>();
int times = scanner.nextInt();
for(int i = 0; i < times; i++) {
String str = scanner.next();
prize.add(str);
}
System.out.println(prize.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
40,
13,
4,
18,
13,
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
],
[
71,
11
],
[
71,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
47,
54
],
[
54,
55
],
[
55,
56
],
[
41,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
14,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
12,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] |
[
"import java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main (String args[]) throws Exception{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint ans = 0;\n\t\tMap<String,String> map = new HashMap<String, String>();\n\t\tfor(int i = 0;i < n; i++) {\n\t\t\tString s = scan.next();\n\t\t\tif(map.get(s) == null) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t\tmap.put(s, \"\");\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main (String args[]) throws Exception{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint ans = 0;\n\t\tMap<String,String> map = new HashMap<String, String>();\n\t\tfor(int i = 0;i < n; i++) {\n\t\t\tString s = scan.next();\n\t\t\tif(map.get(s) == null) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t\tmap.put(s, \"\");\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main (String args[]) throws Exception{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint ans = 0;\n\t\tMap<String,String> map = new HashMap<String, String>();\n\t\tfor(int i = 0;i < n; i++) {\n\t\t\tString s = scan.next();\n\t\t\tif(map.get(s) == null) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t\tmap.put(s, \"\");\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint ans = 0;\n\t\tMap<String,String> map = new HashMap<String, String>();\n\t\tfor(int i = 0;i < n; i++) {\n\t\t\tString s = scan.next();\n\t\t\tif(map.get(s) == null) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t\tmap.put(s, \"\");\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int ans = 0;",
"ans",
"0",
"Map<String,String> map = new HashMap<String, String>();",
"map",
"new HashMap<String, String>()",
"for(int i = 0;i < n; i++) {\n\t\t\tString s = scan.next();\n\t\t\tif(map.get(s) == null) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t\tmap.put(s, \"\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString s = scan.next();\n\t\t\tif(map.get(s) == null) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t\tmap.put(s, \"\");\n\t\t}",
"{\n\t\t\tString s = scan.next();\n\t\t\tif(map.get(s) == null) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t\tmap.put(s, \"\");\n\t\t}",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"if(map.get(s) == null) {\n\t\t\t\tans++;\n\t\t\t}",
"map.get(s) == null",
"map.get(s)",
"map.get",
"map",
"s",
"null",
"{\n\t\t\t\tans++;\n\t\t\t}",
"ans++",
"ans",
"map.put(s, \"\")",
"map.put",
"map",
"s",
"\"\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args",
"public class Main {\n\tpublic static void main (String args[]) throws Exception{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint ans = 0;\n\t\tMap<String,String> map = new HashMap<String, String>();\n\t\tfor(int i = 0;i < n; i++) {\n\t\t\tString s = scan.next();\n\t\t\tif(map.get(s) == null) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t\tmap.put(s, \"\");\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\tpublic static void main (String args[]) throws Exception{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint ans = 0;\n\t\tMap<String,String> map = new HashMap<String, String>();\n\t\tfor(int i = 0;i < n; i++) {\n\t\t\tString s = scan.next();\n\t\t\tif(map.get(s) == null) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t\tmap.put(s, \"\");\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
] |
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main (String args[]) throws Exception{
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int ans = 0;
Map<String,String> map = new HashMap<String, String>();
for(int i = 0;i < n; i++) {
String s = scan.next();
if(map.get(s) == null) {
ans++;
}
map.put(s, "");
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
18,
13,
2,
13,
17,
30,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
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,
24
],
[
24,
25
],
[
24,
26
],
[
11,
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
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
11,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
51,
61
],
[
61,
62
],
[
62,
63
],
[
51,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
66,
77
],
[
66,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
11,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
9,
90
],
[
90,
91
]
] |
[
"import java.util.Arrays;\nimport java.util.Scanner;\nclass Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n String[] goods = new String[num];\n int count = 1;\n for(int i = 0; i < num ; i++){\n goods[i] = scan.next();\n }\n Arrays.sort(goods);\n for(int i = 0; i < num-1 ; i++){\n if(goods[i] .equals (goods[i + 1])){\n }else{\n count = count + 1;\n } \n }\n System.out.println(count);\n }\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n String[] goods = new String[num];\n int count = 1;\n for(int i = 0; i < num ; i++){\n goods[i] = scan.next();\n }\n Arrays.sort(goods);\n for(int i = 0; i < num-1 ; i++){\n if(goods[i] .equals (goods[i + 1])){\n }else{\n count = count + 1;\n } \n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n String[] goods = new String[num];\n int count = 1;\n for(int i = 0; i < num ; i++){\n goods[i] = scan.next();\n }\n Arrays.sort(goods);\n for(int i = 0; i < num-1 ; i++){\n if(goods[i] .equals (goods[i + 1])){\n }else{\n count = count + 1;\n } \n }\n System.out.println(count);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n String[] goods = new String[num];\n int count = 1;\n for(int i = 0; i < num ; i++){\n goods[i] = scan.next();\n }\n Arrays.sort(goods);\n for(int i = 0; i < num-1 ; i++){\n if(goods[i] .equals (goods[i + 1])){\n }else{\n count = count + 1;\n } \n }\n System.out.println(count);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int num = scan.nextInt();",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] goods = new String[num];",
"goods",
"new String[num]",
"num",
"int count = 1;",
"count",
"1",
"for(int i = 0; i < num ; i++){\n goods[i] = scan.next();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n goods[i] = scan.next();\n }",
"{\n goods[i] = scan.next();\n }",
"goods[i] = scan.next()",
"goods[i]",
"goods",
"i",
"scan.next()",
"scan.next",
"scan",
"Arrays.sort(goods)",
"Arrays.sort",
"Arrays",
"goods",
"for(int i = 0; i < num-1 ; i++){\n if(goods[i] .equals (goods[i + 1])){\n }else{\n count = count + 1;\n } \n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num-1",
"i",
"num-1",
"num",
"1",
"i++",
"i++",
"i",
"{\n if(goods[i] .equals (goods[i + 1])){\n }else{\n count = count + 1;\n } \n }",
"{\n if(goods[i] .equals (goods[i + 1])){\n }else{\n count = count + 1;\n } \n }",
"if(goods[i] .equals (goods[i + 1])){\n }else{\n count = count + 1;\n }",
"goods[i] .equals (goods[i + 1])",
"goods[i] .equals",
"goods[i]",
"goods",
"i",
"goods[i + 1]",
"goods",
"i + 1",
"i",
"1",
"{\n }",
"{\n count = count + 1;\n }",
"count = count + 1",
"count",
"count + 1",
"count",
"1",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String args[]",
"args"
] |
import java.util.Arrays;
import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int num = scan.nextInt();
String[] goods = new String[num];
int count = 1;
for(int i = 0; i < num ; i++){
goods[i] = scan.next();
}
Arrays.sort(goods);
for(int i = 0; i < num-1 ; i++){
if(goods[i] .equals (goods[i + 1])){
}else{
count = count + 1;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
13,
18,
13,
13,
30,
4,
18,
13,
18,
13,
13,
2,
4,
18,
13,
18,
13,
13,
17,
30,
4,
18,
13,
18,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
88,
8
],
[
88,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
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
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
47,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
47,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
70,
76
],
[
11,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
9,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
] |
[
"import java.util.HashMap;\nimport java.util.Scanner;\n\n/*\n問題文\n\n*/\n\npublic class Main {\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] s = new String[n];\n\n HashMap<String, Integer> list = new HashMap<>();\n for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n if (list.containsKey(s[i])) {\n list.put(s[i], list.get(s[i]) + 1);\n } else {\n list.put(s[i], 0);\n }\n }\n System.out.println(list.size());\n }\n}",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] s = new String[n];\n\n HashMap<String, Integer> list = new HashMap<>();\n for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n if (list.containsKey(s[i])) {\n list.put(s[i], list.get(s[i]) + 1);\n } else {\n list.put(s[i], 0);\n }\n }\n System.out.println(list.size());\n }\n}",
"Main",
"public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] s = new String[n];\n\n HashMap<String, Integer> list = new HashMap<>();\n for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n if (list.containsKey(s[i])) {\n list.put(s[i], list.get(s[i]) + 1);\n } else {\n list.put(s[i], 0);\n }\n }\n System.out.println(list.size());\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] s = new String[n];\n\n HashMap<String, Integer> list = new HashMap<>();\n for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n if (list.containsKey(s[i])) {\n list.put(s[i], list.get(s[i]) + 1);\n } else {\n list.put(s[i], 0);\n }\n }\n System.out.println(list.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] s = new String[n];",
"s",
"new String[n]",
"n",
"HashMap<String, Integer> list = new HashMap<>();",
"list",
"new HashMap<>()",
"for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n if (list.containsKey(s[i])) {\n list.put(s[i], list.get(s[i]) + 1);\n } else {\n list.put(s[i], 0);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s[i] = sc.next();\n if (list.containsKey(s[i])) {\n list.put(s[i], list.get(s[i]) + 1);\n } else {\n list.put(s[i], 0);\n }\n }",
"{\n s[i] = sc.next();\n if (list.containsKey(s[i])) {\n list.put(s[i], list.get(s[i]) + 1);\n } else {\n list.put(s[i], 0);\n }\n }",
"s[i] = sc.next()",
"s[i]",
"s",
"i",
"sc.next()",
"sc.next",
"sc",
"if (list.containsKey(s[i])) {\n list.put(s[i], list.get(s[i]) + 1);\n } else {\n list.put(s[i], 0);\n }",
"list.containsKey(s[i])",
"list.containsKey",
"list",
"s[i]",
"s",
"i",
"{\n list.put(s[i], list.get(s[i]) + 1);\n }",
"list.put(s[i], list.get(s[i]) + 1)",
"list.put",
"list",
"s[i]",
"s",
"i",
"list.get(s[i]) + 1",
"list.get(s[i])",
"list.get",
"list",
"s[i]",
"s",
"i",
"1",
"{\n list.put(s[i], 0);\n }",
"list.put(s[i], 0)",
"list.put",
"list",
"s[i]",
"s",
"i",
"0",
"System.out.println(list.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"list.size()",
"list.size",
"list",
"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 String[] s = new String[n];\n\n HashMap<String, Integer> list = new HashMap<>();\n for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n if (list.containsKey(s[i])) {\n list.put(s[i], list.get(s[i]) + 1);\n } else {\n list.put(s[i], 0);\n }\n }\n System.out.println(list.size());\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 String[] s = new String[n];\n\n HashMap<String, Integer> list = new HashMap<>();\n for (int i = 0; i < n; i++) {\n s[i] = sc.next();\n if (list.containsKey(s[i])) {\n list.put(s[i], list.get(s[i]) + 1);\n } else {\n list.put(s[i], 0);\n }\n }\n System.out.println(list.size());\n }\n}",
"Main"
] |
import java.util.HashMap;
import java.util.Scanner;
/*
問題文
*/
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] s = new String[n];
HashMap<String, Integer> list = new HashMap<>();
for (int i = 0; i < n; i++) {
s[i] = sc.next();
if (list.containsKey(s[i])) {
list.put(s[i], list.get(s[i]) + 1);
} else {
list.put(s[i], 0);
}
}
System.out.println(list.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
18,
13,
13,
17,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
71,
8
],
[
71,
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,
27
],
[
27,
28
],
[
27,
29
],
[
11,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
53,
55
],
[
50,
56
],
[
11,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
11,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
9,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] |
[
"import java.util.HashMap;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n // input\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String[] s = new String[n];\n HashMap<String, String> h = new HashMap<String, String>();\n for(int i=0; i<n; i++) {\n s[i] = sc.nextLine();\n h.put(s[i], \"a\");\n }\n int ans = h.size();\n System.out.println(ans);\n }\n}",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\n // input\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String[] s = new String[n];\n HashMap<String, String> h = new HashMap<String, String>();\n for(int i=0; i<n; i++) {\n s[i] = sc.nextLine();\n h.put(s[i], \"a\");\n }\n int ans = h.size();\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n\n // input\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String[] s = new String[n];\n HashMap<String, String> h = new HashMap<String, String>();\n for(int i=0; i<n; i++) {\n s[i] = sc.nextLine();\n h.put(s[i], \"a\");\n }\n int ans = h.size();\n System.out.println(ans);\n }",
"main",
"{\n\n // input\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String[] s = new String[n];\n HashMap<String, String> h = new HashMap<String, String>();\n for(int i=0; i<n; i++) {\n s[i] = sc.nextLine();\n h.put(s[i], \"a\");\n }\n int ans = h.size();\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.nextLine());",
"n",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] s = new String[n];",
"s",
"new String[n]",
"n",
"HashMap<String, String> h = new HashMap<String, String>();",
"h",
"new HashMap<String, String>()",
"for(int i=0; i<n; i++) {\n s[i] = sc.nextLine();\n h.put(s[i], \"a\");\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s[i] = sc.nextLine();\n h.put(s[i], \"a\");\n }",
"{\n s[i] = sc.nextLine();\n h.put(s[i], \"a\");\n }",
"s[i] = sc.nextLine()",
"s[i]",
"s",
"i",
"sc.nextLine()",
"sc.nextLine",
"sc",
"h.put(s[i], \"a\")",
"h.put",
"h",
"s[i]",
"s",
"i",
"\"a\"",
"int ans = h.size();",
"ans",
"h.size()",
"h.size",
"h",
"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\n // input\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String[] s = new String[n];\n HashMap<String, String> h = new HashMap<String, String>();\n for(int i=0; i<n; i++) {\n s[i] = sc.nextLine();\n h.put(s[i], \"a\");\n }\n int ans = h.size();\n System.out.println(ans);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n\n // input\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String[] s = new String[n];\n HashMap<String, String> h = new HashMap<String, String>();\n for(int i=0; i<n; i++) {\n s[i] = sc.nextLine();\n h.put(s[i], \"a\");\n }\n int ans = h.size();\n System.out.println(ans);\n }\n}",
"Main"
] |
import java.util.HashMap;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// input
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
String[] s = new String[n];
HashMap<String, String> h = new HashMap<String, String>();
for(int i=0; i<n; i++) {
s[i] = sc.nextLine();
h.put(s[i], "a");
}
int ans = h.size();
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
42,
2,
13,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
24,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
6,
44
],
[
44,
45
]
] |
[
"import java.util.*;\nclass Main\n{\n public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n int a=in.nextInt();\n HashSet<String> set=new HashSet<>();\n while(a>0)\n {\n String s=in.next();\n set.add(s);\n \n \n a--;\n }\n System.out.print(set.size());\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main\n{\n public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n int a=in.nextInt();\n HashSet<String> set=new HashSet<>();\n while(a>0)\n {\n String s=in.next();\n set.add(s);\n \n \n a--;\n }\n System.out.print(set.size());\n \n }\n}",
"Main",
"public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n int a=in.nextInt();\n HashSet<String> set=new HashSet<>();\n while(a>0)\n {\n String s=in.next();\n set.add(s);\n \n \n a--;\n }\n System.out.print(set.size());\n \n }",
"main",
"{\n Scanner in=new Scanner(System.in);\n int a=in.nextInt();\n HashSet<String> set=new HashSet<>();\n while(a>0)\n {\n String s=in.next();\n set.add(s);\n \n \n a--;\n }\n System.out.print(set.size());\n \n }",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int a=in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"HashSet<String> set=new HashSet<>();",
"set",
"new HashSet<>()",
"while(a>0)\n {\n String s=in.next();\n set.add(s);\n \n \n a--;\n }",
"a>0",
"a",
"0",
"{\n String s=in.next();\n set.add(s);\n \n \n a--;\n }",
"String s=in.next();",
"s",
"in.next()",
"in.next",
"in",
"set.add(s)",
"set.add",
"set",
"s",
"a--",
"a",
"System.out.print(set.size())",
"System.out.print",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"String args[]",
"args"
] |
import java.util.*;
class Main
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
int a=in.nextInt();
HashSet<String> set=new HashSet<>();
while(a>0)
{
String s=in.next();
set.add(s);
a--;
}
System.out.print(set.size());
}
}
|
[
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,
4,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
18,
13,
13,
18,
13,
2,
13,
17,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
62,
73
],
[
61,
74
],
[
74,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
]
] |
[
"import java.util.*;\n\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tString[] kinds = new String[n];\n\t\t\n\t\tint ans=1;\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tkinds[i] = sc.next();\n\t\t}\n\t\t\n\t\tArrays.sort(kinds);\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t \t\t\n\t\t//System.out.print(kinds[i]);\n\t\t\tif(kinds[i].equals(kinds[i-1])==false)ans++;\n\t\t}\n\t\t\n\t\tSystem.out.print(ans);\n\t}\n}\n\t\n\n",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tString[] kinds = new String[n];\n\t\t\n\t\tint ans=1;\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tkinds[i] = sc.next();\n\t\t}\n\t\t\n\t\tArrays.sort(kinds);\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t \t\t\n\t\t//System.out.print(kinds[i]);\n\t\t\tif(kinds[i].equals(kinds[i-1])==false)ans++;\n\t\t}\n\t\t\n\t\tSystem.out.print(ans);\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tString[] kinds = new String[n];\n\t\t\n\t\tint ans=1;\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tkinds[i] = sc.next();\n\t\t}\n\t\t\n\t\tArrays.sort(kinds);\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t \t\t\n\t\t//System.out.print(kinds[i]);\n\t\t\tif(kinds[i].equals(kinds[i-1])==false)ans++;\n\t\t}\n\t\t\n\t\tSystem.out.print(ans);\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tString[] kinds = new String[n];\n\t\t\n\t\tint ans=1;\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tkinds[i] = sc.next();\n\t\t}\n\t\t\n\t\tArrays.sort(kinds);\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t \t\t\n\t\t//System.out.print(kinds[i]);\n\t\t\tif(kinds[i].equals(kinds[i-1])==false)ans++;\n\t\t}\n\t\t\n\t\tSystem.out.print(ans);\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] kinds = new String[n];",
"kinds",
"new String[n]",
"n",
"int ans=1;",
"ans",
"1",
"for(int i=0;i<n;i++){\n\t\t\tkinds[i] = sc.next();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tkinds[i] = sc.next();\n\t\t}",
"{\n\t\t\tkinds[i] = sc.next();\n\t\t}",
"kinds[i] = sc.next()",
"kinds[i]",
"kinds",
"i",
"sc.next()",
"sc.next",
"sc",
"Arrays.sort(kinds)",
"Arrays.sort",
"Arrays",
"kinds",
"for(int i=1;i<n;i++){\n\t\t \t\t\n\t\t//System.out.print(kinds[i]);\n\t\t\tif(kinds[i].equals(kinds[i-1])==false)ans++;\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t \t\t\n\t\t//System.out.print(kinds[i]);\n\t\t\tif(kinds[i].equals(kinds[i-1])==false)ans++;\n\t\t}",
"{\n\t\t \t\t\n\t\t//System.out.print(kinds[i]);\n\t\t\tif(kinds[i].equals(kinds[i-1])==false)ans++;\n\t\t}",
"if(kinds[i].equals(kinds[i-1])==false)ans++;",
"kinds[i].equals(kinds[i-1])==false",
"kinds[i].equals(kinds[i-1])",
"kinds[i].equals",
"kinds[i]",
"kinds",
"i",
"kinds[i-1]",
"kinds",
"i-1",
"i",
"1",
"false",
"ans++",
"ans",
"System.out.print(ans)",
"System.out.print",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args"
] |
import java.util.*;
class Main{
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String[] kinds = new String[n];
int ans=1;
for(int i=0;i<n;i++){
kinds[i] = sc.next();
}
Arrays.sort(kinds);
for(int i=1;i<n;i++){
//System.out.print(kinds[i]);
if(kinds[i].equals(kinds[i-1])==false)ans++;
}
System.out.print(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
41,
13,
20,
28,
13,
13,
30,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
78,
17
],
[
78,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
20,
33
],
[
33,
34
],
[
33,
35
],
[
20,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
20,
56
],
[
56,
57
],
[
56,
58
],
[
20,
59
],
[
59,
60
],
[
59,
61
],
[
20,
62
],
[
62,
63
],
[
62,
64
],
[
62,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
20,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
18,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
] |
[
"import java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tString[] mozi = new String[n];\n\t\tint count = 0;\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tmozi[i] = scan.next();\n\t\t}\n\n\t\tList<String> listA = new ArrayList<String>(Arrays.asList(mozi));\n\t\tList<String> listB = new ArrayList<String>(new HashSet<>(listA));\n\n\t\tfor(String s:listB) {\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.HashSet;",
"HashSet",
"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\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tString[] mozi = new String[n];\n\t\tint count = 0;\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tmozi[i] = scan.next();\n\t\t}\n\n\t\tList<String> listA = new ArrayList<String>(Arrays.asList(mozi));\n\t\tList<String> listB = new ArrayList<String>(new HashSet<>(listA));\n\n\t\tfor(String s:listB) {\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tString[] mozi = new String[n];\n\t\tint count = 0;\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tmozi[i] = scan.next();\n\t\t}\n\n\t\tList<String> listA = new ArrayList<String>(Arrays.asList(mozi));\n\t\tList<String> listB = new ArrayList<String>(new HashSet<>(listA));\n\n\t\tfor(String s:listB) {\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tString[] mozi = new String[n];\n\t\tint count = 0;\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tmozi[i] = scan.next();\n\t\t}\n\n\t\tList<String> listA = new ArrayList<String>(Arrays.asList(mozi));\n\t\tList<String> listB = new ArrayList<String>(new HashSet<>(listA));\n\n\t\tfor(String s:listB) {\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] mozi = new String[n];",
"mozi",
"new String[n]",
"n",
"int count = 0;",
"count",
"0",
"for(int i=0;i<n;i++) {\n\t\t\tmozi[i] = scan.next();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tmozi[i] = scan.next();\n\t\t}",
"{\n\t\t\tmozi[i] = scan.next();\n\t\t}",
"mozi[i] = scan.next()",
"mozi[i]",
"mozi",
"i",
"scan.next()",
"scan.next",
"scan",
"List<String> listA = new ArrayList<String>(Arrays.asList(mozi));",
"listA",
"new ArrayList<String>(Arrays.asList(mozi))",
"List<String> listB = new ArrayList<String>(new HashSet<>(listA));",
"listB",
"new ArrayList<String>(new HashSet<>(listA))",
"for(String s:listB) {\n\t\t\tcount++;\n\t\t}",
"String s",
"listB",
"{\n\t\t\tcount++;\n\t\t}",
"{\n\t\t\tcount++;\n\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tString[] mozi = new String[n];\n\t\tint count = 0;\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tmozi[i] = scan.next();\n\t\t}\n\n\t\tList<String> listA = new ArrayList<String>(Arrays.asList(mozi));\n\t\tList<String> listB = new ArrayList<String>(new HashSet<>(listA));\n\n\t\tfor(String s:listB) {\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tString[] mozi = new String[n];\n\t\tint count = 0;\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tmozi[i] = scan.next();\n\t\t}\n\n\t\tList<String> listA = new ArrayList<String>(Arrays.asList(mozi));\n\t\tList<String> listB = new ArrayList<String>(new HashSet<>(listA));\n\n\t\tfor(String s:listB) {\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n\n}",
"Main"
] |
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
String[] mozi = new String[n];
int count = 0;
for(int i=0;i<n;i++) {
mozi[i] = scan.next();
}
List<String> listA = new ArrayList<String>(Arrays.asList(mozi));
List<String> listB = new ArrayList<String>(new HashSet<>(listA));
for(String s:listB) {
count++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
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,
41,
13,
4,
18,
13,
14,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
65,
8
],
[
8,
9
],
[
8,
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
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
10,
51
],
[
51,
52
],
[
52,
53
],
[
10,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
8,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] |
[
"import java.util.*;\n\npublic class Main {\n\n public static List<List<Integer>> switchList;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n Set<String> prizes = new HashSet<>();\n for (int i = 0; i < N; i++) {\n String val = sc.next();\n if (!prizes.contains(val)) {\n prizes.add(val);\n }\n }\n sc.close();\n\n System.out.println(prizes.size());\n\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static List<List<Integer>> switchList;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n Set<String> prizes = new HashSet<>();\n for (int i = 0; i < N; i++) {\n String val = sc.next();\n if (!prizes.contains(val)) {\n prizes.add(val);\n }\n }\n sc.close();\n\n System.out.println(prizes.size());\n\n }\n\n}",
"Main",
"public static List<List<Integer>> switchList;",
"switchList",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n Set<String> prizes = new HashSet<>();\n for (int i = 0; i < N; i++) {\n String val = sc.next();\n if (!prizes.contains(val)) {\n prizes.add(val);\n }\n }\n sc.close();\n\n System.out.println(prizes.size());\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n Set<String> prizes = new HashSet<>();\n for (int i = 0; i < N; i++) {\n String val = sc.next();\n if (!prizes.contains(val)) {\n prizes.add(val);\n }\n }\n sc.close();\n\n System.out.println(prizes.size());\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Set<String> prizes = new HashSet<>();",
"prizes",
"new HashSet<>()",
"for (int i = 0; i < N; i++) {\n String val = sc.next();\n if (!prizes.contains(val)) {\n prizes.add(val);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String val = sc.next();\n if (!prizes.contains(val)) {\n prizes.add(val);\n }\n }",
"{\n String val = sc.next();\n if (!prizes.contains(val)) {\n prizes.add(val);\n }\n }",
"String val = sc.next();",
"val",
"sc.next()",
"sc.next",
"sc",
"if (!prizes.contains(val)) {\n prizes.add(val);\n }",
"!prizes.contains(val)",
"prizes.contains(val)",
"prizes.contains",
"prizes",
"val",
"{\n prizes.add(val);\n }",
"prizes.add(val)",
"prizes.add",
"prizes",
"val",
"sc.close()",
"sc.close",
"sc",
"System.out.println(prizes.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"prizes.size()",
"prizes.size",
"prizes",
"String[] args",
"args",
"public class Main {\n\n public static List<List<Integer>> switchList;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n Set<String> prizes = new HashSet<>();\n for (int i = 0; i < N; i++) {\n String val = sc.next();\n if (!prizes.contains(val)) {\n prizes.add(val);\n }\n }\n sc.close();\n\n System.out.println(prizes.size());\n\n }\n\n}",
"public class Main {\n\n public static List<List<Integer>> switchList;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n Set<String> prizes = new HashSet<>();\n for (int i = 0; i < N; i++) {\n String val = sc.next();\n if (!prizes.contains(val)) {\n prizes.add(val);\n }\n }\n sc.close();\n\n System.out.println(prizes.size());\n\n }\n\n}",
"Main"
] |
import java.util.*;
public class Main {
public static List<List<Integer>> switchList;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
Set<String> prizes = new HashSet<>();
for (int i = 0; i < N; i++) {
String val = sc.next();
if (!prizes.contains(val)) {
prizes.add(val);
}
}
sc.close();
System.out.println(prizes.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
2,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
66,
5
],
[
66,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
13,
22
],
[
22,
23
],
[
22,
24
],
[
25,
26
],
[
25,
27
],
[
13,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
13,
48
],
[
48,
49
],
[
48,
50
],
[
13,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
13,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] |
[
"/******************************************************************************\n\n Online Java Compiler.\n Code, Compile, Run and Debug java program online.\nWrite your code in this editor and press \"Run\" button to execute it.\n\n*******************************************************************************/\n\nimport java.util.*;\npublic class Main\n{\n\tpublic static void main(String args[]) throws Exception\n\t{\n\t try\n\t {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString str[]=new String[2*100000];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t str[i]=sc.next();\n\t\t}\n\t\tSet<String> set=new HashSet<>(Arrays.asList(str));\n\t\tset.remove(null);\n\t\tSystem.out.println(set.size());\n\t }\n\t catch(Exception e)\n\t {}\n\t \n\n\n\t}\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n\tpublic static void main(String args[]) throws Exception\n\t{\n\t try\n\t {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString str[]=new String[2*100000];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t str[i]=sc.next();\n\t\t}\n\t\tSet<String> set=new HashSet<>(Arrays.asList(str));\n\t\tset.remove(null);\n\t\tSystem.out.println(set.size());\n\t }\n\t catch(Exception e)\n\t {}\n\t \n\n\n\t}\n}",
"Main",
"public static void main(String args[]) throws Exception\n\t{\n\t try\n\t {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString str[]=new String[2*100000];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t str[i]=sc.next();\n\t\t}\n\t\tSet<String> set=new HashSet<>(Arrays.asList(str));\n\t\tset.remove(null);\n\t\tSystem.out.println(set.size());\n\t }\n\t catch(Exception e)\n\t {}\n\t \n\n\n\t}",
"main",
"{\n\t try\n\t {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString str[]=new String[2*100000];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t str[i]=sc.next();\n\t\t}\n\t\tSet<String> set=new HashSet<>(Arrays.asList(str));\n\t\tset.remove(null);\n\t\tSystem.out.println(set.size());\n\t }\n\t catch(Exception e)\n\t {}\n\t \n\n\n\t}",
"try\n\t {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString str[]=new String[2*100000];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t str[i]=sc.next();\n\t\t}\n\t\tSet<String> set=new HashSet<>(Arrays.asList(str));\n\t\tset.remove(null);\n\t\tSystem.out.println(set.size());\n\t }\n\t catch(Exception e)\n\t {}",
"catch(Exception e)\n\t {}",
"Exception e",
"{}",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString str[]=new String[2*100000];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t str[i]=sc.next();\n\t\t}\n\t\tSet<String> set=new HashSet<>(Arrays.asList(str));\n\t\tset.remove(null);\n\t\tSystem.out.println(set.size());\n\t }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str[]=new String[2*100000];",
"str",
"new String[2*100000]",
"2*100000",
"2",
"100000",
"for(int i=0;i<n;i++)\n\t\t{\n\t\t str[i]=sc.next();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t str[i]=sc.next();\n\t\t}",
"{\n\t\t str[i]=sc.next();\n\t\t}",
"str[i]=sc.next()",
"str[i]",
"str",
"i",
"sc.next()",
"sc.next",
"sc",
"Set<String> set=new HashSet<>(Arrays.asList(str));",
"set",
"new HashSet<>(Arrays.asList(str))",
"set.remove(null)",
"set.remove",
"set",
"null",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"String args[]",
"args",
"public class Main\n{\n\tpublic static void main(String args[]) throws Exception\n\t{\n\t try\n\t {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString str[]=new String[2*100000];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t str[i]=sc.next();\n\t\t}\n\t\tSet<String> set=new HashSet<>(Arrays.asList(str));\n\t\tset.remove(null);\n\t\tSystem.out.println(set.size());\n\t }\n\t catch(Exception e)\n\t {}\n\t \n\n\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String args[]) throws Exception\n\t{\n\t try\n\t {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString str[]=new String[2*100000];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t str[i]=sc.next();\n\t\t}\n\t\tSet<String> set=new HashSet<>(Arrays.asList(str));\n\t\tset.remove(null);\n\t\tSystem.out.println(set.size());\n\t }\n\t catch(Exception e)\n\t {}\n\t \n\n\n\t}\n}",
"Main"
] |
/******************************************************************************
Online Java Compiler.
Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.
*******************************************************************************/
import java.util.*;
public class Main
{
public static void main(String args[]) throws Exception
{
try
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String str[]=new String[2*100000];
for(int i=0;i<n;i++)
{
str[i]=sc.next();
}
Set<String> set=new HashSet<>(Arrays.asList(str));
set.remove(null);
System.out.println(set.size());
}
catch(Exception e)
{}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
0,
18,
13,
13,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
18,
13,
13,
30,
40,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
147,
8
],
[
147,
9
],
[
9,
10
],
[
147,
11
],
[
11,
12
],
[
147,
13
],
[
13,
14
],
[
147,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
17,
25
],
[
25,
26
],
[
25,
27
],
[
17,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
17,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
17,
55
],
[
55,
56
],
[
55,
57
],
[
17,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
17,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
17,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
15,
98
],
[
98,
99
],
[
147,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
147,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
147,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
147,
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
],
[
0,
146
],
[
146,
147
],
[
146,
148
]
] |
[
"import java.util.*; \nimport java.io.*;\n\npublic class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n //ArrayList myList = new ArrayList<>();\n\n int N = nextInt();\n\n // for(int i = 1; i<=N; i++){\n // String S = next();\n // if(!myList.contains(S)){\n // myList.add(S);\n // }\n // }\n \n String[] myList = new String[N];\n\n \n for(int i = 0; i<N; i++){\n String S = next();\n myList[i] = S;\n }\n\n Arrays.sort(myList);\n\n int count= 1;\n String Temp = myList[0];\n for(int i = 1; i<N; i++){\n if(!Temp.equals( myList[i])){\n count++;\n Temp = myList[i];\n }\n }\n\n System.out.println(count);\n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n //ArrayList myList = new ArrayList<>();\n\n int N = nextInt();\n\n // for(int i = 1; i<=N; i++){\n // String S = next();\n // if(!myList.contains(S)){\n // myList.add(S);\n // }\n // }\n \n String[] myList = new String[N];\n\n \n for(int i = 0; i<N; i++){\n String S = next();\n myList[i] = S;\n }\n\n Arrays.sort(myList);\n\n int count= 1;\n String Temp = myList[0];\n for(int i = 1; i<N; i++){\n if(!Temp.equals( myList[i])){\n count++;\n Temp = myList[i];\n }\n }\n\n System.out.println(count);\n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main",
"static StringTokenizer st;",
"st",
"static BufferedReader br;",
"br",
"static PrintWriter out;",
"out",
"public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n //ArrayList myList = new ArrayList<>();\n\n int N = nextInt();\n\n // for(int i = 1; i<=N; i++){\n // String S = next();\n // if(!myList.contains(S)){\n // myList.add(S);\n // }\n // }\n \n String[] myList = new String[N];\n\n \n for(int i = 0; i<N; i++){\n String S = next();\n myList[i] = S;\n }\n\n Arrays.sort(myList);\n\n int count= 1;\n String Temp = myList[0];\n for(int i = 1; i<N; i++){\n if(!Temp.equals( myList[i])){\n count++;\n Temp = myList[i];\n }\n }\n\n System.out.println(count);\n }",
"main",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n\n //ArrayList myList = new ArrayList<>();\n\n int N = nextInt();\n\n // for(int i = 1; i<=N; i++){\n // String S = next();\n // if(!myList.contains(S)){\n // myList.add(S);\n // }\n // }\n \n String[] myList = new String[N];\n\n \n for(int i = 0; i<N; i++){\n String S = next();\n myList[i] = S;\n }\n\n Arrays.sort(myList);\n\n int count= 1;\n String Temp = myList[0];\n for(int i = 1; i<N; i++){\n if(!Temp.equals( myList[i])){\n count++;\n Temp = myList[i];\n }\n }\n\n System.out.println(count);\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int N = nextInt();",
"N",
"nextInt()",
"nextInt",
"String[] myList = new String[N];",
"myList",
"new String[N]",
"N",
"for(int i = 0; i<N; i++){\n String S = next();\n myList[i] = S;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String S = next();\n myList[i] = S;\n }",
"{\n String S = next();\n myList[i] = S;\n }",
"String S = next();",
"S",
"next()",
"next",
"myList[i] = S",
"myList[i]",
"myList",
"i",
"S",
"Arrays.sort(myList)",
"Arrays.sort",
"Arrays",
"myList",
"int count= 1;",
"count",
"1",
"String Temp = myList[0];",
"Temp",
"myList[0]",
"myList",
"0",
"for(int i = 1; i<N; i++){\n if(!Temp.equals( myList[i])){\n count++;\n Temp = myList[i];\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if(!Temp.equals( myList[i])){\n count++;\n Temp = myList[i];\n }\n }",
"{\n if(!Temp.equals( myList[i])){\n count++;\n Temp = myList[i];\n }\n }",
"if(!Temp.equals( myList[i])){\n count++;\n Temp = myList[i];\n }",
"!Temp.equals( myList[i])",
"Temp.equals( myList[i])",
"Temp.equals",
"Temp",
"myList[i]",
"myList",
"i",
"{\n count++;\n Temp = myList[i];\n }",
"count++",
"count",
"Temp = myList[i]",
"Temp",
"myList[i]",
"myList",
"i",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine().trim())",
"st",
"new StringTokenizer(br.readLine().trim())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n //ArrayList myList = new ArrayList<>();\n\n int N = nextInt();\n\n // for(int i = 1; i<=N; i++){\n // String S = next();\n // if(!myList.contains(S)){\n // myList.add(S);\n // }\n // }\n \n String[] myList = new String[N];\n\n \n for(int i = 0; i<N; i++){\n String S = next();\n myList[i] = S;\n }\n\n Arrays.sort(myList);\n\n int count= 1;\n String Temp = myList[0];\n for(int i = 1; i<N; i++){\n if(!Temp.equals( myList[i])){\n count++;\n Temp = myList[i];\n }\n }\n\n System.out.println(count);\n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n //ArrayList myList = new ArrayList<>();\n\n int N = nextInt();\n\n // for(int i = 1; i<=N; i++){\n // String S = next();\n // if(!myList.contains(S)){\n // myList.add(S);\n // }\n // }\n \n String[] myList = new String[N];\n\n \n for(int i = 0; i<N; i++){\n String S = next();\n myList[i] = S;\n }\n\n Arrays.sort(myList);\n\n int count= 1;\n String Temp = myList[0];\n for(int i = 1; i<N; i++){\n if(!Temp.equals( myList[i])){\n count++;\n Temp = myList[i];\n }\n }\n\n System.out.println(count);\n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
static StringTokenizer st;
static BufferedReader br;
static PrintWriter out;
public static void main(String[] args) throws IOException {
br = new BufferedReader(new InputStreamReader(System.in));
//ArrayList myList = new ArrayList<>();
int N = nextInt();
// for(int i = 1; i<=N; i++){
// String S = next();
// if(!myList.contains(S)){
// myList.add(S);
// }
// }
String[] myList = new String[N];
for(int i = 0; i<N; i++){
String S = next();
myList[i] = S;
}
Arrays.sort(myList);
int count= 1;
String Temp = myList[0];
for(int i = 1; i<N; i++){
if(!Temp.equals( myList[i])){
count++;
Temp = myList[i];
}
}
System.out.println(count);
}
public static int nextInt() throws IOException {
return Integer.parseInt(next());
}
public static long nextLong() throws IOException {
return Long.parseLong(next());
}
public static double nextDouble() throws IOException {
return Double.parseDouble(next());
}
static String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine().trim());
return st.nextToken();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
18,
13,
2,
13,
17,
30,
9,
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
],
[
89,
5
],
[
89,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
61,
72
],
[
72,
73
],
[
61,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] |
[
"import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int N =sc.nextInt();\n String M[] =new String[N];\n for(int i=0;i<N;i++){\n M[i]=sc.next();}\n Arrays.sort(M);\n int x =1;\n for(int j=1;j<N;j++){\n if(M[j].equals(M[j-1])){continue;}\n else{x=x+1;}}\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 int N =sc.nextInt();\n String M[] =new String[N];\n for(int i=0;i<N;i++){\n M[i]=sc.next();}\n Arrays.sort(M);\n int x =1;\n for(int j=1;j<N;j++){\n if(M[j].equals(M[j-1])){continue;}\n else{x=x+1;}}\n System.out.println(x);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int N =sc.nextInt();\n String M[] =new String[N];\n for(int i=0;i<N;i++){\n M[i]=sc.next();}\n Arrays.sort(M);\n int x =1;\n for(int j=1;j<N;j++){\n if(M[j].equals(M[j-1])){continue;}\n else{x=x+1;}}\n System.out.println(x);\n }",
"main",
"{\n Scanner sc =new Scanner(System.in);\n int N =sc.nextInt();\n String M[] =new String[N];\n for(int i=0;i<N;i++){\n M[i]=sc.next();}\n Arrays.sort(M);\n int x =1;\n for(int j=1;j<N;j++){\n if(M[j].equals(M[j-1])){continue;}\n else{x=x+1;}}\n System.out.println(x);\n }",
"Scanner sc =new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N =sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String M[] =new String[N];",
"M",
"new String[N]",
"N",
"for(int i=0;i<N;i++){\n M[i]=sc.next();}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n M[i]=sc.next();}",
"{\n M[i]=sc.next();}",
"M[i]=sc.next()",
"M[i]",
"M",
"i",
"sc.next()",
"sc.next",
"sc",
"Arrays.sort(M)",
"Arrays.sort",
"Arrays",
"M",
"int x =1;",
"x",
"1",
"for(int j=1;j<N;j++){\n if(M[j].equals(M[j-1])){continue;}\n else{x=x+1;}}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<N",
"j",
"N",
"j++",
"j++",
"j",
"{\n if(M[j].equals(M[j-1])){continue;}\n else{x=x+1;}}",
"{\n if(M[j].equals(M[j-1])){continue;}\n else{x=x+1;}}",
"if(M[j].equals(M[j-1])){continue;}\n else{x=x+1;}",
"M[j].equals(M[j-1])",
"M[j].equals",
"M[j]",
"M",
"j",
"M[j-1]",
"M",
"j-1",
"j",
"1",
"{continue;}",
"continue;",
"{x=x+1;}",
"x=x+1",
"x",
"x+1",
"x",
"1",
"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 int N =sc.nextInt();\n String M[] =new String[N];\n for(int i=0;i<N;i++){\n M[i]=sc.next();}\n Arrays.sort(M);\n int x =1;\n for(int j=1;j<N;j++){\n if(M[j].equals(M[j-1])){continue;}\n else{x=x+1;}}\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 int N =sc.nextInt();\n String M[] =new String[N];\n for(int i=0;i<N;i++){\n M[i]=sc.next();}\n Arrays.sort(M);\n int x =1;\n for(int j=1;j<N;j++){\n if(M[j].equals(M[j-1])){continue;}\n else{x=x+1;}}\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);
int N =sc.nextInt();
String M[] =new String[N];
for(int i=0;i<N;i++){
M[i]=sc.next();}
Arrays.sort(M);
int x =1;
for(int j=1;j<N;j++){
if(M[j].equals(M[j-1])){continue;}
else{x=x+1;}}
System.out.println(x);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
17,
41,
13,
4,
18,
4,
18,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
6,
69
],
[
69,
70
]
] |
[
"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 Map<String,Integer> map = new HashMap<>();\n int ans = 0;\n for(int i = 0;i < n;i++){\n String s = sc.next();\n map.put(s,1);\n }\n\n Iterator ite = map.values().iterator();\n while(ite.hasNext()){\n ans += (Integer)ite.next();\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 Map<String,Integer> map = new HashMap<>();\n int ans = 0;\n for(int i = 0;i < n;i++){\n String s = sc.next();\n map.put(s,1);\n }\n\n Iterator ite = map.values().iterator();\n while(ite.hasNext()){\n ans += (Integer)ite.next();\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 Map<String,Integer> map = new HashMap<>();\n int ans = 0;\n for(int i = 0;i < n;i++){\n String s = sc.next();\n map.put(s,1);\n }\n\n Iterator ite = map.values().iterator();\n while(ite.hasNext()){\n ans += (Integer)ite.next();\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n Map<String,Integer> map = new HashMap<>();\n int ans = 0;\n for(int i = 0;i < n;i++){\n String s = sc.next();\n map.put(s,1);\n }\n\n Iterator ite = map.values().iterator();\n while(ite.hasNext()){\n ans += (Integer)ite.next();\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",
"Map<String,Integer> map = new HashMap<>();",
"map",
"new HashMap<>()",
"int ans = 0;",
"ans",
"0",
"for(int i = 0;i < n;i++){\n String s = sc.next();\n map.put(s,1);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s = sc.next();\n map.put(s,1);\n }",
"{\n String s = sc.next();\n map.put(s,1);\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"map.put(s,1)",
"map.put",
"map",
"s",
"1",
"Iterator ite = map.values().iterator();",
"ite",
"map.values().iterator()",
"map.values().iterator",
"map.values()",
"map.values",
"map",
"while(ite.hasNext()){\n ans += (Integer)ite.next();\n }",
"ite.hasNext()",
"ite.hasNext",
"ite",
"{\n ans += (Integer)ite.next();\n }",
"ans += (Integer)ite.next()",
"ans",
"(Integer)ite.next()",
"ite.next",
"ite",
"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();
Map<String,Integer> map = new HashMap<>();
int ans = 0;
for(int i = 0;i < n;i++){
String s = sc.next();
map.put(s,1);
}
Iterator ite = map.values().iterator();
while(ite.hasNext()){
ans += (Integer)ite.next();
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
0,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
58,
8
],
[
58,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
9,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.*;\nimport java.io.*;\npublic class Main\n{\n public static void main(String[] args)\n {\n Scanner in = new Scanner(System.in);\n // int T;\n // T=in.nextInt();\n // while((T--)>0)\n // {\n // //code comes here\n\n // } \n int N;\n N=in.nextInt();\n in.nextLine();\n Set<String> set=new HashSet<>();\n for(int i=0;i<N;i++)\n {\n set.add(in.nextLine());\n }\n System.out.println(set.size());\n\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner in = new Scanner(System.in);\n // int T;\n // T=in.nextInt();\n // while((T--)>0)\n // {\n // //code comes here\n\n // } \n int N;\n N=in.nextInt();\n in.nextLine();\n Set<String> set=new HashSet<>();\n for(int i=0;i<N;i++)\n {\n set.add(in.nextLine());\n }\n System.out.println(set.size());\n\n }\n\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner in = new Scanner(System.in);\n // int T;\n // T=in.nextInt();\n // while((T--)>0)\n // {\n // //code comes here\n\n // } \n int N;\n N=in.nextInt();\n in.nextLine();\n Set<String> set=new HashSet<>();\n for(int i=0;i<N;i++)\n {\n set.add(in.nextLine());\n }\n System.out.println(set.size());\n\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n // int T;\n // T=in.nextInt();\n // while((T--)>0)\n // {\n // //code comes here\n\n // } \n int N;\n N=in.nextInt();\n in.nextLine();\n Set<String> set=new HashSet<>();\n for(int i=0;i<N;i++)\n {\n set.add(in.nextLine());\n }\n System.out.println(set.size());\n\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int N;",
"N",
"N=in.nextInt()",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"in.nextLine()",
"in.nextLine",
"in",
"Set<String> set=new HashSet<>();",
"set",
"new HashSet<>()",
"for(int i=0;i<N;i++)\n {\n set.add(in.nextLine());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n set.add(in.nextLine());\n }",
"{\n set.add(in.nextLine());\n }",
"set.add(in.nextLine())",
"set.add",
"set",
"in.nextLine()",
"in.nextLine",
"in",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"String[] args",
"args",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner in = new Scanner(System.in);\n // int T;\n // T=in.nextInt();\n // while((T--)>0)\n // {\n // //code comes here\n\n // } \n int N;\n N=in.nextInt();\n in.nextLine();\n Set<String> set=new HashSet<>();\n for(int i=0;i<N;i++)\n {\n set.add(in.nextLine());\n }\n System.out.println(set.size());\n\n }\n\n}",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner in = new Scanner(System.in);\n // int T;\n // T=in.nextInt();\n // while((T--)>0)\n // {\n // //code comes here\n\n // } \n int N;\n N=in.nextInt();\n in.nextLine();\n Set<String> set=new HashSet<>();\n for(int i=0;i<N;i++)\n {\n set.add(in.nextLine());\n }\n System.out.println(set.size());\n\n }\n\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
// int T;
// T=in.nextInt();
// while((T--)>0)
// {
// //code comes here
// }
int N;
N=in.nextInt();
in.nextLine();
Set<String> set=new HashSet<>();
for(int i=0;i<N;i++)
{
set.add(in.nextLine());
}
System.out.println(set.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
42,
2,
40,
13,
17,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
57,
17
],
[
57,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
20,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
52,
53
],
[
18,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.HashSet;\nimport java.util.Set;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tSet<String> set = new HashSet<>();\n\t\twhile(n-->0) set.add(br.readLine());\n\t\tSystem.out.println(set.size());\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tSet<String> set = new HashSet<>();\n\t\twhile(n-->0) set.add(br.readLine());\n\t\tSystem.out.println(set.size());\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tSet<String> set = new HashSet<>();\n\t\twhile(n-->0) set.add(br.readLine());\n\t\tSystem.out.println(set.size());\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tSet<String> set = new HashSet<>();\n\t\twhile(n-->0) set.add(br.readLine());\n\t\tSystem.out.println(set.size());\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",
"Set<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"while(n-->0) set.add(br.readLine());",
"n-->0",
"n--",
"n",
"0",
"set.add(br.readLine())",
"set.add",
"set",
"br.readLine()",
"br.readLine",
"br",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tSet<String> set = new HashSet<>();\n\t\twhile(n-->0) set.add(br.readLine());\n\t\tSystem.out.println(set.size());\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tSet<String> set = new HashSet<>();\n\t\twhile(n-->0) set.add(br.readLine());\n\t\tSystem.out.println(set.size());\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Set;
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());
Set<String> set = new HashSet<>();
while(n-->0) set.add(br.readLine());
System.out.println(set.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
20,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
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
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
14,
45
],
[
45,
46
],
[
45,
47
],
[
14,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
12,
56
],
[
56,
57
]
] |
[
"import java.util.ArrayList;\nimport java.util.HashSet;\nimport java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\tint a = sc.nextInt();\n\t\tfor(int i = 0; i < a; i++) {\n\t\t\tal.add(sc.next());\n\t\t}\n\t\tArrayList<String> al2 = new ArrayList<String>(new HashSet<>(al));\n\t\tSystem.out.println(al2.size());\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\tint a = sc.nextInt();\n\t\tfor(int i = 0; i < a; i++) {\n\t\t\tal.add(sc.next());\n\t\t}\n\t\tArrayList<String> al2 = new ArrayList<String>(new HashSet<>(al));\n\t\tSystem.out.println(al2.size());\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\tint a = sc.nextInt();\n\t\tfor(int i = 0; i < a; i++) {\n\t\t\tal.add(sc.next());\n\t\t}\n\t\tArrayList<String> al2 = new ArrayList<String>(new HashSet<>(al));\n\t\tSystem.out.println(al2.size());\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\tint a = sc.nextInt();\n\t\tfor(int i = 0; i < a; i++) {\n\t\t\tal.add(sc.next());\n\t\t}\n\t\tArrayList<String> al2 = new ArrayList<String>(new HashSet<>(al));\n\t\tSystem.out.println(al2.size());\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<String> al = new ArrayList<String>();",
"al",
"new ArrayList<String>()",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < a; i++) {\n\t\t\tal.add(sc.next());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tal.add(sc.next());\n\t\t}",
"{\n\t\t\tal.add(sc.next());\n\t\t}",
"al.add(sc.next())",
"al.add",
"al",
"sc.next()",
"sc.next",
"sc",
"ArrayList<String> al2 = new ArrayList<String>(new HashSet<>(al));",
"al2",
"new ArrayList<String>(new HashSet<>(al))",
"System.out.println(al2.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"al2.size()",
"al2.size",
"al2",
"String[] args",
"args"
] |
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
ArrayList<String> al = new ArrayList<String>();
int a = sc.nextInt();
for(int i = 0; i < a; i++) {
al.add(sc.next());
}
ArrayList<String> al2 = new ArrayList<String>(new HashSet<>(al));
System.out.println(al2.size());
}
}
|
[
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,
41,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
17,
28,
13,
13,
30,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
67,
11
],
[
67,
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
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
14,
48
],
[
48,
49
],
[
48,
50
],
[
14,
51
],
[
51,
52
],
[
51,
53
],
[
51,
54
],
[
55,
55
],
[
55,
56
],
[
56,
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.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tint n = stdIn.nextInt();\n\n\t\tSet<String> set = new HashSet<>();\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = stdIn.next();\n\t\t\tset.add(s);\n\n\t\t}\n\n\t\tint cnt = 0;\n\t\tfor(String x: set) {\n\t\t\tcnt++;\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\n\n\t}\n\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tint n = stdIn.nextInt();\n\n\t\tSet<String> set = new HashSet<>();\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = stdIn.next();\n\t\t\tset.add(s);\n\n\t\t}\n\n\t\tint cnt = 0;\n\t\tfor(String x: set) {\n\t\t\tcnt++;\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tint n = stdIn.nextInt();\n\n\t\tSet<String> set = new HashSet<>();\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = stdIn.next();\n\t\t\tset.add(s);\n\n\t\t}\n\n\t\tint cnt = 0;\n\t\tfor(String x: set) {\n\t\t\tcnt++;\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\n\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tint n = stdIn.nextInt();\n\n\t\tSet<String> set = new HashSet<>();\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = stdIn.next();\n\t\t\tset.add(s);\n\n\t\t}\n\n\t\tint cnt = 0;\n\t\tfor(String x: set) {\n\t\t\tcnt++;\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\n\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int n = stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"Set<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"for(int i = 0; i < n; i++) {\n\t\t\tString s = stdIn.next();\n\t\t\tset.add(s);\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString s = stdIn.next();\n\t\t\tset.add(s);\n\n\t\t}",
"{\n\t\t\tString s = stdIn.next();\n\t\t\tset.add(s);\n\n\t\t}",
"String s = stdIn.next();",
"s",
"stdIn.next()",
"stdIn.next",
"stdIn",
"set.add(s)",
"set.add",
"set",
"s",
"int cnt = 0;",
"cnt",
"0",
"for(String x: set) {\n\t\t\tcnt++;\n\t\t}",
"String x",
"set",
"{\n\t\t\tcnt++;\n\t\t}",
"{\n\t\t\tcnt++;\n\t\t}",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tint n = stdIn.nextInt();\n\n\t\tSet<String> set = new HashSet<>();\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = stdIn.next();\n\t\t\tset.add(s);\n\n\t\t}\n\n\t\tint cnt = 0;\n\t\tfor(String x: set) {\n\t\t\tcnt++;\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tint n = stdIn.nextInt();\n\n\t\tSet<String> set = new HashSet<>();\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = stdIn.next();\n\t\t\tset.add(s);\n\n\t\t}\n\n\t\tint cnt = 0;\n\t\tfor(String x: set) {\n\t\t\tcnt++;\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\n\n\t}\n\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int n = stdIn.nextInt();
Set<String> set = new HashSet<>();
for(int i = 0; i < n; i++) {
String s = stdIn.next();
set.add(s);
}
int cnt = 0;
for(String x: set) {
cnt++;
}
System.out.println(cnt);
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
20,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
68,
14
],
[
68,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
17,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
17,
51
],
[
51,
52
],
[
51,
53
],
[
17,
54
],
[
54,
55
],
[
55,
56
],
[
17,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
63,
64
],
[
15,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
"import java.util.ArrayList;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n List<String> list = new ArrayList<>();\n for(int i=0;i<n;i++){\n String s = sc.next();\n list.add(s);\n }\n List<String> listb = new ArrayList<String>(new HashSet<>(list));\n sc.close();\n System.out.println(listb.size());\n \n \n }\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n List<String> list = new ArrayList<>();\n for(int i=0;i<n;i++){\n String s = sc.next();\n list.add(s);\n }\n List<String> listb = new ArrayList<String>(new HashSet<>(list));\n sc.close();\n System.out.println(listb.size());\n \n \n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n List<String> list = new ArrayList<>();\n for(int i=0;i<n;i++){\n String s = sc.next();\n list.add(s);\n }\n List<String> listb = new ArrayList<String>(new HashSet<>(list));\n sc.close();\n System.out.println(listb.size());\n \n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n List<String> list = new ArrayList<>();\n for(int i=0;i<n;i++){\n String s = sc.next();\n list.add(s);\n }\n List<String> listb = new ArrayList<String>(new HashSet<>(list));\n sc.close();\n System.out.println(listb.size());\n \n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"List<String> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"for(int i=0;i<n;i++){\n String s = sc.next();\n list.add(s);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s = sc.next();\n list.add(s);\n }",
"{\n String s = sc.next();\n list.add(s);\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"list.add(s)",
"list.add",
"list",
"s",
"List<String> listb = new ArrayList<String>(new HashSet<>(list));",
"listb",
"new ArrayList<String>(new HashSet<>(list))",
"sc.close()",
"sc.close",
"sc",
"System.out.println(listb.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"listb.size()",
"listb.size",
"listb",
"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 List<String> list = new ArrayList<>();\n for(int i=0;i<n;i++){\n String s = sc.next();\n list.add(s);\n }\n List<String> listb = new ArrayList<String>(new HashSet<>(list));\n sc.close();\n System.out.println(listb.size());\n \n \n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n List<String> list = new ArrayList<>();\n for(int i=0;i<n;i++){\n String s = sc.next();\n list.add(s);\n }\n List<String> listb = new ArrayList<String>(new HashSet<>(list));\n sc.close();\n System.out.println(listb.size());\n \n \n }\n}",
"Main"
] |
import java.util.ArrayList;
import java.util.HashSet;
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<String> list = new ArrayList<>();
for(int i=0;i<n;i++){
String s = sc.next();
list.add(s);
}
List<String> listb = new ArrayList<String>(new HashSet<>(list));
sc.close();
System.out.println(listb.size());
}
}
|
[
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,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
40,
4,
18,
18,
13,
2,
13,
17,
18,
13,
13,
30,
40,
13,
4,
13,
2,
13,
17,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
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,
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
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
47,
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
],
[
70,
71
],
[
70,
72
],
[
66,
73
],
[
73,
74
],
[
73,
75
],
[
64,
76
],
[
76,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
6,
84
],
[
84,
85
],
[
4,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
86,
95
],
[
95,
96
],
[
4,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
97,
106
],
[
106,
107
]
] |
[
"import java.util.*;\nclass Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();sc.nextLine();\n int count=1;\n String hashh[]=new String[n];\n for(int i=0;i<n;i++){\n hashh[i]=sc.nextLine();\n }\n Arrays.sort(hashh);\n for(int i=1;i<n;i++){\n if(!hashh[i-1].equals(hashh[i])){\n count++;\n }\n }\n pl(count+\"\");\n }\n\n public static void pr(String str){\n System.out.print(str);\n }\n public static void pl(String str){\n System.out.println(str);\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();sc.nextLine();\n int count=1;\n String hashh[]=new String[n];\n for(int i=0;i<n;i++){\n hashh[i]=sc.nextLine();\n }\n Arrays.sort(hashh);\n for(int i=1;i<n;i++){\n if(!hashh[i-1].equals(hashh[i])){\n count++;\n }\n }\n pl(count+\"\");\n }\n\n public static void pr(String str){\n System.out.print(str);\n }\n public static void pl(String str){\n System.out.println(str);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();sc.nextLine();\n int count=1;\n String hashh[]=new String[n];\n for(int i=0;i<n;i++){\n hashh[i]=sc.nextLine();\n }\n Arrays.sort(hashh);\n for(int i=1;i<n;i++){\n if(!hashh[i-1].equals(hashh[i])){\n count++;\n }\n }\n pl(count+\"\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();sc.nextLine();\n int count=1;\n String hashh[]=new String[n];\n for(int i=0;i<n;i++){\n hashh[i]=sc.nextLine();\n }\n Arrays.sort(hashh);\n for(int i=1;i<n;i++){\n if(!hashh[i-1].equals(hashh[i])){\n count++;\n }\n }\n pl(count+\"\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int count=1;",
"count",
"1",
"String hashh[]=new String[n];",
"hashh",
"new String[n]",
"n",
"for(int i=0;i<n;i++){\n hashh[i]=sc.nextLine();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n hashh[i]=sc.nextLine();\n }",
"{\n hashh[i]=sc.nextLine();\n }",
"hashh[i]=sc.nextLine()",
"hashh[i]",
"hashh",
"i",
"sc.nextLine()",
"sc.nextLine",
"sc",
"Arrays.sort(hashh)",
"Arrays.sort",
"Arrays",
"hashh",
"for(int i=1;i<n;i++){\n if(!hashh[i-1].equals(hashh[i])){\n count++;\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(!hashh[i-1].equals(hashh[i])){\n count++;\n }\n }",
"{\n if(!hashh[i-1].equals(hashh[i])){\n count++;\n }\n }",
"if(!hashh[i-1].equals(hashh[i])){\n count++;\n }",
"!hashh[i-1].equals(hashh[i])",
"hashh[i-1].equals(hashh[i])",
"hashh[i-1].equals",
"hashh[i-1]",
"hashh",
"i-1",
"i",
"1",
"hashh[i]",
"hashh",
"i",
"{\n count++;\n }",
"count++",
"count",
"pl(count+\"\")",
"pl",
"count+\"\"",
"count",
"\"\"",
"String args[]",
"args",
"public static void pr(String str){\n System.out.print(str);\n }",
"pr",
"{\n System.out.print(str);\n }",
"System.out.print(str)",
"System.out.print",
"System.out",
"System",
"System.out",
"str",
"String str",
"str",
"public static void pl(String str){\n System.out.println(str);\n }",
"pl",
"{\n System.out.println(str);\n }",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String str",
"str"
] |
import java.util.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();sc.nextLine();
int count=1;
String hashh[]=new String[n];
for(int i=0;i<n;i++){
hashh[i]=sc.nextLine();
}
Arrays.sort(hashh);
for(int i=1;i<n;i++){
if(!hashh[i-1].equals(hashh[i])){
count++;
}
}
pl(count+"");
}
public static void pr(String str){
System.out.print(str);
}
public static void pl(String str){
System.out.println(str);
}
}
|
[
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,
12,
13,
30,
41,
13,
20,
0,
13,
19,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
41,
13,
17,
28,
13,
13,
30,
30,
4,
18,
13,
13,
13,
40,
13,
4,
18,
18,
13,
13,
4,
18,
13,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
0,
13,
20,
17,
0,
13,
17,
0,
13,
20,
12,
13,
30,
38,
30,
4,
13,
30,
4,
18,
33,
12,
13,
30,
14,
2,
13,
17,
4,
18,
13,
12,
13,
30,
14,
2,
13,
18,
13,
13,
29,
18,
13,
40,
13,
41,
13,
4,
18,
13,
42,
2,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
17,
0,
13,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
224,
23
],
[
224,
24
],
[
24,
25
],
[
224,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
28,
37
],
[
37,
38
],
[
38,
39
],
[
26,
40
],
[
40,
41
],
[
224,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
45,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
52,
82
],
[
82,
83
],
[
82,
84
],
[
52,
85
],
[
85,
86
],
[
85,
87
],
[
52,
88
],
[
88,
89
],
[
88,
90
],
[
88,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
52,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
106,
107
],
[
224,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
108,
112
],
[
112,
113
],
[
108,
114
],
[
114,
115
],
[
108,
116
],
[
116,
117
],
[
116,
118
],
[
108,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
129,
131
],
[
108,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
108,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
151,
152
],
[
108,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
159,
161
],
[
156,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
155,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
155,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
155,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
183,
187
],
[
155,
188
],
[
188,
189
],
[
188,
190
],
[
155,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
108,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
200,
203
],
[
203,
204
],
[
108,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
209,
212
],
[
212,
213
],
[
108,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
218,
221
],
[
221,
222
],
[
0,
223
],
[
223,
224
],
[
223,
225
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.List;\n\npublic class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n String[] s = new String[N];\n for(int i=0; i<N; i++) {\n s[i] = sc.next();\n }\n\n HashMap<String,Integer> map = new HashMap<>();\n\n int i = 0;\n\n for(String shouhin : s) {\n map.put(shouhin,i);\n i++;\n }\n System.out.println(map.size());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n String[] s = new String[N];\n for(int i=0; i<N; i++) {\n s[i] = sc.next();\n }\n\n HashMap<String,Integer> map = new HashMap<>();\n\n int i = 0;\n\n for(String shouhin : s) {\n map.put(shouhin,i);\n i++;\n }\n System.out.println(map.size());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}",
"Main",
"private static Scanner sc;",
"sc",
"public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }",
"main",
"{\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }",
"Main instance = new Main();",
"instance",
"new Main()",
"sc = instance.new Scanner()",
"sc",
"instance.new Scanner()",
"instance",
"instance",
"instance.solve()",
"instance.solve",
"instance",
"String[] args",
"args",
"private void solve() {\n try {\n int N = sc.nextInt();\n String[] s = new String[N];\n for(int i=0; i<N; i++) {\n s[i] = sc.next();\n }\n\n HashMap<String,Integer> map = new HashMap<>();\n\n int i = 0;\n\n for(String shouhin : s) {\n map.put(shouhin,i);\n i++;\n }\n System.out.println(map.size());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"solve",
"{\n try {\n int N = sc.nextInt();\n String[] s = new String[N];\n for(int i=0; i<N; i++) {\n s[i] = sc.next();\n }\n\n HashMap<String,Integer> map = new HashMap<>();\n\n int i = 0;\n\n for(String shouhin : s) {\n map.put(shouhin,i);\n i++;\n }\n System.out.println(map.size());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"try {\n int N = sc.nextInt();\n String[] s = new String[N];\n for(int i=0; i<N; i++) {\n s[i] = sc.next();\n }\n\n HashMap<String,Integer> map = new HashMap<>();\n\n int i = 0;\n\n for(String shouhin : s) {\n map.put(shouhin,i);\n i++;\n }\n System.out.println(map.size());\n } catch (Exception e) {\n e.printStackTrace();\n }",
"catch (Exception e) {\n e.printStackTrace();\n }",
"Exception e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n int N = sc.nextInt();\n String[] s = new String[N];\n for(int i=0; i<N; i++) {\n s[i] = sc.next();\n }\n\n HashMap<String,Integer> map = new HashMap<>();\n\n int i = 0;\n\n for(String shouhin : s) {\n map.put(shouhin,i);\n i++;\n }\n System.out.println(map.size());\n }",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] s = new String[N];",
"s",
"new String[N]",
"N",
"for(int i=0; i<N; i++) {\n s[i] = sc.next();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n s[i] = sc.next();\n }",
"{\n s[i] = sc.next();\n }",
"s[i] = sc.next()",
"s[i]",
"s",
"i",
"sc.next()",
"sc.next",
"sc",
"HashMap<String,Integer> map = new HashMap<>();",
"map",
"new HashMap<>()",
"int i = 0;",
"i",
"0",
"for(String shouhin : s) {\n map.put(shouhin,i);\n i++;\n }",
"String shouhin",
"s",
"{\n map.put(shouhin,i);\n i++;\n }",
"{\n map.put(shouhin,i);\n i++;\n }",
"map.put(shouhin,i)",
"map.put",
"map",
"shouhin",
"i",
"i++",
"i",
"System.out.println(map.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"map.size()",
"map.size",
"map",
"private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }",
"Scanner",
"String[] s;",
"s",
"int i;",
"i",
"BufferedReader br;",
"br",
"String regex = \" \";",
"regex",
"\" \"",
"public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"Scanner",
"{\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"s = new String[0]",
"s",
"new String[0]",
"0",
"i = 0",
"i",
"0",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"@Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }",
"finalize",
"{\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }",
"try {\n super.finalize();\n } finally {\n destruction();\n }",
"{\n destruction();\n }",
"destruction()",
"destruction",
"{\n super.finalize();\n }",
"super.finalize()",
"super.finalize",
"super",
"private void destruction() throws IOException {\n if (br != null) br.close();\n }",
"destruction",
"{\n if (br != null) br.close();\n }",
"if (br != null) br.close();",
"br != null",
"br",
"null",
"br.close()",
"br.close",
"br",
"public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }",
"next",
"{\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }",
"if (i < s.length) return s[i++];",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"return s[i++];",
"s[i++]",
"s",
"i++",
"i",
"String st = br.readLine();",
"st",
"br.readLine()",
"br.readLine",
"br",
"while (st == \"\") st = br.readLine();",
"st == \"\"",
"st",
"\"\"",
"st = br.readLine()",
"st",
"br.readLine()",
"br.readLine",
"br",
"s = st.split(regex, 0)",
"s",
"st.split(regex, 0)",
"st.split",
"st",
"regex",
"0",
"i = 0",
"i",
"0",
"return s[i++];",
"s[i++]",
"s",
"i++",
"i",
"public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n String[] s = new String[N];\n for(int i=0; i<N; i++) {\n s[i] = sc.next();\n }\n\n HashMap<String,Integer> map = new HashMap<>();\n\n int i = 0;\n\n for(String shouhin : s) {\n map.put(shouhin,i);\n i++;\n }\n System.out.println(map.size());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}",
"public class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n String[] s = new String[N];\n for(int i=0; i<N; i++) {\n s[i] = sc.next();\n }\n\n HashMap<String,Integer> map = new HashMap<>();\n\n int i = 0;\n\n for(String shouhin : s) {\n map.put(shouhin,i);\n i++;\n }\n System.out.println(map.size());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
public class Main {
private static Scanner sc;
public static void main(String[] args) {
Main instance = new Main();
sc = instance.new Scanner();
instance.solve();
}
private void solve() {
try {
int N = sc.nextInt();
String[] s = new String[N];
for(int i=0; i<N; i++) {
s[i] = sc.next();
}
HashMap<String,Integer> map = new HashMap<>();
int i = 0;
for(String shouhin : s) {
map.put(shouhin,i);
i++;
}
System.out.println(map.size());
} catch (Exception e) {
e.printStackTrace();
}
}
private class Scanner {
String[] s;
int i;
BufferedReader br;
String regex = " ";
public Scanner() {
s = new String[0];
i = 0;
br = new BufferedReader(new InputStreamReader(System.in));
}
@Override
protected void finalize() throws Throwable {
try {
super.finalize();
} finally {
destruction();
}
}
private void destruction() throws IOException {
if (br != null) br.close();
}
public String next() throws IOException {
if (i < s.length) return s[i++];
String st = br.readLine();
while (st == "") st = br.readLine();
s = st.split(regex, 0);
i = 0;
return s[i++];
}
public int nextInt() throws NumberFormatException, IOException {
return Integer.parseInt(next());
}
public Long nextLong() throws NumberFormatException, IOException {
return Long.parseLong(next());
}
public Double nextDouble() throws NumberFormatException, IOException {
return Double.parseDouble(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
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,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
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
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
6,
47
],
[
47,
48
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n Set s = new HashSet();\n for (int i = 0; i < n; i++) {\n s.add(scan.next());\n }\n System.out.println(s.size());\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n Set s = new HashSet();\n for (int i = 0; i < n; i++) {\n s.add(scan.next());\n }\n System.out.println(s.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n Set s = new HashSet();\n for (int i = 0; i < n; i++) {\n s.add(scan.next());\n }\n System.out.println(s.size());\n }",
"main",
"{\n\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n Set s = new HashSet();\n for (int i = 0; i < n; i++) {\n s.add(scan.next());\n }\n System.out.println(s.size());\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"Set s = new HashSet();",
"s",
"new HashSet()",
"for (int i = 0; i < n; i++) {\n s.add(scan.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s.add(scan.next());\n }",
"{\n s.add(scan.next());\n }",
"s.add(scan.next())",
"s.add",
"s",
"scan.next()",
"scan.next",
"scan",
"System.out.println(s.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"s.size()",
"s.size",
"s",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
Set s = new HashSet();
for (int i = 0; i < n; i++) {
s.add(scan.next());
}
System.out.println(s.size());
}
}
|
[
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,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
18,
13,
2,
13,
17,
30,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
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
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
54,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
69,
80
],
[
69,
81
],
[
81,
82
],
[
82,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
6,
90
],
[
90,
91
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int ans = 1;\n String[] dic = new String[ n ];\n\n for( int i=0; i<n; i++ ){\n dic[i] = sc.next();\n }\n sc.close();\n Arrays.sort(dic);\n\n for( int j=0; j<n-1; j++ ){\n if( dic[ j ].equals( dic[ j+1 ] ) ){\n }else{\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int ans = 1;\n String[] dic = new String[ n ];\n\n for( int i=0; i<n; i++ ){\n dic[i] = sc.next();\n }\n sc.close();\n Arrays.sort(dic);\n\n for( int j=0; j<n-1; j++ ){\n if( dic[ j ].equals( dic[ j+1 ] ) ){\n }else{\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int ans = 1;\n String[] dic = new String[ n ];\n\n for( int i=0; i<n; i++ ){\n dic[i] = sc.next();\n }\n sc.close();\n Arrays.sort(dic);\n\n for( int j=0; j<n-1; j++ ){\n if( dic[ j ].equals( dic[ j+1 ] ) ){\n }else{\n ans++;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int ans = 1;\n String[] dic = new String[ n ];\n\n for( int i=0; i<n; i++ ){\n dic[i] = sc.next();\n }\n sc.close();\n Arrays.sort(dic);\n\n for( int j=0; j<n-1; j++ ){\n if( dic[ j ].equals( dic[ j+1 ] ) ){\n }else{\n ans++;\n }\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int ans = 1;",
"ans",
"1",
"String[] dic = new String[ n ];",
"dic",
"new String[ n ]",
"n",
"for( int i=0; i<n; i++ ){\n dic[i] = sc.next();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n dic[i] = sc.next();\n }",
"{\n dic[i] = sc.next();\n }",
"dic[i] = sc.next()",
"dic[i]",
"dic",
"i",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"Arrays.sort(dic)",
"Arrays.sort",
"Arrays",
"dic",
"for( int j=0; j<n-1; j++ ){\n if( dic[ j ].equals( dic[ j+1 ] ) ){\n }else{\n ans++;\n }\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n-1",
"j",
"n-1",
"n",
"1",
"j++",
"j++",
"j",
"{\n if( dic[ j ].equals( dic[ j+1 ] ) ){\n }else{\n ans++;\n }\n }",
"{\n if( dic[ j ].equals( dic[ j+1 ] ) ){\n }else{\n ans++;\n }\n }",
"if( dic[ j ].equals( dic[ j+1 ] ) ){\n }else{\n ans++;\n }",
"dic[ j ].equals( dic[ j+1 ] )",
"dic[ j ].equals",
"dic[ j ]",
"dic",
"j",
"dic[ j+1 ]",
"dic",
"j+1",
"j",
"1",
"{\n }",
"{\n ans++;\n }",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
int ans = 1;
String[] dic = new String[ n ];
for( int i=0; i<n; i++ ){
dic[i] = sc.next();
}
sc.close();
Arrays.sort(dic);
for( int j=0; j<n-1; j++ ){
if( dic[ j ].equals( dic[ j+1 ] ) ){
}else{
ans++;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
78,
20
],
[
78,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
23,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
36,
37
],
[
23,
38
],
[
38,
39
],
[
38,
40
],
[
23,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
23,
60
],
[
60,
61
],
[
61,
62
],
[
23,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
70,
71
],
[
23,
72
],
[
72,
73
],
[
73,
74
],
[
21,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
] |
[
"import java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.util.LinkedHashSet;\nimport java.util.Set;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int n = Integer.parseInt(br.readLine());\n Set<String> set = new LinkedHashSet<>();\n for (int i = 0; i < n; i++) {\n set.add(br.readLine());\n }\n\n br.close();\n\n bw.write(String.valueOf(set.size()));\n\n bw.flush();\n\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.util.LinkedHashSet;",
"LinkedHashSet",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int n = Integer.parseInt(br.readLine());\n Set<String> set = new LinkedHashSet<>();\n for (int i = 0; i < n; i++) {\n set.add(br.readLine());\n }\n\n br.close();\n\n bw.write(String.valueOf(set.size()));\n\n bw.flush();\n\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int n = Integer.parseInt(br.readLine());\n Set<String> set = new LinkedHashSet<>();\n for (int i = 0; i < n; i++) {\n set.add(br.readLine());\n }\n\n br.close();\n\n bw.write(String.valueOf(set.size()));\n\n bw.flush();\n\n }",
"main",
"{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int n = Integer.parseInt(br.readLine());\n Set<String> set = new LinkedHashSet<>();\n for (int i = 0; i < n; i++) {\n set.add(br.readLine());\n }\n\n br.close();\n\n bw.write(String.valueOf(set.size()));\n\n bw.flush();\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));",
"bw",
"new BufferedWriter(new OutputStreamWriter(System.out))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"Set<String> set = new LinkedHashSet<>();",
"set",
"new LinkedHashSet<>()",
"for (int i = 0; i < n; i++) {\n set.add(br.readLine());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n set.add(br.readLine());\n }",
"{\n set.add(br.readLine());\n }",
"set.add(br.readLine())",
"set.add",
"set",
"br.readLine()",
"br.readLine",
"br",
"br.close()",
"br.close",
"br",
"bw.write(String.valueOf(set.size()))",
"bw.write",
"bw",
"String.valueOf(set.size())",
"String.valueOf",
"String",
"set.size()",
"set.size",
"set",
"bw.flush()",
"bw.flush",
"bw",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int n = Integer.parseInt(br.readLine());\n Set<String> set = new LinkedHashSet<>();\n for (int i = 0; i < n; i++) {\n set.add(br.readLine());\n }\n\n br.close();\n\n bw.write(String.valueOf(set.size()));\n\n bw.flush();\n\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int n = Integer.parseInt(br.readLine());\n Set<String> set = new LinkedHashSet<>();\n for (int i = 0; i < n; i++) {\n set.add(br.readLine());\n }\n\n br.close();\n\n bw.write(String.valueOf(set.size()));\n\n bw.flush();\n\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.LinkedHashSet;
import java.util.Set;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int n = Integer.parseInt(br.readLine());
Set<String> set = new LinkedHashSet<>();
for (int i = 0; i < n; i++) {
set.add(br.readLine());
}
br.close();
bw.write(String.valueOf(set.size()));
bw.flush();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n HashSet hs = new HashSet();\n \n for(int i=0; i<n; i++){\n String line = sc.nextLine();\n hs.add(line);\n }\n int ans = hs.size();\n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n HashSet hs = new HashSet();\n \n for(int i=0; i<n; i++){\n String line = sc.nextLine();\n hs.add(line);\n }\n int ans = hs.size();\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n HashSet hs = new HashSet();\n \n for(int i=0; i<n; i++){\n String line = sc.nextLine();\n hs.add(line);\n }\n int ans = hs.size();\n System.out.println(ans);\n }",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n HashSet hs = new HashSet();\n \n for(int i=0; i<n; i++){\n String line = sc.nextLine();\n hs.add(line);\n }\n int ans = hs.size();\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.nextLine());",
"n",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"HashSet hs = new HashSet();",
"hs",
"new HashSet()",
"for(int i=0; i<n; i++){\n String line = sc.nextLine();\n hs.add(line);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String line = sc.nextLine();\n hs.add(line);\n }",
"{\n String line = sc.nextLine();\n hs.add(line);\n }",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"hs.add(line)",
"hs.add",
"hs",
"line",
"int ans = hs.size();",
"ans",
"hs.size()",
"hs.size",
"hs",
"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 \n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n HashSet hs = new HashSet();\n \n for(int i=0; i<n; i++){\n String line = sc.nextLine();\n hs.add(line);\n }\n int ans = hs.size();\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n HashSet hs = new HashSet();\n \n for(int i=0; i<n; i++){\n String line = sc.nextLine();\n hs.add(line);\n }\n int ans = hs.size();\n System.out.println(ans);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
HashSet hs = new HashSet();
for(int i=0; i<n; i++){
String line = sc.nextLine();
hs.add(line);
}
int ans = hs.size();
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
69,
11
],
[
69,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
44,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
14,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
12,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"import java.io.*;\nimport java.lang.*;\nimport java.util.*;\npublic class Main{ \n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n HashSet<String> hs=new HashSet<String>();\n int N=Integer.parseInt(br.readLine());\n int count=0;\n for(int i=0;i<N;i++){\n String str=br.readLine();\n boolean added=hs.add(str);\n if(added) count++;\n }\n System.out.println(count);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{ \n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n HashSet<String> hs=new HashSet<String>();\n int N=Integer.parseInt(br.readLine());\n int count=0;\n for(int i=0;i<N;i++){\n String str=br.readLine();\n boolean added=hs.add(str);\n if(added) count++;\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n HashSet<String> hs=new HashSet<String>();\n int N=Integer.parseInt(br.readLine());\n int count=0;\n for(int i=0;i<N;i++){\n String str=br.readLine();\n boolean added=hs.add(str);\n if(added) count++;\n }\n System.out.println(count);\n }",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n HashSet<String> hs=new HashSet<String>();\n int N=Integer.parseInt(br.readLine());\n int count=0;\n for(int i=0;i<N;i++){\n String str=br.readLine();\n boolean added=hs.add(str);\n if(added) count++;\n }\n System.out.println(count);\n }",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"HashSet<String> hs=new HashSet<String>();",
"hs",
"new HashSet<String>()",
"int N=Integer.parseInt(br.readLine());",
"N",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int count=0;",
"count",
"0",
"for(int i=0;i<N;i++){\n String str=br.readLine();\n boolean added=hs.add(str);\n if(added) count++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String str=br.readLine();\n boolean added=hs.add(str);\n if(added) count++;\n }",
"{\n String str=br.readLine();\n boolean added=hs.add(str);\n if(added) count++;\n }",
"String str=br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"boolean added=hs.add(str);",
"added",
"hs.add(str)",
"hs.add",
"hs",
"str",
"if(added) count++;",
"added",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main{ \n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n HashSet<String> hs=new HashSet<String>();\n int N=Integer.parseInt(br.readLine());\n int count=0;\n for(int i=0;i<N;i++){\n String str=br.readLine();\n boolean added=hs.add(str);\n if(added) count++;\n }\n System.out.println(count);\n }\n}",
"public class Main{ \n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n HashSet<String> hs=new HashSet<String>();\n int N=Integer.parseInt(br.readLine());\n int count=0;\n for(int i=0;i<N;i++){\n String str=br.readLine();\n boolean added=hs.add(str);\n if(added) count++;\n }\n System.out.println(count);\n }\n}",
"Main"
] |
import java.io.*;
import java.lang.*;
import java.util.*;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
HashSet<String> hs=new HashSet<String>();
int N=Integer.parseInt(br.readLine());
int count=0;
for(int i=0;i<N;i++){
String str=br.readLine();
boolean added=hs.add(str);
if(added) count++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
12,
13,
30,
23,
13,
23,
13,
23,
13,
12,
13,
30,
4,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
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
],
[
89,
11
],
[
89,
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
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
14,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
89,
56
],
[
56,
57
],
[
56,
58
],
[
56,
59
],
[
59,
60
],
[
56,
61
],
[
61,
62
],
[
56,
63
],
[
63,
64
],
[
89,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
65,
70
],
[
70,
71
],
[
89,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
72,
76
],
[
76,
77
],
[
72,
78
],
[
78,
79
],
[
72,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\n\n\npublic class Main {\n\n static void solve() {\n Scanner scan = new Scanner(System.in);\n// int t = scan.nextInt();\n int n = scan.nextInt();\n Set<String>set = new HashSet<>();\n for(int i=0;i<n;i++) {\n String s = scan.next();\n set.add(s);\n }\n\n System.out.println(set.size());\n\n// for (int i = 0; i < t; i++) {\n// int n = scan.nextInt();\n// int res = scase(n);\n// System.out.println(res);\n// solveCase(i, n, strs);\n// }\n }\n\n static void solveCase(int t, int n, String[] strs) {\n//\n// System.out.println(\"Case #\" + (t+1) + \": \" + res);\n }\n\n\n// static int scase(int n) {\n//\n// }\n\n\n public static void main(String[] args) {\n\n//\n solve();\n\n // Main m = new Main();\n // Scanner scan = new Scanner(System.in);\n\n // long n = scan.nextLong();\n // long r = scan.nextLong();\n // List<Long> list = new ArrayList<>();\n //// int[] arr = new int[n];\n // for (long i=0;i<n;i++){\n // list.add(scan.nextLong());\n // }\n// System.out.println(ch);\n // solve(n, arr);\n // scan.close();\n }\n\n\n//\n// class Counter extends HashMap<Integer, Integer> {\n// public int get(int k) {\n// return containsKey(k) ? super.get(k) : 0;\n// }\n//\n// public void add(int k, int v) {\n// put(k, get(k) + v);\n// }\n// }\n\n\n// static class Node {\n// int val;\n// Node next;\n// Node random;\n//\n// public Node(int val) {\n// this.val = val;\n// this.next = null;\n// this.random = null;\n// }\n// }\n\n// static class Node {\n// int key;\n// int data;\n// Node next;\n// Node prev;\n//\n// Node(int key, int data) {\n// this.key = key;\n// this.data = data;\n// }\n// }\n\n static class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n\n TreeNode(int x) {\n val = x;\n }\n }\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n\n static void solve() {\n Scanner scan = new Scanner(System.in);\n// int t = scan.nextInt();\n int n = scan.nextInt();\n Set<String>set = new HashSet<>();\n for(int i=0;i<n;i++) {\n String s = scan.next();\n set.add(s);\n }\n\n System.out.println(set.size());\n\n// for (int i = 0; i < t; i++) {\n// int n = scan.nextInt();\n// int res = scase(n);\n// System.out.println(res);\n// solveCase(i, n, strs);\n// }\n }\n\n static void solveCase(int t, int n, String[] strs) {\n//\n// System.out.println(\"Case #\" + (t+1) + \": \" + res);\n }\n\n\n// static int scase(int n) {\n//\n// }\n\n\n public static void main(String[] args) {\n\n//\n solve();\n\n // Main m = new Main();\n // Scanner scan = new Scanner(System.in);\n\n // long n = scan.nextLong();\n // long r = scan.nextLong();\n // List<Long> list = new ArrayList<>();\n //// int[] arr = new int[n];\n // for (long i=0;i<n;i++){\n // list.add(scan.nextLong());\n // }\n// System.out.println(ch);\n // solve(n, arr);\n // scan.close();\n }\n\n\n//\n// class Counter extends HashMap<Integer, Integer> {\n// public int get(int k) {\n// return containsKey(k) ? super.get(k) : 0;\n// }\n//\n// public void add(int k, int v) {\n// put(k, get(k) + v);\n// }\n// }\n\n\n// static class Node {\n// int val;\n// Node next;\n// Node random;\n//\n// public Node(int val) {\n// this.val = val;\n// this.next = null;\n// this.random = null;\n// }\n// }\n\n// static class Node {\n// int key;\n// int data;\n// Node next;\n// Node prev;\n//\n// Node(int key, int data) {\n// this.key = key;\n// this.data = data;\n// }\n// }\n\n static class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n\n TreeNode(int x) {\n val = x;\n }\n }\n}",
"Main",
"static void solve() {\n Scanner scan = new Scanner(System.in);\n// int t = scan.nextInt();\n int n = scan.nextInt();\n Set<String>set = new HashSet<>();\n for(int i=0;i<n;i++) {\n String s = scan.next();\n set.add(s);\n }\n\n System.out.println(set.size());\n\n// for (int i = 0; i < t; i++) {\n// int n = scan.nextInt();\n// int res = scase(n);\n// System.out.println(res);\n// solveCase(i, n, strs);\n// }\n }",
"solve",
"{\n Scanner scan = new Scanner(System.in);\n// int t = scan.nextInt();\n int n = scan.nextInt();\n Set<String>set = new HashSet<>();\n for(int i=0;i<n;i++) {\n String s = scan.next();\n set.add(s);\n }\n\n System.out.println(set.size());\n\n// for (int i = 0; i < t; i++) {\n// int n = scan.nextInt();\n// int res = scase(n);\n// System.out.println(res);\n// solveCase(i, n, strs);\n// }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"Set<String>set = new HashSet<>();",
"set",
"new HashSet<>()",
"for(int i=0;i<n;i++) {\n String s = scan.next();\n set.add(s);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s = scan.next();\n set.add(s);\n }",
"{\n String s = scan.next();\n set.add(s);\n }",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"set.add(s)",
"set.add",
"set",
"s",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"static void solveCase(int t, int n, String[] strs) {\n//\n// System.out.println(\"Case #\" + (t+1) + \": \" + res);\n }",
"solveCase",
"{\n//\n// System.out.println(\"Case #\" + (t+1) + \": \" + res);\n }",
"int t",
"t",
"int n",
"n",
"String[] strs",
"strs",
"public static void main(String[] args) {\n\n//\n solve();\n\n // Main m = new Main();\n // Scanner scan = new Scanner(System.in);\n\n // long n = scan.nextLong();\n // long r = scan.nextLong();\n // List<Long> list = new ArrayList<>();\n //// int[] arr = new int[n];\n // for (long i=0;i<n;i++){\n // list.add(scan.nextLong());\n // }\n// System.out.println(ch);\n // solve(n, arr);\n // scan.close();\n }",
"main",
"{\n\n//\n solve();\n\n // Main m = new Main();\n // Scanner scan = new Scanner(System.in);\n\n // long n = scan.nextLong();\n // long r = scan.nextLong();\n // List<Long> list = new ArrayList<>();\n //// int[] arr = new int[n];\n // for (long i=0;i<n;i++){\n // list.add(scan.nextLong());\n // }\n// System.out.println(ch);\n // solve(n, arr);\n // scan.close();\n }",
"solve()",
"solve",
"String[] args",
"args",
"static class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n\n TreeNode(int x) {\n val = x;\n }\n }",
"TreeNode",
"int val;",
"val",
"TreeNode left;",
"left",
"TreeNode right;",
"right",
"TreeNode(int x) {\n val = x;\n }",
"TreeNode",
"{\n val = x;\n }",
"val = x",
"val",
"x",
"int x",
"x",
"public class Main {\n\n static void solve() {\n Scanner scan = new Scanner(System.in);\n// int t = scan.nextInt();\n int n = scan.nextInt();\n Set<String>set = new HashSet<>();\n for(int i=0;i<n;i++) {\n String s = scan.next();\n set.add(s);\n }\n\n System.out.println(set.size());\n\n// for (int i = 0; i < t; i++) {\n// int n = scan.nextInt();\n// int res = scase(n);\n// System.out.println(res);\n// solveCase(i, n, strs);\n// }\n }\n\n static void solveCase(int t, int n, String[] strs) {\n//\n// System.out.println(\"Case #\" + (t+1) + \": \" + res);\n }\n\n\n// static int scase(int n) {\n//\n// }\n\n\n public static void main(String[] args) {\n\n//\n solve();\n\n // Main m = new Main();\n // Scanner scan = new Scanner(System.in);\n\n // long n = scan.nextLong();\n // long r = scan.nextLong();\n // List<Long> list = new ArrayList<>();\n //// int[] arr = new int[n];\n // for (long i=0;i<n;i++){\n // list.add(scan.nextLong());\n // }\n// System.out.println(ch);\n // solve(n, arr);\n // scan.close();\n }\n\n\n//\n// class Counter extends HashMap<Integer, Integer> {\n// public int get(int k) {\n// return containsKey(k) ? super.get(k) : 0;\n// }\n//\n// public void add(int k, int v) {\n// put(k, get(k) + v);\n// }\n// }\n\n\n// static class Node {\n// int val;\n// Node next;\n// Node random;\n//\n// public Node(int val) {\n// this.val = val;\n// this.next = null;\n// this.random = null;\n// }\n// }\n\n// static class Node {\n// int key;\n// int data;\n// Node next;\n// Node prev;\n//\n// Node(int key, int data) {\n// this.key = key;\n// this.data = data;\n// }\n// }\n\n static class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n\n TreeNode(int x) {\n val = x;\n }\n }\n}",
"public class Main {\n\n static void solve() {\n Scanner scan = new Scanner(System.in);\n// int t = scan.nextInt();\n int n = scan.nextInt();\n Set<String>set = new HashSet<>();\n for(int i=0;i<n;i++) {\n String s = scan.next();\n set.add(s);\n }\n\n System.out.println(set.size());\n\n// for (int i = 0; i < t; i++) {\n// int n = scan.nextInt();\n// int res = scase(n);\n// System.out.println(res);\n// solveCase(i, n, strs);\n// }\n }\n\n static void solveCase(int t, int n, String[] strs) {\n//\n// System.out.println(\"Case #\" + (t+1) + \": \" + res);\n }\n\n\n// static int scase(int n) {\n//\n// }\n\n\n public static void main(String[] args) {\n\n//\n solve();\n\n // Main m = new Main();\n // Scanner scan = new Scanner(System.in);\n\n // long n = scan.nextLong();\n // long r = scan.nextLong();\n // List<Long> list = new ArrayList<>();\n //// int[] arr = new int[n];\n // for (long i=0;i<n;i++){\n // list.add(scan.nextLong());\n // }\n// System.out.println(ch);\n // solve(n, arr);\n // scan.close();\n }\n\n\n//\n// class Counter extends HashMap<Integer, Integer> {\n// public int get(int k) {\n// return containsKey(k) ? super.get(k) : 0;\n// }\n//\n// public void add(int k, int v) {\n// put(k, get(k) + v);\n// }\n// }\n\n\n// static class Node {\n// int val;\n// Node next;\n// Node random;\n//\n// public Node(int val) {\n// this.val = val;\n// this.next = null;\n// this.random = null;\n// }\n// }\n\n// static class Node {\n// int key;\n// int data;\n// Node next;\n// Node prev;\n//\n// Node(int key, int data) {\n// this.key = key;\n// this.data = data;\n// }\n// }\n\n static class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n\n TreeNode(int x) {\n val = x;\n }\n }\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {
static void solve() {
Scanner scan = new Scanner(System.in);
// int t = scan.nextInt();
int n = scan.nextInt();
Set<String>set = new HashSet<>();
for(int i=0;i<n;i++) {
String s = scan.next();
set.add(s);
}
System.out.println(set.size());
// for (int i = 0; i < t; i++) {
// int n = scan.nextInt();
// int res = scase(n);
// System.out.println(res);
// solveCase(i, n, strs);
// }
}
static void solveCase(int t, int n, String[] strs) {
//
// System.out.println("Case #" + (t+1) + ": " + res);
}
// static int scase(int n) {
//
// }
public static void main(String[] args) {
//
solve();
// Main m = new Main();
// Scanner scan = new Scanner(System.in);
// long n = scan.nextLong();
// long r = scan.nextLong();
// List<Long> list = new ArrayList<>();
//// int[] arr = new int[n];
// for (long i=0;i<n;i++){
// list.add(scan.nextLong());
// }
// System.out.println(ch);
// solve(n, arr);
// scan.close();
}
//
// class Counter extends HashMap<Integer, Integer> {
// public int get(int k) {
// return containsKey(k) ? super.get(k) : 0;
// }
//
// public void add(int k, int v) {
// put(k, get(k) + v);
// }
// }
// static class Node {
// int val;
// Node next;
// Node random;
//
// public Node(int val) {
// this.val = val;
// this.next = null;
// this.random = null;
// }
// }
// static class Node {
// int key;
// int data;
// Node next;
// Node prev;
//
// Node(int key, int data) {
// this.key = key;
// this.data = data;
// }
// }
static class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}
}
|
[
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,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
59,
11
],
[
59,
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
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
14,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
12,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"\n\nimport java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\n\t\tSet<String> fruits = new HashSet();\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString line = sc.next();\n\t\t\t\tfruits.add(line);\n\t\t}\n\t\tSystem.out.println(fruits.size());\n\t}\n\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\n\t\tSet<String> fruits = new HashSet();\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString line = sc.next();\n\t\t\t\tfruits.add(line);\n\t\t}\n\t\tSystem.out.println(fruits.size());\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\n\t\tSet<String> fruits = new HashSet();\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString line = sc.next();\n\t\t\t\tfruits.add(line);\n\t\t}\n\t\tSystem.out.println(fruits.size());\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\n\t\tSet<String> fruits = new HashSet();\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString line = sc.next();\n\t\t\t\tfruits.add(line);\n\t\t}\n\t\tSystem.out.println(fruits.size());\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Set<String> fruits = new HashSet();",
"fruits",
"new HashSet()",
"for(int i = 0; i < N; i++) {\n\t\t\tString line = sc.next();\n\t\t\t\tfruits.add(line);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tString line = sc.next();\n\t\t\t\tfruits.add(line);\n\t\t}",
"{\n\t\t\tString line = sc.next();\n\t\t\t\tfruits.add(line);\n\t\t}",
"String line = sc.next();",
"line",
"sc.next()",
"sc.next",
"sc",
"fruits.add(line)",
"fruits.add",
"fruits",
"line",
"System.out.println(fruits.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"fruits.size()",
"fruits.size",
"fruits",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\n\t\tSet<String> fruits = new HashSet();\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString line = sc.next();\n\t\t\t\tfruits.add(line);\n\t\t}\n\t\tSystem.out.println(fruits.size());\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\n\t\tSet<String> fruits = new HashSet();\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString line = sc.next();\n\t\t\t\tfruits.add(line);\n\t\t}\n\t\tSystem.out.println(fruits.size());\n\t}\n\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
Set<String> fruits = new HashSet();
for(int i = 0; i < N; i++) {
String line = sc.next();
fruits.add(line);
}
System.out.println(fruits.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
30,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
9,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
16,
28
],
[
28,
29
],
[
28,
30
],
[
16,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
49,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
49,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
16,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
77,
78
],
[
6,
79
],
[
79,
80
]
] |
[
"import java.util.*;\n \nclass Main{\n public static void main(String[] args) {\n \n try(Scanner sc = new Scanner(System.in)){\n int n = Integer.parseInt(sc.next());\n Map<String, Integer> mapG = new HashMap<String, Integer>();\n\n for(int i = 0; i < n; i++){\n String keihin = sc.next();\n if(mapG.containsKey(keihin)){\n mapG.put(keihin, mapG.get(keihin) + 1);\n }else{\n mapG.put(keihin, 1);\n }\n }\n\n System.out.println(mapG.size());\n\n }catch(Exception e){\n e.printStackTrace();\n } \n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args) {\n \n try(Scanner sc = new Scanner(System.in)){\n int n = Integer.parseInt(sc.next());\n Map<String, Integer> mapG = new HashMap<String, Integer>();\n\n for(int i = 0; i < n; i++){\n String keihin = sc.next();\n if(mapG.containsKey(keihin)){\n mapG.put(keihin, mapG.get(keihin) + 1);\n }else{\n mapG.put(keihin, 1);\n }\n }\n\n System.out.println(mapG.size());\n\n }catch(Exception e){\n e.printStackTrace();\n } \n }\n}",
"Main",
"public static void main(String[] args) {\n \n try(Scanner sc = new Scanner(System.in)){\n int n = Integer.parseInt(sc.next());\n Map<String, Integer> mapG = new HashMap<String, Integer>();\n\n for(int i = 0; i < n; i++){\n String keihin = sc.next();\n if(mapG.containsKey(keihin)){\n mapG.put(keihin, mapG.get(keihin) + 1);\n }else{\n mapG.put(keihin, 1);\n }\n }\n\n System.out.println(mapG.size());\n\n }catch(Exception e){\n e.printStackTrace();\n } \n }",
"main",
"{\n \n try(Scanner sc = new Scanner(System.in)){\n int n = Integer.parseInt(sc.next());\n Map<String, Integer> mapG = new HashMap<String, Integer>();\n\n for(int i = 0; i < n; i++){\n String keihin = sc.next();\n if(mapG.containsKey(keihin)){\n mapG.put(keihin, mapG.get(keihin) + 1);\n }else{\n mapG.put(keihin, 1);\n }\n }\n\n System.out.println(mapG.size());\n\n }catch(Exception e){\n e.printStackTrace();\n } \n }",
"try(Scanner sc = new Scanner(System.in)){\n int n = Integer.parseInt(sc.next());\n Map<String, Integer> mapG = new HashMap<String, Integer>();\n\n for(int i = 0; i < n; i++){\n String keihin = sc.next();\n if(mapG.containsKey(keihin)){\n mapG.put(keihin, mapG.get(keihin) + 1);\n }else{\n mapG.put(keihin, 1);\n }\n }\n\n System.out.println(mapG.size());\n\n }catch(Exception e){\n e.printStackTrace();\n }",
"catch(Exception e){\n e.printStackTrace();\n }",
"Exception e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n int n = Integer.parseInt(sc.next());\n Map<String, Integer> mapG = new HashMap<String, Integer>();\n\n for(int i = 0; i < n; i++){\n String keihin = sc.next();\n if(mapG.containsKey(keihin)){\n mapG.put(keihin, mapG.get(keihin) + 1);\n }else{\n mapG.put(keihin, 1);\n }\n }\n\n System.out.println(mapG.size());\n\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"Map<String, Integer> mapG = new HashMap<String, Integer>();",
"mapG",
"new HashMap<String, Integer>()",
"for(int i = 0; i < n; i++){\n String keihin = sc.next();\n if(mapG.containsKey(keihin)){\n mapG.put(keihin, mapG.get(keihin) + 1);\n }else{\n mapG.put(keihin, 1);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String keihin = sc.next();\n if(mapG.containsKey(keihin)){\n mapG.put(keihin, mapG.get(keihin) + 1);\n }else{\n mapG.put(keihin, 1);\n }\n }",
"{\n String keihin = sc.next();\n if(mapG.containsKey(keihin)){\n mapG.put(keihin, mapG.get(keihin) + 1);\n }else{\n mapG.put(keihin, 1);\n }\n }",
"String keihin = sc.next();",
"keihin",
"sc.next()",
"sc.next",
"sc",
"if(mapG.containsKey(keihin)){\n mapG.put(keihin, mapG.get(keihin) + 1);\n }else{\n mapG.put(keihin, 1);\n }",
"mapG.containsKey(keihin)",
"mapG.containsKey",
"mapG",
"keihin",
"{\n mapG.put(keihin, mapG.get(keihin) + 1);\n }",
"mapG.put(keihin, mapG.get(keihin) + 1)",
"mapG.put",
"mapG",
"keihin",
"mapG.get(keihin) + 1",
"mapG.get(keihin)",
"mapG.get",
"mapG",
"keihin",
"1",
"{\n mapG.put(keihin, 1);\n }",
"mapG.put(keihin, 1)",
"mapG.put",
"mapG",
"keihin",
"1",
"System.out.println(mapG.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"mapG.size()",
"mapG.size",
"mapG",
"String[] args",
"args"
] |
import java.util.*;
class Main{
public static void main(String[] args) {
try(Scanner sc = new Scanner(System.in)){
int n = Integer.parseInt(sc.next());
Map<String, Integer> mapG = new HashMap<String, Integer>();
for(int i = 0; i < n; i++){
String keihin = sc.next();
if(mapG.containsKey(keihin)){
mapG.put(keihin, mapG.get(keihin) + 1);
}else{
mapG.put(keihin, 1);
}
}
System.out.println(mapG.size());
}catch(Exception e){
e.printStackTrace();
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
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,
18,
13,
13,
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
],
[
161,
20
],
[
161,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
23,
38
],
[
38,
39
],
[
38,
40
],
[
23,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
23,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
21,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
66,
70
],
[
70,
71
],
[
66,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
66,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
81,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
91,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
80,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
66,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
66,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
66,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
66,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
142,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
138,
158
],
[
158,
159
],
[
0,
160
],
[
160,
161
],
[
160,
162
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tint N = Integer.valueOf(s);\n\t\tSet<String> hash_Set = new HashSet<String>(); \n\t\t\n\t\twhile(N-- > 0) {\n\t\t\tString t = sc.nextLine();\n\t\t\thash_Set.add(t);\n\t\t}\n\t\tSystem.out.println(hash_Set.size());\n\t}\n}\n\nclass FastReader {\n\tBufferedReader bf;\n\tStringTokenizer st;\n\n\tpublic FastReader() {\n\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t}\n\n\tString next() {\n\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}\n\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\n\tdouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\n\tString nextLine() {\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = bf.readLine();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn str;\n\t}\n}\n",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tint N = Integer.valueOf(s);\n\t\tSet<String> hash_Set = new HashSet<String>(); \n\t\t\n\t\twhile(N-- > 0) {\n\t\t\tString t = sc.nextLine();\n\t\t\thash_Set.add(t);\n\t\t}\n\t\tSystem.out.println(hash_Set.size());\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tint N = Integer.valueOf(s);\n\t\tSet<String> hash_Set = new HashSet<String>(); \n\t\t\n\t\twhile(N-- > 0) {\n\t\t\tString t = sc.nextLine();\n\t\t\thash_Set.add(t);\n\t\t}\n\t\tSystem.out.println(hash_Set.size());\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tint N = Integer.valueOf(s);\n\t\tSet<String> hash_Set = new HashSet<String>(); \n\t\t\n\t\twhile(N-- > 0) {\n\t\t\tString t = sc.nextLine();\n\t\t\thash_Set.add(t);\n\t\t}\n\t\tSystem.out.println(hash_Set.size());\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int N = Integer.valueOf(s);",
"N",
"Integer.valueOf(s)",
"Integer.valueOf",
"Integer",
"s",
"Set<String> hash_Set = new HashSet<String>();",
"hash_Set",
"new HashSet<String>()",
"while(N-- > 0) {\n\t\t\tString t = sc.nextLine();\n\t\t\thash_Set.add(t);\n\t\t}",
"N-- > 0",
"N--",
"N",
"0",
"{\n\t\t\tString t = sc.nextLine();\n\t\t\thash_Set.add(t);\n\t\t}",
"String t = sc.nextLine();",
"t",
"sc.nextLine()",
"sc.nextLine",
"sc",
"hash_Set.add(t)",
"hash_Set.add",
"hash_Set",
"t",
"System.out.println(hash_Set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"hash_Set.size()",
"hash_Set.size",
"hash_Set",
"String[] args",
"args",
"class FastReader {\n\tBufferedReader bf;\n\tStringTokenizer st;\n\n\tpublic FastReader() {\n\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t}\n\n\tString next() {\n\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}\n\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\n\tdouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\n\tString nextLine() {\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = bf.readLine();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn str;\n\t}\n}",
"FastReader",
"BufferedReader bf;",
"bf",
"StringTokenizer st;",
"st",
"public FastReader() {\n\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t}",
"FastReader",
"{\n\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t}",
"bf = new BufferedReader(new InputStreamReader(System.in))",
"bf",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}",
"next",
"{\n\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}",
"while (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}",
"try {\n\t\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}",
"catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tSystem.out.println(e);\n\t\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n\t\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t}",
"st = new StringTokenizer(bf.readLine())",
"st",
"new StringTokenizer(bf.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}",
"nextInt",
"{\n\t\treturn Integer.parseInt(next());\n\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\treturn Long.parseLong(next());\n\t}",
"nextLong",
"{\n\t\treturn Long.parseLong(next());\n\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}",
"nextDouble",
"{\n\t\treturn Double.parseDouble(next());\n\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = bf.readLine();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn str;\n\t}",
"nextLine",
"{\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = bf.readLine();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn str;\n\t}",
"String str = \"\";",
"str",
"\"\"",
"try {\n\t\t\tstr = bf.readLine();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"Exception e",
"{\n\t\t\tSystem.out.println(e);\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n\t\t\tstr = bf.readLine();\n\t\t}",
"str = bf.readLine()",
"str",
"bf.readLine()",
"bf.readLine",
"bf",
"return str;",
"str",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tint N = Integer.valueOf(s);\n\t\tSet<String> hash_Set = new HashSet<String>(); \n\t\t\n\t\twhile(N-- > 0) {\n\t\t\tString t = sc.nextLine();\n\t\t\thash_Set.add(t);\n\t\t}\n\t\tSystem.out.println(hash_Set.size());\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tint N = Integer.valueOf(s);\n\t\tSet<String> hash_Set = new HashSet<String>(); \n\t\t\n\t\twhile(N-- > 0) {\n\t\t\tString t = sc.nextLine();\n\t\t\thash_Set.add(t);\n\t\t}\n\t\tSystem.out.println(hash_Set.size());\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
int N = Integer.valueOf(s);
Set<String> hash_Set = new HashSet<String>();
while(N-- > 0) {
String t = sc.nextLine();
hash_Set.add(t);
}
System.out.println(hash_Set.size());
}
}
class FastReader {
BufferedReader bf;
StringTokenizer st;
public FastReader() {
bf = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(bf.readLine());
} catch (Exception e) {
System.out.println(e);
}
}
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 = bf.readLine();
} catch (Exception e) {
System.out.println(e);
}
return str;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
59,
8
],
[
59,
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
],
[
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
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
11,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
9,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.util.Scanner;\nimport java.util.HashSet;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n scanner.nextLine();\n HashSet<String> result = new HashSet<>();\n for (int i = 0; i < num; i++) {\n String gacha = scanner.nextLine();\n result.add(gacha);\n }\n System.out.println(result.size());\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n scanner.nextLine();\n HashSet<String> result = new HashSet<>();\n for (int i = 0; i < num; i++) {\n String gacha = scanner.nextLine();\n result.add(gacha);\n }\n System.out.println(result.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n scanner.nextLine();\n HashSet<String> result = new HashSet<>();\n for (int i = 0; i < num; i++) {\n String gacha = scanner.nextLine();\n result.add(gacha);\n }\n System.out.println(result.size());\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n scanner.nextLine();\n HashSet<String> result = new HashSet<>();\n for (int i = 0; i < num; i++) {\n String gacha = scanner.nextLine();\n result.add(gacha);\n }\n System.out.println(result.size());\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int num = scanner.nextInt();",
"num",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"HashSet<String> result = new HashSet<>();",
"result",
"new HashSet<>()",
"for (int i = 0; i < num; i++) {\n String gacha = scanner.nextLine();\n result.add(gacha);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n String gacha = scanner.nextLine();\n result.add(gacha);\n }",
"{\n String gacha = scanner.nextLine();\n result.add(gacha);\n }",
"String gacha = scanner.nextLine();",
"gacha",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"result.add(gacha)",
"result.add",
"result",
"gacha",
"System.out.println(result.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"result.size()",
"result.size",
"result",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n scanner.nextLine();\n HashSet<String> result = new HashSet<>();\n for (int i = 0; i < num; i++) {\n String gacha = scanner.nextLine();\n result.add(gacha);\n }\n System.out.println(result.size());\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n scanner.nextLine();\n HashSet<String> result = new HashSet<>();\n for (int i = 0; i < num; i++) {\n String gacha = scanner.nextLine();\n result.add(gacha);\n }\n System.out.println(result.size());\n }\n}",
"Main"
] |
import java.util.Scanner;
import java.util.HashSet;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int num = scanner.nextInt();
scanner.nextLine();
HashSet<String> result = new HashSet<>();
for (int i = 0; i < num; i++) {
String gacha = scanner.nextLine();
result.add(gacha);
}
System.out.println(result.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
20,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
68,
17
],
[
68,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
20,
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
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
20,
54
],
[
54,
55
],
[
54,
56
],
[
20,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
63,
64
],
[
18,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
"import java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.LinkedHashSet;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<String> box = new ArrayList<>();\n int amount = sc.nextInt();\n String each = null;\n for (int i = 0; i < amount; i++) {\n box.add(sc.next());\n }\n List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));\n System.out.println(list.size());\n }\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.LinkedHashSet;",
"LinkedHashSet",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<String> box = new ArrayList<>();\n int amount = sc.nextInt();\n String each = null;\n for (int i = 0; i < amount; i++) {\n box.add(sc.next());\n }\n List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));\n System.out.println(list.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<String> box = new ArrayList<>();\n int amount = sc.nextInt();\n String each = null;\n for (int i = 0; i < amount; i++) {\n box.add(sc.next());\n }\n List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));\n System.out.println(list.size());\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n List<String> box = new ArrayList<>();\n int amount = sc.nextInt();\n String each = null;\n for (int i = 0; i < amount; i++) {\n box.add(sc.next());\n }\n List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));\n System.out.println(list.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"List<String> box = new ArrayList<>();",
"box",
"new ArrayList<>()",
"int amount = sc.nextInt();",
"amount",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String each = null;",
"each",
"null",
"for (int i = 0; i < amount; i++) {\n box.add(sc.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < amount",
"i",
"amount",
"i++",
"i++",
"i",
"{\n box.add(sc.next());\n }",
"{\n box.add(sc.next());\n }",
"box.add(sc.next())",
"box.add",
"box",
"sc.next()",
"sc.next",
"sc",
"List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));",
"list",
"new ArrayList<String>(new LinkedHashSet<>(box))",
"System.out.println(list.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"list.size()",
"list.size",
"list",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<String> box = new ArrayList<>();\n int amount = sc.nextInt();\n String each = null;\n for (int i = 0; i < amount; i++) {\n box.add(sc.next());\n }\n List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));\n System.out.println(list.size());\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<String> box = new ArrayList<>();\n int amount = sc.nextInt();\n String each = null;\n for (int i = 0; i < amount; i++) {\n box.add(sc.next());\n }\n List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));\n System.out.println(list.size());\n }\n}",
"Main"
] |
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
List<String> box = new ArrayList<>();
int amount = sc.nextInt();
String each = null;
for (int i = 0; i < amount; i++) {
box.add(sc.next());
}
List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));
System.out.println(list.size());
}
}
|
[
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,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
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
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
14,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
14,
58
],
[
58,
59
],
[
59,
60
],
[
12,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"import java.util.Scanner;\nimport java.util.Set;\nimport java.util.*;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n Set<String> hash_set = new HashSet<String>();\n \n \n String s = scan.nextLine();\n\n\n for (int i = 0; i < n; i++) {\n hash_set.add(scan.nextLine()); \n }\n\n\n System.out.println(hash_set.size());\n \n scan.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n Set<String> hash_set = new HashSet<String>();\n \n \n String s = scan.nextLine();\n\n\n for (int i = 0; i < n; i++) {\n hash_set.add(scan.nextLine()); \n }\n\n\n System.out.println(hash_set.size());\n \n scan.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n Set<String> hash_set = new HashSet<String>();\n \n \n String s = scan.nextLine();\n\n\n for (int i = 0; i < n; i++) {\n hash_set.add(scan.nextLine()); \n }\n\n\n System.out.println(hash_set.size());\n \n scan.close();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n Set<String> hash_set = new HashSet<String>();\n \n \n String s = scan.nextLine();\n\n\n for (int i = 0; i < n; i++) {\n hash_set.add(scan.nextLine()); \n }\n\n\n System.out.println(hash_set.size());\n \n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"Set<String> hash_set = new HashSet<String>();",
"hash_set",
"new HashSet<String>()",
"String s = scan.nextLine();",
"s",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for (int i = 0; i < n; i++) {\n hash_set.add(scan.nextLine()); \n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n hash_set.add(scan.nextLine()); \n }",
"{\n hash_set.add(scan.nextLine()); \n }",
"hash_set.add(scan.nextLine())",
"hash_set.add",
"hash_set",
"scan.nextLine()",
"scan.nextLine",
"scan",
"System.out.println(hash_set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"hash_set.size()",
"hash_set.size",
"hash_set",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n Set<String> hash_set = new HashSet<String>();\n \n \n String s = scan.nextLine();\n\n\n for (int i = 0; i < n; i++) {\n hash_set.add(scan.nextLine()); \n }\n\n\n System.out.println(hash_set.size());\n \n scan.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n Set<String> hash_set = new HashSet<String>();\n \n \n String s = scan.nextLine();\n\n\n for (int i = 0; i < n; i++) {\n hash_set.add(scan.nextLine()); \n }\n\n\n System.out.println(hash_set.size());\n \n scan.close();\n }\n}",
"Main"
] |
import java.util.Scanner;
import java.util.Set;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
Set<String> hash_set = new HashSet<String>();
String s = scan.nextLine();
for (int i = 0; i < n; i++) {
hash_set.add(scan.nextLine());
}
System.out.println(hash_set.size());
scan.close();
}
}
|
[
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,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
56,
11
],
[
56,
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
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
14,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
12,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.util.Scanner;\nimport java.util.HashSet;\nimport java.util.Set;\npublic class Main{\n public static void main(String[] args) {\n Scanner kbd = new Scanner(System.in);\n int n=kbd.nextInt();\n\n Set<String> set = new HashSet<>();\nfor (int i = 0; i < n; i++) {\nset.add(kbd.next());}\n\nSystem.out.println(set.size());\n}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main{\n public static void main(String[] args) {\n Scanner kbd = new Scanner(System.in);\n int n=kbd.nextInt();\n\n Set<String> set = new HashSet<>();\nfor (int i = 0; i < n; i++) {\nset.add(kbd.next());}\n\nSystem.out.println(set.size());\n}\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner kbd = new Scanner(System.in);\n int n=kbd.nextInt();\n\n Set<String> set = new HashSet<>();\nfor (int i = 0; i < n; i++) {\nset.add(kbd.next());}\n\nSystem.out.println(set.size());\n}",
"main",
"{\n Scanner kbd = new Scanner(System.in);\n int n=kbd.nextInt();\n\n Set<String> set = new HashSet<>();\nfor (int i = 0; i < n; i++) {\nset.add(kbd.next());}\n\nSystem.out.println(set.size());\n}",
"Scanner kbd = new Scanner(System.in);",
"kbd",
"new Scanner(System.in)",
"int n=kbd.nextInt();",
"n",
"kbd.nextInt()",
"kbd.nextInt",
"kbd",
"Set<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"for (int i = 0; i < n; i++) {\nset.add(kbd.next());}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\nset.add(kbd.next());}",
"{\nset.add(kbd.next());}",
"set.add(kbd.next())",
"set.add",
"set",
"kbd.next()",
"kbd.next",
"kbd",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner kbd = new Scanner(System.in);\n int n=kbd.nextInt();\n\n Set<String> set = new HashSet<>();\nfor (int i = 0; i < n; i++) {\nset.add(kbd.next());}\n\nSystem.out.println(set.size());\n}\n\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner kbd = new Scanner(System.in);\n int n=kbd.nextInt();\n\n Set<String> set = new HashSet<>();\nfor (int i = 0; i < n; i++) {\nset.add(kbd.next());}\n\nSystem.out.println(set.size());\n}\n\n}",
"Main"
] |
import java.util.Scanner;
import java.util.HashSet;
import java.util.Set;
public class Main{
public static void main(String[] args) {
Scanner kbd = new Scanner(System.in);
int n=kbd.nextInt();
Set<String> set = new HashSet<>();
for (int i = 0; i < n; i++) {
set.add(kbd.next());}
System.out.println(set.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
62,
11
],
[
62,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
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
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
14,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
12,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"import java.util.LinkedHashSet;\nimport java.util.Scanner;\nimport java.util.Set;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tSet<String> lottery = new LinkedHashSet<String>();\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint N = Integer.parseInt(scan.nextLine());\n\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tString S = scan.nextLine();\n\t\t\tlottery.add(S);\n\t\t}\n\n\t\tSystem.out.println(lottery.size());\n\t}\n}",
"import java.util.LinkedHashSet;",
"LinkedHashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tSet<String> lottery = new LinkedHashSet<String>();\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint N = Integer.parseInt(scan.nextLine());\n\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tString S = scan.nextLine();\n\t\t\tlottery.add(S);\n\t\t}\n\n\t\tSystem.out.println(lottery.size());\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tSet<String> lottery = new LinkedHashSet<String>();\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint N = Integer.parseInt(scan.nextLine());\n\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tString S = scan.nextLine();\n\t\t\tlottery.add(S);\n\t\t}\n\n\t\tSystem.out.println(lottery.size());\n\t}",
"main",
"{\n\t\tSet<String> lottery = new LinkedHashSet<String>();\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint N = Integer.parseInt(scan.nextLine());\n\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tString S = scan.nextLine();\n\t\t\tlottery.add(S);\n\t\t}\n\n\t\tSystem.out.println(lottery.size());\n\t}",
"Set<String> lottery = new LinkedHashSet<String>();",
"lottery",
"new LinkedHashSet<String>()",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = Integer.parseInt(scan.nextLine());",
"N",
"Integer.parseInt(scan.nextLine())",
"Integer.parseInt",
"Integer",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for(int i = 0; i < N; i++){\n\t\t\tString S = scan.nextLine();\n\t\t\tlottery.add(S);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tString S = scan.nextLine();\n\t\t\tlottery.add(S);\n\t\t}",
"{\n\t\t\tString S = scan.nextLine();\n\t\t\tlottery.add(S);\n\t\t}",
"String S = scan.nextLine();",
"S",
"scan.nextLine()",
"scan.nextLine",
"scan",
"lottery.add(S)",
"lottery.add",
"lottery",
"S",
"System.out.println(lottery.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"lottery.size()",
"lottery.size",
"lottery",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tSet<String> lottery = new LinkedHashSet<String>();\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint N = Integer.parseInt(scan.nextLine());\n\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tString S = scan.nextLine();\n\t\t\tlottery.add(S);\n\t\t}\n\n\t\tSystem.out.println(lottery.size());\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tSet<String> lottery = new LinkedHashSet<String>();\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint N = Integer.parseInt(scan.nextLine());\n\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tString S = scan.nextLine();\n\t\t\tlottery.add(S);\n\t\t}\n\n\t\tSystem.out.println(lottery.size());\n\t}\n}",
"Main"
] |
import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args){
Set<String> lottery = new LinkedHashSet<String>();
Scanner scan = new Scanner(System.in);
int N = Integer.parseInt(scan.nextLine());
for(int i = 0; i < N; i++){
String S = scan.nextLine();
lottery.add(S);
}
System.out.println(lottery.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
38,
5,
13,
30,
3,
30,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
81,
5
],
[
81,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
15,
23
],
[
23,
24
],
[
24,
25
],
[
15,
26
],
[
27,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
28,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
43,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
76,
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) throws Exception {\n // 標準入力から取得\n Scanner scan = new Scanner(System.in);\n // 取得した文字を格納する可変長リスト\n ArrayList<String> scList = new ArrayList<>();\n \n for (int i = 0; i >= 0; i++) {\n try {\n // 可変長リストに標準入力の値を格納\n scList.add(scan.nextLine());\n } catch (Exception e) {\n break;\n }\n }\n \n Set<String> gacha = new HashSet<String>();\n \n for (int i = 0; i < scList.size(); i++) {\n if (i != 0) {\n gacha.add(scList.get(i));\n }\n }\n System.out.println(gacha.size());\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n // 標準入力から取得\n Scanner scan = new Scanner(System.in);\n // 取得した文字を格納する可変長リスト\n ArrayList<String> scList = new ArrayList<>();\n \n for (int i = 0; i >= 0; i++) {\n try {\n // 可変長リストに標準入力の値を格納\n scList.add(scan.nextLine());\n } catch (Exception e) {\n break;\n }\n }\n \n Set<String> gacha = new HashSet<String>();\n \n for (int i = 0; i < scList.size(); i++) {\n if (i != 0) {\n gacha.add(scList.get(i));\n }\n }\n System.out.println(gacha.size());\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // 標準入力から取得\n Scanner scan = new Scanner(System.in);\n // 取得した文字を格納する可変長リスト\n ArrayList<String> scList = new ArrayList<>();\n \n for (int i = 0; i >= 0; i++) {\n try {\n // 可変長リストに標準入力の値を格納\n scList.add(scan.nextLine());\n } catch (Exception e) {\n break;\n }\n }\n \n Set<String> gacha = new HashSet<String>();\n \n for (int i = 0; i < scList.size(); i++) {\n if (i != 0) {\n gacha.add(scList.get(i));\n }\n }\n System.out.println(gacha.size());\n }",
"main",
"{\n // 標準入力から取得\n Scanner scan = new Scanner(System.in);\n // 取得した文字を格納する可変長リスト\n ArrayList<String> scList = new ArrayList<>();\n \n for (int i = 0; i >= 0; i++) {\n try {\n // 可変長リストに標準入力の値を格納\n scList.add(scan.nextLine());\n } catch (Exception e) {\n break;\n }\n }\n \n Set<String> gacha = new HashSet<String>();\n \n for (int i = 0; i < scList.size(); i++) {\n if (i != 0) {\n gacha.add(scList.get(i));\n }\n }\n System.out.println(gacha.size());\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"ArrayList<String> scList = new ArrayList<>();",
"scList",
"new ArrayList<>()",
"for (int i = 0; i >= 0; i++) {\n try {\n // 可変長リストに標準入力の値を格納\n scList.add(scan.nextLine());\n } catch (Exception e) {\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i >= 0",
"i",
"0",
"i++",
"i++",
"i",
"{\n try {\n // 可変長リストに標準入力の値を格納\n scList.add(scan.nextLine());\n } catch (Exception e) {\n break;\n }\n }",
"{\n try {\n // 可変長リストに標準入力の値を格納\n scList.add(scan.nextLine());\n } catch (Exception e) {\n break;\n }\n }",
"try {\n // 可変長リストに標準入力の値を格納\n scList.add(scan.nextLine());\n } catch (Exception e) {\n break;\n }",
"catch (Exception e) {\n break;\n }",
"Exception e",
"{\n break;\n }",
"break;",
"{\n // 可変長リストに標準入力の値を格納\n scList.add(scan.nextLine());\n }",
"scList.add(scan.nextLine())",
"scList.add",
"scList",
"scan.nextLine()",
"scan.nextLine",
"scan",
"Set<String> gacha = new HashSet<String>();",
"gacha",
"new HashSet<String>()",
"for (int i = 0; i < scList.size(); i++) {\n if (i != 0) {\n gacha.add(scList.get(i));\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < scList.size()",
"i",
"scList.size()",
"scList.size",
"scList",
"i++",
"i++",
"i",
"{\n if (i != 0) {\n gacha.add(scList.get(i));\n }\n }",
"{\n if (i != 0) {\n gacha.add(scList.get(i));\n }\n }",
"if (i != 0) {\n gacha.add(scList.get(i));\n }",
"i != 0",
"i",
"0",
"{\n gacha.add(scList.get(i));\n }",
"gacha.add(scList.get(i))",
"gacha.add",
"gacha",
"scList.get(i)",
"scList.get",
"scList",
"i",
"System.out.println(gacha.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"gacha.size()",
"gacha.size",
"gacha",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n // 標準入力から取得\n Scanner scan = new Scanner(System.in);\n // 取得した文字を格納する可変長リスト\n ArrayList<String> scList = new ArrayList<>();\n \n for (int i = 0; i >= 0; i++) {\n try {\n // 可変長リストに標準入力の値を格納\n scList.add(scan.nextLine());\n } catch (Exception e) {\n break;\n }\n }\n \n Set<String> gacha = new HashSet<String>();\n \n for (int i = 0; i < scList.size(); i++) {\n if (i != 0) {\n gacha.add(scList.get(i));\n }\n }\n System.out.println(gacha.size());\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n // 標準入力から取得\n Scanner scan = new Scanner(System.in);\n // 取得した文字を格納する可変長リスト\n ArrayList<String> scList = new ArrayList<>();\n \n for (int i = 0; i >= 0; i++) {\n try {\n // 可変長リストに標準入力の値を格納\n scList.add(scan.nextLine());\n } catch (Exception e) {\n break;\n }\n }\n \n Set<String> gacha = new HashSet<String>();\n \n for (int i = 0; i < scList.size(); i++) {\n if (i != 0) {\n gacha.add(scList.get(i));\n }\n }\n System.out.println(gacha.size());\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// 標準入力から取得
Scanner scan = new Scanner(System.in);
// 取得した文字を格納する可変長リスト
ArrayList<String> scList = new ArrayList<>();
for (int i = 0; i >= 0; i++) {
try {
// 可変長リストに標準入力の値を格納
scList.add(scan.nextLine());
} catch (Exception e) {
break;
}
}
Set<String> gacha = new HashSet<String>();
for (int i = 0; i < scList.size(); i++) {
if (i != 0) {
gacha.add(scList.get(i));
}
}
System.out.println(gacha.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
12,
13,
30,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
82,
11
],
[
82,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
28,
29
],
[
12,
30
],
[
30,
31
],
[
82,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
34,
43
],
[
43,
44
],
[
43,
45
],
[
34,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
34,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
32,
73
],
[
73,
74
],
[
82,
75
],
[
75,
76
],
[
75,
77
],
[
82,
78
],
[
78,
79
],
[
78,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
] |
[
"import java.util.*;\nimport java.io.*;\nimport java.nio.charset.StandardCharsets;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tint N = Integer.parseInt(in.readLine());\n\t\tSet<String> set = new HashSet<>();\n\t\tfor(int i= 0; i < N; ++i) {\n\t\t\tset.add(in.readLine());\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.nio.charset.StandardCharsets;",
"StandardCharsets",
"java.nio.charset",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tint N = Integer.parseInt(in.readLine());\n\t\tSet<String> set = new HashSet<>();\n\t\tfor(int i= 0; i < N; ++i) {\n\t\t\tset.add(in.readLine());\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}",
"main",
"{\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}",
"InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);",
"reader",
"new InputStreamReader(System.in, StandardCharsets.UTF_8)",
"BufferedReader in = new BufferedReader(reader);",
"in",
"new BufferedReader(reader)",
"Main ins = new Main(in);",
"ins",
"new Main(in)",
"ins.calc()",
"ins.calc",
"ins",
"ins.showResult()",
"ins.showResult",
"ins",
"String[] args",
"args",
"Main(BufferedReader in) throws IOException {\n\t\tint N = Integer.parseInt(in.readLine());\n\t\tSet<String> set = new HashSet<>();\n\t\tfor(int i= 0; i < N; ++i) {\n\t\t\tset.add(in.readLine());\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}",
"Main",
"{\n\t\tint N = Integer.parseInt(in.readLine());\n\t\tSet<String> set = new HashSet<>();\n\t\tfor(int i= 0; i < N; ++i) {\n\t\t\tset.add(in.readLine());\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}",
"int N = Integer.parseInt(in.readLine());",
"N",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"Set<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"for(int i= 0; i < N; ++i) {\n\t\t\tset.add(in.readLine());\n\t\t}",
"int i= 0;",
"int i= 0;",
"i",
"0",
"i < N",
"i",
"N",
"++i",
"++i",
"i",
"{\n\t\t\tset.add(in.readLine());\n\t\t}",
"{\n\t\t\tset.add(in.readLine());\n\t\t}",
"set.add(in.readLine())",
"set.add",
"set",
"in.readLine()",
"in.readLine",
"in",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"BufferedReader in",
"in",
"void calc() {\n\t}",
"calc",
"{\n\t}",
"void showResult() {\n\t}",
"showResult",
"{\n\t}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tint N = Integer.parseInt(in.readLine());\n\t\tSet<String> set = new HashSet<>();\n\t\tfor(int i= 0; i < N; ++i) {\n\t\t\tset.add(in.readLine());\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tint N = Integer.parseInt(in.readLine());\n\t\tSet<String> set = new HashSet<>();\n\t\tfor(int i= 0; i < N; ++i) {\n\t\t\tset.add(in.readLine());\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"Main"
] |
import java.util.*;
import java.io.*;
import java.nio.charset.StandardCharsets;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
BufferedReader in = new BufferedReader(reader);
Main ins = new Main(in);
ins.calc();
ins.showResult();
}
Main(BufferedReader in) throws IOException {
int N = Integer.parseInt(in.readLine());
Set<String> set = new HashSet<>();
for(int i= 0; i < N; ++i) {
set.add(in.readLine());
}
System.out.println(set.size());
}
void calc() {
}
void showResult() {
}
}
|
[
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,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
59,
11
],
[
59,
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
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
14,
45
],
[
45,
46
],
[
46,
47
],
[
14,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
12,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n\n// \tFile file = new File(\"test.txt\");\n// \tScanner sc = new Scanner(file);\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n Set<String> set = new HashSet<String>();\n for(int i = 0; i < N; i++){\n \tset.add(sc.next());\n }\n sc.close();\n System.out.println(set.size());\n }\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n// \tFile file = new File(\"test.txt\");\n// \tScanner sc = new Scanner(file);\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n Set<String> set = new HashSet<String>();\n for(int i = 0; i < N; i++){\n \tset.add(sc.next());\n }\n sc.close();\n System.out.println(set.size());\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\n// \tFile file = new File(\"test.txt\");\n// \tScanner sc = new Scanner(file);\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n Set<String> set = new HashSet<String>();\n for(int i = 0; i < N; i++){\n \tset.add(sc.next());\n }\n sc.close();\n System.out.println(set.size());\n }",
"main",
"{\n\n// \tFile file = new File(\"test.txt\");\n// \tScanner sc = new Scanner(file);\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n Set<String> set = new HashSet<String>();\n for(int i = 0; i < N; i++){\n \tset.add(sc.next());\n }\n sc.close();\n System.out.println(set.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Set<String> set = new HashSet<String>();",
"set",
"new HashSet<String>()",
"for(int i = 0; i < N; i++){\n \tset.add(sc.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n \tset.add(sc.next());\n }",
"{\n \tset.add(sc.next());\n }",
"set.add(sc.next())",
"set.add",
"set",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n// \tFile file = new File(\"test.txt\");\n// \tScanner sc = new Scanner(file);\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n Set<String> set = new HashSet<String>();\n for(int i = 0; i < N; i++){\n \tset.add(sc.next());\n }\n sc.close();\n System.out.println(set.size());\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n// \tFile file = new File(\"test.txt\");\n// \tScanner sc = new Scanner(file);\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n Set<String> set = new HashSet<String>();\n for(int i = 0; i < N; i++){\n \tset.add(sc.next());\n }\n sc.close();\n System.out.println(set.size());\n }\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) throws Exception {
// File file = new File("test.txt");
// Scanner sc = new Scanner(file);
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
Set<String> set = new HashSet<String>();
for(int i = 0; i < N; i++){
set.add(sc.next());
}
sc.close();
System.out.println(set.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
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,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
52,
5
],
[
52,
6
],
[
6,
7
],
[
52,
8
],
[
8,
9
],
[
8,
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
],
[
35,
38
],
[
38,
39
],
[
39,
40
],
[
10,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
8,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
] |
[
"import java.util.*;\n\npublic class Main {\n \n public static List<Integer> P;\n public static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n HashSet<String> K = new HashSet<>();\n for(int i=0; i<N ; i++){\n K.add(scanner.next());\n }\n System.out.println(K.size());\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n \n public static List<Integer> P;\n public static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n HashSet<String> K = new HashSet<>();\n for(int i=0; i<N ; i++){\n K.add(scanner.next());\n }\n System.out.println(K.size());\n }\n}",
"Main",
"public static List<Integer> P;",
"P",
"public static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n HashSet<String> K = new HashSet<>();\n for(int i=0; i<N ; i++){\n K.add(scanner.next());\n }\n System.out.println(K.size());\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n HashSet<String> K = new HashSet<>();\n for(int i=0; i<N ; i++){\n K.add(scanner.next());\n }\n System.out.println(K.size());\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"HashSet<String> K = new HashSet<>();",
"K",
"new HashSet<>()",
"for(int i=0; i<N ; i++){\n K.add(scanner.next());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n K.add(scanner.next());\n }",
"{\n K.add(scanner.next());\n }",
"K.add(scanner.next())",
"K.add",
"K",
"scanner.next()",
"scanner.next",
"scanner",
"System.out.println(K.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"K.size()",
"K.size",
"K",
"String args[]",
"args",
"public class Main {\n \n public static List<Integer> P;\n public static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n HashSet<String> K = new HashSet<>();\n for(int i=0; i<N ; i++){\n K.add(scanner.next());\n }\n System.out.println(K.size());\n }\n}",
"public class Main {\n \n public static List<Integer> P;\n public static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n HashSet<String> K = new HashSet<>();\n for(int i=0; i<N ; i++){\n K.add(scanner.next());\n }\n System.out.println(K.size());\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static List<Integer> P;
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
HashSet<String> K = new HashSet<>();
for(int i=0; i<N ; i++){
K.add(scanner.next());
}
System.out.println(K.size());
}
}
|
[
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,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
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
],
[
156,
23
],
[
156,
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
],
[
51,
54
],
[
54,
55
],
[
55,
56
],
[
26,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
63,
64
],
[
24,
65
],
[
65,
66
],
[
156,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
67,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
67,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
82,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
92,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
81,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
67,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
67,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
67,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
132,
133
],
[
67,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
140,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
136,
153
],
[
153,
154
],
[
0,
155
],
[
155,
156
],
[
155,
157
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.lang.reflect.Array;\nimport java.util.Scanner;\nimport java.util.StringTokenizer;\nimport java.util.*;\n\npublic class Main {\n\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next(){\n while(st==null || !st.hasMoreElements()){\n try{\n st=new StringTokenizer(br.readLine());\n }\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 int n=in.nextInt();\n HashSet<String> my=new HashSet<>();\n\n for(int i=0;i<n;i++){\n my.add(in.next());\n }\n System.out.println(my.size());\n }\n}\n",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.lang.reflect.Array;",
"Array",
"java.lang.reflect",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next(){\n while(st==null || !st.hasMoreElements()){\n try{\n st=new StringTokenizer(br.readLine());\n }\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 int n=in.nextInt();\n HashSet<String> my=new HashSet<>();\n\n for(int i=0;i<n;i++){\n my.add(in.next());\n }\n System.out.println(my.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n FastReader in = new FastReader();\n int n=in.nextInt();\n HashSet<String> my=new HashSet<>();\n\n for(int i=0;i<n;i++){\n my.add(in.next());\n }\n System.out.println(my.size());\n }",
"main",
"{\n FastReader in = new FastReader();\n int n=in.nextInt();\n HashSet<String> my=new HashSet<>();\n\n for(int i=0;i<n;i++){\n my.add(in.next());\n }\n System.out.println(my.size());\n }",
"FastReader in = new FastReader();",
"in",
"new FastReader()",
"int n=in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"HashSet<String> my=new HashSet<>();",
"my",
"new HashSet<>()",
"for(int i=0;i<n;i++){\n my.add(in.next());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n my.add(in.next());\n }",
"{\n my.add(in.next());\n }",
"my.add(in.next())",
"my.add",
"my",
"in.next()",
"in.next",
"in",
"System.out.println(my.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"my.size()",
"my.size",
"my",
"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\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 int n=in.nextInt();\n HashSet<String> my=new HashSet<>();\n\n for(int i=0;i<n;i++){\n my.add(in.next());\n }\n System.out.println(my.size());\n }\n}",
"public class Main {\n\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next(){\n while(st==null || !st.hasMoreElements()){\n try{\n st=new StringTokenizer(br.readLine());\n }\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 int n=in.nextInt();\n HashSet<String> my=new HashSet<>();\n\n for(int i=0;i<n;i++){\n my.add(in.next());\n }\n System.out.println(my.size());\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.util.Scanner;
import java.util.StringTokenizer;
import java.util.*;
public class Main {
static class FastReader{
BufferedReader br;
StringTokenizer st;
public FastReader(){
br = new BufferedReader(new InputStreamReader(System.in));
}
String next(){
while(st==null || !st.hasMoreElements()){
try{
st=new StringTokenizer(br.readLine());
}
catch(IOException e){
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt(){
return Integer.parseInt(next());
}
Long nextLong(){
return Long.parseLong(next());
}
double nextDouble(){
return Double.parseDouble(next());
}
String nextLine(){
String str="";
try{
str=br.readLine();
}
catch(IOException e){
e.printStackTrace();
}
return str;
}
}
public static void main(String[] args) {
FastReader in = new FastReader();
int n=in.nextInt();
HashSet<String> my=new HashSet<>();
for(int i=0;i<n;i++){
my.add(in.next());
}
System.out.println(my.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
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
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.util.*;\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\tString S = \"\";\n\t\t//HashSetで重複を許可しない空箱setを作成\n\t\tSet<String> set = new HashSet<String>();\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tS = sc.next();\n\t\t//setに重複を除いた景品名を入れる\n\t\t\tset.add(S);\n\t\t}\n\t\t//setに含まれる要素数を出力する\n\t\tSystem.out.println(set.size());\n\t}\t\t\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString S = \"\";\n\t\t//HashSetで重複を許可しない空箱setを作成\n\t\tSet<String> set = new HashSet<String>();\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tS = sc.next();\n\t\t//setに重複を除いた景品名を入れる\n\t\t\tset.add(S);\n\t\t}\n\t\t//setに含まれる要素数を出力する\n\t\tSystem.out.println(set.size());\n\t}\t\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\tString S = \"\";\n\t\t//HashSetで重複を許可しない空箱setを作成\n\t\tSet<String> set = new HashSet<String>();\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tS = sc.next();\n\t\t//setに重複を除いた景品名を入れる\n\t\t\tset.add(S);\n\t\t}\n\t\t//setに含まれる要素数を出力する\n\t\tSystem.out.println(set.size());\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString S = \"\";\n\t\t//HashSetで重複を許可しない空箱setを作成\n\t\tSet<String> set = new HashSet<String>();\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tS = sc.next();\n\t\t//setに重複を除いた景品名を入れる\n\t\t\tset.add(S);\n\t\t}\n\t\t//setに含まれる要素数を出力する\n\t\tSystem.out.println(set.size());\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = \"\";",
"S",
"\"\"",
"Set<String> set = new HashSet<String>();",
"set",
"new HashSet<String>()",
"for(int i=0; i<N; i++) {\n\t\t\tS = sc.next();\n\t\t//setに重複を除いた景品名を入れる\n\t\t\tset.add(S);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tS = sc.next();\n\t\t//setに重複を除いた景品名を入れる\n\t\t\tset.add(S);\n\t\t}",
"{\n\t\t\tS = sc.next();\n\t\t//setに重複を除いた景品名を入れる\n\t\t\tset.add(S);\n\t\t}",
"S = sc.next()",
"S",
"sc.next()",
"sc.next",
"sc",
"set.add(S)",
"set.add",
"set",
"S",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"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\tString S = \"\";\n\t\t//HashSetで重複を許可しない空箱setを作成\n\t\tSet<String> set = new HashSet<String>();\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tS = sc.next();\n\t\t//setに重複を除いた景品名を入れる\n\t\t\tset.add(S);\n\t\t}\n\t\t//setに含まれる要素数を出力する\n\t\tSystem.out.println(set.size());\n\t}\t\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\tString S = \"\";\n\t\t//HashSetで重複を許可しない空箱setを作成\n\t\tSet<String> set = new HashSet<String>();\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tS = sc.next();\n\t\t//setに重複を除いた景品名を入れる\n\t\t\tset.add(S);\n\t\t}\n\t\t//setに含まれる要素数を出力する\n\t\tSystem.out.println(set.size());\n\t}\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();
String S = "";
//HashSetで重複を許可しない空箱setを作成
Set<String> set = new HashSet<String>();
for(int i=0; i<N; i++) {
S = sc.next();
//setに重複を除いた景品名を入れる
set.add(S);
}
//setに含まれる要素数を出力する
System.out.println(set.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
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
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
14,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
12,
59
],
[
59,
60
]
] |
[
"import java.io.*;\nimport java.util.*;\nimport java.util.Collection;\nclass Main\n{\n public static void main(String args[]) throws java.lang.Exception\n {\n BufferedReader br= new BufferedReader (new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n HashSet<String> hs=new HashSet<String>();\n for(int i=0;i<n;i++)\n {\n String s=br.readLine();\n hs.add(s);\n } \n System.out.println(hs.size());\n \n }\n} ",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.util.Collection;",
"Collection",
"java.util",
"class Main\n{\n public static void main(String args[]) throws java.lang.Exception\n {\n BufferedReader br= new BufferedReader (new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n HashSet<String> hs=new HashSet<String>();\n for(int i=0;i<n;i++)\n {\n String s=br.readLine();\n hs.add(s);\n } \n System.out.println(hs.size());\n \n }\n}",
"Main",
"public static void main(String args[]) throws java.lang.Exception\n {\n BufferedReader br= new BufferedReader (new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n HashSet<String> hs=new HashSet<String>();\n for(int i=0;i<n;i++)\n {\n String s=br.readLine();\n hs.add(s);\n } \n System.out.println(hs.size());\n \n }",
"main",
"{\n BufferedReader br= new BufferedReader (new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n HashSet<String> hs=new HashSet<String>();\n for(int i=0;i<n;i++)\n {\n String s=br.readLine();\n hs.add(s);\n } \n System.out.println(hs.size());\n \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",
"HashSet<String> hs=new HashSet<String>();",
"hs",
"new HashSet<String>()",
"for(int i=0;i<n;i++)\n {\n String s=br.readLine();\n hs.add(s);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s=br.readLine();\n hs.add(s);\n }",
"{\n String s=br.readLine();\n hs.add(s);\n }",
"String s=br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"hs.add(s)",
"hs.add",
"hs",
"s",
"System.out.println(hs.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"hs.size()",
"hs.size",
"hs",
"String args[]",
"args"
] |
import java.io.*;
import java.util.*;
import java.util.Collection;
class Main
{
public static void main(String args[]) throws java.lang.Exception
{
BufferedReader br= new BufferedReader (new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine());
HashSet<String> hs=new HashSet<String>();
for(int i=0;i<n;i++)
{
String s=br.readLine();
hs.add(s);
}
System.out.println(hs.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.util.*;\n \npublic class Main { //クラス名はMain\n public static void main(String[] args) {\n //整数の入力\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n \n //重複はSetでいい\n Set<String> numSet = new HashSet<>();\n for (int i=0; i<n; i++) {\n String di = sc.next();\n numSet.add(di);\n }\n \n System.out.println(numSet.size());\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main { //クラス名はMain\n public static void main(String[] args) {\n //整数の入力\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n \n //重複はSetでいい\n Set<String> numSet = new HashSet<>();\n for (int i=0; i<n; i++) {\n String di = sc.next();\n numSet.add(di);\n }\n \n System.out.println(numSet.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n //整数の入力\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n \n //重複はSetでいい\n Set<String> numSet = new HashSet<>();\n for (int i=0; i<n; i++) {\n String di = sc.next();\n numSet.add(di);\n }\n \n System.out.println(numSet.size());\n }",
"main",
"{\n //整数の入力\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n \n //重複はSetでいい\n Set<String> numSet = new HashSet<>();\n for (int i=0; i<n; i++) {\n String di = sc.next();\n numSet.add(di);\n }\n \n System.out.println(numSet.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"Set<String> numSet = new HashSet<>();",
"numSet",
"new HashSet<>()",
"for (int i=0; i<n; i++) {\n String di = sc.next();\n numSet.add(di);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String di = sc.next();\n numSet.add(di);\n }",
"{\n String di = sc.next();\n numSet.add(di);\n }",
"String di = sc.next();",
"di",
"sc.next()",
"sc.next",
"sc",
"numSet.add(di)",
"numSet.add",
"numSet",
"di",
"System.out.println(numSet.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"numSet.size()",
"numSet.size",
"numSet",
"String[] args",
"args",
"public class Main { //クラス名はMain\n public static void main(String[] args) {\n //整数の入力\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n \n //重複はSetでいい\n Set<String> numSet = new HashSet<>();\n for (int i=0; i<n; i++) {\n String di = sc.next();\n numSet.add(di);\n }\n \n System.out.println(numSet.size());\n }\n}",
"public class Main { //クラス名はMain\n public static void main(String[] args) {\n //整数の入力\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n \n //重複はSetでいい\n Set<String> numSet = new HashSet<>();\n for (int i=0; i<n; i++) {\n String di = sc.next();\n numSet.add(di);\n }\n \n System.out.println(numSet.size());\n }\n}",
"Main"
] |
import java.util.*;
public class Main { //クラス名はMain
public static void main(String[] args) {
//整数の入力
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
//重複はSetでいい
Set<String> numSet = new HashSet<>();
for (int i=0; i<n; i++) {
String di = sc.next();
numSet.add(di);
}
System.out.println(numSet.size());
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
158,
11
],
[
158,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
14,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
12,
67
],
[
67,
68
],
[
158,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
69,
73
],
[
73,
74
],
[
69,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
69,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
84,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
94,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
83,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
69,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
69,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
69,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
69,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
142,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
138,
155
],
[
155,
156
],
[
0,
157
],
[
157,
158
],
[
157,
159
]
] |
[
"import java.io.*;\nimport java.util.*;\nimport java.lang.*;\n\npublic class Main {\n static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }\n public static void main(String[] args) {\n FastReader ob = new FastReader();\n int n =ob.nextInt();\n HashMap<String,Integer> map=new HashMap<>();\n int count=0;\n for (int i = 0; i < n; i++) {\n String s1=ob.next();\n if(!map.containsKey(s1)){\n map.put(s1,0);\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }\n public static void main(String[] args) {\n FastReader ob = new FastReader();\n int n =ob.nextInt();\n HashMap<String,Integer> map=new HashMap<>();\n int count=0;\n for (int i = 0; i < n; i++) {\n String s1=ob.next();\n if(!map.containsKey(s1)){\n map.put(s1,0);\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n FastReader ob = new FastReader();\n int n =ob.nextInt();\n HashMap<String,Integer> map=new HashMap<>();\n int count=0;\n for (int i = 0; i < n; i++) {\n String s1=ob.next();\n if(!map.containsKey(s1)){\n map.put(s1,0);\n count++;\n }\n }\n System.out.println(count);\n }",
"main",
"{\n FastReader ob = new FastReader();\n int n =ob.nextInt();\n HashMap<String,Integer> map=new HashMap<>();\n int count=0;\n for (int i = 0; i < n; i++) {\n String s1=ob.next();\n if(!map.containsKey(s1)){\n map.put(s1,0);\n count++;\n }\n }\n System.out.println(count);\n }",
"FastReader ob = new FastReader();",
"ob",
"new FastReader()",
"int n =ob.nextInt();",
"n",
"ob.nextInt()",
"ob.nextInt",
"ob",
"HashMap<String,Integer> map=new HashMap<>();",
"map",
"new HashMap<>()",
"int count=0;",
"count",
"0",
"for (int i = 0; i < n; i++) {\n String s1=ob.next();\n if(!map.containsKey(s1)){\n map.put(s1,0);\n count++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s1=ob.next();\n if(!map.containsKey(s1)){\n map.put(s1,0);\n count++;\n }\n }",
"{\n String s1=ob.next();\n if(!map.containsKey(s1)){\n map.put(s1,0);\n count++;\n }\n }",
"String s1=ob.next();",
"s1",
"ob.next()",
"ob.next",
"ob",
"if(!map.containsKey(s1)){\n map.put(s1,0);\n count++;\n }",
"!map.containsKey(s1)",
"map.containsKey(s1)",
"map.containsKey",
"map",
"s1",
"{\n map.put(s1,0);\n count++;\n }",
"map.put(s1,0)",
"map.put",
"map",
"s1",
"0",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }",
"catch (IOException e)\n {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt()\n {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong()\n {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble()\n {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }",
"catch (IOException e)\n {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }\n public static void main(String[] args) {\n FastReader ob = new FastReader();\n int n =ob.nextInt();\n HashMap<String,Integer> map=new HashMap<>();\n int count=0;\n for (int i = 0; i < n; i++) {\n String s1=ob.next();\n if(!map.containsKey(s1)){\n map.put(s1,0);\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"public class Main {\n static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }\n public static void main(String[] args) {\n FastReader ob = new FastReader();\n int n =ob.nextInt();\n HashMap<String,Integer> map=new HashMap<>();\n int count=0;\n for (int i = 0; i < n; i++) {\n String s1=ob.next();\n if(!map.containsKey(s1)){\n map.put(s1,0);\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"Main"
] |
import java.io.*;
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 ob = new FastReader();
int n =ob.nextInt();
HashMap<String,Integer> map=new HashMap<>();
int count=0;
for (int i = 0; i < n; i++) {
String s1=ob.next();
if(!map.containsKey(s1)){
map.put(s1,0);
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
18,
13,
13,
30,
40,
13,
4,
18,
13,
18,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
12,
13,
30,
4,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
113,
8
],
[
113,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
18,
28
],
[
28,
29
],
[
29,
30
],
[
18,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
11,
50
],
[
50,
51
],
[
9,
52
],
[
52,
53
],
[
9,
54
],
[
54,
55
],
[
113,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
58,
67
],
[
67,
68
],
[
67,
69
],
[
58,
71
],
[
71,
72
],
[
72,
73
],
[
58,
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
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
58,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
101,
104
],
[
113,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
105,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
] |
[
"import java.util.*;\nimport java.lang.*;\n\npublic class Main{\n\n public static long solve(long n , String[] arr){//healt , str\n HashSet<String> set = new HashSet<>();\n long sum = 0;\n for(int i = 0 ; i < arr.length ; i++){\n if(!set.contains(arr[i])){\n sum++;\n set.add(arr[i]);\n }\n }\n\n return sum;\n }\n\n public static void gora(){\n Scanner scn = new Scanner(System.in);\n\n // long test = scn.nextLong();\n\n long n = scn.nextLong();\n\n String[] arr = new String[(int)n];\n // long b = scn.nextLong();\n\n\n // long c = scn.nextLong();\n\n // long d = scn.nextLong();\n // long arr[] = new long[n];\n scn.nextLine();\n for(int i = 0 ; i < arr.length ; i++){\n arr[i] = scn.nextLine();\n }\n\n System.out.println(solve(n , arr));\n }\n\n public static void main(String args[]){\n gora();\n }\n}\n\n",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main{\n\n public static long solve(long n , String[] arr){//healt , str\n HashSet<String> set = new HashSet<>();\n long sum = 0;\n for(int i = 0 ; i < arr.length ; i++){\n if(!set.contains(arr[i])){\n sum++;\n set.add(arr[i]);\n }\n }\n\n return sum;\n }\n\n public static void gora(){\n Scanner scn = new Scanner(System.in);\n\n // long test = scn.nextLong();\n\n long n = scn.nextLong();\n\n String[] arr = new String[(int)n];\n // long b = scn.nextLong();\n\n\n // long c = scn.nextLong();\n\n // long d = scn.nextLong();\n // long arr[] = new long[n];\n scn.nextLine();\n for(int i = 0 ; i < arr.length ; i++){\n arr[i] = scn.nextLine();\n }\n\n System.out.println(solve(n , arr));\n }\n\n public static void main(String args[]){\n gora();\n }\n}",
"Main",
"public static long solve(long n , String[] arr){//healt , str\n HashSet<String> set = new HashSet<>();\n long sum = 0;\n for(int i = 0 ; i < arr.length ; i++){\n if(!set.contains(arr[i])){\n sum++;\n set.add(arr[i]);\n }\n }\n\n return sum;\n }",
"solve",
"{//healt , str\n HashSet<String> set = new HashSet<>();\n long sum = 0;\n for(int i = 0 ; i < arr.length ; i++){\n if(!set.contains(arr[i])){\n sum++;\n set.add(arr[i]);\n }\n }\n\n return sum;\n }",
"HashSet<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"long sum = 0;",
"sum",
"0",
"for(int i = 0 ; i < arr.length ; i++){\n if(!set.contains(arr[i])){\n sum++;\n set.add(arr[i]);\n }\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"{\n if(!set.contains(arr[i])){\n sum++;\n set.add(arr[i]);\n }\n }",
"{\n if(!set.contains(arr[i])){\n sum++;\n set.add(arr[i]);\n }\n }",
"if(!set.contains(arr[i])){\n sum++;\n set.add(arr[i]);\n }",
"!set.contains(arr[i])",
"set.contains(arr[i])",
"set.contains",
"set",
"arr[i]",
"arr",
"i",
"{\n sum++;\n set.add(arr[i]);\n }",
"sum++",
"sum",
"set.add(arr[i])",
"set.add",
"set",
"arr[i]",
"arr",
"i",
"return sum;",
"sum",
"long n",
"n",
"String[] arr",
"arr",
"public static void gora(){\n Scanner scn = new Scanner(System.in);\n\n // long test = scn.nextLong();\n\n long n = scn.nextLong();\n\n String[] arr = new String[(int)n];\n // long b = scn.nextLong();\n\n\n // long c = scn.nextLong();\n\n // long d = scn.nextLong();\n // long arr[] = new long[n];\n scn.nextLine();\n for(int i = 0 ; i < arr.length ; i++){\n arr[i] = scn.nextLine();\n }\n\n System.out.println(solve(n , arr));\n }",
"gora",
"{\n Scanner scn = new Scanner(System.in);\n\n // long test = scn.nextLong();\n\n long n = scn.nextLong();\n\n String[] arr = new String[(int)n];\n // long b = scn.nextLong();\n\n\n // long c = scn.nextLong();\n\n // long d = scn.nextLong();\n // long arr[] = new long[n];\n scn.nextLine();\n for(int i = 0 ; i < arr.length ; i++){\n arr[i] = scn.nextLine();\n }\n\n System.out.println(solve(n , arr));\n }",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"long n = scn.nextLong();",
"n",
"scn.nextLong()",
"scn.nextLong",
"scn",
"String[] arr = new String[(int)n];",
"arr",
"new String[(int)n]",
"(int)n",
"scn.nextLine()",
"scn.nextLine",
"scn",
"for(int i = 0 ; i < arr.length ; i++){\n arr[i] = scn.nextLine();\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"{\n arr[i] = scn.nextLine();\n }",
"{\n arr[i] = scn.nextLine();\n }",
"arr[i] = scn.nextLine()",
"arr[i]",
"arr",
"i",
"scn.nextLine()",
"scn.nextLine",
"scn",
"System.out.println(solve(n , arr))",
"System.out.println",
"System.out",
"System",
"System.out",
"solve(n , arr)",
"solve",
"n",
"arr",
"public static void main(String args[]){\n gora();\n }",
"main",
"{\n gora();\n }",
"gora()",
"gora",
"String args[]",
"args",
"public class Main{\n\n public static long solve(long n , String[] arr){//healt , str\n HashSet<String> set = new HashSet<>();\n long sum = 0;\n for(int i = 0 ; i < arr.length ; i++){\n if(!set.contains(arr[i])){\n sum++;\n set.add(arr[i]);\n }\n }\n\n return sum;\n }\n\n public static void gora(){\n Scanner scn = new Scanner(System.in);\n\n // long test = scn.nextLong();\n\n long n = scn.nextLong();\n\n String[] arr = new String[(int)n];\n // long b = scn.nextLong();\n\n\n // long c = scn.nextLong();\n\n // long d = scn.nextLong();\n // long arr[] = new long[n];\n scn.nextLine();\n for(int i = 0 ; i < arr.length ; i++){\n arr[i] = scn.nextLine();\n }\n\n System.out.println(solve(n , arr));\n }\n\n public static void main(String args[]){\n gora();\n }\n}",
"public class Main{\n\n public static long solve(long n , String[] arr){//healt , str\n HashSet<String> set = new HashSet<>();\n long sum = 0;\n for(int i = 0 ; i < arr.length ; i++){\n if(!set.contains(arr[i])){\n sum++;\n set.add(arr[i]);\n }\n }\n\n return sum;\n }\n\n public static void gora(){\n Scanner scn = new Scanner(System.in);\n\n // long test = scn.nextLong();\n\n long n = scn.nextLong();\n\n String[] arr = new String[(int)n];\n // long b = scn.nextLong();\n\n\n // long c = scn.nextLong();\n\n // long d = scn.nextLong();\n // long arr[] = new long[n];\n scn.nextLine();\n for(int i = 0 ; i < arr.length ; i++){\n arr[i] = scn.nextLine();\n }\n\n System.out.println(solve(n , arr));\n }\n\n public static void main(String args[]){\n gora();\n }\n}",
"Main"
] |
import java.util.*;
import java.lang.*;
public class Main{
public static long solve(long n , String[] arr){//healt , str
HashSet<String> set = new HashSet<>();
long sum = 0;
for(int i = 0 ; i < arr.length ; i++){
if(!set.contains(arr[i])){
sum++;
set.add(arr[i]);
}
}
return sum;
}
public static void gora(){
Scanner scn = new Scanner(System.in);
// long test = scn.nextLong();
long n = scn.nextLong();
String[] arr = new String[(int)n];
// long b = scn.nextLong();
// long c = scn.nextLong();
// long d = scn.nextLong();
// long arr[] = new long[n];
scn.nextLine();
for(int i = 0 ; i < arr.length ; i++){
arr[i] = scn.nextLine();
}
System.out.println(solve(n , arr));
}
public static void main(String args[]){
gora();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
18,
13,
13,
17,
30,
4,
18,
13,
18,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
93,
8
],
[
93,
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,
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
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
11,
47
],
[
47,
48
],
[
47,
49
],
[
11,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
50,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
70,
72
],
[
66,
73
],
[
65,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
75,
81
],
[
11,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
88,
89
],
[
9,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] |
[
"import java.util.HashMap;\nimport 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 stdIn = new Scanner(System.in);\n\t\tint N = Integer.parseInt(stdIn.nextLine());\n\t\tString[] S = new String[N];\n\t\tfor(int i = 0; i < N; i ++) {\n\t\t\tS[i] = stdIn.nextLine();\n\t\t}\n\t\tHashMap<String, Integer> itemNum = new HashMap<String, Integer>();\n\t\tfor(int i = 0; i < S.length; i ++) {\n\t\t\tif(itemNum.get(S[i]) == null) {\n\t\t\t\titemNum.put(S[i], 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(itemNum.size());\n\t}\n}",
"import java.util.HashMap;",
"HashMap",
"java.util",
"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 stdIn = new Scanner(System.in);\n\t\tint N = Integer.parseInt(stdIn.nextLine());\n\t\tString[] S = new String[N];\n\t\tfor(int i = 0; i < N; i ++) {\n\t\t\tS[i] = stdIn.nextLine();\n\t\t}\n\t\tHashMap<String, Integer> itemNum = new HashMap<String, Integer>();\n\t\tfor(int i = 0; i < S.length; i ++) {\n\t\t\tif(itemNum.get(S[i]) == null) {\n\t\t\t\titemNum.put(S[i], 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(itemNum.size());\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = Integer.parseInt(stdIn.nextLine());\n\t\tString[] S = new String[N];\n\t\tfor(int i = 0; i < N; i ++) {\n\t\t\tS[i] = stdIn.nextLine();\n\t\t}\n\t\tHashMap<String, Integer> itemNum = new HashMap<String, Integer>();\n\t\tfor(int i = 0; i < S.length; i ++) {\n\t\t\tif(itemNum.get(S[i]) == null) {\n\t\t\t\titemNum.put(S[i], 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(itemNum.size());\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = Integer.parseInt(stdIn.nextLine());\n\t\tString[] S = new String[N];\n\t\tfor(int i = 0; i < N; i ++) {\n\t\t\tS[i] = stdIn.nextLine();\n\t\t}\n\t\tHashMap<String, Integer> itemNum = new HashMap<String, Integer>();\n\t\tfor(int i = 0; i < S.length; i ++) {\n\t\t\tif(itemNum.get(S[i]) == null) {\n\t\t\t\titemNum.put(S[i], 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(itemNum.size());\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int N = Integer.parseInt(stdIn.nextLine());",
"N",
"Integer.parseInt(stdIn.nextLine())",
"Integer.parseInt",
"Integer",
"stdIn.nextLine()",
"stdIn.nextLine",
"stdIn",
"String[] S = new String[N];",
"S",
"new String[N]",
"N",
"for(int i = 0; i < N; i ++) {\n\t\t\tS[i] = stdIn.nextLine();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i ++",
"i ++",
"i",
"{\n\t\t\tS[i] = stdIn.nextLine();\n\t\t}",
"{\n\t\t\tS[i] = stdIn.nextLine();\n\t\t}",
"S[i] = stdIn.nextLine()",
"S[i]",
"S",
"i",
"stdIn.nextLine()",
"stdIn.nextLine",
"stdIn",
"HashMap<String, Integer> itemNum = new HashMap<String, Integer>();",
"itemNum",
"new HashMap<String, Integer>()",
"for(int i = 0; i < S.length; i ++) {\n\t\t\tif(itemNum.get(S[i]) == null) {\n\t\t\t\titemNum.put(S[i], 1);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < S.length",
"i",
"S.length",
"S",
"S.length",
"i ++",
"i ++",
"i",
"{\n\t\t\tif(itemNum.get(S[i]) == null) {\n\t\t\t\titemNum.put(S[i], 1);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(itemNum.get(S[i]) == null) {\n\t\t\t\titemNum.put(S[i], 1);\n\t\t\t}\n\t\t}",
"if(itemNum.get(S[i]) == null) {\n\t\t\t\titemNum.put(S[i], 1);\n\t\t\t}",
"itemNum.get(S[i]) == null",
"itemNum.get(S[i])",
"itemNum.get",
"itemNum",
"S[i]",
"S",
"i",
"null",
"{\n\t\t\t\titemNum.put(S[i], 1);\n\t\t\t}",
"itemNum.put(S[i], 1)",
"itemNum.put",
"itemNum",
"S[i]",
"S",
"i",
"1",
"System.out.println(itemNum.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"itemNum.size()",
"itemNum.size",
"itemNum",
"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 stdIn = new Scanner(System.in);\n\t\tint N = Integer.parseInt(stdIn.nextLine());\n\t\tString[] S = new String[N];\n\t\tfor(int i = 0; i < N; i ++) {\n\t\t\tS[i] = stdIn.nextLine();\n\t\t}\n\t\tHashMap<String, Integer> itemNum = new HashMap<String, Integer>();\n\t\tfor(int i = 0; i < S.length; i ++) {\n\t\t\tif(itemNum.get(S[i]) == null) {\n\t\t\t\titemNum.put(S[i], 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(itemNum.size());\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = Integer.parseInt(stdIn.nextLine());\n\t\tString[] S = new String[N];\n\t\tfor(int i = 0; i < N; i ++) {\n\t\t\tS[i] = stdIn.nextLine();\n\t\t}\n\t\tHashMap<String, Integer> itemNum = new HashMap<String, Integer>();\n\t\tfor(int i = 0; i < S.length; i ++) {\n\t\t\tif(itemNum.get(S[i]) == null) {\n\t\t\t\titemNum.put(S[i], 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(itemNum.size());\n\t}\n}",
"Main"
] |
import java.util.HashMap;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner stdIn = new Scanner(System.in);
int N = Integer.parseInt(stdIn.nextLine());
String[] S = new String[N];
for(int i = 0; i < N; i ++) {
S[i] = stdIn.nextLine();
}
HashMap<String, Integer> itemNum = new HashMap<String, Integer>();
for(int i = 0; i < S.length; i ++) {
if(itemNum.get(S[i]) == null) {
itemNum.put(S[i], 1);
}
}
System.out.println(itemNum.size());
}
}
|
[
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,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
59,
11
],
[
59,
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
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
14,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
14,
53
],
[
53,
54
],
[
54,
55
],
[
12,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\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\tSet<String> s = new HashSet<>();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts.add(sc.next());\n\t\t}\n\n\t\tSystem.out.println(s.size());\n\n\t\tsc.close();\n\t}\n\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"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\tSet<String> s = new HashSet<>();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts.add(sc.next());\n\t\t}\n\n\t\tSystem.out.println(s.size());\n\n\t\tsc.close();\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\tSet<String> s = new HashSet<>();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts.add(sc.next());\n\t\t}\n\n\t\tSystem.out.println(s.size());\n\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tSet<String> s = new HashSet<>();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts.add(sc.next());\n\t\t}\n\n\t\tSystem.out.println(s.size());\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Set<String> s = new HashSet<>();",
"s",
"new HashSet<>()",
"for (int i = 0; i < n; i++) {\n\t\t\ts.add(sc.next());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ts.add(sc.next());\n\t\t}",
"{\n\t\t\ts.add(sc.next());\n\t\t}",
"s.add(sc.next())",
"s.add",
"s",
"sc.next()",
"sc.next",
"sc",
"System.out.println(s.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"s.size()",
"s.size",
"s",
"sc.close()",
"sc.close",
"sc",
"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\tSet<String> s = new HashSet<>();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts.add(sc.next());\n\t\t}\n\n\t\tSystem.out.println(s.size());\n\n\t\tsc.close();\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\tSet<String> s = new HashSet<>();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts.add(sc.next());\n\t\t}\n\n\t\tSystem.out.println(s.size());\n\n\t\tsc.close();\n\t}\n\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
Set<String> s = new HashSet<>();
for (int i = 0; i < n; i++) {
s.add(sc.next());
}
System.out.println(s.size());
sc.close();
}
}
|
[
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,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
18,
13,
13,
41,
13,
4,
18,
13,
29,
18,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
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
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
6,
52
],
[
52,
53
],
[
4,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
60,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
56,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
56,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
54,
90
],
[
90,
91
]
] |
[
"import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n String[] s = new String[n];\n int ans = 0;\n \n for(int i=0; i<n; i++){\n\t\ts[i] = sc.next();\n }\n \n System.out.println(elmDup(s));\n }\n \n static int elmDup(String[] s) {\n Set<String> linkedHashSet = new LinkedHashSet<String>();\n\n for (int i = 0; i < s.length; i++) {\n linkedHashSet.add(s[i]);\n }\n\n Object[] s_after = linkedHashSet.toArray();\n \n return s_after.length;\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n String[] s = new String[n];\n int ans = 0;\n \n for(int i=0; i<n; i++){\n\t\ts[i] = sc.next();\n }\n \n System.out.println(elmDup(s));\n }\n \n static int elmDup(String[] s) {\n Set<String> linkedHashSet = new LinkedHashSet<String>();\n\n for (int i = 0; i < s.length; i++) {\n linkedHashSet.add(s[i]);\n }\n\n Object[] s_after = linkedHashSet.toArray();\n \n return s_after.length;\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n String[] s = new String[n];\n int ans = 0;\n \n for(int i=0; i<n; i++){\n\t\ts[i] = sc.next();\n }\n \n System.out.println(elmDup(s));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n String[] s = new String[n];\n int ans = 0;\n \n for(int i=0; i<n; i++){\n\t\ts[i] = sc.next();\n }\n \n System.out.println(elmDup(s));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] s = new String[n];",
"s",
"new String[n]",
"n",
"int ans = 0;",
"ans",
"0",
"for(int i=0; i<n; i++){\n\t\ts[i] = sc.next();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\ts[i] = sc.next();\n }",
"{\n\t\ts[i] = sc.next();\n }",
"s[i] = sc.next()",
"s[i]",
"s",
"i",
"sc.next()",
"sc.next",
"sc",
"System.out.println(elmDup(s))",
"System.out.println",
"System.out",
"System",
"System.out",
"elmDup(s)",
"elmDup",
"s",
"String[] args",
"args",
"static int elmDup(String[] s) {\n Set<String> linkedHashSet = new LinkedHashSet<String>();\n\n for (int i = 0; i < s.length; i++) {\n linkedHashSet.add(s[i]);\n }\n\n Object[] s_after = linkedHashSet.toArray();\n \n return s_after.length;\n }",
"elmDup",
"{\n Set<String> linkedHashSet = new LinkedHashSet<String>();\n\n for (int i = 0; i < s.length; i++) {\n linkedHashSet.add(s[i]);\n }\n\n Object[] s_after = linkedHashSet.toArray();\n \n return s_after.length;\n }",
"Set<String> linkedHashSet = new LinkedHashSet<String>();",
"linkedHashSet",
"new LinkedHashSet<String>()",
"for (int i = 0; i < s.length; i++) {\n linkedHashSet.add(s[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n linkedHashSet.add(s[i]);\n }",
"{\n linkedHashSet.add(s[i]);\n }",
"linkedHashSet.add(s[i])",
"linkedHashSet.add",
"linkedHashSet",
"s[i]",
"s",
"i",
"Object[] s_after = linkedHashSet.toArray();",
"s_after",
"linkedHashSet.toArray()",
"linkedHashSet.toArray",
"linkedHashSet",
"return s_after.length;",
"s_after.length",
"s_after",
"s_after.length",
"String[] s",
"s"
] |
import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] s = new String[n];
int ans = 0;
for(int i=0; i<n; i++){
s[i] = sc.next();
}
System.out.println(elmDup(s));
}
static int elmDup(String[] s) {
Set<String> linkedHashSet = new LinkedHashSet<String>();
for (int i = 0; i < s.length; i++) {
linkedHashSet.add(s[i]);
}
Object[] s_after = linkedHashSet.toArray();
return s_after.length;
}
}
|
[
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,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
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
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
105,
23
],
[
105,
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
],
[
105,
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
],
[
83,
86
],
[
86,
87
],
[
87,
88
],
[
61,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
96,
97
],
[
59,
98
],
[
98,
99
],
[
59,
100
],
[
100,
101
],
[
59,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\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 gacha solver = new gacha();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class gacha {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n Set<String> set = new HashSet<>();\n for (int i = 0; i < n; i++) {\n set.add(in.next());\n }\n out.append(String.valueOf(set.size()));\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.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"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 gacha solver = new gacha();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class gacha {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n Set<String> set = new HashSet<>();\n for (int i = 0; i < n; i++) {\n set.add(in.next());\n }\n out.append(String.valueOf(set.size()));\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 gacha solver = new gacha();\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 gacha solver = new gacha();\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)",
"gacha solver = new gacha();",
"solver",
"new gacha()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class gacha {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n Set<String> set = new HashSet<>();\n for (int i = 0; i < n; i++) {\n set.add(in.next());\n }\n out.append(String.valueOf(set.size()));\n }\n\n }",
"gacha",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n Set<String> set = new HashSet<>();\n for (int i = 0; i < n; i++) {\n set.add(in.next());\n }\n out.append(String.valueOf(set.size()));\n }",
"solve",
"{\n int n = in.nextInt();\n Set<String> set = new HashSet<>();\n for (int i = 0; i < n; i++) {\n set.add(in.next());\n }\n out.append(String.valueOf(set.size()));\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"Set<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"for (int i = 0; i < n; i++) {\n set.add(in.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n set.add(in.next());\n }",
"{\n set.add(in.next());\n }",
"set.add(in.next())",
"set.add",
"set",
"in.next()",
"in.next",
"in",
"out.append(String.valueOf(set.size()))",
"out.append",
"out",
"String.valueOf(set.size())",
"String.valueOf",
"String",
"set.size()",
"set.size",
"set",
"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 gacha solver = new gacha();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class gacha {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n Set<String> set = new HashSet<>();\n for (int i = 0; i < n; i++) {\n set.add(in.next());\n }\n out.append(String.valueOf(set.size()));\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 gacha solver = new gacha();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class gacha {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n Set<String> set = new HashSet<>();\n for (int i = 0; i < n; i++) {\n set.add(in.next());\n }\n out.append(String.valueOf(set.size()));\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
/**
* 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);
gacha solver = new gacha();
solver.solve(1, in, out);
out.close();
}
static class gacha {
public void solve(int testNumber, Scanner in, PrintWriter out) {
int n = in.nextInt();
Set<String> set = new HashSet<>();
for (int i = 0; i < n; i++) {
set.add(in.next());
}
out.append(String.valueOf(set.size()));
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
58,
8
],
[
58,
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
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
9,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n int N = scanner.nextInt();\n String s;\n\n HashSet<String> list = new HashSet<String>(N);\n\n for(int i = 0; i < N; i++){\n s = scanner.next();\n list.add(s);\n }\n\n System.out.println(list.size());\n }\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n int N = scanner.nextInt();\n String s;\n\n HashSet<String> list = new HashSet<String>(N);\n\n for(int i = 0; i < N; i++){\n s = scanner.next();\n list.add(s);\n }\n\n System.out.println(list.size());\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n int N = scanner.nextInt();\n String s;\n\n HashSet<String> list = new HashSet<String>(N);\n\n for(int i = 0; i < N; i++){\n s = scanner.next();\n list.add(s);\n }\n\n System.out.println(list.size());\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n \n int N = scanner.nextInt();\n String s;\n\n HashSet<String> list = new HashSet<String>(N);\n\n for(int i = 0; i < N; i++){\n s = scanner.next();\n list.add(s);\n }\n\n System.out.println(list.size());\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String s;",
"s",
"HashSet<String> list = new HashSet<String>(N);",
"list",
"new HashSet<String>(N)",
"for(int i = 0; i < N; i++){\n s = scanner.next();\n list.add(s);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n s = scanner.next();\n list.add(s);\n }",
"{\n s = scanner.next();\n list.add(s);\n }",
"s = scanner.next()",
"s",
"scanner.next()",
"scanner.next",
"scanner",
"list.add(s)",
"list.add",
"list",
"s",
"System.out.println(list.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"list.size()",
"list.size",
"list",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n int N = scanner.nextInt();\n String s;\n\n HashSet<String> list = new HashSet<String>(N);\n\n for(int i = 0; i < N; i++){\n s = scanner.next();\n list.add(s);\n }\n\n System.out.println(list.size());\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n int N = scanner.nextInt();\n String s;\n\n HashSet<String> list = new HashSet<String>(N);\n\n for(int i = 0; i < N; i++){\n s = scanner.next();\n list.add(s);\n }\n\n System.out.println(list.size());\n }\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
String s;
HashSet<String> list = new HashSet<String>(N);
for(int i = 0; i < N; i++){
s = scanner.next();
list.add(s);
}
System.out.println(list.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
20,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
62,
14
],
[
62,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
17,
48
],
[
48,
49
],
[
48,
50
],
[
17,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
15,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"import java.util.ArrayList;\nimport java.util.LinkedHashSet;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<String> box = new ArrayList<>();\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n box.add(sc.next());\n }\n List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));\n System.out.println(list.size());\n }\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.LinkedHashSet;",
"LinkedHashSet",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<String> box = new ArrayList<>();\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n box.add(sc.next());\n }\n List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));\n System.out.println(list.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<String> box = new ArrayList<>();\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n box.add(sc.next());\n }\n List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));\n System.out.println(list.size());\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n List<String> box = new ArrayList<>();\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n box.add(sc.next());\n }\n List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));\n System.out.println(list.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"List<String> box = new ArrayList<>();",
"box",
"new ArrayList<>()",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < N; i++) {\n box.add(sc.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n box.add(sc.next());\n }",
"{\n box.add(sc.next());\n }",
"box.add(sc.next())",
"box.add",
"box",
"sc.next()",
"sc.next",
"sc",
"List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));",
"list",
"new ArrayList<String>(new LinkedHashSet<>(box))",
"System.out.println(list.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"list.size()",
"list.size",
"list",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<String> box = new ArrayList<>();\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n box.add(sc.next());\n }\n List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));\n System.out.println(list.size());\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<String> box = new ArrayList<>();\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n box.add(sc.next());\n }\n List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));\n System.out.println(list.size());\n }\n}",
"Main"
] |
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
List<String> box = new ArrayList<>();
int N = sc.nextInt();
for (int i = 0; i < N; i++) {
box.add(sc.next());
}
List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));
System.out.println(list.size());
}
}
|
[
7,
15,
13,
17,
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,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
65,
8
],
[
65,
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,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
11,
43
],
[
43,
44
],
[
43,
45
],
[
11,
46
],
[
46,
47
],
[
46,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
11,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
9,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] |
[
"import java.util.*;\nimport java.math.*;\npublic class Main\n{\npublic static void main(String args[])\n{\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nString[] a=new String[n];\nfor(int i=0;i<n;i++)\na[i]=sc.next();\nSet<String> s=new HashSet<>();\nfor(String x:a)\ns.add(x);\nSystem.out.println(s.size());\n}}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main\n{\npublic static void main(String args[])\n{\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nString[] a=new String[n];\nfor(int i=0;i<n;i++)\na[i]=sc.next();\nSet<String> s=new HashSet<>();\nfor(String x:a)\ns.add(x);\nSystem.out.println(s.size());\n}}",
"Main",
"public static void main(String args[])\n{\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nString[] a=new String[n];\nfor(int i=0;i<n;i++)\na[i]=sc.next();\nSet<String> s=new HashSet<>();\nfor(String x:a)\ns.add(x);\nSystem.out.println(s.size());\n}",
"main",
"{\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nString[] a=new String[n];\nfor(int i=0;i<n;i++)\na[i]=sc.next();\nSet<String> s=new HashSet<>();\nfor(String x:a)\ns.add(x);\nSystem.out.println(s.size());\n}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] a=new String[n];",
"a",
"new String[n]",
"n",
"for(int i=0;i<n;i++)\na[i]=sc.next();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=sc.next();",
"a[i]=sc.next()",
"a[i]",
"a",
"i",
"sc.next()",
"sc.next",
"sc",
"Set<String> s=new HashSet<>();",
"s",
"new HashSet<>()",
"for(String x:a)\ns.add(x);",
"String x",
"a",
"s.add(x);",
"s.add(x)",
"s.add",
"s",
"x",
"System.out.println(s.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"s.size()",
"s.size",
"s",
"String args[]",
"args",
"public class Main\n{\npublic static void main(String args[])\n{\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nString[] a=new String[n];\nfor(int i=0;i<n;i++)\na[i]=sc.next();\nSet<String> s=new HashSet<>();\nfor(String x:a)\ns.add(x);\nSystem.out.println(s.size());\n}}",
"public class Main\n{\npublic static void main(String args[])\n{\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nString[] a=new String[n];\nfor(int i=0;i<n;i++)\na[i]=sc.next();\nSet<String> s=new HashSet<>();\nfor(String x:a)\ns.add(x);\nSystem.out.println(s.size());\n}}",
"Main"
] |
import java.util.*;
import java.math.*;
public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String[] a=new String[n];
for(int i=0;i<n;i++)
a[i]=sc.next();
Set<String> s=new HashSet<>();
for(String x:a)
s.add(x);
System.out.println(s.size());
}}
|
[
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,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
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
],
[
140,
8
],
[
140,
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
],
[
140,
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
],
[
46,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
72,
73
],
[
46,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
44,
80
],
[
80,
81
],
[
44,
82
],
[
82,
83
],
[
44,
84
],
[
84,
85
],
[
140,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
86,
90
],
[
90,
91
],
[
86,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
92,
101
],
[
101,
102
],
[
86,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
106,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
116,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
105,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
86,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
137,
138
],
[
0,
139
],
[
139,
140
],
[
139,
141
]
] |
[
"//package beginner164.c;\n\nimport java.io.*;\nimport java.util.*;\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 TaskC solver = new TaskC();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskC {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n Set<String> s = new HashSet<>();\n for (int i = 0; i < n; ++i) {\n s.add(in.next());\n }\n\n out.println(s.size());\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}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"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 TaskC solver = new TaskC();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskC {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n Set<String> s = new HashSet<>();\n for (int i = 0; i < n; ++i) {\n s.add(in.next());\n }\n\n out.println(s.size());\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 TaskC solver = new TaskC();\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 TaskC solver = new TaskC();\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)",
"TaskC solver = new TaskC();",
"solver",
"new TaskC()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskC {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n Set<String> s = new HashSet<>();\n for (int i = 0; i < n; ++i) {\n s.add(in.next());\n }\n\n out.println(s.size());\n }\n }",
"TaskC",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n Set<String> s = new HashSet<>();\n for (int i = 0; i < n; ++i) {\n s.add(in.next());\n }\n\n out.println(s.size());\n }",
"solve",
"{\n int n = in.nextInt();\n Set<String> s = new HashSet<>();\n for (int i = 0; i < n; ++i) {\n s.add(in.next());\n }\n\n out.println(s.size());\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"Set<String> s = new HashSet<>();",
"s",
"new HashSet<>()",
"for (int i = 0; i < n; ++i) {\n s.add(in.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n s.add(in.next());\n }",
"{\n s.add(in.next());\n }",
"s.add(in.next())",
"s.add",
"s",
"in.next()",
"in.next",
"in",
"out.println(s.size())",
"out.println",
"out",
"s.size()",
"s.size",
"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 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 TaskC solver = new TaskC();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskC {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n Set<String> s = new HashSet<>();\n for (int i = 0; i < n; ++i) {\n s.add(in.next());\n }\n\n out.println(s.size());\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 TaskC solver = new TaskC();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskC {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n Set<String> s = new HashSet<>();\n for (int i = 0; i < n; ++i) {\n s.add(in.next());\n }\n\n out.println(s.size());\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"
] |
//package beginner164.c;
import java.io.*;
import java.util.*;
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);
TaskC solver = new TaskC();
solver.solve(1, in, out);
out.close();
}
static class TaskC {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int n = in.nextInt();
Set<String> s = new HashSet<>();
for (int i = 0; i < n; ++i) {
s.add(in.next());
}
out.println(s.size());
}
}
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,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
56,
8
],
[
56,
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
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
9,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.nextLine());\n HashSet<String> gacha = new HashSet<>();\n for (int i = 0; i < n; i++){\n gacha.add(scanner.nextLine());\n }\n System.out.println(gacha.size());\n }\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"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 int n = Integer.parseInt(scanner.nextLine());\n HashSet<String> gacha = new HashSet<>();\n for (int i = 0; i < n; i++){\n gacha.add(scanner.nextLine());\n }\n System.out.println(gacha.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.nextLine());\n HashSet<String> gacha = new HashSet<>();\n for (int i = 0; i < n; i++){\n gacha.add(scanner.nextLine());\n }\n System.out.println(gacha.size());\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.nextLine());\n HashSet<String> gacha = new HashSet<>();\n for (int i = 0; i < n; i++){\n gacha.add(scanner.nextLine());\n }\n System.out.println(gacha.size());\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = Integer.parseInt(scanner.nextLine());",
"n",
"Integer.parseInt(scanner.nextLine())",
"Integer.parseInt",
"Integer",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"HashSet<String> gacha = new HashSet<>();",
"gacha",
"new HashSet<>()",
"for (int i = 0; i < n; i++){\n gacha.add(scanner.nextLine());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n gacha.add(scanner.nextLine());\n }",
"{\n gacha.add(scanner.nextLine());\n }",
"gacha.add(scanner.nextLine())",
"gacha.add",
"gacha",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"System.out.println(gacha.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"gacha.size()",
"gacha.size",
"gacha",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.nextLine());\n HashSet<String> gacha = new HashSet<>();\n for (int i = 0; i < n; i++){\n gacha.add(scanner.nextLine());\n }\n System.out.println(gacha.size());\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.nextLine());\n HashSet<String> gacha = new HashSet<>();\n for (int i = 0; i < n; i++){\n gacha.add(scanner.nextLine());\n }\n System.out.println(gacha.size());\n }\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.nextLine());
HashSet<String> gacha = new HashSet<>();
for (int i = 0; i < n; i++){
gacha.add(scanner.nextLine());
}
System.out.println(gacha.size());
}
}
|
[
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,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
70,
8
],
[
70,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
53,
59
],
[
59,
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.io.*;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(in.readLine());\n\t\t\n\t\tint count = 0;\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString str = in.readLine();\n\t\t\t\n\t\t\tif (!map.containsKey(str)) {\n\t\t\t\tmap.put(str, 1);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(in.readLine());\n\t\t\n\t\tint count = 0;\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString str = in.readLine();\n\t\t\t\n\t\t\tif (!map.containsKey(str)) {\n\t\t\t\tmap.put(str, 1);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(in.readLine());\n\t\t\n\t\tint count = 0;\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString str = in.readLine();\n\t\t\t\n\t\t\tif (!map.containsKey(str)) {\n\t\t\t\tmap.put(str, 1);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(in.readLine());\n\t\t\n\t\tint count = 0;\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString str = in.readLine();\n\t\t\t\n\t\t\tif (!map.containsKey(str)) {\n\t\t\t\tmap.put(str, 1);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int N = Integer.parseInt(in.readLine());",
"N",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"int count = 0;",
"count",
"0",
"HashMap<String, Integer> map = new HashMap<String, Integer>();",
"map",
"new HashMap<String, Integer>()",
"for (int i = 0; i < N; i++) {\n\t\t\tString str = in.readLine();\n\t\t\t\n\t\t\tif (!map.containsKey(str)) {\n\t\t\t\tmap.put(str, 1);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tString str = in.readLine();\n\t\t\t\n\t\t\tif (!map.containsKey(str)) {\n\t\t\t\tmap.put(str, 1);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString str = in.readLine();\n\t\t\t\n\t\t\tif (!map.containsKey(str)) {\n\t\t\t\tmap.put(str, 1);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"String str = in.readLine();",
"str",
"in.readLine()",
"in.readLine",
"in",
"if (!map.containsKey(str)) {\n\t\t\t\tmap.put(str, 1);\n\t\t\t\tcount++;\n\t\t\t}",
"!map.containsKey(str)",
"map.containsKey(str)",
"map.containsKey",
"map",
"str",
"{\n\t\t\t\tmap.put(str, 1);\n\t\t\t\tcount++;\n\t\t\t}",
"map.put(str, 1)",
"map.put",
"map",
"str",
"1",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(in.readLine());\n\t\t\n\t\tint count = 0;\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString str = in.readLine();\n\t\t\t\n\t\t\tif (!map.containsKey(str)) {\n\t\t\t\tmap.put(str, 1);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(in.readLine());\n\t\t\n\t\tint count = 0;\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString str = in.readLine();\n\t\t\t\n\t\t\tif (!map.containsKey(str)) {\n\t\t\t\tmap.put(str, 1);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(in.readLine());
int count = 0;
HashMap<String, Integer> map = new HashMap<String, Integer>();
for (int i = 0; i < N; i++) {
String str = in.readLine();
if (!map.containsKey(str)) {
map.put(str, 1);
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
18,
13,
13,
30,
40,
13,
4,
18,
13,
18,
13,
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
],
[
100,
8
],
[
100,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
11,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
11,
54
],
[
54,
55
],
[
54,
56
],
[
11,
57
],
[
57,
58
],
[
57,
59
],
[
11,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
87,
89
],
[
84,
90
],
[
11,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
9,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] |
[
"import java.io.*;\nimport java.util.*;\npublic class Main\n{\n public static void main(String args[])throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n String arr[] = new String[n];\n for(int i=0;i<n;i++)\n {\n \t\t\n \t\tarr[i]=br.readLine();\n }\n Arrays.sort(arr);\n int c=0;\n HashMap <String, Integer> map= new HashMap<>();\n for(int i=0;i<n;i++)\n {\n \t\tif(!map.containsKey(arr[i])){\n \t\t\tc++;\n \t\t\tmap.put(arr[i],1); \n \t\t}\n }\n System.out.println(c);\n}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n public static void main(String args[])throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n String arr[] = new String[n];\n for(int i=0;i<n;i++)\n {\n \t\t\n \t\tarr[i]=br.readLine();\n }\n Arrays.sort(arr);\n int c=0;\n HashMap <String, Integer> map= new HashMap<>();\n for(int i=0;i<n;i++)\n {\n \t\tif(!map.containsKey(arr[i])){\n \t\t\tc++;\n \t\t\tmap.put(arr[i],1); \n \t\t}\n }\n System.out.println(c);\n}\n}",
"Main",
"public static void main(String args[])throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n String arr[] = new String[n];\n for(int i=0;i<n;i++)\n {\n \t\t\n \t\tarr[i]=br.readLine();\n }\n Arrays.sort(arr);\n int c=0;\n HashMap <String, Integer> map= new HashMap<>();\n for(int i=0;i<n;i++)\n {\n \t\tif(!map.containsKey(arr[i])){\n \t\t\tc++;\n \t\t\tmap.put(arr[i],1); \n \t\t}\n }\n System.out.println(c);\n}",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n String arr[] = new String[n];\n for(int i=0;i<n;i++)\n {\n \t\t\n \t\tarr[i]=br.readLine();\n }\n Arrays.sort(arr);\n int c=0;\n HashMap <String, Integer> map= new HashMap<>();\n for(int i=0;i<n;i++)\n {\n \t\tif(!map.containsKey(arr[i])){\n \t\t\tc++;\n \t\t\tmap.put(arr[i],1); \n \t\t}\n }\n System.out.println(c);\n}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(br.readLine());",
"st",
"new StringTokenizer(br.readLine())",
"int n = Integer.parseInt(st.nextToken());",
"n",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"String arr[] = new String[n];",
"arr",
"new String[n]",
"n",
"for(int i=0;i<n;i++)\n {\n \t\t\n \t\tarr[i]=br.readLine();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\t\n \t\tarr[i]=br.readLine();\n }",
"{\n \t\t\n \t\tarr[i]=br.readLine();\n }",
"arr[i]=br.readLine()",
"arr[i]",
"arr",
"i",
"br.readLine()",
"br.readLine",
"br",
"Arrays.sort(arr)",
"Arrays.sort",
"Arrays",
"arr",
"int c=0;",
"c",
"0",
"HashMap <String, Integer> map= new HashMap<>();",
"map",
"new HashMap<>()",
"for(int i=0;i<n;i++)\n {\n \t\tif(!map.containsKey(arr[i])){\n \t\t\tc++;\n \t\t\tmap.put(arr[i],1); \n \t\t}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\tif(!map.containsKey(arr[i])){\n \t\t\tc++;\n \t\t\tmap.put(arr[i],1); \n \t\t}\n }",
"{\n \t\tif(!map.containsKey(arr[i])){\n \t\t\tc++;\n \t\t\tmap.put(arr[i],1); \n \t\t}\n }",
"if(!map.containsKey(arr[i])){\n \t\t\tc++;\n \t\t\tmap.put(arr[i],1); \n \t\t}",
"!map.containsKey(arr[i])",
"map.containsKey(arr[i])",
"map.containsKey",
"map",
"arr[i]",
"arr",
"i",
"{\n \t\t\tc++;\n \t\t\tmap.put(arr[i],1); \n \t\t}",
"c++",
"c",
"map.put(arr[i],1)",
"map.put",
"map",
"arr[i]",
"arr",
"i",
"1",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String args[]",
"args",
"public class Main\n{\n public static void main(String args[])throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n String arr[] = new String[n];\n for(int i=0;i<n;i++)\n {\n \t\t\n \t\tarr[i]=br.readLine();\n }\n Arrays.sort(arr);\n int c=0;\n HashMap <String, Integer> map= new HashMap<>();\n for(int i=0;i<n;i++)\n {\n \t\tif(!map.containsKey(arr[i])){\n \t\t\tc++;\n \t\t\tmap.put(arr[i],1); \n \t\t}\n }\n System.out.println(c);\n}\n}",
"public class Main\n{\n public static void main(String args[])throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n String arr[] = new String[n];\n for(int i=0;i<n;i++)\n {\n \t\t\n \t\tarr[i]=br.readLine();\n }\n Arrays.sort(arr);\n int c=0;\n HashMap <String, Integer> map= new HashMap<>();\n for(int i=0;i<n;i++)\n {\n \t\tif(!map.containsKey(arr[i])){\n \t\t\tc++;\n \t\t\tmap.put(arr[i],1); \n \t\t}\n }\n System.out.println(c);\n}\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main
{
public static void main(String args[])throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
int n = Integer.parseInt(st.nextToken());
String arr[] = new String[n];
for(int i=0;i<n;i++)
{
arr[i]=br.readLine();
}
Arrays.sort(arr);
int c=0;
HashMap <String, Integer> map= new HashMap<>();
for(int i=0;i<n;i++)
{
if(!map.containsKey(arr[i])){
c++;
map.put(arr[i],1);
}
}
System.out.println(c);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.