node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
13,
41,
13,
4,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
17,
28,
13,
4,
18,
4,
18,
13,
30,
30,
14,
4,
18,
13,
13,
30,
40,
18,
13,
2,
13,
17,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
95,
5
],
[
95,
6
],
[
6,
7
],
[
6,
8
],
[
95,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
11,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
9,
60
],
[
60,
61
],
[
95,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
69,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
64,
90
],
[
90,
91
],
[
62,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
]
| [
"import java.util.*;\n\npublic class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n StringBuilder sb = new StringBuilder();\n while(scn.hasNextLine()) {\n sb.append(scn.nextLine());\n }\n int[] cnt = countChar(sb.toString());\n for(int i = 0; i < 26; i++) {\n System.out.println((char)('a' + i) + \" : \" + cnt[i]);\n }\n }\n \n private static int[] countChar(String str) {\n int[] cnt = new int[26];\n for(char elm : str.toLowerCase().toCharArray()) {\n if(Character.isAlphabetic(elm)) {\n cnt[elm - 'a']++;\n }\n }\n return cnt;\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n StringBuilder sb = new StringBuilder();\n while(scn.hasNextLine()) {\n sb.append(scn.nextLine());\n }\n int[] cnt = countChar(sb.toString());\n for(int i = 0; i < 26; i++) {\n System.out.println((char)('a' + i) + \" : \" + cnt[i]);\n }\n }\n \n private static int[] countChar(String str) {\n int[] cnt = new int[26];\n for(char elm : str.toLowerCase().toCharArray()) {\n if(Character.isAlphabetic(elm)) {\n cnt[elm - 'a']++;\n }\n }\n return cnt;\n }\n}",
"Main",
"private static final Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"public static void main(String[] args) {\n StringBuilder sb = new StringBuilder();\n while(scn.hasNextLine()) {\n sb.append(scn.nextLine());\n }\n int[] cnt = countChar(sb.toString());\n for(int i = 0; i < 26; i++) {\n System.out.println((char)('a' + i) + \" : \" + cnt[i]);\n }\n }",
"main",
"{\n StringBuilder sb = new StringBuilder();\n while(scn.hasNextLine()) {\n sb.append(scn.nextLine());\n }\n int[] cnt = countChar(sb.toString());\n for(int i = 0; i < 26; i++) {\n System.out.println((char)('a' + i) + \" : \" + cnt[i]);\n }\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while(scn.hasNextLine()) {\n sb.append(scn.nextLine());\n }",
"scn.hasNextLine()",
"scn.hasNextLine",
"scn",
"{\n sb.append(scn.nextLine());\n }",
"sb.append(scn.nextLine())",
"sb.append",
"sb",
"scn.nextLine()",
"scn.nextLine",
"scn",
"int[] cnt = countChar(sb.toString());",
"cnt",
"countChar(sb.toString())",
"countChar",
"sb.toString()",
"sb.toString",
"sb",
"for(int i = 0; i < 26; i++) {\n System.out.println((char)('a' + i) + \" : \" + cnt[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println((char)('a' + i) + \" : \" + cnt[i]);\n }",
"{\n System.out.println((char)('a' + i) + \" : \" + cnt[i]);\n }",
"System.out.println((char)('a' + i) + \" : \" + cnt[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)('a' + i) + \" : \" + cnt[i]",
"(char)('a' + i) + \" : \" + cnt[i]",
"(char)('a' + i)",
"'a'",
"i",
"\" : \"",
"cnt[i]",
"cnt",
"i",
"String[] args",
"args",
"private static int[] countChar(String str) {\n int[] cnt = new int[26];\n for(char elm : str.toLowerCase().toCharArray()) {\n if(Character.isAlphabetic(elm)) {\n cnt[elm - 'a']++;\n }\n }\n return cnt;\n }",
"countChar",
"{\n int[] cnt = new int[26];\n for(char elm : str.toLowerCase().toCharArray()) {\n if(Character.isAlphabetic(elm)) {\n cnt[elm - 'a']++;\n }\n }\n return cnt;\n }",
"int[] cnt = new int[26];",
"cnt",
"new int[26]",
"26",
"for(char elm : str.toLowerCase().toCharArray()) {\n if(Character.isAlphabetic(elm)) {\n cnt[elm - 'a']++;\n }\n }",
"char elm",
"str.toLowerCase().toCharArray()",
"str.toLowerCase().toCharArray",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"{\n if(Character.isAlphabetic(elm)) {\n cnt[elm - 'a']++;\n }\n }",
"{\n if(Character.isAlphabetic(elm)) {\n cnt[elm - 'a']++;\n }\n }",
"if(Character.isAlphabetic(elm)) {\n cnt[elm - 'a']++;\n }",
"Character.isAlphabetic(elm)",
"Character.isAlphabetic",
"Character",
"elm",
"{\n cnt[elm - 'a']++;\n }",
"cnt[elm - 'a']++",
"cnt[elm - 'a']",
"cnt",
"elm - 'a'",
"elm",
"'a'",
"return cnt;",
"cnt",
"String str",
"str",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n StringBuilder sb = new StringBuilder();\n while(scn.hasNextLine()) {\n sb.append(scn.nextLine());\n }\n int[] cnt = countChar(sb.toString());\n for(int i = 0; i < 26; i++) {\n System.out.println((char)('a' + i) + \" : \" + cnt[i]);\n }\n }\n \n private static int[] countChar(String str) {\n int[] cnt = new int[26];\n for(char elm : str.toLowerCase().toCharArray()) {\n if(Character.isAlphabetic(elm)) {\n cnt[elm - 'a']++;\n }\n }\n return cnt;\n }\n}",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n StringBuilder sb = new StringBuilder();\n while(scn.hasNextLine()) {\n sb.append(scn.nextLine());\n }\n int[] cnt = countChar(sb.toString());\n for(int i = 0; i < 26; i++) {\n System.out.println((char)('a' + i) + \" : \" + cnt[i]);\n }\n }\n \n private static int[] countChar(String str) {\n int[] cnt = new int[26];\n for(char elm : str.toLowerCase().toCharArray()) {\n if(Character.isAlphabetic(elm)) {\n cnt[elm - 'a']++;\n }\n }\n return cnt;\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
private static final Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
StringBuilder sb = new StringBuilder();
while(scn.hasNextLine()) {
sb.append(scn.nextLine());
}
int[] cnt = countChar(sb.toString());
for(int i = 0; i < 26; i++) {
System.out.println((char)('a' + i) + " : " + cnt[i]);
}
}
private static int[] countChar(String str) {
int[] cnt = new int[26];
for(char elm : str.toLowerCase().toCharArray()) {
if(Character.isAlphabetic(elm)) {
cnt[elm - 'a']++;
}
}
return cnt;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
3,
4,
18,
13,
13,
0,
13,
4,
18,
4,
18,
13,
17,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
17,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
18,
13,
13,
35,
18,
13,
13,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
1,
3,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
609,
14
],
[
609,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
17,
23
],
[
23,
24
],
[
17,
25
],
[
25,
26
],
[
25,
27
],
[
17,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
41,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
38,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
58,
63
],
[
38,
64
],
[
64,
65
],
[
64,
66
],
[
15,
67
],
[
67,
68
],
[
609,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
76,
80
],
[
71,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
81,
91
],
[
91,
92
],
[
92,
93
],
[
81,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
95,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
111,
117
],
[
105,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
105,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
129,
135
],
[
105,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
138,
144
],
[
105,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
147,
153
],
[
105,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
156,
162
],
[
105,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
105,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
174,
180
],
[
105,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
184,
188
],
[
183,
189
],
[
105,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
192,
198
],
[
105,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
201,
207
],
[
105,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
210,
216
],
[
105,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
219,
225
],
[
105,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
228,
234
],
[
105,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
238,
242
],
[
237,
243
],
[
105,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
247,
251
],
[
246,
252
],
[
105,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
256,
260
],
[
255,
261
],
[
105,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
265,
269
],
[
264,
270
],
[
105,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
273,
279
],
[
105,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
283,
287
],
[
282,
288
],
[
105,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
292,
296
],
[
291,
297
],
[
105,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
301,
305
],
[
300,
306
],
[
105,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
309,
315
],
[
105,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
319,
323
],
[
318,
324
],
[
105,
325
],
[
325,
326
],
[
325,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
328,
332
],
[
327,
333
],
[
105,
334
],
[
334,
335
],
[
334,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
338,
340
],
[
337,
341
],
[
336,
342
],
[
105,
343
],
[
343,
344
],
[
344,
345
],
[
71,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
346,
351
],
[
351,
352
],
[
351,
353
],
[
353,
354
],
[
353,
355
],
[
71,
356
],
[
356,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
356,
361
],
[
361,
362
],
[
361,
363
],
[
363,
364
],
[
363,
365
],
[
71,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
366,
371
],
[
371,
372
],
[
371,
373
],
[
373,
374
],
[
373,
375
],
[
71,
376
],
[
376,
377
],
[
377,
378
],
[
378,
379
],
[
378,
380
],
[
376,
381
],
[
381,
382
],
[
381,
383
],
[
383,
384
],
[
383,
385
],
[
71,
386
],
[
386,
387
],
[
387,
388
],
[
388,
389
],
[
388,
390
],
[
386,
391
],
[
391,
392
],
[
391,
393
],
[
393,
394
],
[
393,
395
],
[
71,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
398,
400
],
[
396,
401
],
[
401,
402
],
[
401,
403
],
[
403,
404
],
[
403,
405
],
[
71,
406
],
[
406,
407
],
[
407,
408
],
[
408,
409
],
[
408,
410
],
[
406,
411
],
[
411,
412
],
[
411,
413
],
[
413,
414
],
[
413,
415
],
[
71,
416
],
[
416,
417
],
[
417,
418
],
[
418,
419
],
[
418,
420
],
[
416,
421
],
[
421,
422
],
[
421,
423
],
[
423,
424
],
[
423,
425
],
[
71,
426
],
[
426,
427
],
[
427,
428
],
[
428,
429
],
[
428,
430
],
[
426,
431
],
[
431,
432
],
[
431,
433
],
[
433,
434
],
[
433,
435
],
[
71,
436
],
[
436,
437
],
[
437,
438
],
[
438,
439
],
[
438,
440
],
[
436,
441
],
[
441,
442
],
[
441,
443
],
[
443,
444
],
[
443,
445
],
[
71,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
448,
450
],
[
446,
451
],
[
451,
452
],
[
451,
453
],
[
453,
454
],
[
453,
455
],
[
71,
456
],
[
456,
457
],
[
457,
458
],
[
458,
459
],
[
458,
460
],
[
456,
461
],
[
461,
462
],
[
461,
463
],
[
463,
464
],
[
463,
465
],
[
71,
466
],
[
466,
467
],
[
467,
468
],
[
468,
469
],
[
468,
470
],
[
466,
471
],
[
471,
472
],
[
471,
473
],
[
473,
474
],
[
473,
475
],
[
71,
476
],
[
476,
477
],
[
477,
478
],
[
478,
479
],
[
478,
480
],
[
476,
481
],
[
481,
482
],
[
481,
483
],
[
483,
484
],
[
483,
485
],
[
71,
486
],
[
486,
487
],
[
487,
488
],
[
488,
489
],
[
488,
490
],
[
486,
491
],
[
491,
492
],
[
491,
493
],
[
493,
494
],
[
493,
495
],
[
71,
496
],
[
496,
497
],
[
497,
498
],
[
498,
499
],
[
498,
500
],
[
496,
501
],
[
501,
502
],
[
501,
503
],
[
503,
504
],
[
503,
505
],
[
71,
506
],
[
506,
507
],
[
507,
508
],
[
508,
509
],
[
508,
510
],
[
506,
511
],
[
511,
512
],
[
511,
513
],
[
513,
514
],
[
513,
515
],
[
71,
516
],
[
516,
517
],
[
517,
518
],
[
518,
519
],
[
518,
520
],
[
516,
521
],
[
521,
522
],
[
521,
523
],
[
523,
524
],
[
523,
525
],
[
71,
526
],
[
526,
527
],
[
527,
528
],
[
528,
529
],
[
528,
530
],
[
526,
531
],
[
531,
532
],
[
531,
533
],
[
533,
534
],
[
533,
535
],
[
71,
536
],
[
536,
537
],
[
537,
538
],
[
538,
539
],
[
538,
540
],
[
536,
541
],
[
541,
542
],
[
541,
543
],
[
543,
544
],
[
543,
545
],
[
71,
546
],
[
546,
547
],
[
547,
548
],
[
548,
549
],
[
548,
550
],
[
546,
551
],
[
551,
552
],
[
551,
553
],
[
553,
554
],
[
553,
555
],
[
71,
556
],
[
556,
557
],
[
557,
558
],
[
558,
559
],
[
558,
560
],
[
556,
561
],
[
561,
562
],
[
561,
563
],
[
563,
564
],
[
563,
565
],
[
71,
566
],
[
566,
567
],
[
567,
568
],
[
568,
569
],
[
568,
570
],
[
566,
571
],
[
571,
572
],
[
571,
573
],
[
573,
574
],
[
573,
575
],
[
71,
576
],
[
576,
577
],
[
577,
578
],
[
578,
579
],
[
578,
580
],
[
576,
581
],
[
581,
582
],
[
581,
583
],
[
583,
584
],
[
583,
585
],
[
71,
586
],
[
586,
587
],
[
587,
588
],
[
588,
589
],
[
588,
590
],
[
586,
591
],
[
591,
592
],
[
591,
593
],
[
593,
594
],
[
593,
595
],
[
71,
596
],
[
596,
597
],
[
597,
598
],
[
598,
599
],
[
598,
600
],
[
596,
601
],
[
601,
602
],
[
601,
603
],
[
603,
604
],
[
603,
605
],
[
69,
606
],
[
606,
607
],
[
0,
608
],
[
608,
609
],
[
608,
610
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\n\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] s_array;\n\t\tString s;\n\t\tStringBuffer buf=new StringBuffer();\n\n\t\ttry{\n\t\t\twhile(true){\n\t\ts=reader.readLine();\n\t\tif(s==null)break;\n\t\tbuf.append(s);\n\n\t\t}\n\t\ts_array=buf.toString().split(\"\");\n\n\t\tAlphabet(s_array);\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n\n\t//?????????????????????????????§1????????????????????????????????????????????£??\\??????\n\n\tprivate static void Alphabet(String[] s_array){\n\n\t\tint[] alp=new int[26];\n\t\tArrays.fill(alp, 0);\n\n\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\ts_array[i]=s_array[i].toLowerCase();\n\n\t\t\tswitch(s_array[i]){\n\n\t\t\tcase(\"a\"):\n\t\t\t\talp[0]+=1;break;\n\t\t\tcase(\"b\"):\n\t\t\t\talp[1]+=1;break;\n\t\t\tcase(\"c\"):\n\t\t\t\talp[2]+=1;break;\n\t\t\tcase(\"d\"):\n\t\t\t\talp[3]+=1;break;\n\t\t\tcase(\"e\"):\n\t\t\t\talp[4]+=1;break;\n\t\t\tcase(\"f\"):\n\t\t\t\talp[5]+=1;break;\n\t\t\tcase(\"g\"):\n\t\t\t\talp[6]+=1;break;\n\t\t\tcase(\"h\"):\n\t\t\t\talp[7]+=1;break;\n\t\t\tcase(\"i\"):\n\t\t\t\talp[8]+=1;break;\n\t\t\tcase(\"j\"):\n\t\t\t\talp[9]+=1;break;\n\t\t\tcase(\"k\"):\n\t\t\t\talp[10]+=1;break;\n\t\t\tcase(\"l\"):\n\t\t\t\talp[11]+=1;break;\n\t\t\tcase(\"m\"):\n\t\t\t\talp[12]+=1;break;\n\t\t\tcase(\"n\"):\n\t\t\t\talp[13]+=1;break;\n\t\t\tcase(\"o\"):\n\t\t\t\talp[14]+=1;break;\n\t\t\tcase(\"p\"):\n\t\t\t\talp[15]+=1;break;\n\t\t\tcase(\"q\"):\n\t\t\t\talp[16]+=1;break;\n\t\t\tcase(\"r\"):\n\t\t\t\talp[17]+=1;break;\n\t\t\tcase(\"s\"):\n\t\t\t\talp[18]+=1;break;\n\t\t\tcase(\"t\"):\n\t\t\t\talp[19]+=1;break;\n\t\t\tcase(\"u\"):\n\t\t\t\talp[20]+=1;break;\n\t\t\tcase(\"v\"):\n\t\t\t\talp[21]+=1;break;\n\t\t\tcase(\"w\"):\n\t\t\t\talp[22]+=1;break;\n\t\t\tcase(\"x\"):\n\t\t\t\talp[23]+=1;break;\n\t\t\tcase(\"y\"):\n\t\t\t\talp[24]+=1;break;\n\t\t\tcase(\"z\"):\n\t\t\t\talp[25]+=1;break;\n\t\t\tdefault:break;\n\t\t\t}//switch\n\n\t\t}//for\n\n\t\tSystem.out.println(\"a : \"+alp[0]);\n\t\tSystem.out.println(\"b : \"+alp[1]);\n\t\tSystem.out.println(\"c : \"+alp[2]);\n\t\tSystem.out.println(\"d : \"+alp[3]);\n\t\tSystem.out.println(\"e : \"+alp[4]);\n\t\tSystem.out.println(\"f : \"+alp[5]);\n\t\tSystem.out.println(\"g : \"+alp[6]);\n\t\tSystem.out.println(\"h : \"+alp[7]);\n\t\tSystem.out.println(\"i : \"+alp[8]);\n\t\tSystem.out.println(\"j : \"+alp[9]);\n\t\tSystem.out.println(\"k : \"+alp[10]);\n\t\tSystem.out.println(\"l : \"+alp[11]);\n\t\tSystem.out.println(\"m : \"+alp[12]);\n\t\tSystem.out.println(\"n : \"+alp[13]);\n\t\tSystem.out.println(\"o : \"+alp[14]);\n\t\tSystem.out.println(\"p : \"+alp[15]);\n\t\tSystem.out.println(\"q : \"+alp[16]);\n\t\tSystem.out.println(\"r : \"+alp[17]);\n\t\tSystem.out.println(\"s : \"+alp[18]);\n\t\tSystem.out.println(\"t : \"+alp[19]);\n\t\tSystem.out.println(\"u : \"+alp[20]);\n\t\tSystem.out.println(\"v : \"+alp[21]);\n\t\tSystem.out.println(\"w : \"+alp[22]);\n\t\tSystem.out.println(\"x : \"+alp[23]);\n\t\tSystem.out.println(\"y : \"+alp[24]);\n\t\tSystem.out.println(\"z : \"+alp[25]);\n\t}//Alphabet????????????\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.Arrays;",
"Arrays",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] s_array;\n\t\tString s;\n\t\tStringBuffer buf=new StringBuffer();\n\n\t\ttry{\n\t\t\twhile(true){\n\t\ts=reader.readLine();\n\t\tif(s==null)break;\n\t\tbuf.append(s);\n\n\t\t}\n\t\ts_array=buf.toString().split(\"\");\n\n\t\tAlphabet(s_array);\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n\n\t//?????????????????????????????§1????????????????????????????????????????????£??\\??????\n\n\tprivate static void Alphabet(String[] s_array){\n\n\t\tint[] alp=new int[26];\n\t\tArrays.fill(alp, 0);\n\n\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\ts_array[i]=s_array[i].toLowerCase();\n\n\t\t\tswitch(s_array[i]){\n\n\t\t\tcase(\"a\"):\n\t\t\t\talp[0]+=1;break;\n\t\t\tcase(\"b\"):\n\t\t\t\talp[1]+=1;break;\n\t\t\tcase(\"c\"):\n\t\t\t\talp[2]+=1;break;\n\t\t\tcase(\"d\"):\n\t\t\t\talp[3]+=1;break;\n\t\t\tcase(\"e\"):\n\t\t\t\talp[4]+=1;break;\n\t\t\tcase(\"f\"):\n\t\t\t\talp[5]+=1;break;\n\t\t\tcase(\"g\"):\n\t\t\t\talp[6]+=1;break;\n\t\t\tcase(\"h\"):\n\t\t\t\talp[7]+=1;break;\n\t\t\tcase(\"i\"):\n\t\t\t\talp[8]+=1;break;\n\t\t\tcase(\"j\"):\n\t\t\t\talp[9]+=1;break;\n\t\t\tcase(\"k\"):\n\t\t\t\talp[10]+=1;break;\n\t\t\tcase(\"l\"):\n\t\t\t\talp[11]+=1;break;\n\t\t\tcase(\"m\"):\n\t\t\t\talp[12]+=1;break;\n\t\t\tcase(\"n\"):\n\t\t\t\talp[13]+=1;break;\n\t\t\tcase(\"o\"):\n\t\t\t\talp[14]+=1;break;\n\t\t\tcase(\"p\"):\n\t\t\t\talp[15]+=1;break;\n\t\t\tcase(\"q\"):\n\t\t\t\talp[16]+=1;break;\n\t\t\tcase(\"r\"):\n\t\t\t\talp[17]+=1;break;\n\t\t\tcase(\"s\"):\n\t\t\t\talp[18]+=1;break;\n\t\t\tcase(\"t\"):\n\t\t\t\talp[19]+=1;break;\n\t\t\tcase(\"u\"):\n\t\t\t\talp[20]+=1;break;\n\t\t\tcase(\"v\"):\n\t\t\t\talp[21]+=1;break;\n\t\t\tcase(\"w\"):\n\t\t\t\talp[22]+=1;break;\n\t\t\tcase(\"x\"):\n\t\t\t\talp[23]+=1;break;\n\t\t\tcase(\"y\"):\n\t\t\t\talp[24]+=1;break;\n\t\t\tcase(\"z\"):\n\t\t\t\talp[25]+=1;break;\n\t\t\tdefault:break;\n\t\t\t}//switch\n\n\t\t}//for\n\n\t\tSystem.out.println(\"a : \"+alp[0]);\n\t\tSystem.out.println(\"b : \"+alp[1]);\n\t\tSystem.out.println(\"c : \"+alp[2]);\n\t\tSystem.out.println(\"d : \"+alp[3]);\n\t\tSystem.out.println(\"e : \"+alp[4]);\n\t\tSystem.out.println(\"f : \"+alp[5]);\n\t\tSystem.out.println(\"g : \"+alp[6]);\n\t\tSystem.out.println(\"h : \"+alp[7]);\n\t\tSystem.out.println(\"i : \"+alp[8]);\n\t\tSystem.out.println(\"j : \"+alp[9]);\n\t\tSystem.out.println(\"k : \"+alp[10]);\n\t\tSystem.out.println(\"l : \"+alp[11]);\n\t\tSystem.out.println(\"m : \"+alp[12]);\n\t\tSystem.out.println(\"n : \"+alp[13]);\n\t\tSystem.out.println(\"o : \"+alp[14]);\n\t\tSystem.out.println(\"p : \"+alp[15]);\n\t\tSystem.out.println(\"q : \"+alp[16]);\n\t\tSystem.out.println(\"r : \"+alp[17]);\n\t\tSystem.out.println(\"s : \"+alp[18]);\n\t\tSystem.out.println(\"t : \"+alp[19]);\n\t\tSystem.out.println(\"u : \"+alp[20]);\n\t\tSystem.out.println(\"v : \"+alp[21]);\n\t\tSystem.out.println(\"w : \"+alp[22]);\n\t\tSystem.out.println(\"x : \"+alp[23]);\n\t\tSystem.out.println(\"y : \"+alp[24]);\n\t\tSystem.out.println(\"z : \"+alp[25]);\n\t}//Alphabet????????????\n}",
"Main",
"public static void main(String[] args){\n\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] s_array;\n\t\tString s;\n\t\tStringBuffer buf=new StringBuffer();\n\n\t\ttry{\n\t\t\twhile(true){\n\t\ts=reader.readLine();\n\t\tif(s==null)break;\n\t\tbuf.append(s);\n\n\t\t}\n\t\ts_array=buf.toString().split(\"\");\n\n\t\tAlphabet(s_array);\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}",
"main",
"{\n\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] s_array;\n\t\tString s;\n\t\tStringBuffer buf=new StringBuffer();\n\n\t\ttry{\n\t\t\twhile(true){\n\t\ts=reader.readLine();\n\t\tif(s==null)break;\n\t\tbuf.append(s);\n\n\t\t}\n\t\ts_array=buf.toString().split(\"\");\n\n\t\tAlphabet(s_array);\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}",
"BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] s_array;",
"s_array",
"String s;",
"s",
"StringBuffer buf=new StringBuffer();",
"buf",
"new StringBuffer()",
"try{\n\t\t\twhile(true){\n\t\ts=reader.readLine();\n\t\tif(s==null)break;\n\t\tbuf.append(s);\n\n\t\t}\n\t\ts_array=buf.toString().split(\"\");\n\n\t\tAlphabet(s_array);\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}",
"catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}",
"IOException 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\twhile(true){\n\t\ts=reader.readLine();\n\t\tif(s==null)break;\n\t\tbuf.append(s);\n\n\t\t}\n\t\ts_array=buf.toString().split(\"\");\n\n\t\tAlphabet(s_array);\n\n\t\t}",
"while(true){\n\t\ts=reader.readLine();\n\t\tif(s==null)break;\n\t\tbuf.append(s);\n\n\t\t}",
"true",
"{\n\t\ts=reader.readLine();\n\t\tif(s==null)break;\n\t\tbuf.append(s);\n\n\t\t}",
"s=reader.readLine()",
"s",
"reader.readLine()",
"reader.readLine",
"reader",
"if(s==null)break;",
"s==null",
"s",
"null",
"break;",
"buf.append(s)",
"buf.append",
"buf",
"s",
"s_array=buf.toString().split(\"\")",
"s_array",
"buf.toString().split(\"\")",
"buf.toString().split",
"buf.toString()",
"buf.toString",
"buf",
"\"\"",
"Alphabet(s_array)",
"Alphabet",
"s_array",
"String[] args",
"args",
"private static void Alphabet(String[] s_array){\n\n\t\tint[] alp=new int[26];\n\t\tArrays.fill(alp, 0);\n\n\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\ts_array[i]=s_array[i].toLowerCase();\n\n\t\t\tswitch(s_array[i]){\n\n\t\t\tcase(\"a\"):\n\t\t\t\talp[0]+=1;break;\n\t\t\tcase(\"b\"):\n\t\t\t\talp[1]+=1;break;\n\t\t\tcase(\"c\"):\n\t\t\t\talp[2]+=1;break;\n\t\t\tcase(\"d\"):\n\t\t\t\talp[3]+=1;break;\n\t\t\tcase(\"e\"):\n\t\t\t\talp[4]+=1;break;\n\t\t\tcase(\"f\"):\n\t\t\t\talp[5]+=1;break;\n\t\t\tcase(\"g\"):\n\t\t\t\talp[6]+=1;break;\n\t\t\tcase(\"h\"):\n\t\t\t\talp[7]+=1;break;\n\t\t\tcase(\"i\"):\n\t\t\t\talp[8]+=1;break;\n\t\t\tcase(\"j\"):\n\t\t\t\talp[9]+=1;break;\n\t\t\tcase(\"k\"):\n\t\t\t\talp[10]+=1;break;\n\t\t\tcase(\"l\"):\n\t\t\t\talp[11]+=1;break;\n\t\t\tcase(\"m\"):\n\t\t\t\talp[12]+=1;break;\n\t\t\tcase(\"n\"):\n\t\t\t\talp[13]+=1;break;\n\t\t\tcase(\"o\"):\n\t\t\t\talp[14]+=1;break;\n\t\t\tcase(\"p\"):\n\t\t\t\talp[15]+=1;break;\n\t\t\tcase(\"q\"):\n\t\t\t\talp[16]+=1;break;\n\t\t\tcase(\"r\"):\n\t\t\t\talp[17]+=1;break;\n\t\t\tcase(\"s\"):\n\t\t\t\talp[18]+=1;break;\n\t\t\tcase(\"t\"):\n\t\t\t\talp[19]+=1;break;\n\t\t\tcase(\"u\"):\n\t\t\t\talp[20]+=1;break;\n\t\t\tcase(\"v\"):\n\t\t\t\talp[21]+=1;break;\n\t\t\tcase(\"w\"):\n\t\t\t\talp[22]+=1;break;\n\t\t\tcase(\"x\"):\n\t\t\t\talp[23]+=1;break;\n\t\t\tcase(\"y\"):\n\t\t\t\talp[24]+=1;break;\n\t\t\tcase(\"z\"):\n\t\t\t\talp[25]+=1;break;\n\t\t\tdefault:break;\n\t\t\t}//switch\n\n\t\t}//for\n\n\t\tSystem.out.println(\"a : \"+alp[0]);\n\t\tSystem.out.println(\"b : \"+alp[1]);\n\t\tSystem.out.println(\"c : \"+alp[2]);\n\t\tSystem.out.println(\"d : \"+alp[3]);\n\t\tSystem.out.println(\"e : \"+alp[4]);\n\t\tSystem.out.println(\"f : \"+alp[5]);\n\t\tSystem.out.println(\"g : \"+alp[6]);\n\t\tSystem.out.println(\"h : \"+alp[7]);\n\t\tSystem.out.println(\"i : \"+alp[8]);\n\t\tSystem.out.println(\"j : \"+alp[9]);\n\t\tSystem.out.println(\"k : \"+alp[10]);\n\t\tSystem.out.println(\"l : \"+alp[11]);\n\t\tSystem.out.println(\"m : \"+alp[12]);\n\t\tSystem.out.println(\"n : \"+alp[13]);\n\t\tSystem.out.println(\"o : \"+alp[14]);\n\t\tSystem.out.println(\"p : \"+alp[15]);\n\t\tSystem.out.println(\"q : \"+alp[16]);\n\t\tSystem.out.println(\"r : \"+alp[17]);\n\t\tSystem.out.println(\"s : \"+alp[18]);\n\t\tSystem.out.println(\"t : \"+alp[19]);\n\t\tSystem.out.println(\"u : \"+alp[20]);\n\t\tSystem.out.println(\"v : \"+alp[21]);\n\t\tSystem.out.println(\"w : \"+alp[22]);\n\t\tSystem.out.println(\"x : \"+alp[23]);\n\t\tSystem.out.println(\"y : \"+alp[24]);\n\t\tSystem.out.println(\"z : \"+alp[25]);\n\t}//Alphabet????????????",
"Alphabet",
"{\n\n\t\tint[] alp=new int[26];\n\t\tArrays.fill(alp, 0);\n\n\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\ts_array[i]=s_array[i].toLowerCase();\n\n\t\t\tswitch(s_array[i]){\n\n\t\t\tcase(\"a\"):\n\t\t\t\talp[0]+=1;break;\n\t\t\tcase(\"b\"):\n\t\t\t\talp[1]+=1;break;\n\t\t\tcase(\"c\"):\n\t\t\t\talp[2]+=1;break;\n\t\t\tcase(\"d\"):\n\t\t\t\talp[3]+=1;break;\n\t\t\tcase(\"e\"):\n\t\t\t\talp[4]+=1;break;\n\t\t\tcase(\"f\"):\n\t\t\t\talp[5]+=1;break;\n\t\t\tcase(\"g\"):\n\t\t\t\talp[6]+=1;break;\n\t\t\tcase(\"h\"):\n\t\t\t\talp[7]+=1;break;\n\t\t\tcase(\"i\"):\n\t\t\t\talp[8]+=1;break;\n\t\t\tcase(\"j\"):\n\t\t\t\talp[9]+=1;break;\n\t\t\tcase(\"k\"):\n\t\t\t\talp[10]+=1;break;\n\t\t\tcase(\"l\"):\n\t\t\t\talp[11]+=1;break;\n\t\t\tcase(\"m\"):\n\t\t\t\talp[12]+=1;break;\n\t\t\tcase(\"n\"):\n\t\t\t\talp[13]+=1;break;\n\t\t\tcase(\"o\"):\n\t\t\t\talp[14]+=1;break;\n\t\t\tcase(\"p\"):\n\t\t\t\talp[15]+=1;break;\n\t\t\tcase(\"q\"):\n\t\t\t\talp[16]+=1;break;\n\t\t\tcase(\"r\"):\n\t\t\t\talp[17]+=1;break;\n\t\t\tcase(\"s\"):\n\t\t\t\talp[18]+=1;break;\n\t\t\tcase(\"t\"):\n\t\t\t\talp[19]+=1;break;\n\t\t\tcase(\"u\"):\n\t\t\t\talp[20]+=1;break;\n\t\t\tcase(\"v\"):\n\t\t\t\talp[21]+=1;break;\n\t\t\tcase(\"w\"):\n\t\t\t\talp[22]+=1;break;\n\t\t\tcase(\"x\"):\n\t\t\t\talp[23]+=1;break;\n\t\t\tcase(\"y\"):\n\t\t\t\talp[24]+=1;break;\n\t\t\tcase(\"z\"):\n\t\t\t\talp[25]+=1;break;\n\t\t\tdefault:break;\n\t\t\t}//switch\n\n\t\t}//for\n\n\t\tSystem.out.println(\"a : \"+alp[0]);\n\t\tSystem.out.println(\"b : \"+alp[1]);\n\t\tSystem.out.println(\"c : \"+alp[2]);\n\t\tSystem.out.println(\"d : \"+alp[3]);\n\t\tSystem.out.println(\"e : \"+alp[4]);\n\t\tSystem.out.println(\"f : \"+alp[5]);\n\t\tSystem.out.println(\"g : \"+alp[6]);\n\t\tSystem.out.println(\"h : \"+alp[7]);\n\t\tSystem.out.println(\"i : \"+alp[8]);\n\t\tSystem.out.println(\"j : \"+alp[9]);\n\t\tSystem.out.println(\"k : \"+alp[10]);\n\t\tSystem.out.println(\"l : \"+alp[11]);\n\t\tSystem.out.println(\"m : \"+alp[12]);\n\t\tSystem.out.println(\"n : \"+alp[13]);\n\t\tSystem.out.println(\"o : \"+alp[14]);\n\t\tSystem.out.println(\"p : \"+alp[15]);\n\t\tSystem.out.println(\"q : \"+alp[16]);\n\t\tSystem.out.println(\"r : \"+alp[17]);\n\t\tSystem.out.println(\"s : \"+alp[18]);\n\t\tSystem.out.println(\"t : \"+alp[19]);\n\t\tSystem.out.println(\"u : \"+alp[20]);\n\t\tSystem.out.println(\"v : \"+alp[21]);\n\t\tSystem.out.println(\"w : \"+alp[22]);\n\t\tSystem.out.println(\"x : \"+alp[23]);\n\t\tSystem.out.println(\"y : \"+alp[24]);\n\t\tSystem.out.println(\"z : \"+alp[25]);\n\t}",
"int[] alp=new int[26];",
"alp",
"new int[26]",
"26",
"Arrays.fill(alp, 0)",
"Arrays.fill",
"Arrays",
"alp",
"0",
"for(int i=0;i<s_array.length;i++){\n\t\t\ts_array[i]=s_array[i].toLowerCase();\n\n\t\t\tswitch(s_array[i]){\n\n\t\t\tcase(\"a\"):\n\t\t\t\talp[0]+=1;break;\n\t\t\tcase(\"b\"):\n\t\t\t\talp[1]+=1;break;\n\t\t\tcase(\"c\"):\n\t\t\t\talp[2]+=1;break;\n\t\t\tcase(\"d\"):\n\t\t\t\talp[3]+=1;break;\n\t\t\tcase(\"e\"):\n\t\t\t\talp[4]+=1;break;\n\t\t\tcase(\"f\"):\n\t\t\t\talp[5]+=1;break;\n\t\t\tcase(\"g\"):\n\t\t\t\talp[6]+=1;break;\n\t\t\tcase(\"h\"):\n\t\t\t\talp[7]+=1;break;\n\t\t\tcase(\"i\"):\n\t\t\t\talp[8]+=1;break;\n\t\t\tcase(\"j\"):\n\t\t\t\talp[9]+=1;break;\n\t\t\tcase(\"k\"):\n\t\t\t\talp[10]+=1;break;\n\t\t\tcase(\"l\"):\n\t\t\t\talp[11]+=1;break;\n\t\t\tcase(\"m\"):\n\t\t\t\talp[12]+=1;break;\n\t\t\tcase(\"n\"):\n\t\t\t\talp[13]+=1;break;\n\t\t\tcase(\"o\"):\n\t\t\t\talp[14]+=1;break;\n\t\t\tcase(\"p\"):\n\t\t\t\talp[15]+=1;break;\n\t\t\tcase(\"q\"):\n\t\t\t\talp[16]+=1;break;\n\t\t\tcase(\"r\"):\n\t\t\t\talp[17]+=1;break;\n\t\t\tcase(\"s\"):\n\t\t\t\talp[18]+=1;break;\n\t\t\tcase(\"t\"):\n\t\t\t\talp[19]+=1;break;\n\t\t\tcase(\"u\"):\n\t\t\t\talp[20]+=1;break;\n\t\t\tcase(\"v\"):\n\t\t\t\talp[21]+=1;break;\n\t\t\tcase(\"w\"):\n\t\t\t\talp[22]+=1;break;\n\t\t\tcase(\"x\"):\n\t\t\t\talp[23]+=1;break;\n\t\t\tcase(\"y\"):\n\t\t\t\talp[24]+=1;break;\n\t\t\tcase(\"z\"):\n\t\t\t\talp[25]+=1;break;\n\t\t\tdefault:break;\n\t\t\t}//switch\n\n\t\t}//for",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s_array.length",
"i",
"s_array.length",
"s_array",
"s_array.length",
"i++",
"i++",
"i",
"{\n\t\t\ts_array[i]=s_array[i].toLowerCase();\n\n\t\t\tswitch(s_array[i]){\n\n\t\t\tcase(\"a\"):\n\t\t\t\talp[0]+=1;break;\n\t\t\tcase(\"b\"):\n\t\t\t\talp[1]+=1;break;\n\t\t\tcase(\"c\"):\n\t\t\t\talp[2]+=1;break;\n\t\t\tcase(\"d\"):\n\t\t\t\talp[3]+=1;break;\n\t\t\tcase(\"e\"):\n\t\t\t\talp[4]+=1;break;\n\t\t\tcase(\"f\"):\n\t\t\t\talp[5]+=1;break;\n\t\t\tcase(\"g\"):\n\t\t\t\talp[6]+=1;break;\n\t\t\tcase(\"h\"):\n\t\t\t\talp[7]+=1;break;\n\t\t\tcase(\"i\"):\n\t\t\t\talp[8]+=1;break;\n\t\t\tcase(\"j\"):\n\t\t\t\talp[9]+=1;break;\n\t\t\tcase(\"k\"):\n\t\t\t\talp[10]+=1;break;\n\t\t\tcase(\"l\"):\n\t\t\t\talp[11]+=1;break;\n\t\t\tcase(\"m\"):\n\t\t\t\talp[12]+=1;break;\n\t\t\tcase(\"n\"):\n\t\t\t\talp[13]+=1;break;\n\t\t\tcase(\"o\"):\n\t\t\t\talp[14]+=1;break;\n\t\t\tcase(\"p\"):\n\t\t\t\talp[15]+=1;break;\n\t\t\tcase(\"q\"):\n\t\t\t\talp[16]+=1;break;\n\t\t\tcase(\"r\"):\n\t\t\t\talp[17]+=1;break;\n\t\t\tcase(\"s\"):\n\t\t\t\talp[18]+=1;break;\n\t\t\tcase(\"t\"):\n\t\t\t\talp[19]+=1;break;\n\t\t\tcase(\"u\"):\n\t\t\t\talp[20]+=1;break;\n\t\t\tcase(\"v\"):\n\t\t\t\talp[21]+=1;break;\n\t\t\tcase(\"w\"):\n\t\t\t\talp[22]+=1;break;\n\t\t\tcase(\"x\"):\n\t\t\t\talp[23]+=1;break;\n\t\t\tcase(\"y\"):\n\t\t\t\talp[24]+=1;break;\n\t\t\tcase(\"z\"):\n\t\t\t\talp[25]+=1;break;\n\t\t\tdefault:break;\n\t\t\t}//switch\n\n\t\t}//for",
"{\n\t\t\ts_array[i]=s_array[i].toLowerCase();\n\n\t\t\tswitch(s_array[i]){\n\n\t\t\tcase(\"a\"):\n\t\t\t\talp[0]+=1;break;\n\t\t\tcase(\"b\"):\n\t\t\t\talp[1]+=1;break;\n\t\t\tcase(\"c\"):\n\t\t\t\talp[2]+=1;break;\n\t\t\tcase(\"d\"):\n\t\t\t\talp[3]+=1;break;\n\t\t\tcase(\"e\"):\n\t\t\t\talp[4]+=1;break;\n\t\t\tcase(\"f\"):\n\t\t\t\talp[5]+=1;break;\n\t\t\tcase(\"g\"):\n\t\t\t\talp[6]+=1;break;\n\t\t\tcase(\"h\"):\n\t\t\t\talp[7]+=1;break;\n\t\t\tcase(\"i\"):\n\t\t\t\talp[8]+=1;break;\n\t\t\tcase(\"j\"):\n\t\t\t\talp[9]+=1;break;\n\t\t\tcase(\"k\"):\n\t\t\t\talp[10]+=1;break;\n\t\t\tcase(\"l\"):\n\t\t\t\talp[11]+=1;break;\n\t\t\tcase(\"m\"):\n\t\t\t\talp[12]+=1;break;\n\t\t\tcase(\"n\"):\n\t\t\t\talp[13]+=1;break;\n\t\t\tcase(\"o\"):\n\t\t\t\talp[14]+=1;break;\n\t\t\tcase(\"p\"):\n\t\t\t\talp[15]+=1;break;\n\t\t\tcase(\"q\"):\n\t\t\t\talp[16]+=1;break;\n\t\t\tcase(\"r\"):\n\t\t\t\talp[17]+=1;break;\n\t\t\tcase(\"s\"):\n\t\t\t\talp[18]+=1;break;\n\t\t\tcase(\"t\"):\n\t\t\t\talp[19]+=1;break;\n\t\t\tcase(\"u\"):\n\t\t\t\talp[20]+=1;break;\n\t\t\tcase(\"v\"):\n\t\t\t\talp[21]+=1;break;\n\t\t\tcase(\"w\"):\n\t\t\t\talp[22]+=1;break;\n\t\t\tcase(\"x\"):\n\t\t\t\talp[23]+=1;break;\n\t\t\tcase(\"y\"):\n\t\t\t\talp[24]+=1;break;\n\t\t\tcase(\"z\"):\n\t\t\t\talp[25]+=1;break;\n\t\t\tdefault:break;\n\t\t\t}//switch\n\n\t\t}",
"s_array[i]=s_array[i].toLowerCase()",
"s_array[i]",
"s_array",
"i",
"s_array[i].toLowerCase()",
"s_array[i].toLowerCase",
"s_array[i]",
"s_array",
"i",
"switch(s_array[i]){\n\n\t\t\tcase(\"a\"):\n\t\t\t\talp[0]+=1;break;\n\t\t\tcase(\"b\"):\n\t\t\t\talp[1]+=1;break;\n\t\t\tcase(\"c\"):\n\t\t\t\talp[2]+=1;break;\n\t\t\tcase(\"d\"):\n\t\t\t\talp[3]+=1;break;\n\t\t\tcase(\"e\"):\n\t\t\t\talp[4]+=1;break;\n\t\t\tcase(\"f\"):\n\t\t\t\talp[5]+=1;break;\n\t\t\tcase(\"g\"):\n\t\t\t\talp[6]+=1;break;\n\t\t\tcase(\"h\"):\n\t\t\t\talp[7]+=1;break;\n\t\t\tcase(\"i\"):\n\t\t\t\talp[8]+=1;break;\n\t\t\tcase(\"j\"):\n\t\t\t\talp[9]+=1;break;\n\t\t\tcase(\"k\"):\n\t\t\t\talp[10]+=1;break;\n\t\t\tcase(\"l\"):\n\t\t\t\talp[11]+=1;break;\n\t\t\tcase(\"m\"):\n\t\t\t\talp[12]+=1;break;\n\t\t\tcase(\"n\"):\n\t\t\t\talp[13]+=1;break;\n\t\t\tcase(\"o\"):\n\t\t\t\talp[14]+=1;break;\n\t\t\tcase(\"p\"):\n\t\t\t\talp[15]+=1;break;\n\t\t\tcase(\"q\"):\n\t\t\t\talp[16]+=1;break;\n\t\t\tcase(\"r\"):\n\t\t\t\talp[17]+=1;break;\n\t\t\tcase(\"s\"):\n\t\t\t\talp[18]+=1;break;\n\t\t\tcase(\"t\"):\n\t\t\t\talp[19]+=1;break;\n\t\t\tcase(\"u\"):\n\t\t\t\talp[20]+=1;break;\n\t\t\tcase(\"v\"):\n\t\t\t\talp[21]+=1;break;\n\t\t\tcase(\"w\"):\n\t\t\t\talp[22]+=1;break;\n\t\t\tcase(\"x\"):\n\t\t\t\talp[23]+=1;break;\n\t\t\tcase(\"y\"):\n\t\t\t\talp[24]+=1;break;\n\t\t\tcase(\"z\"):\n\t\t\t\talp[25]+=1;break;\n\t\t\tdefault:break;\n\t\t\t}//switch",
"s_array[i]",
"s_array",
"i",
"case(\"a\"):",
"(\"a\")",
"case(\"a\"):",
"alp[0]+=1",
"alp[0]",
"alp",
"0",
"1",
"break;",
"case(\"b\"):",
"(\"b\")",
"case(\"b\"):",
"alp[1]+=1",
"alp[1]",
"alp",
"1",
"1",
"break;",
"case(\"c\"):",
"(\"c\")",
"case(\"c\"):",
"alp[2]+=1",
"alp[2]",
"alp",
"2",
"1",
"break;",
"case(\"d\"):",
"(\"d\")",
"case(\"d\"):",
"alp[3]+=1",
"alp[3]",
"alp",
"3",
"1",
"break;",
"case(\"e\"):",
"(\"e\")",
"case(\"e\"):",
"alp[4]+=1",
"alp[4]",
"alp",
"4",
"1",
"break;",
"case(\"f\"):",
"(\"f\")",
"case(\"f\"):",
"alp[5]+=1",
"alp[5]",
"alp",
"5",
"1",
"break;",
"case(\"g\"):",
"(\"g\")",
"case(\"g\"):",
"alp[6]+=1",
"alp[6]",
"alp",
"6",
"1",
"break;",
"case(\"h\"):",
"(\"h\")",
"case(\"h\"):",
"alp[7]+=1",
"alp[7]",
"alp",
"7",
"1",
"break;",
"case(\"i\"):",
"(\"i\")",
"case(\"i\"):",
"alp[8]+=1",
"alp[8]",
"alp",
"8",
"1",
"break;",
"case(\"j\"):",
"(\"j\")",
"case(\"j\"):",
"alp[9]+=1",
"alp[9]",
"alp",
"9",
"1",
"break;",
"case(\"k\"):",
"(\"k\")",
"case(\"k\"):",
"alp[10]+=1",
"alp[10]",
"alp",
"10",
"1",
"break;",
"case(\"l\"):",
"(\"l\")",
"case(\"l\"):",
"alp[11]+=1",
"alp[11]",
"alp",
"11",
"1",
"break;",
"case(\"m\"):",
"(\"m\")",
"case(\"m\"):",
"alp[12]+=1",
"alp[12]",
"alp",
"12",
"1",
"break;",
"case(\"n\"):",
"(\"n\")",
"case(\"n\"):",
"alp[13]+=1",
"alp[13]",
"alp",
"13",
"1",
"break;",
"case(\"o\"):",
"(\"o\")",
"case(\"o\"):",
"alp[14]+=1",
"alp[14]",
"alp",
"14",
"1",
"break;",
"case(\"p\"):",
"(\"p\")",
"case(\"p\"):",
"alp[15]+=1",
"alp[15]",
"alp",
"15",
"1",
"break;",
"case(\"q\"):",
"(\"q\")",
"case(\"q\"):",
"alp[16]+=1",
"alp[16]",
"alp",
"16",
"1",
"break;",
"case(\"r\"):",
"(\"r\")",
"case(\"r\"):",
"alp[17]+=1",
"alp[17]",
"alp",
"17",
"1",
"break;",
"case(\"s\"):",
"(\"s\")",
"case(\"s\"):",
"alp[18]+=1",
"alp[18]",
"alp",
"18",
"1",
"break;",
"case(\"t\"):",
"(\"t\")",
"case(\"t\"):",
"alp[19]+=1",
"alp[19]",
"alp",
"19",
"1",
"break;",
"case(\"u\"):",
"(\"u\")",
"case(\"u\"):",
"alp[20]+=1",
"alp[20]",
"alp",
"20",
"1",
"break;",
"case(\"v\"):",
"(\"v\")",
"case(\"v\"):",
"alp[21]+=1",
"alp[21]",
"alp",
"21",
"1",
"break;",
"case(\"w\"):",
"(\"w\")",
"case(\"w\"):",
"alp[22]+=1",
"alp[22]",
"alp",
"22",
"1",
"break;",
"case(\"x\"):",
"(\"x\")",
"case(\"x\"):",
"alp[23]+=1",
"alp[23]",
"alp",
"23",
"1",
"break;",
"case(\"y\"):",
"(\"y\")",
"case(\"y\"):",
"alp[24]+=1",
"alp[24]",
"alp",
"24",
"1",
"break;",
"case(\"z\"):",
"(\"z\")",
"case(\"z\"):",
"alp[25]+=1",
"alp[25]",
"alp",
"25",
"1",
"break;",
"default:",
"default:",
"break;",
"System.out.println(\"a : \"+alp[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"a : \"+alp[0]",
"\"a : \"",
"alp[0]",
"alp",
"0",
"System.out.println(\"b : \"+alp[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"b : \"+alp[1]",
"\"b : \"",
"alp[1]",
"alp",
"1",
"System.out.println(\"c : \"+alp[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"c : \"+alp[2]",
"\"c : \"",
"alp[2]",
"alp",
"2",
"System.out.println(\"d : \"+alp[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"d : \"+alp[3]",
"\"d : \"",
"alp[3]",
"alp",
"3",
"System.out.println(\"e : \"+alp[4])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"e : \"+alp[4]",
"\"e : \"",
"alp[4]",
"alp",
"4",
"System.out.println(\"f : \"+alp[5])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"f : \"+alp[5]",
"\"f : \"",
"alp[5]",
"alp",
"5",
"System.out.println(\"g : \"+alp[6])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"g : \"+alp[6]",
"\"g : \"",
"alp[6]",
"alp",
"6",
"System.out.println(\"h : \"+alp[7])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"h : \"+alp[7]",
"\"h : \"",
"alp[7]",
"alp",
"7",
"System.out.println(\"i : \"+alp[8])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"i : \"+alp[8]",
"\"i : \"",
"alp[8]",
"alp",
"8",
"System.out.println(\"j : \"+alp[9])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"j : \"+alp[9]",
"\"j : \"",
"alp[9]",
"alp",
"9",
"System.out.println(\"k : \"+alp[10])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"k : \"+alp[10]",
"\"k : \"",
"alp[10]",
"alp",
"10",
"System.out.println(\"l : \"+alp[11])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"l : \"+alp[11]",
"\"l : \"",
"alp[11]",
"alp",
"11",
"System.out.println(\"m : \"+alp[12])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"m : \"+alp[12]",
"\"m : \"",
"alp[12]",
"alp",
"12",
"System.out.println(\"n : \"+alp[13])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"n : \"+alp[13]",
"\"n : \"",
"alp[13]",
"alp",
"13",
"System.out.println(\"o : \"+alp[14])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"o : \"+alp[14]",
"\"o : \"",
"alp[14]",
"alp",
"14",
"System.out.println(\"p : \"+alp[15])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"p : \"+alp[15]",
"\"p : \"",
"alp[15]",
"alp",
"15",
"System.out.println(\"q : \"+alp[16])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"q : \"+alp[16]",
"\"q : \"",
"alp[16]",
"alp",
"16",
"System.out.println(\"r : \"+alp[17])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"r : \"+alp[17]",
"\"r : \"",
"alp[17]",
"alp",
"17",
"System.out.println(\"s : \"+alp[18])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"s : \"+alp[18]",
"\"s : \"",
"alp[18]",
"alp",
"18",
"System.out.println(\"t : \"+alp[19])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"t : \"+alp[19]",
"\"t : \"",
"alp[19]",
"alp",
"19",
"System.out.println(\"u : \"+alp[20])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"u : \"+alp[20]",
"\"u : \"",
"alp[20]",
"alp",
"20",
"System.out.println(\"v : \"+alp[21])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"v : \"+alp[21]",
"\"v : \"",
"alp[21]",
"alp",
"21",
"System.out.println(\"w : \"+alp[22])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"w : \"+alp[22]",
"\"w : \"",
"alp[22]",
"alp",
"22",
"System.out.println(\"x : \"+alp[23])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"x : \"+alp[23]",
"\"x : \"",
"alp[23]",
"alp",
"23",
"System.out.println(\"y : \"+alp[24])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"y : \"+alp[24]",
"\"y : \"",
"alp[24]",
"alp",
"24",
"System.out.println(\"z : \"+alp[25])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"z : \"+alp[25]",
"\"z : \"",
"alp[25]",
"alp",
"25",
"String[] s_array",
"s_array",
"public class Main{\n\tpublic static void main(String[] args){\n\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] s_array;\n\t\tString s;\n\t\tStringBuffer buf=new StringBuffer();\n\n\t\ttry{\n\t\t\twhile(true){\n\t\ts=reader.readLine();\n\t\tif(s==null)break;\n\t\tbuf.append(s);\n\n\t\t}\n\t\ts_array=buf.toString().split(\"\");\n\n\t\tAlphabet(s_array);\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n\n\t//?????????????????????????????§1????????????????????????????????????????????£??\\??????\n\n\tprivate static void Alphabet(String[] s_array){\n\n\t\tint[] alp=new int[26];\n\t\tArrays.fill(alp, 0);\n\n\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\ts_array[i]=s_array[i].toLowerCase();\n\n\t\t\tswitch(s_array[i]){\n\n\t\t\tcase(\"a\"):\n\t\t\t\talp[0]+=1;break;\n\t\t\tcase(\"b\"):\n\t\t\t\talp[1]+=1;break;\n\t\t\tcase(\"c\"):\n\t\t\t\talp[2]+=1;break;\n\t\t\tcase(\"d\"):\n\t\t\t\talp[3]+=1;break;\n\t\t\tcase(\"e\"):\n\t\t\t\talp[4]+=1;break;\n\t\t\tcase(\"f\"):\n\t\t\t\talp[5]+=1;break;\n\t\t\tcase(\"g\"):\n\t\t\t\talp[6]+=1;break;\n\t\t\tcase(\"h\"):\n\t\t\t\talp[7]+=1;break;\n\t\t\tcase(\"i\"):\n\t\t\t\talp[8]+=1;break;\n\t\t\tcase(\"j\"):\n\t\t\t\talp[9]+=1;break;\n\t\t\tcase(\"k\"):\n\t\t\t\talp[10]+=1;break;\n\t\t\tcase(\"l\"):\n\t\t\t\talp[11]+=1;break;\n\t\t\tcase(\"m\"):\n\t\t\t\talp[12]+=1;break;\n\t\t\tcase(\"n\"):\n\t\t\t\talp[13]+=1;break;\n\t\t\tcase(\"o\"):\n\t\t\t\talp[14]+=1;break;\n\t\t\tcase(\"p\"):\n\t\t\t\talp[15]+=1;break;\n\t\t\tcase(\"q\"):\n\t\t\t\talp[16]+=1;break;\n\t\t\tcase(\"r\"):\n\t\t\t\talp[17]+=1;break;\n\t\t\tcase(\"s\"):\n\t\t\t\talp[18]+=1;break;\n\t\t\tcase(\"t\"):\n\t\t\t\talp[19]+=1;break;\n\t\t\tcase(\"u\"):\n\t\t\t\talp[20]+=1;break;\n\t\t\tcase(\"v\"):\n\t\t\t\talp[21]+=1;break;\n\t\t\tcase(\"w\"):\n\t\t\t\talp[22]+=1;break;\n\t\t\tcase(\"x\"):\n\t\t\t\talp[23]+=1;break;\n\t\t\tcase(\"y\"):\n\t\t\t\talp[24]+=1;break;\n\t\t\tcase(\"z\"):\n\t\t\t\talp[25]+=1;break;\n\t\t\tdefault:break;\n\t\t\t}//switch\n\n\t\t}//for\n\n\t\tSystem.out.println(\"a : \"+alp[0]);\n\t\tSystem.out.println(\"b : \"+alp[1]);\n\t\tSystem.out.println(\"c : \"+alp[2]);\n\t\tSystem.out.println(\"d : \"+alp[3]);\n\t\tSystem.out.println(\"e : \"+alp[4]);\n\t\tSystem.out.println(\"f : \"+alp[5]);\n\t\tSystem.out.println(\"g : \"+alp[6]);\n\t\tSystem.out.println(\"h : \"+alp[7]);\n\t\tSystem.out.println(\"i : \"+alp[8]);\n\t\tSystem.out.println(\"j : \"+alp[9]);\n\t\tSystem.out.println(\"k : \"+alp[10]);\n\t\tSystem.out.println(\"l : \"+alp[11]);\n\t\tSystem.out.println(\"m : \"+alp[12]);\n\t\tSystem.out.println(\"n : \"+alp[13]);\n\t\tSystem.out.println(\"o : \"+alp[14]);\n\t\tSystem.out.println(\"p : \"+alp[15]);\n\t\tSystem.out.println(\"q : \"+alp[16]);\n\t\tSystem.out.println(\"r : \"+alp[17]);\n\t\tSystem.out.println(\"s : \"+alp[18]);\n\t\tSystem.out.println(\"t : \"+alp[19]);\n\t\tSystem.out.println(\"u : \"+alp[20]);\n\t\tSystem.out.println(\"v : \"+alp[21]);\n\t\tSystem.out.println(\"w : \"+alp[22]);\n\t\tSystem.out.println(\"x : \"+alp[23]);\n\t\tSystem.out.println(\"y : \"+alp[24]);\n\t\tSystem.out.println(\"z : \"+alp[25]);\n\t}//Alphabet????????????\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] s_array;\n\t\tString s;\n\t\tStringBuffer buf=new StringBuffer();\n\n\t\ttry{\n\t\t\twhile(true){\n\t\ts=reader.readLine();\n\t\tif(s==null)break;\n\t\tbuf.append(s);\n\n\t\t}\n\t\ts_array=buf.toString().split(\"\");\n\n\t\tAlphabet(s_array);\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n\n\t//?????????????????????????????§1????????????????????????????????????????????£??\\??????\n\n\tprivate static void Alphabet(String[] s_array){\n\n\t\tint[] alp=new int[26];\n\t\tArrays.fill(alp, 0);\n\n\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\ts_array[i]=s_array[i].toLowerCase();\n\n\t\t\tswitch(s_array[i]){\n\n\t\t\tcase(\"a\"):\n\t\t\t\talp[0]+=1;break;\n\t\t\tcase(\"b\"):\n\t\t\t\talp[1]+=1;break;\n\t\t\tcase(\"c\"):\n\t\t\t\talp[2]+=1;break;\n\t\t\tcase(\"d\"):\n\t\t\t\talp[3]+=1;break;\n\t\t\tcase(\"e\"):\n\t\t\t\talp[4]+=1;break;\n\t\t\tcase(\"f\"):\n\t\t\t\talp[5]+=1;break;\n\t\t\tcase(\"g\"):\n\t\t\t\talp[6]+=1;break;\n\t\t\tcase(\"h\"):\n\t\t\t\talp[7]+=1;break;\n\t\t\tcase(\"i\"):\n\t\t\t\talp[8]+=1;break;\n\t\t\tcase(\"j\"):\n\t\t\t\talp[9]+=1;break;\n\t\t\tcase(\"k\"):\n\t\t\t\talp[10]+=1;break;\n\t\t\tcase(\"l\"):\n\t\t\t\talp[11]+=1;break;\n\t\t\tcase(\"m\"):\n\t\t\t\talp[12]+=1;break;\n\t\t\tcase(\"n\"):\n\t\t\t\talp[13]+=1;break;\n\t\t\tcase(\"o\"):\n\t\t\t\talp[14]+=1;break;\n\t\t\tcase(\"p\"):\n\t\t\t\talp[15]+=1;break;\n\t\t\tcase(\"q\"):\n\t\t\t\talp[16]+=1;break;\n\t\t\tcase(\"r\"):\n\t\t\t\talp[17]+=1;break;\n\t\t\tcase(\"s\"):\n\t\t\t\talp[18]+=1;break;\n\t\t\tcase(\"t\"):\n\t\t\t\talp[19]+=1;break;\n\t\t\tcase(\"u\"):\n\t\t\t\talp[20]+=1;break;\n\t\t\tcase(\"v\"):\n\t\t\t\talp[21]+=1;break;\n\t\t\tcase(\"w\"):\n\t\t\t\talp[22]+=1;break;\n\t\t\tcase(\"x\"):\n\t\t\t\talp[23]+=1;break;\n\t\t\tcase(\"y\"):\n\t\t\t\talp[24]+=1;break;\n\t\t\tcase(\"z\"):\n\t\t\t\talp[25]+=1;break;\n\t\t\tdefault:break;\n\t\t\t}//switch\n\n\t\t}//for\n\n\t\tSystem.out.println(\"a : \"+alp[0]);\n\t\tSystem.out.println(\"b : \"+alp[1]);\n\t\tSystem.out.println(\"c : \"+alp[2]);\n\t\tSystem.out.println(\"d : \"+alp[3]);\n\t\tSystem.out.println(\"e : \"+alp[4]);\n\t\tSystem.out.println(\"f : \"+alp[5]);\n\t\tSystem.out.println(\"g : \"+alp[6]);\n\t\tSystem.out.println(\"h : \"+alp[7]);\n\t\tSystem.out.println(\"i : \"+alp[8]);\n\t\tSystem.out.println(\"j : \"+alp[9]);\n\t\tSystem.out.println(\"k : \"+alp[10]);\n\t\tSystem.out.println(\"l : \"+alp[11]);\n\t\tSystem.out.println(\"m : \"+alp[12]);\n\t\tSystem.out.println(\"n : \"+alp[13]);\n\t\tSystem.out.println(\"o : \"+alp[14]);\n\t\tSystem.out.println(\"p : \"+alp[15]);\n\t\tSystem.out.println(\"q : \"+alp[16]);\n\t\tSystem.out.println(\"r : \"+alp[17]);\n\t\tSystem.out.println(\"s : \"+alp[18]);\n\t\tSystem.out.println(\"t : \"+alp[19]);\n\t\tSystem.out.println(\"u : \"+alp[20]);\n\t\tSystem.out.println(\"v : \"+alp[21]);\n\t\tSystem.out.println(\"w : \"+alp[22]);\n\t\tSystem.out.println(\"x : \"+alp[23]);\n\t\tSystem.out.println(\"y : \"+alp[24]);\n\t\tSystem.out.println(\"z : \"+alp[25]);\n\t}//Alphabet????????????\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main{
public static void main(String[] args){
BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
String[] s_array;
String s;
StringBuffer buf=new StringBuffer();
try{
while(true){
s=reader.readLine();
if(s==null)break;
buf.append(s);
}
s_array=buf.toString().split("");
Alphabet(s_array);
}catch(IOException e){
System.out.println(e);
}
}
//?????????????????????????????§1????????????????????????????????????????????£??\??????
private static void Alphabet(String[] s_array){
int[] alp=new int[26];
Arrays.fill(alp, 0);
for(int i=0;i<s_array.length;i++){
s_array[i]=s_array[i].toLowerCase();
switch(s_array[i]){
case("a"):
alp[0]+=1;break;
case("b"):
alp[1]+=1;break;
case("c"):
alp[2]+=1;break;
case("d"):
alp[3]+=1;break;
case("e"):
alp[4]+=1;break;
case("f"):
alp[5]+=1;break;
case("g"):
alp[6]+=1;break;
case("h"):
alp[7]+=1;break;
case("i"):
alp[8]+=1;break;
case("j"):
alp[9]+=1;break;
case("k"):
alp[10]+=1;break;
case("l"):
alp[11]+=1;break;
case("m"):
alp[12]+=1;break;
case("n"):
alp[13]+=1;break;
case("o"):
alp[14]+=1;break;
case("p"):
alp[15]+=1;break;
case("q"):
alp[16]+=1;break;
case("r"):
alp[17]+=1;break;
case("s"):
alp[18]+=1;break;
case("t"):
alp[19]+=1;break;
case("u"):
alp[20]+=1;break;
case("v"):
alp[21]+=1;break;
case("w"):
alp[22]+=1;break;
case("x"):
alp[23]+=1;break;
case("y"):
alp[24]+=1;break;
case("z"):
alp[25]+=1;break;
default:break;
}//switch
}//for
System.out.println("a : "+alp[0]);
System.out.println("b : "+alp[1]);
System.out.println("c : "+alp[2]);
System.out.println("d : "+alp[3]);
System.out.println("e : "+alp[4]);
System.out.println("f : "+alp[5]);
System.out.println("g : "+alp[6]);
System.out.println("h : "+alp[7]);
System.out.println("i : "+alp[8]);
System.out.println("j : "+alp[9]);
System.out.println("k : "+alp[10]);
System.out.println("l : "+alp[11]);
System.out.println("m : "+alp[12]);
System.out.println("n : "+alp[13]);
System.out.println("o : "+alp[14]);
System.out.println("p : "+alp[15]);
System.out.println("q : "+alp[16]);
System.out.println("r : "+alp[17]);
System.out.println("s : "+alp[18]);
System.out.println("t : "+alp[19]);
System.out.println("u : "+alp[20]);
System.out.println("v : "+alp[21]);
System.out.println("w : "+alp[22]);
System.out.println("x : "+alp[23]);
System.out.println("y : "+alp[24]);
System.out.println("z : "+alp[25]);
}//Alphabet????????????
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
41,
13,
20,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
4,
18,
13,
17,
30,
3,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
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
],
[
166,
11
],
[
166,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
17,
19
],
[
17,
20
],
[
17,
21
],
[
17,
22
],
[
17,
23
],
[
17,
24
],
[
17,
25
],
[
17,
26
],
[
17,
27
],
[
17,
28
],
[
17,
29
],
[
17,
30
],
[
17,
31
],
[
17,
32
],
[
17,
33
],
[
17,
34
],
[
17,
35
],
[
17,
36
],
[
17,
37
],
[
17,
38
],
[
17,
39
],
[
17,
40
],
[
17,
41
],
[
17,
42
],
[
17,
43
],
[
14,
44
],
[
44,
45
],
[
44,
46
],
[
14,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
48,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
58,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
66,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
74,
79
],
[
79,
80
],
[
73,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
73,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
73,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
91,
101
],
[
101,
102
],
[
102,
103
],
[
91,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
106,
116
],
[
116,
117
],
[
117,
118
],
[
106,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
58,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
141,
143
],
[
134,
144
],
[
144,
145
],
[
145,
146
],
[
134,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
155,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
155,
160
],
[
160,
161
],
[
160,
162
],
[
12,
163
],
[
163,
164
],
[
0,
165
],
[
165,
166
],
[
165,
167
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n/**\n * Lesson8C 与えられた英文に含まれる、各アルファベットの数を数えるプログラム\n * なお、小文字と大文字は区別しない\n *\n * @author Internship\n *\n */\npublic class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//a ~zのパターン\n\t\tchar[] chaAZ = {'a','b','c','d','e','f',\n\t\t\t\t'g','h','i','j','k','l','m','n',\n\t\t\t\t'o','p','q','r','s','t',\n\t\t\t\t'u','v','w','x','y','z'};\n\n\t\t//a?zのパターンが各何回あるかカウントする場所\n\t\tint[] intAZ = new int[26];\n\n\t\t//各行読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = \"a\";\n\t\t\twhile((strLine = insBR.readLine())!=null){\n\n\t\t\tif(strLine.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t//char型に分解\n\t\t\tchar[] chaAryLine = strLine.toCharArray();\n\n\t\t\t//各a?z何回あるかカウント\n\t\t\tfor(int i = 0; i < chaAryLine.length; i++) {\n\t\t\t\tfor(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intAZ.length; i++) {\n\t\t\t\tSystem.out.println(chaAZ[i] + \" : \" + intAZ[i]);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//a ~zのパターン\n\t\tchar[] chaAZ = {'a','b','c','d','e','f',\n\t\t\t\t'g','h','i','j','k','l','m','n',\n\t\t\t\t'o','p','q','r','s','t',\n\t\t\t\t'u','v','w','x','y','z'};\n\n\t\t//a?zのパターンが各何回あるかカウントする場所\n\t\tint[] intAZ = new int[26];\n\n\t\t//各行読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = \"a\";\n\t\t\twhile((strLine = insBR.readLine())!=null){\n\n\t\t\tif(strLine.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t//char型に分解\n\t\t\tchar[] chaAryLine = strLine.toCharArray();\n\n\t\t\t//各a?z何回あるかカウント\n\t\t\tfor(int i = 0; i < chaAryLine.length; i++) {\n\t\t\t\tfor(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intAZ.length; i++) {\n\t\t\t\tSystem.out.println(chaAZ[i] + \" : \" + intAZ[i]);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n}",
"Main",
"/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//a ~zのパターン\n\t\tchar[] chaAZ = {'a','b','c','d','e','f',\n\t\t\t\t'g','h','i','j','k','l','m','n',\n\t\t\t\t'o','p','q','r','s','t',\n\t\t\t\t'u','v','w','x','y','z'};\n\n\t\t//a?zのパターンが各何回あるかカウントする場所\n\t\tint[] intAZ = new int[26];\n\n\t\t//各行読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = \"a\";\n\t\t\twhile((strLine = insBR.readLine())!=null){\n\n\t\t\tif(strLine.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t//char型に分解\n\t\t\tchar[] chaAryLine = strLine.toCharArray();\n\n\t\t\t//各a?z何回あるかカウント\n\t\t\tfor(int i = 0; i < chaAryLine.length; i++) {\n\t\t\t\tfor(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intAZ.length; i++) {\n\t\t\t\tSystem.out.println(chaAZ[i] + \" : \" + intAZ[i]);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}",
"main",
"{\n\n\t\t//a ~zのパターン\n\t\tchar[] chaAZ = {'a','b','c','d','e','f',\n\t\t\t\t'g','h','i','j','k','l','m','n',\n\t\t\t\t'o','p','q','r','s','t',\n\t\t\t\t'u','v','w','x','y','z'};\n\n\t\t//a?zのパターンが各何回あるかカウントする場所\n\t\tint[] intAZ = new int[26];\n\n\t\t//各行読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = \"a\";\n\t\t\twhile((strLine = insBR.readLine())!=null){\n\n\t\t\tif(strLine.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t//char型に分解\n\t\t\tchar[] chaAryLine = strLine.toCharArray();\n\n\t\t\t//各a?z何回あるかカウント\n\t\t\tfor(int i = 0; i < chaAryLine.length; i++) {\n\t\t\t\tfor(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intAZ.length; i++) {\n\t\t\t\tSystem.out.println(chaAZ[i] + \" : \" + intAZ[i]);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}",
"char[] chaAZ = {'a','b','c','d','e','f',\n\t\t\t\t'g','h','i','j','k','l','m','n',\n\t\t\t\t'o','p','q','r','s','t',\n\t\t\t\t'u','v','w','x','y','z'};",
"chaAZ",
"{'a','b','c','d','e','f',\n\t\t\t\t'g','h','i','j','k','l','m','n',\n\t\t\t\t'o','p','q','r','s','t',\n\t\t\t\t'u','v','w','x','y','z'}",
"'a'",
"'b'",
"'c'",
"'d'",
"'e'",
"'f'",
"'g'",
"'h'",
"'i'",
"'j'",
"'k'",
"'l'",
"'m'",
"'n'",
"'o'",
"'p'",
"'q'",
"'r'",
"'s'",
"'t'",
"'u'",
"'v'",
"'w'",
"'x'",
"'y'",
"'z'",
"int[] intAZ = new int[26];",
"intAZ",
"new int[26]",
"26",
"try {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = \"a\";\n\t\t\twhile((strLine = insBR.readLine())!=null){\n\n\t\t\tif(strLine.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t//char型に分解\n\t\t\tchar[] chaAryLine = strLine.toCharArray();\n\n\t\t\t//各a?z何回あるかカウント\n\t\t\tfor(int i = 0; i < chaAryLine.length; i++) {\n\t\t\t\tfor(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intAZ.length; i++) {\n\t\t\t\tSystem.out.println(chaAZ[i] + \" : \" + intAZ[i]);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"IOException 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\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = \"a\";\n\t\t\twhile((strLine = insBR.readLine())!=null){\n\n\t\t\tif(strLine.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t//char型に分解\n\t\t\tchar[] chaAryLine = strLine.toCharArray();\n\n\t\t\t//各a?z何回あるかカウント\n\t\t\tfor(int i = 0; i < chaAryLine.length; i++) {\n\t\t\t\tfor(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intAZ.length; i++) {\n\t\t\t\tSystem.out.println(chaAZ[i] + \" : \" + intAZ[i]);\n\t\t\t}\n\n\t\t}",
"BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));",
"insBR",
"new BufferedReader(new InputStreamReader(System.in))",
"String strLine = \"a\";",
"strLine",
"\"a\"",
"while((strLine = insBR.readLine())!=null){\n\n\t\t\tif(strLine.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t//char型に分解\n\t\t\tchar[] chaAryLine = strLine.toCharArray();\n\n\t\t\t//各a?z何回あるかカウント\n\t\t\tfor(int i = 0; i < chaAryLine.length; i++) {\n\t\t\t\tfor(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}",
"(strLine = insBR.readLine())!=null",
"(strLine = insBR.readLine())",
"strLine",
"insBR.readLine()",
"insBR.readLine",
"insBR",
"null",
"{\n\n\t\t\tif(strLine.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t//char型に分解\n\t\t\tchar[] chaAryLine = strLine.toCharArray();\n\n\t\t\t//各a?z何回あるかカウント\n\t\t\tfor(int i = 0; i < chaAryLine.length; i++) {\n\t\t\t\tfor(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}",
"if(strLine.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}",
"strLine.equals(\"\")",
"strLine.equals",
"strLine",
"\"\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"strLine = strLine.toLowerCase()",
"strLine",
"strLine.toLowerCase()",
"strLine.toLowerCase",
"strLine",
"char[] chaAryLine = strLine.toCharArray();",
"chaAryLine",
"strLine.toCharArray()",
"strLine.toCharArray",
"strLine",
"for(int i = 0; i < chaAryLine.length; i++) {\n\t\t\t\tfor(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < chaAryLine.length",
"i",
"chaAryLine.length",
"chaAryLine",
"chaAryLine.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < intAZ.length",
"j",
"intAZ.length",
"intAZ",
"intAZ.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}",
"chaAryLine[i] == chaAZ[j]",
"chaAryLine[i]",
"chaAryLine",
"i",
"chaAZ[j]",
"chaAZ",
"j",
"{\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}",
"intAZ[j]++",
"intAZ[j]",
"intAZ",
"j",
"for(int i = 0; i < intAZ.length; i++) {\n\t\t\t\tSystem.out.println(chaAZ[i] + \" : \" + intAZ[i]);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intAZ.length",
"i",
"intAZ.length",
"intAZ",
"intAZ.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.println(chaAZ[i] + \" : \" + intAZ[i]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(chaAZ[i] + \" : \" + intAZ[i]);\n\t\t\t}",
"System.out.println(chaAZ[i] + \" : \" + intAZ[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"chaAZ[i] + \" : \" + intAZ[i]",
"chaAZ[i] + \" : \" + intAZ[i]",
"chaAZ[i]",
"chaAZ",
"i",
"\" : \"",
"intAZ[i]",
"intAZ",
"i",
"String[] args",
"args",
"public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//a ~zのパターン\n\t\tchar[] chaAZ = {'a','b','c','d','e','f',\n\t\t\t\t'g','h','i','j','k','l','m','n',\n\t\t\t\t'o','p','q','r','s','t',\n\t\t\t\t'u','v','w','x','y','z'};\n\n\t\t//a?zのパターンが各何回あるかカウントする場所\n\t\tint[] intAZ = new int[26];\n\n\t\t//各行読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = \"a\";\n\t\t\twhile((strLine = insBR.readLine())!=null){\n\n\t\t\tif(strLine.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t//char型に分解\n\t\t\tchar[] chaAryLine = strLine.toCharArray();\n\n\t\t\t//各a?z何回あるかカウント\n\t\t\tfor(int i = 0; i < chaAryLine.length; i++) {\n\t\t\t\tfor(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intAZ.length; i++) {\n\t\t\t\tSystem.out.println(chaAZ[i] + \" : \" + intAZ[i]);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n}",
"public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//a ~zのパターン\n\t\tchar[] chaAZ = {'a','b','c','d','e','f',\n\t\t\t\t'g','h','i','j','k','l','m','n',\n\t\t\t\t'o','p','q','r','s','t',\n\t\t\t\t'u','v','w','x','y','z'};\n\n\t\t//a?zのパターンが各何回あるかカウントする場所\n\t\tint[] intAZ = new int[26];\n\n\t\t//各行読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = \"a\";\n\t\t\twhile((strLine = insBR.readLine())!=null){\n\n\t\t\tif(strLine.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t//char型に分解\n\t\t\tchar[] chaAryLine = strLine.toCharArray();\n\n\t\t\t//各a?z何回あるかカウント\n\t\t\tfor(int i = 0; i < chaAryLine.length; i++) {\n\t\t\t\tfor(int j = 0; j < intAZ.length; j++) {\n\t\t\t\t\tif(chaAryLine[i] == chaAZ[j]) {\n\t\t\t\t\t\tintAZ[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intAZ.length; i++) {\n\t\t\t\tSystem.out.println(chaAZ[i] + \" : \" + intAZ[i]);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* Lesson8C 与えられた英文に含まれる、各アルファベットの数を数えるプログラム
* なお、小文字と大文字は区別しない
*
* @author Internship
*
*/
public class Main{
/**
* プログラムのエントリポイント
*
* @param args
*/
public static void main(String[] args) {
//a ~zのパターン
char[] chaAZ = {'a','b','c','d','e','f',
'g','h','i','j','k','l','m','n',
'o','p','q','r','s','t',
'u','v','w','x','y','z'};
//a?zのパターンが各何回あるかカウントする場所
int[] intAZ = new int[26];
//各行読み込む
try {
BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));
String strLine = "a";
while((strLine = insBR.readLine())!=null){
if(strLine.equals("")) {
break;
}
//大文字は小文字にしておく
strLine = strLine.toLowerCase();
//char型に分解
char[] chaAryLine = strLine.toCharArray();
//各a?z何回あるかカウント
for(int i = 0; i < chaAryLine.length; i++) {
for(int j = 0; j < intAZ.length; j++) {
if(chaAryLine[i] == chaAZ[j]) {
intAZ[j]++;
}
}
}
}
//出力
for(int i = 0; i < intAZ.length; i++) {
System.out.println(chaAZ[i] + " : " + intAZ[i]);
}
} catch (IOException e) {
System.out.println(e);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
4,
18,
13,
17,
17,
0,
13,
4,
18,
13,
17,
17,
0,
13,
4,
18,
13,
17,
17,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
4,
18,
13,
13,
17,
17,
2,
2,
4,
18,
13,
13,
17,
17,
40,
18,
13,
2,
4,
18,
13,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
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
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
46,
51
],
[
46,
52
],
[
43,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
43,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
43,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
43,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
89,
96
],
[
88,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
98,
103
],
[
97,
104
],
[
87,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
108,
113
],
[
8,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
114,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
133,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
6,
141
],
[
141,
142
]
]
| [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str;\n int i,num;\n int[] count = new int[26];\n for(i=0;i<26;i++) count[i] = 0;\n while(sc.hasNext()){\n str = sc.nextLine().replace(\" \",\"\");\n str = str.replace(\".\",\"\");\n str = str.replace(\"\\n\",\"\");\n str = str.toLowerCase();\n for(i=0;i<str.length();i++){\n if(str.charAt(i)-97>=0&&str.charAt(i)-97<26) count[(int)str.charAt(i)-97]++;\n }\n }\n for(i=0;i<26;i++){\n System.out.println((char)('a'+i) + \" : \" + count[i]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str;\n int i,num;\n int[] count = new int[26];\n for(i=0;i<26;i++) count[i] = 0;\n while(sc.hasNext()){\n str = sc.nextLine().replace(\" \",\"\");\n str = str.replace(\".\",\"\");\n str = str.replace(\"\\n\",\"\");\n str = str.toLowerCase();\n for(i=0;i<str.length();i++){\n if(str.charAt(i)-97>=0&&str.charAt(i)-97<26) count[(int)str.charAt(i)-97]++;\n }\n }\n for(i=0;i<26;i++){\n System.out.println((char)('a'+i) + \" : \" + count[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str;\n int i,num;\n int[] count = new int[26];\n for(i=0;i<26;i++) count[i] = 0;\n while(sc.hasNext()){\n str = sc.nextLine().replace(\" \",\"\");\n str = str.replace(\".\",\"\");\n str = str.replace(\"\\n\",\"\");\n str = str.toLowerCase();\n for(i=0;i<str.length();i++){\n if(str.charAt(i)-97>=0&&str.charAt(i)-97<26) count[(int)str.charAt(i)-97]++;\n }\n }\n for(i=0;i<26;i++){\n System.out.println((char)('a'+i) + \" : \" + count[i]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String str;\n int i,num;\n int[] count = new int[26];\n for(i=0;i<26;i++) count[i] = 0;\n while(sc.hasNext()){\n str = sc.nextLine().replace(\" \",\"\");\n str = str.replace(\".\",\"\");\n str = str.replace(\"\\n\",\"\");\n str = str.toLowerCase();\n for(i=0;i<str.length();i++){\n if(str.charAt(i)-97>=0&&str.charAt(i)-97<26) count[(int)str.charAt(i)-97]++;\n }\n }\n for(i=0;i<26;i++){\n System.out.println((char)('a'+i) + \" : \" + count[i]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str;",
"str",
"int i",
"i",
"num;",
"num",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"for(i=0;i<26;i++) count[i] = 0;",
"i=0;",
"i=0",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"count[i] = 0;",
"count[i] = 0",
"count[i]",
"count",
"i",
"0",
"while(sc.hasNext()){\n str = sc.nextLine().replace(\" \",\"\");\n str = str.replace(\".\",\"\");\n str = str.replace(\"\\n\",\"\");\n str = str.toLowerCase();\n for(i=0;i<str.length();i++){\n if(str.charAt(i)-97>=0&&str.charAt(i)-97<26) count[(int)str.charAt(i)-97]++;\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n str = sc.nextLine().replace(\" \",\"\");\n str = str.replace(\".\",\"\");\n str = str.replace(\"\\n\",\"\");\n str = str.toLowerCase();\n for(i=0;i<str.length();i++){\n if(str.charAt(i)-97>=0&&str.charAt(i)-97<26) count[(int)str.charAt(i)-97]++;\n }\n }",
"str = sc.nextLine().replace(\" \",\"\")",
"str",
"sc.nextLine().replace(\" \",\"\")",
"sc.nextLine().replace",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"\"\"",
"str = str.replace(\".\",\"\")",
"str",
"str.replace(\".\",\"\")",
"str.replace",
"str",
"\".\"",
"\"\"",
"str = str.replace(\"\\n\",\"\")",
"str",
"str.replace(\"\\n\",\"\")",
"str.replace",
"str",
"\"\\n\"",
"\"\"",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"for(i=0;i<str.length();i++){\n if(str.charAt(i)-97>=0&&str.charAt(i)-97<26) count[(int)str.charAt(i)-97]++;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n if(str.charAt(i)-97>=0&&str.charAt(i)-97<26) count[(int)str.charAt(i)-97]++;\n }",
"{\n if(str.charAt(i)-97>=0&&str.charAt(i)-97<26) count[(int)str.charAt(i)-97]++;\n }",
"if(str.charAt(i)-97>=0&&str.charAt(i)-97<26) count[(int)str.charAt(i)-97]++;",
"str.charAt(i)-97>=0&&str.charAt(i)-97<26",
"str.charAt(i)-97>=0",
"str.charAt(i)-97",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"97",
"0",
"str.charAt(i)-97<26",
"str.charAt(i)-97",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"97",
"26",
"count[(int)str.charAt(i)-97]++",
"count[(int)str.charAt(i)-97]",
"count",
"(int)str.charAt(i)-97",
"(int)str.charAt(i)",
"str.charAt",
"str",
"i",
"97",
"for(i=0;i<26;i++){\n System.out.println((char)('a'+i) + \" : \" + count[i]);\n }",
"i=0;",
"i=0",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println((char)('a'+i) + \" : \" + count[i]);\n }",
"{\n System.out.println((char)('a'+i) + \" : \" + count[i]);\n }",
"System.out.println((char)('a'+i) + \" : \" + count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)('a'+i) + \" : \" + count[i]",
"(char)('a'+i) + \" : \" + count[i]",
"(char)('a'+i)",
"'a'",
"i",
"\" : \"",
"count[i]",
"count",
"i",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str;
int i,num;
int[] count = new int[26];
for(i=0;i<26;i++) count[i] = 0;
while(sc.hasNext()){
str = sc.nextLine().replace(" ","");
str = str.replace(".","");
str = str.replace("\n","");
str = str.toLowerCase();
for(i=0;i<str.length();i++){
if(str.charAt(i)-97>=0&&str.charAt(i)-97<26) count[(int)str.charAt(i)-97]++;
}
}
for(i=0;i<26;i++){
System.out.println((char)('a'+i) + " : " + count[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
18,
13,
13,
30,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
139,
5
],
[
139,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
8,
10
],
[
8,
11
],
[
8,
12
],
[
8,
13
],
[
8,
14
],
[
8,
15
],
[
8,
16
],
[
8,
17
],
[
8,
18
],
[
8,
19
],
[
8,
20
],
[
8,
21
],
[
8,
22
],
[
8,
23
],
[
8,
24
],
[
8,
25
],
[
8,
26
],
[
8,
27
],
[
8,
28
],
[
8,
29
],
[
8,
30
],
[
8,
31
],
[
8,
32
],
[
8,
33
],
[
8,
34
],
[
139,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
37,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
37,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
37,
59
],
[
59,
60
],
[
59,
61
],
[
62,
63
],
[
62,
64
],
[
37,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
65,
75
],
[
75,
76
],
[
76,
77
],
[
65,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
80,
90
],
[
90,
91
],
[
91,
92
],
[
80,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
95,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
37,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
109,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
35,
136
],
[
136,
137
],
[
0,
138
],
[
138,
139
],
[
138,
140
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\t\n\tstatic char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = \"\";\n\t\twhile(stdIn.hasNext()) {\n\t\ts += stdIn.nextLine();\n\t\t}\n\t\ts = s.toLowerCase();\n\t\tint[] ans = new int[k.length];\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tfor(int j = 0; j < k.length; j++) {\n\t\t\t\tif(s.charAt(i) == k[j]) {\n\t\t\t\t\tans[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(k[i]+\" : \" + ans[i]);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\tstatic char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = \"\";\n\t\twhile(stdIn.hasNext()) {\n\t\ts += stdIn.nextLine();\n\t\t}\n\t\ts = s.toLowerCase();\n\t\tint[] ans = new int[k.length];\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tfor(int j = 0; j < k.length; j++) {\n\t\t\t\tif(s.charAt(i) == k[j]) {\n\t\t\t\t\tans[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(k[i]+\" : \" + ans[i]);\n\t\t}\n\t}\n}",
"Main",
"static char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};",
"k",
"{'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}",
"'a'",
"'b'",
"'c'",
"'d'",
"'e'",
"'f'",
"'g'",
"'h'",
"'i'",
"'j'",
"'k'",
"'l'",
"'m'",
"'n'",
"'o'",
"'p'",
"'q'",
"'r'",
"'s'",
"'t'",
"'u'",
"'v'",
"'w'",
"'x'",
"'y'",
"'z'",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = \"\";\n\t\twhile(stdIn.hasNext()) {\n\t\ts += stdIn.nextLine();\n\t\t}\n\t\ts = s.toLowerCase();\n\t\tint[] ans = new int[k.length];\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tfor(int j = 0; j < k.length; j++) {\n\t\t\t\tif(s.charAt(i) == k[j]) {\n\t\t\t\t\tans[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(k[i]+\" : \" + ans[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = \"\";\n\t\twhile(stdIn.hasNext()) {\n\t\ts += stdIn.nextLine();\n\t\t}\n\t\ts = s.toLowerCase();\n\t\tint[] ans = new int[k.length];\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tfor(int j = 0; j < k.length; j++) {\n\t\t\t\tif(s.charAt(i) == k[j]) {\n\t\t\t\t\tans[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(k[i]+\" : \" + ans[i]);\n\t\t}\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"String s = \"\";",
"s",
"\"\"",
"while(stdIn.hasNext()) {\n\t\ts += stdIn.nextLine();\n\t\t}",
"stdIn.hasNext()",
"stdIn.hasNext",
"stdIn",
"{\n\t\ts += stdIn.nextLine();\n\t\t}",
"s += stdIn.nextLine()",
"s",
"stdIn.nextLine()",
"stdIn.nextLine",
"stdIn",
"s = s.toLowerCase()",
"s",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"int[] ans = new int[k.length];",
"ans",
"new int[k.length]",
"k.length",
"k",
"k.length",
"for(int i = 0; i < s.length(); i++) {\n\t\t\tfor(int j = 0; j < k.length; j++) {\n\t\t\t\tif(s.charAt(i) == k[j]) {\n\t\t\t\t\tans[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < k.length; j++) {\n\t\t\t\tif(s.charAt(i) == k[j]) {\n\t\t\t\t\tans[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < k.length; j++) {\n\t\t\t\tif(s.charAt(i) == k[j]) {\n\t\t\t\t\tans[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0; j < k.length; j++) {\n\t\t\t\tif(s.charAt(i) == k[j]) {\n\t\t\t\t\tans[j]++;\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < k.length",
"j",
"k.length",
"k",
"k.length",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(s.charAt(i) == k[j]) {\n\t\t\t\t\tans[j]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(s.charAt(i) == k[j]) {\n\t\t\t\t\tans[j]++;\n\t\t\t\t}\n\t\t\t}",
"if(s.charAt(i) == k[j]) {\n\t\t\t\t\tans[j]++;\n\t\t\t\t}",
"s.charAt(i) == k[j]",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"k[j]",
"k",
"j",
"{\n\t\t\t\t\tans[j]++;\n\t\t\t\t}",
"ans[j]++",
"ans[j]",
"ans",
"j",
"for(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(k[i]+\" : \" + ans[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(k[i]+\" : \" + ans[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(k[i]+\" : \" + ans[i]);\n\t\t}",
"System.out.println(k[i]+\" : \" + ans[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"k[i]+\" : \" + ans[i]",
"k[i]+\" : \" + ans[i]",
"k[i]",
"k",
"i",
"\" : \"",
"ans[i]",
"ans",
"i",
"String[] args",
"args",
"public class Main {\n\t\n\tstatic char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = \"\";\n\t\twhile(stdIn.hasNext()) {\n\t\ts += stdIn.nextLine();\n\t\t}\n\t\ts = s.toLowerCase();\n\t\tint[] ans = new int[k.length];\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tfor(int j = 0; j < k.length; j++) {\n\t\t\t\tif(s.charAt(i) == k[j]) {\n\t\t\t\t\tans[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(k[i]+\" : \" + ans[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\t\n\tstatic char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = \"\";\n\t\twhile(stdIn.hasNext()) {\n\t\ts += stdIn.nextLine();\n\t\t}\n\t\ts = s.toLowerCase();\n\t\tint[] ans = new int[k.length];\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tfor(int j = 0; j < k.length; j++) {\n\t\t\t\tif(s.charAt(i) == k[j]) {\n\t\t\t\t\tans[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(k[i]+\" : \" + ans[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
String s = "";
while(stdIn.hasNext()) {
s += stdIn.nextLine();
}
s = s.toLowerCase();
int[] ans = new int[k.length];
for(int i = 0; i < s.length(); i++) {
for(int j = 0; j < k.length; j++) {
if(s.charAt(i) == k[j]) {
ans[j]++;
}
}
}
for(int i = 0; i < 26; i++) {
System.out.println(k[i]+" : " + ans[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
11,
1,
0,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
2,
17,
13,
2,
13,
17,
40,
18,
13,
2,
13,
17,
14,
2,
2,
17,
13,
2,
13,
17,
40,
18,
13,
2,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
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
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
13,
18
],
[
18,
19
],
[
18,
20
],
[
9,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
21,
27
],
[
27,
28
],
[
27,
29
],
[
21,
31
],
[
31,
32
],
[
21,
33
],
[
33,
34
],
[
21,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
21,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
54,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
62,
72
],
[
72,
73
],
[
73,
74
],
[
62,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
76,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
76,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
21,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
123,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
135,
135
],
[
135,
136
],
[
135,
137
],
[
135,
138
],
[
138,
139
],
[
138,
140
],
[
6,
141
],
[
141,
142
]
]
| [
"import java.io.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\tint cnt[] = new int[26];\n\t\t\tint i;\n\t\t\tchar c;\n\t\t\tfor( i=0; i<26; i++ ){\n\t\t\t\tcnt[i] = 0;\n\t\t\t}\n\t\t\twhile((str = br.readLine())!=null){\n\t\t\t\tfor( i=0; i<str.length(); i++ ){\n\t\t\t\t\tc = str.charAt(i);\n\t\t\t\t\tif('A'<=c && c<='Z') cnt[c-'A']++;\n\t\t\t\t\tif('a'<=c && c<='z') cnt[c-'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( i=0; i<26; i++ ){\n\t\t\t\tc = (char)('a' + i);\n\t\t\t\tSystem.out.println( c + \" : \" + cnt[i] );\n\t\t\t}\n\t\t} catch(IOException e){\n\t\t\tSystem.out.println(\"Exception :\" + e);\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main{\n\tpublic static void main(String[] args){\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\tint cnt[] = new int[26];\n\t\t\tint i;\n\t\t\tchar c;\n\t\t\tfor( i=0; i<26; i++ ){\n\t\t\t\tcnt[i] = 0;\n\t\t\t}\n\t\t\twhile((str = br.readLine())!=null){\n\t\t\t\tfor( i=0; i<str.length(); i++ ){\n\t\t\t\t\tc = str.charAt(i);\n\t\t\t\t\tif('A'<=c && c<='Z') cnt[c-'A']++;\n\t\t\t\t\tif('a'<=c && c<='z') cnt[c-'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( i=0; i<26; i++ ){\n\t\t\t\tc = (char)('a' + i);\n\t\t\t\tSystem.out.println( c + \" : \" + cnt[i] );\n\t\t\t}\n\t\t} catch(IOException e){\n\t\t\tSystem.out.println(\"Exception :\" + e);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\tint cnt[] = new int[26];\n\t\t\tint i;\n\t\t\tchar c;\n\t\t\tfor( i=0; i<26; i++ ){\n\t\t\t\tcnt[i] = 0;\n\t\t\t}\n\t\t\twhile((str = br.readLine())!=null){\n\t\t\t\tfor( i=0; i<str.length(); i++ ){\n\t\t\t\t\tc = str.charAt(i);\n\t\t\t\t\tif('A'<=c && c<='Z') cnt[c-'A']++;\n\t\t\t\t\tif('a'<=c && c<='z') cnt[c-'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( i=0; i<26; i++ ){\n\t\t\t\tc = (char)('a' + i);\n\t\t\t\tSystem.out.println( c + \" : \" + cnt[i] );\n\t\t\t}\n\t\t} catch(IOException e){\n\t\t\tSystem.out.println(\"Exception :\" + e);\n\t\t}\n\t}",
"main",
"{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\tint cnt[] = new int[26];\n\t\t\tint i;\n\t\t\tchar c;\n\t\t\tfor( i=0; i<26; i++ ){\n\t\t\t\tcnt[i] = 0;\n\t\t\t}\n\t\t\twhile((str = br.readLine())!=null){\n\t\t\t\tfor( i=0; i<str.length(); i++ ){\n\t\t\t\t\tc = str.charAt(i);\n\t\t\t\t\tif('A'<=c && c<='Z') cnt[c-'A']++;\n\t\t\t\t\tif('a'<=c && c<='z') cnt[c-'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( i=0; i<26; i++ ){\n\t\t\t\tc = (char)('a' + i);\n\t\t\t\tSystem.out.println( c + \" : \" + cnt[i] );\n\t\t\t}\n\t\t} catch(IOException e){\n\t\t\tSystem.out.println(\"Exception :\" + e);\n\t\t}\n\t}",
"try{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\tint cnt[] = new int[26];\n\t\t\tint i;\n\t\t\tchar c;\n\t\t\tfor( i=0; i<26; i++ ){\n\t\t\t\tcnt[i] = 0;\n\t\t\t}\n\t\t\twhile((str = br.readLine())!=null){\n\t\t\t\tfor( i=0; i<str.length(); i++ ){\n\t\t\t\t\tc = str.charAt(i);\n\t\t\t\t\tif('A'<=c && c<='Z') cnt[c-'A']++;\n\t\t\t\t\tif('a'<=c && c<='z') cnt[c-'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( i=0; i<26; i++ ){\n\t\t\t\tc = (char)('a' + i);\n\t\t\t\tSystem.out.println( c + \" : \" + cnt[i] );\n\t\t\t}\n\t\t} catch(IOException e){\n\t\t\tSystem.out.println(\"Exception :\" + e);\n\t\t}",
"catch(IOException e){\n\t\t\tSystem.out.println(\"Exception :\" + e);\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.println(\"Exception :\" + e);\n\t\t}",
"System.out.println(\"Exception :\" + e)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Exception :\" + e",
"\"Exception :\"",
"e",
"{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\tint cnt[] = new int[26];\n\t\t\tint i;\n\t\t\tchar c;\n\t\t\tfor( i=0; i<26; i++ ){\n\t\t\t\tcnt[i] = 0;\n\t\t\t}\n\t\t\twhile((str = br.readLine())!=null){\n\t\t\t\tfor( i=0; i<str.length(); i++ ){\n\t\t\t\t\tc = str.charAt(i);\n\t\t\t\t\tif('A'<=c && c<='Z') cnt[c-'A']++;\n\t\t\t\t\tif('a'<=c && c<='z') cnt[c-'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( i=0; i<26; i++ ){\n\t\t\t\tc = (char)('a' + i);\n\t\t\t\tSystem.out.println( c + \" : \" + cnt[i] );\n\t\t\t}\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"int cnt[] = new int[26];",
"cnt",
"new int[26]",
"26",
"int i;",
"i",
"char c;",
"c",
"for( i=0; i<26; i++ ){\n\t\t\t\tcnt[i] = 0;\n\t\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\t\tcnt[i] = 0;\n\t\t\t}",
"{\n\t\t\t\tcnt[i] = 0;\n\t\t\t}",
"cnt[i] = 0",
"cnt[i]",
"cnt",
"i",
"0",
"while((str = br.readLine())!=null){\n\t\t\t\tfor( i=0; i<str.length(); i++ ){\n\t\t\t\t\tc = str.charAt(i);\n\t\t\t\t\tif('A'<=c && c<='Z') cnt[c-'A']++;\n\t\t\t\t\tif('a'<=c && c<='z') cnt[c-'a']++;\n\t\t\t\t}\n\t\t\t}",
"(str = br.readLine())!=null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\t\tfor( i=0; i<str.length(); i++ ){\n\t\t\t\t\tc = str.charAt(i);\n\t\t\t\t\tif('A'<=c && c<='Z') cnt[c-'A']++;\n\t\t\t\t\tif('a'<=c && c<='z') cnt[c-'a']++;\n\t\t\t\t}\n\t\t\t}",
"for( i=0; i<str.length(); i++ ){\n\t\t\t\t\tc = str.charAt(i);\n\t\t\t\t\tif('A'<=c && c<='Z') cnt[c-'A']++;\n\t\t\t\t\tif('a'<=c && c<='z') cnt[c-'a']++;\n\t\t\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tc = str.charAt(i);\n\t\t\t\t\tif('A'<=c && c<='Z') cnt[c-'A']++;\n\t\t\t\t\tif('a'<=c && c<='z') cnt[c-'a']++;\n\t\t\t\t}",
"{\n\t\t\t\t\tc = str.charAt(i);\n\t\t\t\t\tif('A'<=c && c<='Z') cnt[c-'A']++;\n\t\t\t\t\tif('a'<=c && c<='z') cnt[c-'a']++;\n\t\t\t\t}",
"c = str.charAt(i)",
"c",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if('A'<=c && c<='Z') cnt[c-'A']++;",
"'A'<=c && c<='Z'",
"'A'<=c",
"'A'",
"c",
"c<='Z'",
"c",
"'Z'",
"cnt[c-'A']++",
"cnt[c-'A']",
"cnt",
"c-'A'",
"c",
"'A'",
"if('a'<=c && c<='z') cnt[c-'a']++;",
"'a'<=c && c<='z'",
"'a'<=c",
"'a'",
"c",
"c<='z'",
"c",
"'z'",
"cnt[c-'a']++",
"cnt[c-'a']",
"cnt",
"c-'a'",
"c",
"'a'",
"for( i=0; i<26; i++ ){\n\t\t\t\tc = (char)('a' + i);\n\t\t\t\tSystem.out.println( c + \" : \" + cnt[i] );\n\t\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\t\tc = (char)('a' + i);\n\t\t\t\tSystem.out.println( c + \" : \" + cnt[i] );\n\t\t\t}",
"{\n\t\t\t\tc = (char)('a' + i);\n\t\t\t\tSystem.out.println( c + \" : \" + cnt[i] );\n\t\t\t}",
"c = (char)('a' + i)",
"c",
"(char)('a' + i)",
"'a'",
"i",
"System.out.println( c + \" : \" + cnt[i] )",
"System.out.println",
"System.out",
"System",
"System.out",
"c + \" : \" + cnt[i]",
"c + \" : \" + cnt[i]",
"c",
"\" : \"",
"cnt[i]",
"cnt",
"i",
"String[] args",
"args"
]
| import java.io.*;
class Main{
public static void main(String[] args){
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
int cnt[] = new int[26];
int i;
char c;
for( i=0; i<26; i++ ){
cnt[i] = 0;
}
while((str = br.readLine())!=null){
for( i=0; i<str.length(); i++ ){
c = str.charAt(i);
if('A'<=c && c<='Z') cnt[c-'A']++;
if('a'<=c && c<='z') cnt[c-'a']++;
}
}
for( i=0; i<26; i++ ){
c = (char)('a' + i);
System.out.println( c + " : " + cnt[i] );
}
} catch(IOException e){
System.out.println("Exception :" + e);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
4,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
13,
17,
17,
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
],
[
143,
8
],
[
143,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
11,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
11,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
53,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
68,
81
],
[
81,
82
],
[
82,
83
],
[
68,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
88,
94
],
[
85,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
11,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
129,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
11,
137
],
[
137,
138
],
[
138,
139
],
[
9,
140
],
[
140,
141
],
[
0,
142
],
[
142,
143
],
[
142,
144
]
]
| [
"import java.util.Scanner;\nimport java.util.ArrayList;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<String> s = new ArrayList<String>();\n\n int[] counter = new int[26];\n for (int i = 0; i < 26; i++) {\n counter[i] = 0;\n }\n\n while (sc.hasNext()) {\n s.add(sc.nextLine().toLowerCase());\n }\n\n for (int j = 0; j < s.size(); j++) {\n for (int i = 0; i < s.get(j).length(); i++) {\n char c = s.get(j).charAt(i);\n if (c >= 97 && c <= 122) {\n counter[c - 97]++;\n }\n }\n }\n\n for (int i = 0; i < 26; i++) {\n System.out.println((char) (i + 97) + \" : \" + counter[i]);\n }\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<String> s = new ArrayList<String>();\n\n int[] counter = new int[26];\n for (int i = 0; i < 26; i++) {\n counter[i] = 0;\n }\n\n while (sc.hasNext()) {\n s.add(sc.nextLine().toLowerCase());\n }\n\n for (int j = 0; j < s.size(); j++) {\n for (int i = 0; i < s.get(j).length(); i++) {\n char c = s.get(j).charAt(i);\n if (c >= 97 && c <= 122) {\n counter[c - 97]++;\n }\n }\n }\n\n for (int i = 0; i < 26; i++) {\n System.out.println((char) (i + 97) + \" : \" + counter[i]);\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<String> s = new ArrayList<String>();\n\n int[] counter = new int[26];\n for (int i = 0; i < 26; i++) {\n counter[i] = 0;\n }\n\n while (sc.hasNext()) {\n s.add(sc.nextLine().toLowerCase());\n }\n\n for (int j = 0; j < s.size(); j++) {\n for (int i = 0; i < s.get(j).length(); i++) {\n char c = s.get(j).charAt(i);\n if (c >= 97 && c <= 122) {\n counter[c - 97]++;\n }\n }\n }\n\n for (int i = 0; i < 26; i++) {\n System.out.println((char) (i + 97) + \" : \" + counter[i]);\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n ArrayList<String> s = new ArrayList<String>();\n\n int[] counter = new int[26];\n for (int i = 0; i < 26; i++) {\n counter[i] = 0;\n }\n\n while (sc.hasNext()) {\n s.add(sc.nextLine().toLowerCase());\n }\n\n for (int j = 0; j < s.size(); j++) {\n for (int i = 0; i < s.get(j).length(); i++) {\n char c = s.get(j).charAt(i);\n if (c >= 97 && c <= 122) {\n counter[c - 97]++;\n }\n }\n }\n\n for (int i = 0; i < 26; i++) {\n System.out.println((char) (i + 97) + \" : \" + counter[i]);\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<String> s = new ArrayList<String>();",
"s",
"new ArrayList<String>()",
"int[] counter = new int[26];",
"counter",
"new int[26]",
"26",
"for (int i = 0; i < 26; i++) {\n counter[i] = 0;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n counter[i] = 0;\n }",
"{\n counter[i] = 0;\n }",
"counter[i] = 0",
"counter[i]",
"counter",
"i",
"0",
"while (sc.hasNext()) {\n s.add(sc.nextLine().toLowerCase());\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n s.add(sc.nextLine().toLowerCase());\n }",
"s.add(sc.nextLine().toLowerCase())",
"s.add",
"s",
"sc.nextLine().toLowerCase()",
"sc.nextLine().toLowerCase",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int j = 0; j < s.size(); j++) {\n for (int i = 0; i < s.get(j).length(); i++) {\n char c = s.get(j).charAt(i);\n if (c >= 97 && c <= 122) {\n counter[c - 97]++;\n }\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < s.size()",
"j",
"s.size()",
"s.size",
"s",
"j++",
"j++",
"j",
"{\n for (int i = 0; i < s.get(j).length(); i++) {\n char c = s.get(j).charAt(i);\n if (c >= 97 && c <= 122) {\n counter[c - 97]++;\n }\n }\n }",
"{\n for (int i = 0; i < s.get(j).length(); i++) {\n char c = s.get(j).charAt(i);\n if (c >= 97 && c <= 122) {\n counter[c - 97]++;\n }\n }\n }",
"for (int i = 0; i < s.get(j).length(); i++) {\n char c = s.get(j).charAt(i);\n if (c >= 97 && c <= 122) {\n counter[c - 97]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.get(j).length()",
"i",
"s.get(j).length()",
"s.get(j).length",
"s.get(j)",
"s.get",
"s",
"j",
"i++",
"i++",
"i",
"{\n char c = s.get(j).charAt(i);\n if (c >= 97 && c <= 122) {\n counter[c - 97]++;\n }\n }",
"{\n char c = s.get(j).charAt(i);\n if (c >= 97 && c <= 122) {\n counter[c - 97]++;\n }\n }",
"char c = s.get(j).charAt(i);",
"c",
"s.get(j).charAt(i)",
"s.get(j).charAt",
"s.get(j)",
"s.get",
"s",
"j",
"i",
"if (c >= 97 && c <= 122) {\n counter[c - 97]++;\n }",
"c >= 97 && c <= 122",
"c >= 97",
"c",
"97",
"c <= 122",
"c",
"122",
"{\n counter[c - 97]++;\n }",
"counter[c - 97]++",
"counter[c - 97]",
"counter",
"c - 97",
"c",
"97",
"for (int i = 0; i < 26; i++) {\n System.out.println((char) (i + 97) + \" : \" + counter[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println((char) (i + 97) + \" : \" + counter[i]);\n }",
"{\n System.out.println((char) (i + 97) + \" : \" + counter[i]);\n }",
"System.out.println((char) (i + 97) + \" : \" + counter[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char) (i + 97) + \" : \" + counter[i]",
"(char) (i + 97) + \" : \" + counter[i]",
"(char) (i + 97)",
"i",
"97",
"\" : \"",
"counter[i]",
"counter",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<String> s = new ArrayList<String>();\n\n int[] counter = new int[26];\n for (int i = 0; i < 26; i++) {\n counter[i] = 0;\n }\n\n while (sc.hasNext()) {\n s.add(sc.nextLine().toLowerCase());\n }\n\n for (int j = 0; j < s.size(); j++) {\n for (int i = 0; i < s.get(j).length(); i++) {\n char c = s.get(j).charAt(i);\n if (c >= 97 && c <= 122) {\n counter[c - 97]++;\n }\n }\n }\n\n for (int i = 0; i < 26; i++) {\n System.out.println((char) (i + 97) + \" : \" + counter[i]);\n }\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<String> s = new ArrayList<String>();\n\n int[] counter = new int[26];\n for (int i = 0; i < 26; i++) {\n counter[i] = 0;\n }\n\n while (sc.hasNext()) {\n s.add(sc.nextLine().toLowerCase());\n }\n\n for (int j = 0; j < s.size(); j++) {\n for (int i = 0; i < s.get(j).length(); i++) {\n char c = s.get(j).charAt(i);\n if (c >= 97 && c <= 122) {\n counter[c - 97]++;\n }\n }\n }\n\n for (int i = 0; i < 26; i++) {\n System.out.println((char) (i + 97) + \" : \" + counter[i]);\n }\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
ArrayList<String> s = new ArrayList<String>();
int[] counter = new int[26];
for (int i = 0; i < 26; i++) {
counter[i] = 0;
}
while (sc.hasNext()) {
s.add(sc.nextLine().toLowerCase());
}
for (int j = 0; j < s.size(); j++) {
for (int i = 0; i < s.get(j).length(); i++) {
char c = s.get(j).charAt(i);
if (c >= 97 && c <= 122) {
counter[c - 97]++;
}
}
}
for (int i = 0; i < 26; i++) {
System.out.println((char) (i + 97) + " : " + counter[i]);
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
17,
41,
13,
42,
2,
17,
0,
13,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
2,
2,
17,
13,
2,
17,
13,
30,
3,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
13,
14,
2,
2,
17,
13,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
2,
17,
13,
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
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
27
],
[
27,
28
],
[
22,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
37,
53
],
[
53,
54
],
[
37,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
67,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
22,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
105,
111
],
[
111,
112
],
[
111,
113
],
[
105,
114
],
[
114,
115
],
[
114,
116
],
[
6,
117
],
[
117,
118
]
]
| [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint[] Count = new int[29];\n\t String str;\n\t\t\twhile( null != ( str = kb.readLine() ) ) {\n\t int len = str.length();\n\t if( null == str || 0 == len ) { break; }\n\t char c;\n\t \t\tfor( int i=0; i<len; i++ ) {\n\t \t\t\tc = Character.toUpperCase( str.charAt( i ) );\n\t \t\t\tif( 'A' <= c && c <= 'Z' ) {\n\t \t\t\t\tCount[ c - 'A' ]++;\n\t \t\t\t}\n\t \t\t}\n \t\t}\n \t\tfor( int i=0; i<26; i++ ) {\n\t\t\t\tSystem.out.printf( \"%c : %d\\n\", ('a'+i ), Count[ i ] );\n \t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint[] Count = new int[29];\n\t String str;\n\t\t\twhile( null != ( str = kb.readLine() ) ) {\n\t int len = str.length();\n\t if( null == str || 0 == len ) { break; }\n\t char c;\n\t \t\tfor( int i=0; i<len; i++ ) {\n\t \t\t\tc = Character.toUpperCase( str.charAt( i ) );\n\t \t\t\tif( 'A' <= c && c <= 'Z' ) {\n\t \t\t\t\tCount[ c - 'A' ]++;\n\t \t\t\t}\n\t \t\t}\n \t\t}\n \t\tfor( int i=0; i<26; i++ ) {\n\t\t\t\tSystem.out.printf( \"%c : %d\\n\", ('a'+i ), Count[ i ] );\n \t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint[] Count = new int[29];\n\t String str;\n\t\t\twhile( null != ( str = kb.readLine() ) ) {\n\t int len = str.length();\n\t if( null == str || 0 == len ) { break; }\n\t char c;\n\t \t\tfor( int i=0; i<len; i++ ) {\n\t \t\t\tc = Character.toUpperCase( str.charAt( i ) );\n\t \t\t\tif( 'A' <= c && c <= 'Z' ) {\n\t \t\t\t\tCount[ c - 'A' ]++;\n\t \t\t\t}\n\t \t\t}\n \t\t}\n \t\tfor( int i=0; i<26; i++ ) {\n\t\t\t\tSystem.out.printf( \"%c : %d\\n\", ('a'+i ), Count[ i ] );\n \t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint[] Count = new int[29];\n\t String str;\n\t\t\twhile( null != ( str = kb.readLine() ) ) {\n\t int len = str.length();\n\t if( null == str || 0 == len ) { break; }\n\t char c;\n\t \t\tfor( int i=0; i<len; i++ ) {\n\t \t\t\tc = Character.toUpperCase( str.charAt( i ) );\n\t \t\t\tif( 'A' <= c && c <= 'Z' ) {\n\t \t\t\t\tCount[ c - 'A' ]++;\n\t \t\t\t}\n\t \t\t}\n \t\t}\n \t\tfor( int i=0; i<26; i++ ) {\n\t\t\t\tSystem.out.printf( \"%c : %d\\n\", ('a'+i ), Count[ i ] );\n \t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}",
"BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );",
"kb",
"new BufferedReader( new InputStreamReader( System.in ) )",
"try {\n\t\t\tint[] Count = new int[29];\n\t String str;\n\t\t\twhile( null != ( str = kb.readLine() ) ) {\n\t int len = str.length();\n\t if( null == str || 0 == len ) { break; }\n\t char c;\n\t \t\tfor( int i=0; i<len; i++ ) {\n\t \t\t\tc = Character.toUpperCase( str.charAt( i ) );\n\t \t\t\tif( 'A' <= c && c <= 'Z' ) {\n\t \t\t\t\tCount[ c - 'A' ]++;\n\t \t\t\t}\n\t \t\t}\n \t\t}\n \t\tfor( int i=0; i<26; i++ ) {\n\t\t\t\tSystem.out.printf( \"%c : %d\\n\", ('a'+i ), Count[ i ] );\n \t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}",
"catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.err.println( e );\n\t\t}",
"System.err.println( e )",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n\t\t\tint[] Count = new int[29];\n\t String str;\n\t\t\twhile( null != ( str = kb.readLine() ) ) {\n\t int len = str.length();\n\t if( null == str || 0 == len ) { break; }\n\t char c;\n\t \t\tfor( int i=0; i<len; i++ ) {\n\t \t\t\tc = Character.toUpperCase( str.charAt( i ) );\n\t \t\t\tif( 'A' <= c && c <= 'Z' ) {\n\t \t\t\t\tCount[ c - 'A' ]++;\n\t \t\t\t}\n\t \t\t}\n \t\t}\n \t\tfor( int i=0; i<26; i++ ) {\n\t\t\t\tSystem.out.printf( \"%c : %d\\n\", ('a'+i ), Count[ i ] );\n \t\t}\n\t\t}",
"int[] Count = new int[29];",
"Count",
"new int[29]",
"29",
"String str;",
"str",
"while( null != ( str = kb.readLine() ) ) {\n\t int len = str.length();\n\t if( null == str || 0 == len ) { break; }\n\t char c;\n\t \t\tfor( int i=0; i<len; i++ ) {\n\t \t\t\tc = Character.toUpperCase( str.charAt( i ) );\n\t \t\t\tif( 'A' <= c && c <= 'Z' ) {\n\t \t\t\t\tCount[ c - 'A' ]++;\n\t \t\t\t}\n\t \t\t}\n \t\t}",
"null != ( str = kb.readLine() )",
"null",
"( str = kb.readLine() )",
"str",
"kb.readLine()",
"kb.readLine",
"kb",
"{\n\t int len = str.length();\n\t if( null == str || 0 == len ) { break; }\n\t char c;\n\t \t\tfor( int i=0; i<len; i++ ) {\n\t \t\t\tc = Character.toUpperCase( str.charAt( i ) );\n\t \t\t\tif( 'A' <= c && c <= 'Z' ) {\n\t \t\t\t\tCount[ c - 'A' ]++;\n\t \t\t\t}\n\t \t\t}\n \t\t}",
"int len = str.length();",
"len",
"str.length()",
"str.length",
"str",
"if( null == str || 0 == len ) { break; }",
"null == str || 0 == len",
"null == str",
"null",
"str",
"0 == len",
"0",
"len",
"{ break; }",
"break;",
"char c;",
"c",
"for( int i=0; i<len; i++ ) {\n\t \t\t\tc = Character.toUpperCase( str.charAt( i ) );\n\t \t\t\tif( 'A' <= c && c <= 'Z' ) {\n\t \t\t\t\tCount[ c - 'A' ]++;\n\t \t\t\t}\n\t \t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<len",
"i",
"len",
"i++",
"i++",
"i",
"{\n\t \t\t\tc = Character.toUpperCase( str.charAt( i ) );\n\t \t\t\tif( 'A' <= c && c <= 'Z' ) {\n\t \t\t\t\tCount[ c - 'A' ]++;\n\t \t\t\t}\n\t \t\t}",
"{\n\t \t\t\tc = Character.toUpperCase( str.charAt( i ) );\n\t \t\t\tif( 'A' <= c && c <= 'Z' ) {\n\t \t\t\t\tCount[ c - 'A' ]++;\n\t \t\t\t}\n\t \t\t}",
"c = Character.toUpperCase( str.charAt( i ) )",
"c",
"Character.toUpperCase( str.charAt( i ) )",
"Character.toUpperCase",
"Character",
"str.charAt( i )",
"str.charAt",
"str",
"i",
"if( 'A' <= c && c <= 'Z' ) {\n\t \t\t\t\tCount[ c - 'A' ]++;\n\t \t\t\t}",
"'A' <= c && c <= 'Z'",
"'A' <= c",
"'A'",
"c",
"c <= 'Z'",
"c",
"'Z'",
"{\n\t \t\t\t\tCount[ c - 'A' ]++;\n\t \t\t\t}",
"Count[ c - 'A' ]++",
"Count[ c - 'A' ]",
"Count",
"c - 'A'",
"c",
"'A'",
"for( int i=0; i<26; i++ ) {\n\t\t\t\tSystem.out.printf( \"%c : %d\\n\", ('a'+i ), Count[ i ] );\n \t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.printf( \"%c : %d\\n\", ('a'+i ), Count[ i ] );\n \t\t}",
"{\n\t\t\t\tSystem.out.printf( \"%c : %d\\n\", ('a'+i ), Count[ i ] );\n \t\t}",
"System.out.printf( \"%c : %d\\n\", ('a'+i ), Count[ i ] )",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"('a'+i )",
"'a'",
"i",
"Count[ i ]",
"Count",
"i",
"String[] args",
"args"
]
| import java.io.*;
class Main {
public static void main(String[] args) {
BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );
try {
int[] Count = new int[29];
String str;
while( null != ( str = kb.readLine() ) ) {
int len = str.length();
if( null == str || 0 == len ) { break; }
char c;
for( int i=0; i<len; i++ ) {
c = Character.toUpperCase( str.charAt( i ) );
if( 'A' <= c && c <= 'Z' ) {
Count[ c - 'A' ]++;
}
}
}
for( int i=0; i<26; i++ ) {
System.out.printf( "%c : %d\n", ('a'+i ), Count[ i ] );
}
} catch( IOException e ) {
System.err.println( e );
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
17,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
2,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
2,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
113,
5
],
[
113,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
27
],
[
27,
28
],
[
22,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
37,
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
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
64,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
22,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
98,
104
],
[
104,
105
],
[
104,
106
],
[
98,
107
],
[
107,
108
],
[
107,
109
],
[
6,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
]
| [
"import java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n int[] alphabet = new int[26];\n String str;\n while((str = reader.readLine()) != null) {\n str = str.toLowerCase();\n byte[] asciiStr = str.getBytes(\"US-ASCII\");\n for (int i = 0; i < asciiStr.length; i++) {\n if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 97, alphabet[i]);\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n int[] alphabet = new int[26];\n String str;\n while((str = reader.readLine()) != null) {\n str = str.toLowerCase();\n byte[] asciiStr = str.getBytes(\"US-ASCII\");\n for (int i = 0; i < asciiStr.length; i++) {\n if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 97, alphabet[i]);\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n int[] alphabet = new int[26];\n String str;\n while((str = reader.readLine()) != null) {\n str = str.toLowerCase();\n byte[] asciiStr = str.getBytes(\"US-ASCII\");\n for (int i = 0; i < asciiStr.length; i++) {\n if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 97, alphabet[i]);\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n int[] alphabet = new int[26];\n String str;\n while((str = reader.readLine()) != null) {\n str = str.toLowerCase();\n byte[] asciiStr = str.getBytes(\"US-ASCII\");\n for (int i = 0; i < asciiStr.length; i++) {\n if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 97, alphabet[i]);\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n int[] alphabet = new int[26];\n String str;\n while((str = reader.readLine()) != null) {\n str = str.toLowerCase();\n byte[] asciiStr = str.getBytes(\"US-ASCII\");\n for (int i = 0; i < asciiStr.length; i++) {\n if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 97, alphabet[i]);\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }",
"catch (IOException e) {\n System.out.println(e);\n }",
"IOException e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n int[] alphabet = new int[26];\n String str;\n while((str = reader.readLine()) != null) {\n str = str.toLowerCase();\n byte[] asciiStr = str.getBytes(\"US-ASCII\");\n for (int i = 0; i < asciiStr.length; i++) {\n if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 97, alphabet[i]);\n }\n }",
"int[] alphabet = new int[26];",
"alphabet",
"new int[26]",
"26",
"String str;",
"str",
"while((str = reader.readLine()) != null) {\n str = str.toLowerCase();\n byte[] asciiStr = str.getBytes(\"US-ASCII\");\n for (int i = 0; i < asciiStr.length; i++) {\n if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }\n }\n }",
"(str = reader.readLine()) != null",
"(str = reader.readLine())",
"str",
"reader.readLine()",
"reader.readLine",
"reader",
"null",
"{\n str = str.toLowerCase();\n byte[] asciiStr = str.getBytes(\"US-ASCII\");\n for (int i = 0; i < asciiStr.length; i++) {\n if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }\n }\n }",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"byte[] asciiStr = str.getBytes(\"US-ASCII\");",
"asciiStr",
"str.getBytes(\"US-ASCII\")",
"str.getBytes",
"str",
"\"US-ASCII\"",
"for (int i = 0; i < asciiStr.length; i++) {\n if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < asciiStr.length",
"i",
"asciiStr.length",
"asciiStr",
"asciiStr.length",
"i++",
"i++",
"i",
"{\n if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }\n }",
"{\n if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }\n }",
"if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }",
"asciiStr[i] >= 97 && asciiStr[i] <= 122",
"asciiStr[i] >= 97",
"asciiStr[i]",
"asciiStr",
"i",
"97",
"asciiStr[i] <= 122",
"asciiStr[i]",
"asciiStr",
"i",
"122",
"{\n alphabet[asciiStr[i] - 97]++;\n }",
"alphabet[asciiStr[i] - 97]++",
"alphabet[asciiStr[i] - 97]",
"alphabet",
"asciiStr[i] - 97",
"asciiStr[i]",
"asciiStr",
"i",
"97",
"for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 97, alphabet[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.printf(\"%c : %d\\n\", i + 97, alphabet[i]);\n }",
"{\n System.out.printf(\"%c : %d\\n\", i + 97, alphabet[i]);\n }",
"System.out.printf(\"%c : %d\\n\", i + 97, alphabet[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"i + 97",
"i",
"97",
"alphabet[i]",
"alphabet",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n int[] alphabet = new int[26];\n String str;\n while((str = reader.readLine()) != null) {\n str = str.toLowerCase();\n byte[] asciiStr = str.getBytes(\"US-ASCII\");\n for (int i = 0; i < asciiStr.length; i++) {\n if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 97, alphabet[i]);\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n int[] alphabet = new int[26];\n String str;\n while((str = reader.readLine()) != null) {\n str = str.toLowerCase();\n byte[] asciiStr = str.getBytes(\"US-ASCII\");\n for (int i = 0; i < asciiStr.length; i++) {\n if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {\n alphabet[asciiStr[i] - 97]++;\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 97, alphabet[i]);\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }\n}",
"Main"
]
| import java.io.*;
public class Main {
public static void main(String[] args) {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try {
int[] alphabet = new int[26];
String str;
while((str = reader.readLine()) != null) {
str = str.toLowerCase();
byte[] asciiStr = str.getBytes("US-ASCII");
for (int i = 0; i < asciiStr.length; i++) {
if (asciiStr[i] >= 97 && asciiStr[i] <= 122) {
alphabet[asciiStr[i] - 97]++;
}
}
}
for (int i = 0; i < 26; i++) {
System.out.printf("%c : %d\n", i + 97, alphabet[i]);
}
}
catch (IOException e) {
System.out.println(e);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
4,
18,
13,
13,
17,
41,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
0,
18,
13,
2,
18,
13,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
2,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
108,
5
],
[
108,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
16,
19
],
[
16,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
27,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
43,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
71,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
93,
99
],
[
99,
100
],
[
99,
101
],
[
93,
102
],
[
102,
103
],
[
102,
104
],
[
6,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
]
| [
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n //ArrayList<Integer> A = new ArrayList<Integer>();\n int[] A = new int[26];\n Arrays.fill(A, 0);\n String str;\n\n while (sc.hasNext()) {\n str = sc.nextLine();\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n\n\n\n }\n\n for (int j = 0; j < 26; j++) {\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }\n\n/*\n while (true) {\n String str = sc.nextLine();\n\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n if ((int)c[c.length-1] == 46) {\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n for (int j = 0; j < 26; j++) {\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }\n break;\n }\n else {\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n }\n }\n\n */\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n //ArrayList<Integer> A = new ArrayList<Integer>();\n int[] A = new int[26];\n Arrays.fill(A, 0);\n String str;\n\n while (sc.hasNext()) {\n str = sc.nextLine();\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n\n\n\n }\n\n for (int j = 0; j < 26; j++) {\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }\n\n/*\n while (true) {\n String str = sc.nextLine();\n\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n if ((int)c[c.length-1] == 46) {\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n for (int j = 0; j < 26; j++) {\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }\n break;\n }\n else {\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n }\n }\n\n */\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n //ArrayList<Integer> A = new ArrayList<Integer>();\n int[] A = new int[26];\n Arrays.fill(A, 0);\n String str;\n\n while (sc.hasNext()) {\n str = sc.nextLine();\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n\n\n\n }\n\n for (int j = 0; j < 26; j++) {\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }\n\n/*\n while (true) {\n String str = sc.nextLine();\n\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n if ((int)c[c.length-1] == 46) {\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n for (int j = 0; j < 26; j++) {\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }\n break;\n }\n else {\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n }\n }\n\n */\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n //ArrayList<Integer> A = new ArrayList<Integer>();\n int[] A = new int[26];\n Arrays.fill(A, 0);\n String str;\n\n while (sc.hasNext()) {\n str = sc.nextLine();\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n\n\n\n }\n\n for (int j = 0; j < 26; j++) {\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }\n\n/*\n while (true) {\n String str = sc.nextLine();\n\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n if ((int)c[c.length-1] == 46) {\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n for (int j = 0; j < 26; j++) {\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }\n break;\n }\n else {\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n }\n }\n\n */\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] A = new int[26];",
"A",
"new int[26]",
"26",
"Arrays.fill(A, 0)",
"Arrays.fill",
"Arrays",
"A",
"0",
"String str;",
"str",
"while (sc.hasNext()) {\n str = sc.nextLine();\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n\n\n\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n str = sc.nextLine();\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n\n\n\n }",
"str = sc.nextLine()",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"char[] c = str.toCharArray();",
"c",
"str.toCharArray()",
"str.toCharArray",
"str",
"for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }",
"{\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }",
"if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }",
"(int)c[i] >= 97 && (int)c[i] <= 122",
"(int)c[i] >= 97",
"(int)c[i]",
"c",
"i",
"97",
"(int)c[i] <= 122",
"(int)c[i]",
"c",
"i",
"122",
"{\n A[(int) c[i] - 97] += 1;\n }",
"A[(int) c[i] - 97] += 1",
"A[(int) c[i] - 97]",
"A",
"(int) c[i] - 97",
"(int) c[i]",
"c",
"i",
"97",
"1",
"for (int j = 0; j < 26; j++) {\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }",
"{\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }",
"System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"(char)(j + 97)",
"j",
"97",
"A[j]",
"A",
"j",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n //ArrayList<Integer> A = new ArrayList<Integer>();\n int[] A = new int[26];\n Arrays.fill(A, 0);\n String str;\n\n while (sc.hasNext()) {\n str = sc.nextLine();\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n\n\n\n }\n\n for (int j = 0; j < 26; j++) {\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }\n\n/*\n while (true) {\n String str = sc.nextLine();\n\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n if ((int)c[c.length-1] == 46) {\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n for (int j = 0; j < 26; j++) {\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }\n break;\n }\n else {\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n }\n }\n\n */\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n //ArrayList<Integer> A = new ArrayList<Integer>();\n int[] A = new int[26];\n Arrays.fill(A, 0);\n String str;\n\n while (sc.hasNext()) {\n str = sc.nextLine();\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n\n\n\n }\n\n for (int j = 0; j < 26; j++) {\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }\n\n/*\n while (true) {\n String str = sc.nextLine();\n\n\n str = str.toLowerCase();\n char[] c = str.toCharArray();\n\n if ((int)c[c.length-1] == 46) {\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n for (int j = 0; j < 26; j++) {\n System.out.printf(\"%c : %d\\n\", (char)(j + 97), A[j]);\n }\n break;\n }\n else {\n for (int i=0; i<c.length; i++) {\n if ((int)c[i] >= 97 && (int)c[i] <= 122) {\n A[(int) c[i] - 97] += 1;\n }\n }\n }\n }\n\n */\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//StringBuilder bd = new StringBuilder();
//ArrayList<Integer> A = new ArrayList<Integer>();
int[] A = new int[26];
Arrays.fill(A, 0);
String str;
while (sc.hasNext()) {
str = sc.nextLine();
str = str.toLowerCase();
char[] c = str.toCharArray();
for (int i=0; i<c.length; i++) {
if ((int)c[i] >= 97 && (int)c[i] <= 122) {
A[(int) c[i] - 97] += 1;
}
}
}
for (int j = 0; j < 26; j++) {
System.out.printf("%c : %d\n", (char)(j + 97), A[j]);
}
/*
while (true) {
String str = sc.nextLine();
str = str.toLowerCase();
char[] c = str.toCharArray();
if ((int)c[c.length-1] == 46) {
for (int i=0; i<c.length; i++) {
if ((int)c[i] >= 97 && (int)c[i] <= 122) {
A[(int) c[i] - 97] += 1;
}
}
for (int j = 0; j < 26; j++) {
System.out.printf("%c : %d\n", (char)(j + 97), A[j]);
}
break;
}
else {
for (int i=0; i<c.length; i++) {
if ((int)c[i] >= 97 && (int)c[i] <= 122) {
A[(int) c[i] - 97] += 1;
}
}
}
}
*/
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
18,
13,
13,
17,
14,
2,
2,
17,
13,
2,
13,
17,
30,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
20,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
36,
46
],
[
46,
47
],
[
47,
48
],
[
36,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
71,
81
],
[
81,
82
],
[
82,
83
],
[
71,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
97,
97
],
[
97,
98
],
[
97,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
6,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n while (sc.hasNext()) {\n String line = sc.nextLine();\n line = line.toLowerCase();\n char[] ch = line.toCharArray();\n for (int i = 0; i < ch.length; i++) {\n int n = ch[i] - 'a';\n if (0 <= n && n <= 25) {\n count[n]++;\n }\n }\n }\n for (int i = 0; i < count.length; i++) {\n char c = (char)(i+'a');\n System.out.println(c + \" : \"+ count[i]);\n }\n sc.close();\n \n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n while (sc.hasNext()) {\n String line = sc.nextLine();\n line = line.toLowerCase();\n char[] ch = line.toCharArray();\n for (int i = 0; i < ch.length; i++) {\n int n = ch[i] - 'a';\n if (0 <= n && n <= 25) {\n count[n]++;\n }\n }\n }\n for (int i = 0; i < count.length; i++) {\n char c = (char)(i+'a');\n System.out.println(c + \" : \"+ count[i]);\n }\n sc.close();\n \n }\n\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n while (sc.hasNext()) {\n String line = sc.nextLine();\n line = line.toLowerCase();\n char[] ch = line.toCharArray();\n for (int i = 0; i < ch.length; i++) {\n int n = ch[i] - 'a';\n if (0 <= n && n <= 25) {\n count[n]++;\n }\n }\n }\n for (int i = 0; i < count.length; i++) {\n char c = (char)(i+'a');\n System.out.println(c + \" : \"+ count[i]);\n }\n sc.close();\n \n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n while (sc.hasNext()) {\n String line = sc.nextLine();\n line = line.toLowerCase();\n char[] ch = line.toCharArray();\n for (int i = 0; i < ch.length; i++) {\n int n = ch[i] - 'a';\n if (0 <= n && n <= 25) {\n count[n]++;\n }\n }\n }\n for (int i = 0; i < count.length; i++) {\n char c = (char)(i+'a');\n System.out.println(c + \" : \"+ count[i]);\n }\n sc.close();\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"while (sc.hasNext()) {\n String line = sc.nextLine();\n line = line.toLowerCase();\n char[] ch = line.toCharArray();\n for (int i = 0; i < ch.length; i++) {\n int n = ch[i] - 'a';\n if (0 <= n && n <= 25) {\n count[n]++;\n }\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String line = sc.nextLine();\n line = line.toLowerCase();\n char[] ch = line.toCharArray();\n for (int i = 0; i < ch.length; i++) {\n int n = ch[i] - 'a';\n if (0 <= n && n <= 25) {\n count[n]++;\n }\n }\n }",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"line = line.toLowerCase()",
"line",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"char[] ch = line.toCharArray();",
"ch",
"line.toCharArray()",
"line.toCharArray",
"line",
"for (int i = 0; i < ch.length; i++) {\n int n = ch[i] - 'a';\n if (0 <= n && n <= 25) {\n count[n]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ch.length",
"i",
"ch.length",
"ch",
"ch.length",
"i++",
"i++",
"i",
"{\n int n = ch[i] - 'a';\n if (0 <= n && n <= 25) {\n count[n]++;\n }\n }",
"{\n int n = ch[i] - 'a';\n if (0 <= n && n <= 25) {\n count[n]++;\n }\n }",
"int n = ch[i] - 'a';",
"n",
"ch[i] - 'a'",
"ch[i]",
"ch",
"i",
"'a'",
"if (0 <= n && n <= 25) {\n count[n]++;\n }",
"0 <= n && n <= 25",
"0 <= n",
"0",
"n",
"n <= 25",
"n",
"25",
"{\n count[n]++;\n }",
"count[n]++",
"count[n]",
"count",
"n",
"for (int i = 0; i < count.length; i++) {\n char c = (char)(i+'a');\n System.out.println(c + \" : \"+ count[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count.length",
"i",
"count.length",
"count",
"count.length",
"i++",
"i++",
"i",
"{\n char c = (char)(i+'a');\n System.out.println(c + \" : \"+ count[i]);\n }",
"{\n char c = (char)(i+'a');\n System.out.println(c + \" : \"+ count[i]);\n }",
"char c = (char)(i+'a');",
"c",
"(char)(i+'a')",
"i",
"'a'",
"System.out.println(c + \" : \"+ count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c + \" : \"+ count[i]",
"c + \" : \"+ count[i]",
"c",
"\" : \"",
"count[i]",
"count",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n while (sc.hasNext()) {\n String line = sc.nextLine();\n line = line.toLowerCase();\n char[] ch = line.toCharArray();\n for (int i = 0; i < ch.length; i++) {\n int n = ch[i] - 'a';\n if (0 <= n && n <= 25) {\n count[n]++;\n }\n }\n }\n for (int i = 0; i < count.length; i++) {\n char c = (char)(i+'a');\n System.out.println(c + \" : \"+ count[i]);\n }\n sc.close();\n \n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n while (sc.hasNext()) {\n String line = sc.nextLine();\n line = line.toLowerCase();\n char[] ch = line.toCharArray();\n for (int i = 0; i < ch.length; i++) {\n int n = ch[i] - 'a';\n if (0 <= n && n <= 25) {\n count[n]++;\n }\n }\n }\n for (int i = 0; i < count.length; i++) {\n char c = (char)(i+'a');\n System.out.println(c + \" : \"+ count[i]);\n }\n sc.close();\n \n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] count = new int[26];
while (sc.hasNext()) {
String line = sc.nextLine();
line = line.toLowerCase();
char[] ch = line.toCharArray();
for (int i = 0; i < ch.length; i++) {
int n = ch[i] - 'a';
if (0 <= n && n <= 25) {
count[n]++;
}
}
}
for (int i = 0; i < count.length; i++) {
char c = (char)(i+'a');
System.out.println(c + " : "+ count[i]);
}
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
40,
18,
13,
13,
41,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
4,
18,
4,
18,
4,
18,
13,
40,
13,
17,
18,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
0,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
0,
13,
17,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
140,
5
],
[
140,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
19,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
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
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
44,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
8,
65
],
[
65,
66
],
[
65,
67
],
[
8,
68
],
[
68,
69
],
[
68,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
88,
95
],
[
86,
96
],
[
96,
97
],
[
96,
98
],
[
84,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
106,
107
],
[
6,
108
],
[
108,
109
],
[
140,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
121,
123
],
[
113,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
132,
134
],
[
112,
135
],
[
135,
136
],
[
110,
137
],
[
137,
138
],
[
0,
139
],
[
139,
140
],
[
139,
141
]
]
| [
"import java.io.*;\n \npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String sentence;\n int[] abc = new int[26];\n while ((sentence = input.readLine()) != null) {\n int line_len = sentence.length();\n for (int i = 0; i < line_len; i++) {\n char index = solveIndex(sentence.charAt(i));\n if (index >= 0 && index < 26)\n abc[index]++;\n }\n }\n char cc = 'a';\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 26; i++) {\n sb.append(cc++).append(\" : \").append(abc[i]).append('\\n');\n }\n System.out.print(sb.toString());\n }\n private static char solveIndex(char c) {\n if (c >= 'a' && c <= 'z')\n c -= 'a';\n else if (c >= 'A' && c <= 'Z')\n c -= 'A';\n return c;\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String sentence;\n int[] abc = new int[26];\n while ((sentence = input.readLine()) != null) {\n int line_len = sentence.length();\n for (int i = 0; i < line_len; i++) {\n char index = solveIndex(sentence.charAt(i));\n if (index >= 0 && index < 26)\n abc[index]++;\n }\n }\n char cc = 'a';\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 26; i++) {\n sb.append(cc++).append(\" : \").append(abc[i]).append('\\n');\n }\n System.out.print(sb.toString());\n }\n private static char solveIndex(char c) {\n if (c >= 'a' && c <= 'z')\n c -= 'a';\n else if (c >= 'A' && c <= 'Z')\n c -= 'A';\n return c;\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String sentence;\n int[] abc = new int[26];\n while ((sentence = input.readLine()) != null) {\n int line_len = sentence.length();\n for (int i = 0; i < line_len; i++) {\n char index = solveIndex(sentence.charAt(i));\n if (index >= 0 && index < 26)\n abc[index]++;\n }\n }\n char cc = 'a';\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 26; i++) {\n sb.append(cc++).append(\" : \").append(abc[i]).append('\\n');\n }\n System.out.print(sb.toString());\n }",
"main",
"{\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String sentence;\n int[] abc = new int[26];\n while ((sentence = input.readLine()) != null) {\n int line_len = sentence.length();\n for (int i = 0; i < line_len; i++) {\n char index = solveIndex(sentence.charAt(i));\n if (index >= 0 && index < 26)\n abc[index]++;\n }\n }\n char cc = 'a';\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 26; i++) {\n sb.append(cc++).append(\" : \").append(abc[i]).append('\\n');\n }\n System.out.print(sb.toString());\n }",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"String sentence;",
"sentence",
"int[] abc = new int[26];",
"abc",
"new int[26]",
"26",
"while ((sentence = input.readLine()) != null) {\n int line_len = sentence.length();\n for (int i = 0; i < line_len; i++) {\n char index = solveIndex(sentence.charAt(i));\n if (index >= 0 && index < 26)\n abc[index]++;\n }\n }",
"(sentence = input.readLine()) != null",
"(sentence = input.readLine())",
"sentence",
"input.readLine()",
"input.readLine",
"input",
"null",
"{\n int line_len = sentence.length();\n for (int i = 0; i < line_len; i++) {\n char index = solveIndex(sentence.charAt(i));\n if (index >= 0 && index < 26)\n abc[index]++;\n }\n }",
"int line_len = sentence.length();",
"line_len",
"sentence.length()",
"sentence.length",
"sentence",
"for (int i = 0; i < line_len; i++) {\n char index = solveIndex(sentence.charAt(i));\n if (index >= 0 && index < 26)\n abc[index]++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < line_len",
"i",
"line_len",
"i++",
"i++",
"i",
"{\n char index = solveIndex(sentence.charAt(i));\n if (index >= 0 && index < 26)\n abc[index]++;\n }",
"{\n char index = solveIndex(sentence.charAt(i));\n if (index >= 0 && index < 26)\n abc[index]++;\n }",
"char index = solveIndex(sentence.charAt(i));",
"index",
"solveIndex(sentence.charAt(i))",
"solveIndex",
"sentence.charAt(i)",
"sentence.charAt",
"sentence",
"i",
"if (index >= 0 && index < 26)\n abc[index]++;",
"index >= 0 && index < 26",
"index >= 0",
"index",
"0",
"index < 26",
"index",
"26",
"abc[index]++",
"abc[index]",
"abc",
"index",
"char cc = 'a';",
"cc",
"'a'",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for (int i = 0; i < 26; i++) {\n sb.append(cc++).append(\" : \").append(abc[i]).append('\\n');\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n sb.append(cc++).append(\" : \").append(abc[i]).append('\\n');\n }",
"{\n sb.append(cc++).append(\" : \").append(abc[i]).append('\\n');\n }",
"sb.append(cc++).append(\" : \").append(abc[i]).append('\\n')",
"sb.append(cc++).append(\" : \").append(abc[i]).append",
"sb.append(cc++).append(\" : \").append(abc[i])",
"sb.append(cc++).append(\" : \").append",
"sb.append(cc++).append(\" : \")",
"sb.append(cc++).append",
"sb.append(cc++)",
"sb.append",
"sb",
"cc++",
"cc",
"\" : \"",
"abc[i]",
"abc",
"i",
"'\\n'",
"System.out.print(sb.toString())",
"System.out.print",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"String[] args",
"args",
"private static char solveIndex(char c) {\n if (c >= 'a' && c <= 'z')\n c -= 'a';\n else if (c >= 'A' && c <= 'Z')\n c -= 'A';\n return c;\n }",
"solveIndex",
"{\n if (c >= 'a' && c <= 'z')\n c -= 'a';\n else if (c >= 'A' && c <= 'Z')\n c -= 'A';\n return c;\n }",
"if (c >= 'a' && c <= 'z')\n c -= 'a';\n else if (c >= 'A' && c <= 'Z')\n c -= 'A';",
"c >= 'a' && c <= 'z'",
"c >= 'a'",
"c",
"'a'",
"c <= 'z'",
"c",
"'z'",
"c -= 'a'",
"c",
"'a'",
"if (c >= 'A' && c <= 'Z')\n c -= 'A';",
"c >= 'A' && c <= 'Z'",
"c >= 'A'",
"c",
"'A'",
"c <= 'Z'",
"c",
"'Z'",
"c -= 'A'",
"c",
"'A'",
"return c;",
"c",
"char c",
"c",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String sentence;\n int[] abc = new int[26];\n while ((sentence = input.readLine()) != null) {\n int line_len = sentence.length();\n for (int i = 0; i < line_len; i++) {\n char index = solveIndex(sentence.charAt(i));\n if (index >= 0 && index < 26)\n abc[index]++;\n }\n }\n char cc = 'a';\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 26; i++) {\n sb.append(cc++).append(\" : \").append(abc[i]).append('\\n');\n }\n System.out.print(sb.toString());\n }\n private static char solveIndex(char c) {\n if (c >= 'a' && c <= 'z')\n c -= 'a';\n else if (c >= 'A' && c <= 'Z')\n c -= 'A';\n return c;\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String sentence;\n int[] abc = new int[26];\n while ((sentence = input.readLine()) != null) {\n int line_len = sentence.length();\n for (int i = 0; i < line_len; i++) {\n char index = solveIndex(sentence.charAt(i));\n if (index >= 0 && index < 26)\n abc[index]++;\n }\n }\n char cc = 'a';\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 26; i++) {\n sb.append(cc++).append(\" : \").append(abc[i]).append('\\n');\n }\n System.out.print(sb.toString());\n }\n private static char solveIndex(char c) {\n if (c >= 'a' && c <= 'z')\n c -= 'a';\n else if (c >= 'A' && c <= 'Z')\n c -= 'A';\n return c;\n }\n}",
"Main"
]
| import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String sentence;
int[] abc = new int[26];
while ((sentence = input.readLine()) != null) {
int line_len = sentence.length();
for (int i = 0; i < line_len; i++) {
char index = solveIndex(sentence.charAt(i));
if (index >= 0 && index < 26)
abc[index]++;
}
}
char cc = 'a';
StringBuilder sb = new StringBuilder();
for (int i = 0; i < 26; i++) {
sb.append(cc++).append(" : ").append(abc[i]).append('\n');
}
System.out.print(sb.toString());
}
private static char solveIndex(char c) {
if (c >= 'a' && c <= 'z')
c -= 'a';
else if (c >= 'A' && c <= 'Z')
c -= 'A';
return c;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
2,
17,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
13,
0,
18,
13,
13,
13,
40,
13,
40,
13,
41,
13,
17,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
2,
13,
17,
0,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
17,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
17,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
170,
5
],
[
170,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
30,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
44,
55
],
[
55,
56
],
[
44,
57
],
[
57,
58
],
[
8,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
62,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
75,
85
],
[
85,
86
],
[
86,
87
],
[
75,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
89,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
89,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
105,
115
],
[
115,
116
],
[
116,
117
],
[
105,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
121,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
120,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
8,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
145,
147
],
[
138,
148
],
[
148,
149
],
[
149,
150
],
[
138,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
6,
167
],
[
167,
168
],
[
0,
169
],
[
169,
170
],
[
169,
171
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tchar chA ='a';\n\t\tchar chA1 ='A';\n\t\tchar[] arrayAlpha = new char[26];\n\t\tchar[] arrayAlpha1 = new char[26];\n\n\n\t\tint[] arrayCount = new int[26];\n\n\t\tfor(int i = 0; i <= ('z'-'a'); i++) {\n\t\t\t//System.out.println(chA++);\n\t\t\tarrayAlpha[i] = chA;\n\t\t\tarrayAlpha1[i] = chA1;\n\n\t\t\tchA1++;\n\t\t\tchA++;\n\t\t//\tSystem.out.println(\"arrayAlpha[i]\"+arrayAlpha[i]);\n\t\t}\n\n\t\tString strKarioki =\"\";\n\t\tchar chKarioki1 =' ';\n\n\t\twhile(sc.hasNext()) {\n\n\t\t\tString strInput = sc.nextLine();\n\n\t\t\tfor(int i = 0; i < strInput.length(); i++) {\n\n\t\t\t\t//??\\?????????????????????????§£????????????\n\t\t\t\tstrKarioki = strInput.substring(i,i+1);\n\t\t\t\t//String??????char??????????????????\n\t\t\t\tchKarioki1 = strKarioki.charAt(0);\n\n\t\t\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\tSystem.out.println(arrayAlpha[j] +\" : \"+arrayCount[j]);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tchar chA ='a';\n\t\tchar chA1 ='A';\n\t\tchar[] arrayAlpha = new char[26];\n\t\tchar[] arrayAlpha1 = new char[26];\n\n\n\t\tint[] arrayCount = new int[26];\n\n\t\tfor(int i = 0; i <= ('z'-'a'); i++) {\n\t\t\t//System.out.println(chA++);\n\t\t\tarrayAlpha[i] = chA;\n\t\t\tarrayAlpha1[i] = chA1;\n\n\t\t\tchA1++;\n\t\t\tchA++;\n\t\t//\tSystem.out.println(\"arrayAlpha[i]\"+arrayAlpha[i]);\n\t\t}\n\n\t\tString strKarioki =\"\";\n\t\tchar chKarioki1 =' ';\n\n\t\twhile(sc.hasNext()) {\n\n\t\t\tString strInput = sc.nextLine();\n\n\t\t\tfor(int i = 0; i < strInput.length(); i++) {\n\n\t\t\t\t//??\\?????????????????????????§£????????????\n\t\t\t\tstrKarioki = strInput.substring(i,i+1);\n\t\t\t\t//String??????char??????????????????\n\t\t\t\tchKarioki1 = strKarioki.charAt(0);\n\n\t\t\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\tSystem.out.println(arrayAlpha[j] +\" : \"+arrayCount[j]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tchar chA ='a';\n\t\tchar chA1 ='A';\n\t\tchar[] arrayAlpha = new char[26];\n\t\tchar[] arrayAlpha1 = new char[26];\n\n\n\t\tint[] arrayCount = new int[26];\n\n\t\tfor(int i = 0; i <= ('z'-'a'); i++) {\n\t\t\t//System.out.println(chA++);\n\t\t\tarrayAlpha[i] = chA;\n\t\t\tarrayAlpha1[i] = chA1;\n\n\t\t\tchA1++;\n\t\t\tchA++;\n\t\t//\tSystem.out.println(\"arrayAlpha[i]\"+arrayAlpha[i]);\n\t\t}\n\n\t\tString strKarioki =\"\";\n\t\tchar chKarioki1 =' ';\n\n\t\twhile(sc.hasNext()) {\n\n\t\t\tString strInput = sc.nextLine();\n\n\t\t\tfor(int i = 0; i < strInput.length(); i++) {\n\n\t\t\t\t//??\\?????????????????????????§£????????????\n\t\t\t\tstrKarioki = strInput.substring(i,i+1);\n\t\t\t\t//String??????char??????????????????\n\t\t\t\tchKarioki1 = strKarioki.charAt(0);\n\n\t\t\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\tSystem.out.println(arrayAlpha[j] +\" : \"+arrayCount[j]);\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tchar chA ='a';\n\t\tchar chA1 ='A';\n\t\tchar[] arrayAlpha = new char[26];\n\t\tchar[] arrayAlpha1 = new char[26];\n\n\n\t\tint[] arrayCount = new int[26];\n\n\t\tfor(int i = 0; i <= ('z'-'a'); i++) {\n\t\t\t//System.out.println(chA++);\n\t\t\tarrayAlpha[i] = chA;\n\t\t\tarrayAlpha1[i] = chA1;\n\n\t\t\tchA1++;\n\t\t\tchA++;\n\t\t//\tSystem.out.println(\"arrayAlpha[i]\"+arrayAlpha[i]);\n\t\t}\n\n\t\tString strKarioki =\"\";\n\t\tchar chKarioki1 =' ';\n\n\t\twhile(sc.hasNext()) {\n\n\t\t\tString strInput = sc.nextLine();\n\n\t\t\tfor(int i = 0; i < strInput.length(); i++) {\n\n\t\t\t\t//??\\?????????????????????????§£????????????\n\t\t\t\tstrKarioki = strInput.substring(i,i+1);\n\t\t\t\t//String??????char??????????????????\n\t\t\t\tchKarioki1 = strKarioki.charAt(0);\n\n\t\t\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\tSystem.out.println(arrayAlpha[j] +\" : \"+arrayCount[j]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"char chA ='a';",
"chA",
"'a'",
"char chA1 ='A';",
"chA1",
"'A'",
"char[] arrayAlpha = new char[26];",
"arrayAlpha",
"new char[26]",
"26",
"char[] arrayAlpha1 = new char[26];",
"arrayAlpha1",
"new char[26]",
"26",
"int[] arrayCount = new int[26];",
"arrayCount",
"new int[26]",
"26",
"for(int i = 0; i <= ('z'-'a'); i++) {\n\t\t\t//System.out.println(chA++);\n\t\t\tarrayAlpha[i] = chA;\n\t\t\tarrayAlpha1[i] = chA1;\n\n\t\t\tchA1++;\n\t\t\tchA++;\n\t\t//\tSystem.out.println(\"arrayAlpha[i]\"+arrayAlpha[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= ('z'-'a')",
"i",
"('z'-'a')",
"'z'",
"'a'",
"i++",
"i++",
"i",
"{\n\t\t\t//System.out.println(chA++);\n\t\t\tarrayAlpha[i] = chA;\n\t\t\tarrayAlpha1[i] = chA1;\n\n\t\t\tchA1++;\n\t\t\tchA++;\n\t\t//\tSystem.out.println(\"arrayAlpha[i]\"+arrayAlpha[i]);\n\t\t}",
"{\n\t\t\t//System.out.println(chA++);\n\t\t\tarrayAlpha[i] = chA;\n\t\t\tarrayAlpha1[i] = chA1;\n\n\t\t\tchA1++;\n\t\t\tchA++;\n\t\t//\tSystem.out.println(\"arrayAlpha[i]\"+arrayAlpha[i]);\n\t\t}",
"arrayAlpha[i] = chA",
"arrayAlpha[i]",
"arrayAlpha",
"i",
"chA",
"arrayAlpha1[i] = chA1",
"arrayAlpha1[i]",
"arrayAlpha1",
"i",
"chA1",
"chA1++",
"chA1",
"chA++",
"chA",
"String strKarioki =\"\";",
"strKarioki",
"\"\"",
"char chKarioki1 =' ';",
"chKarioki1",
"' '",
"while(sc.hasNext()) {\n\n\t\t\tString strInput = sc.nextLine();\n\n\t\t\tfor(int i = 0; i < strInput.length(); i++) {\n\n\t\t\t\t//??\\?????????????????????????§£????????????\n\t\t\t\tstrKarioki = strInput.substring(i,i+1);\n\t\t\t\t//String??????char??????????????????\n\t\t\t\tchKarioki1 = strKarioki.charAt(0);\n\n\t\t\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\n\t\t\tString strInput = sc.nextLine();\n\n\t\t\tfor(int i = 0; i < strInput.length(); i++) {\n\n\t\t\t\t//??\\?????????????????????????§£????????????\n\t\t\t\tstrKarioki = strInput.substring(i,i+1);\n\t\t\t\t//String??????char??????????????????\n\t\t\t\tchKarioki1 = strKarioki.charAt(0);\n\n\t\t\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String strInput = sc.nextLine();",
"strInput",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int i = 0; i < strInput.length(); i++) {\n\n\t\t\t\t//??\\?????????????????????????§£????????????\n\t\t\t\tstrKarioki = strInput.substring(i,i+1);\n\t\t\t\t//String??????char??????????????????\n\t\t\t\tchKarioki1 = strKarioki.charAt(0);\n\n\t\t\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < strInput.length()",
"i",
"strInput.length()",
"strInput.length",
"strInput",
"i++",
"i++",
"i",
"{\n\n\t\t\t\t//??\\?????????????????????????§£????????????\n\t\t\t\tstrKarioki = strInput.substring(i,i+1);\n\t\t\t\t//String??????char??????????????????\n\t\t\t\tchKarioki1 = strKarioki.charAt(0);\n\n\t\t\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\n\t\t\t\t//??\\?????????????????????????§£????????????\n\t\t\t\tstrKarioki = strInput.substring(i,i+1);\n\t\t\t\t//String??????char??????????????????\n\t\t\t\tchKarioki1 = strKarioki.charAt(0);\n\n\t\t\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"strKarioki = strInput.substring(i,i+1)",
"strKarioki",
"strInput.substring(i,i+1)",
"strInput.substring",
"strInput",
"i",
"i+1",
"i",
"1",
"chKarioki1 = strKarioki.charAt(0)",
"chKarioki1",
"strKarioki.charAt(0)",
"strKarioki.charAt",
"strKarioki",
"0",
"for(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j <= ('z'-'a')",
"j",
"('z'-'a')",
"'z'",
"'a'",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}",
"chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]",
"chKarioki1 == arrayAlpha[j]",
"chKarioki1",
"arrayAlpha[j]",
"arrayAlpha",
"j",
"chKarioki1 == arrayAlpha1[j]",
"chKarioki1",
"arrayAlpha1[j]",
"arrayAlpha1",
"j",
"{\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}",
"arrayCount[j] += 1",
"arrayCount[j]",
"arrayCount",
"j",
"1",
"for(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\tSystem.out.println(arrayAlpha[j] +\" : \"+arrayCount[j]);\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j <= ('z'-'a')",
"j",
"('z'-'a')",
"'z'",
"'a'",
"j++",
"j++",
"j",
"{\n\t\t\tSystem.out.println(arrayAlpha[j] +\" : \"+arrayCount[j]);\n\t\t}",
"{\n\t\t\tSystem.out.println(arrayAlpha[j] +\" : \"+arrayCount[j]);\n\t\t}",
"System.out.println(arrayAlpha[j] +\" : \"+arrayCount[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"arrayAlpha[j] +\" : \"+arrayCount[j]",
"arrayAlpha[j] +\" : \"+arrayCount[j]",
"arrayAlpha[j]",
"arrayAlpha",
"j",
"\" : \"",
"arrayCount[j]",
"arrayCount",
"j",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tchar chA ='a';\n\t\tchar chA1 ='A';\n\t\tchar[] arrayAlpha = new char[26];\n\t\tchar[] arrayAlpha1 = new char[26];\n\n\n\t\tint[] arrayCount = new int[26];\n\n\t\tfor(int i = 0; i <= ('z'-'a'); i++) {\n\t\t\t//System.out.println(chA++);\n\t\t\tarrayAlpha[i] = chA;\n\t\t\tarrayAlpha1[i] = chA1;\n\n\t\t\tchA1++;\n\t\t\tchA++;\n\t\t//\tSystem.out.println(\"arrayAlpha[i]\"+arrayAlpha[i]);\n\t\t}\n\n\t\tString strKarioki =\"\";\n\t\tchar chKarioki1 =' ';\n\n\t\twhile(sc.hasNext()) {\n\n\t\t\tString strInput = sc.nextLine();\n\n\t\t\tfor(int i = 0; i < strInput.length(); i++) {\n\n\t\t\t\t//??\\?????????????????????????§£????????????\n\t\t\t\tstrKarioki = strInput.substring(i,i+1);\n\t\t\t\t//String??????char??????????????????\n\t\t\t\tchKarioki1 = strKarioki.charAt(0);\n\n\t\t\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\tSystem.out.println(arrayAlpha[j] +\" : \"+arrayCount[j]);\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tchar chA ='a';\n\t\tchar chA1 ='A';\n\t\tchar[] arrayAlpha = new char[26];\n\t\tchar[] arrayAlpha1 = new char[26];\n\n\n\t\tint[] arrayCount = new int[26];\n\n\t\tfor(int i = 0; i <= ('z'-'a'); i++) {\n\t\t\t//System.out.println(chA++);\n\t\t\tarrayAlpha[i] = chA;\n\t\t\tarrayAlpha1[i] = chA1;\n\n\t\t\tchA1++;\n\t\t\tchA++;\n\t\t//\tSystem.out.println(\"arrayAlpha[i]\"+arrayAlpha[i]);\n\t\t}\n\n\t\tString strKarioki =\"\";\n\t\tchar chKarioki1 =' ';\n\n\t\twhile(sc.hasNext()) {\n\n\t\t\tString strInput = sc.nextLine();\n\n\t\t\tfor(int i = 0; i < strInput.length(); i++) {\n\n\t\t\t\t//??\\?????????????????????????§£????????????\n\t\t\t\tstrKarioki = strInput.substring(i,i+1);\n\t\t\t\t//String??????char??????????????????\n\t\t\t\tchKarioki1 = strKarioki.charAt(0);\n\n\t\t\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\t\t\tif(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {\n\t\t\t\t\t\tarrayCount[j] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int j = 0; j <= ('z'-'a'); j++) {\n\t\t\tSystem.out.println(arrayAlpha[j] +\" : \"+arrayCount[j]);\n\t\t}\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char chA ='a';
char chA1 ='A';
char[] arrayAlpha = new char[26];
char[] arrayAlpha1 = new char[26];
int[] arrayCount = new int[26];
for(int i = 0; i <= ('z'-'a'); i++) {
//System.out.println(chA++);
arrayAlpha[i] = chA;
arrayAlpha1[i] = chA1;
chA1++;
chA++;
// System.out.println("arrayAlpha[i]"+arrayAlpha[i]);
}
String strKarioki ="";
char chKarioki1 =' ';
while(sc.hasNext()) {
String strInput = sc.nextLine();
for(int i = 0; i < strInput.length(); i++) {
//??\?????????????????????????§£????????????
strKarioki = strInput.substring(i,i+1);
//String??????char??????????????????
chKarioki1 = strKarioki.charAt(0);
for(int j = 0; j <= ('z'-'a'); j++) {
if(chKarioki1 == arrayAlpha[j] || chKarioki1 == arrayAlpha1[j]) {
arrayCount[j] += 1;
}
}
}
}
for(int j = 0; j <= ('z'-'a'); j++) {
System.out.println(arrayAlpha[j] +" : "+arrayCount[j]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
4,
18,
13,
13,
17,
14,
2,
13,
17,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
17,
2,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
92,
5
],
[
92,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
26,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
44,
49
],
[
43,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
59,
69
],
[
69,
70
],
[
70,
71
],
[
59,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
79,
86
],
[
86,
87
],
[
86,
88
],
[
6,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint[] list = new int[26];\n\t\twhile (scanner.hasNext()) {\n\t\t\tString a = scanner.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < a.length(); i++) {\n\t\t\t\tint c = a.toLowerCase().codePointAt(i) - 97;\n\t\t\t\tif (c >= 0)\n\t\t\t\t\tlist[c]++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < list.length; i++) {\n\t\t\tSystem.out.println(String.format(\"%s : %d\", (char) (i + 97),\n\t\t\t\t\tlist[i]));\n\t\t}\n\n\t}\n}",
"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\n\t\tint[] list = new int[26];\n\t\twhile (scanner.hasNext()) {\n\t\t\tString a = scanner.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < a.length(); i++) {\n\t\t\t\tint c = a.toLowerCase().codePointAt(i) - 97;\n\t\t\t\tif (c >= 0)\n\t\t\t\t\tlist[c]++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < list.length; i++) {\n\t\t\tSystem.out.println(String.format(\"%s : %d\", (char) (i + 97),\n\t\t\t\t\tlist[i]));\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint[] list = new int[26];\n\t\twhile (scanner.hasNext()) {\n\t\t\tString a = scanner.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < a.length(); i++) {\n\t\t\t\tint c = a.toLowerCase().codePointAt(i) - 97;\n\t\t\t\tif (c >= 0)\n\t\t\t\t\tlist[c]++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < list.length; i++) {\n\t\t\tSystem.out.println(String.format(\"%s : %d\", (char) (i + 97),\n\t\t\t\t\tlist[i]));\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint[] list = new int[26];\n\t\twhile (scanner.hasNext()) {\n\t\t\tString a = scanner.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < a.length(); i++) {\n\t\t\t\tint c = a.toLowerCase().codePointAt(i) - 97;\n\t\t\t\tif (c >= 0)\n\t\t\t\t\tlist[c]++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < list.length; i++) {\n\t\t\tSystem.out.println(String.format(\"%s : %d\", (char) (i + 97),\n\t\t\t\t\tlist[i]));\n\t\t}\n\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int[] list = new int[26];",
"list",
"new int[26]",
"26",
"while (scanner.hasNext()) {\n\t\t\tString a = scanner.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < a.length(); i++) {\n\t\t\t\tint c = a.toLowerCase().codePointAt(i) - 97;\n\t\t\t\tif (c >= 0)\n\t\t\t\t\tlist[c]++;\n\t\t\t}\n\t\t}",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\n\t\t\tString a = scanner.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < a.length(); i++) {\n\t\t\t\tint c = a.toLowerCase().codePointAt(i) - 97;\n\t\t\t\tif (c >= 0)\n\t\t\t\t\tlist[c]++;\n\t\t\t}\n\t\t}",
"String a = scanner.nextLine();",
"a",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"for (int i = 0; i < a.length(); i++) {\n\t\t\t\tint c = a.toLowerCase().codePointAt(i) - 97;\n\t\t\t\tif (c >= 0)\n\t\t\t\t\tlist[c]++;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length()",
"i",
"a.length()",
"a.length",
"a",
"i++",
"i++",
"i",
"{\n\t\t\t\tint c = a.toLowerCase().codePointAt(i) - 97;\n\t\t\t\tif (c >= 0)\n\t\t\t\t\tlist[c]++;\n\t\t\t}",
"{\n\t\t\t\tint c = a.toLowerCase().codePointAt(i) - 97;\n\t\t\t\tif (c >= 0)\n\t\t\t\t\tlist[c]++;\n\t\t\t}",
"int c = a.toLowerCase().codePointAt(i) - 97;",
"c",
"a.toLowerCase().codePointAt(i) - 97",
"a.toLowerCase().codePointAt(i)",
"a.toLowerCase().codePointAt",
"a.toLowerCase()",
"a.toLowerCase",
"a",
"i",
"97",
"if (c >= 0)\n\t\t\t\t\tlist[c]++;",
"c >= 0",
"c",
"0",
"list[c]++",
"list[c]",
"list",
"c",
"for (int i = 0; i < list.length; i++) {\n\t\t\tSystem.out.println(String.format(\"%s : %d\", (char) (i + 97),\n\t\t\t\t\tlist[i]));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < list.length",
"i",
"list.length",
"list",
"list.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(String.format(\"%s : %d\", (char) (i + 97),\n\t\t\t\t\tlist[i]));\n\t\t}",
"{\n\t\t\tSystem.out.println(String.format(\"%s : %d\", (char) (i + 97),\n\t\t\t\t\tlist[i]));\n\t\t}",
"System.out.println(String.format(\"%s : %d\", (char) (i + 97),\n\t\t\t\t\tlist[i]))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%s : %d\", (char) (i + 97),\n\t\t\t\t\tlist[i])",
"String.format",
"String",
"\"%s : %d\"",
"(char) (i + 97)",
"i",
"97",
"list[i]",
"list",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint[] list = new int[26];\n\t\twhile (scanner.hasNext()) {\n\t\t\tString a = scanner.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < a.length(); i++) {\n\t\t\t\tint c = a.toLowerCase().codePointAt(i) - 97;\n\t\t\t\tif (c >= 0)\n\t\t\t\t\tlist[c]++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < list.length; i++) {\n\t\t\tSystem.out.println(String.format(\"%s : %d\", (char) (i + 97),\n\t\t\t\t\tlist[i]));\n\t\t}\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint[] list = new int[26];\n\t\twhile (scanner.hasNext()) {\n\t\t\tString a = scanner.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < a.length(); i++) {\n\t\t\t\tint c = a.toLowerCase().codePointAt(i) - 97;\n\t\t\t\tif (c >= 0)\n\t\t\t\t\tlist[c]++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < list.length; i++) {\n\t\t\tSystem.out.println(String.format(\"%s : %d\", (char) (i + 97),\n\t\t\t\t\tlist[i]));\n\t\t}\n\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int[] list = new int[26];
while (scanner.hasNext()) {
String a = scanner.nextLine();
for (int i = 0; i < a.length(); i++) {
int c = a.toLowerCase().codePointAt(i) - 97;
if (c >= 0)
list[c]++;
}
}
for (int i = 0; i < list.length; i++) {
System.out.println(String.format("%s : %d", (char) (i + 97),
list[i]));
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
2,
4,
18,
13,
13,
17,
2,
4,
18,
13,
13,
17,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
100,
5
],
[
100,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
47,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
46,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
89,
89
],
[
89,
90
],
[
89,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
6,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] a = new int[26];\n\n while(sc.hasNext()) {\n String s = sc.nextLine();\n s = s.toLowerCase();\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {\n a[s.charAt(i) - 'a']++;\n }\n }\n }\n for(char i='a'; i<='z'; i++) {\n System.out.println(i + \" : \" + a[i-'a']);\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] a = new int[26];\n\n while(sc.hasNext()) {\n String s = sc.nextLine();\n s = s.toLowerCase();\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {\n a[s.charAt(i) - 'a']++;\n }\n }\n }\n for(char i='a'; i<='z'; i++) {\n System.out.println(i + \" : \" + a[i-'a']);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] a = new int[26];\n\n while(sc.hasNext()) {\n String s = sc.nextLine();\n s = s.toLowerCase();\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {\n a[s.charAt(i) - 'a']++;\n }\n }\n }\n for(char i='a'; i<='z'; i++) {\n System.out.println(i + \" : \" + a[i-'a']);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] a = new int[26];\n\n while(sc.hasNext()) {\n String s = sc.nextLine();\n s = s.toLowerCase();\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {\n a[s.charAt(i) - 'a']++;\n }\n }\n }\n for(char i='a'; i<='z'; i++) {\n System.out.println(i + \" : \" + a[i-'a']);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] a = new int[26];",
"a",
"new int[26]",
"26",
"while(sc.hasNext()) {\n String s = sc.nextLine();\n s = s.toLowerCase();\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {\n a[s.charAt(i) - 'a']++;\n }\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String s = sc.nextLine();\n s = s.toLowerCase();\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {\n a[s.charAt(i) - 'a']++;\n }\n }\n }",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"s = s.toLowerCase()",
"s",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {\n a[s.charAt(i) - 'a']++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {\n a[s.charAt(i) - 'a']++;\n }\n }",
"{\n if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {\n a[s.charAt(i) - 'a']++;\n }\n }",
"if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {\n a[s.charAt(i) - 'a']++;\n }",
"s.charAt(i) >= 'a' && s.charAt(i) <= 'z'",
"s.charAt(i) >= 'a'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'a'",
"s.charAt(i) <= 'z'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'z'",
"{\n a[s.charAt(i) - 'a']++;\n }",
"a[s.charAt(i) - 'a']++",
"a[s.charAt(i) - 'a']",
"a",
"s.charAt(i) - 'a'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'a'",
"for(char i='a'; i<='z'; i++) {\n System.out.println(i + \" : \" + a[i-'a']);\n }",
"char i='a';",
"char i='a';",
"i",
"'a'",
"i<='z'",
"i",
"'z'",
"i++",
"i++",
"i",
"{\n System.out.println(i + \" : \" + a[i-'a']);\n }",
"{\n System.out.println(i + \" : \" + a[i-'a']);\n }",
"System.out.println(i + \" : \" + a[i-'a'])",
"System.out.println",
"System.out",
"System",
"System.out",
"i + \" : \" + a[i-'a']",
"i + \" : \" + a[i-'a']",
"i",
"\" : \"",
"a[i-'a']",
"a",
"i-'a'",
"i",
"'a'",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] a = new int[26];\n\n while(sc.hasNext()) {\n String s = sc.nextLine();\n s = s.toLowerCase();\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {\n a[s.charAt(i) - 'a']++;\n }\n }\n }\n for(char i='a'; i<='z'; i++) {\n System.out.println(i + \" : \" + a[i-'a']);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] a = new int[26];\n\n while(sc.hasNext()) {\n String s = sc.nextLine();\n s = s.toLowerCase();\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {\n a[s.charAt(i) - 'a']++;\n }\n }\n }\n for(char i='a'; i<='z'; i++) {\n System.out.println(i + \" : \" + a[i-'a']);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] a = new int[26];
while(sc.hasNext()) {
String s = sc.nextLine();
s = s.toLowerCase();
for(int i=0; i<s.length(); i++) {
if(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {
a[s.charAt(i) - 'a']++;
}
}
}
for(char i='a'; i<='z'; i++) {
System.out.println(i + " : " + a[i-'a']);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
4,
18,
13,
13,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
14,
4,
18,
13,
4,
18,
13,
13,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
26,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
53,
58
],
[
41,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
77,
87
],
[
87,
88
],
[
88,
89
],
[
77,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
6,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n int [] count = new int[26];\n \n while(sc.hasNext()){\n String line = sc.next();\n \n for(int i = 0; i < line.length(); i++){\n if(Character.isLowerCase(line.charAt(i))){\n ++count[line.charAt(i) - 'a'];\n }\n \n else if(Character.isUpperCase(line.charAt(i))){\n ++count[line.charAt(i) - 'A'];\n }\n }\n }\n \n for(int i = 0; i < count.length; i++){\n System.out.println((char)('a' + i) + \" : \" + count[i]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n int [] count = new int[26];\n \n while(sc.hasNext()){\n String line = sc.next();\n \n for(int i = 0; i < line.length(); i++){\n if(Character.isLowerCase(line.charAt(i))){\n ++count[line.charAt(i) - 'a'];\n }\n \n else if(Character.isUpperCase(line.charAt(i))){\n ++count[line.charAt(i) - 'A'];\n }\n }\n }\n \n for(int i = 0; i < count.length; i++){\n System.out.println((char)('a' + i) + \" : \" + count[i]);\n }\n }\n}",
"Main",
"public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n int [] count = new int[26];\n \n while(sc.hasNext()){\n String line = sc.next();\n \n for(int i = 0; i < line.length(); i++){\n if(Character.isLowerCase(line.charAt(i))){\n ++count[line.charAt(i) - 'a'];\n }\n \n else if(Character.isUpperCase(line.charAt(i))){\n ++count[line.charAt(i) - 'A'];\n }\n }\n }\n \n for(int i = 0; i < count.length; i++){\n System.out.println((char)('a' + i) + \" : \" + count[i]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int [] count = new int[26];\n \n while(sc.hasNext()){\n String line = sc.next();\n \n for(int i = 0; i < line.length(); i++){\n if(Character.isLowerCase(line.charAt(i))){\n ++count[line.charAt(i) - 'a'];\n }\n \n else if(Character.isUpperCase(line.charAt(i))){\n ++count[line.charAt(i) - 'A'];\n }\n }\n }\n \n for(int i = 0; i < count.length; i++){\n System.out.println((char)('a' + i) + \" : \" + count[i]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int [] count = new int[26];",
"count",
"new int[26]",
"26",
"while(sc.hasNext()){\n String line = sc.next();\n \n for(int i = 0; i < line.length(); i++){\n if(Character.isLowerCase(line.charAt(i))){\n ++count[line.charAt(i) - 'a'];\n }\n \n else if(Character.isUpperCase(line.charAt(i))){\n ++count[line.charAt(i) - 'A'];\n }\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String line = sc.next();\n \n for(int i = 0; i < line.length(); i++){\n if(Character.isLowerCase(line.charAt(i))){\n ++count[line.charAt(i) - 'a'];\n }\n \n else if(Character.isUpperCase(line.charAt(i))){\n ++count[line.charAt(i) - 'A'];\n }\n }\n }",
"String line = sc.next();",
"line",
"sc.next()",
"sc.next",
"sc",
"for(int i = 0; i < line.length(); i++){\n if(Character.isLowerCase(line.charAt(i))){\n ++count[line.charAt(i) - 'a'];\n }\n \n else if(Character.isUpperCase(line.charAt(i))){\n ++count[line.charAt(i) - 'A'];\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < line.length()",
"i",
"line.length()",
"line.length",
"line",
"i++",
"i++",
"i",
"{\n if(Character.isLowerCase(line.charAt(i))){\n ++count[line.charAt(i) - 'a'];\n }\n \n else if(Character.isUpperCase(line.charAt(i))){\n ++count[line.charAt(i) - 'A'];\n }\n }",
"{\n if(Character.isLowerCase(line.charAt(i))){\n ++count[line.charAt(i) - 'a'];\n }\n \n else if(Character.isUpperCase(line.charAt(i))){\n ++count[line.charAt(i) - 'A'];\n }\n }",
"if(Character.isLowerCase(line.charAt(i))){\n ++count[line.charAt(i) - 'a'];\n }\n \n else if(Character.isUpperCase(line.charAt(i))){\n ++count[line.charAt(i) - 'A'];\n }",
"Character.isLowerCase(line.charAt(i))",
"Character.isLowerCase",
"Character",
"line.charAt(i)",
"line.charAt",
"line",
"i",
"{\n ++count[line.charAt(i) - 'a'];\n }",
"++count[line.charAt(i) - 'a']",
"count[line.charAt(i) - 'a']",
"count",
"line.charAt(i) - 'a'",
"line.charAt(i)",
"line.charAt",
"line",
"i",
"'a'",
"if(Character.isUpperCase(line.charAt(i))){\n ++count[line.charAt(i) - 'A'];\n }",
"Character.isUpperCase(line.charAt(i))",
"Character.isUpperCase",
"Character",
"line.charAt(i)",
"line.charAt",
"line",
"i",
"{\n ++count[line.charAt(i) - 'A'];\n }",
"++count[line.charAt(i) - 'A']",
"count[line.charAt(i) - 'A']",
"count",
"line.charAt(i) - 'A'",
"line.charAt(i)",
"line.charAt",
"line",
"i",
"'A'",
"for(int i = 0; i < count.length; i++){\n System.out.println((char)('a' + i) + \" : \" + count[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count.length",
"i",
"count.length",
"count",
"count.length",
"i++",
"i++",
"i",
"{\n System.out.println((char)('a' + i) + \" : \" + count[i]);\n }",
"{\n System.out.println((char)('a' + i) + \" : \" + count[i]);\n }",
"System.out.println((char)('a' + i) + \" : \" + count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)('a' + i) + \" : \" + count[i]",
"(char)('a' + i) + \" : \" + count[i]",
"(char)('a' + i)",
"'a'",
"i",
"\" : \"",
"count[i]",
"count",
"i",
"String [] args",
"args",
"public class Main {\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n int [] count = new int[26];\n \n while(sc.hasNext()){\n String line = sc.next();\n \n for(int i = 0; i < line.length(); i++){\n if(Character.isLowerCase(line.charAt(i))){\n ++count[line.charAt(i) - 'a'];\n }\n \n else if(Character.isUpperCase(line.charAt(i))){\n ++count[line.charAt(i) - 'A'];\n }\n }\n }\n \n for(int i = 0; i < count.length; i++){\n System.out.println((char)('a' + i) + \" : \" + count[i]);\n }\n }\n}",
"public class Main {\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n int [] count = new int[26];\n \n while(sc.hasNext()){\n String line = sc.next();\n \n for(int i = 0; i < line.length(); i++){\n if(Character.isLowerCase(line.charAt(i))){\n ++count[line.charAt(i) - 'a'];\n }\n \n else if(Character.isUpperCase(line.charAt(i))){\n ++count[line.charAt(i) - 'A'];\n }\n }\n }\n \n for(int i = 0; i < count.length; i++){\n System.out.println((char)('a' + i) + \" : \" + count[i]);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String [] args){
Scanner sc = new Scanner(System.in);
int [] count = new int[26];
while(sc.hasNext()){
String line = sc.next();
for(int i = 0; i < line.length(); i++){
if(Character.isLowerCase(line.charAt(i))){
++count[line.charAt(i) - 'a'];
}
else if(Character.isUpperCase(line.charAt(i))){
++count[line.charAt(i) - 'A'];
}
}
}
for(int i = 0; i < count.length; i++){
System.out.println((char)('a' + i) + " : " + count[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
13,
30,
40,
18,
13,
13,
40,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
40,
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
],
[
124,
11
],
[
124,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
33,
43
],
[
43,
44
],
[
44,
45
],
[
33,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
47,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
47,
60
],
[
60,
61
],
[
60,
62
],
[
47,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
63,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
77,
87
],
[
87,
88
],
[
14,
89
],
[
89,
90
],
[
89,
91
],
[
14,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
92,
102
],
[
102,
103
],
[
103,
104
],
[
92,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
113,
113
],
[
113,
114
],
[
113,
115
],
[
113,
116
],
[
116,
117
],
[
116,
118
],
[
106,
119
],
[
119,
120
],
[
12,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
]
| [
"import java.io.*;\nimport java.util.Arrays;\nimport java.util.Scanner;\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\tString line;\n\t\tint[] abc = new int[26];\n\t\twhile((line = br.readLine()) != null){\n\t\t\tfor (int i = 0; i<line.length() ; i++ ) {\n\t\t\t\tchar c = line.charAt(i);\n\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\tchar cc ='a';\n\t\t\t\tfor (int j = 0; j<abc.length ; j++ ) {\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchar c ='a';\n\t\tfor (int i = 0 ; i<abc.length ; i++ ) {\n\t\t\tSystem.out.println(c+\" : \"+abc[i]);\n\t\t\tc++;\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"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\tString line;\n\t\tint[] abc = new int[26];\n\t\twhile((line = br.readLine()) != null){\n\t\t\tfor (int i = 0; i<line.length() ; i++ ) {\n\t\t\t\tchar c = line.charAt(i);\n\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\tchar cc ='a';\n\t\t\t\tfor (int j = 0; j<abc.length ; j++ ) {\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchar c ='a';\n\t\tfor (int i = 0 ; i<abc.length ; i++ ) {\n\t\t\tSystem.out.println(c+\" : \"+abc[i]);\n\t\t\tc++;\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint[] abc = new int[26];\n\t\twhile((line = br.readLine()) != null){\n\t\t\tfor (int i = 0; i<line.length() ; i++ ) {\n\t\t\t\tchar c = line.charAt(i);\n\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\tchar cc ='a';\n\t\t\t\tfor (int j = 0; j<abc.length ; j++ ) {\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchar c ='a';\n\t\tfor (int i = 0 ; i<abc.length ; i++ ) {\n\t\t\tSystem.out.println(c+\" : \"+abc[i]);\n\t\t\tc++;\n\t\t}\n\t}",
"main",
"{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint[] abc = new int[26];\n\t\twhile((line = br.readLine()) != null){\n\t\t\tfor (int i = 0; i<line.length() ; i++ ) {\n\t\t\t\tchar c = line.charAt(i);\n\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\tchar cc ='a';\n\t\t\t\tfor (int j = 0; j<abc.length ; j++ ) {\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchar c ='a';\n\t\tfor (int i = 0 ; i<abc.length ; i++ ) {\n\t\t\tSystem.out.println(c+\" : \"+abc[i]);\n\t\t\tc++;\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"int[] abc = new int[26];",
"abc",
"new int[26]",
"26",
"while((line = br.readLine()) != null){\n\t\t\tfor (int i = 0; i<line.length() ; i++ ) {\n\t\t\t\tchar c = line.charAt(i);\n\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\tchar cc ='a';\n\t\t\t\tfor (int j = 0; j<abc.length ; j++ ) {\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tfor (int i = 0; i<line.length() ; i++ ) {\n\t\t\t\tchar c = line.charAt(i);\n\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\tchar cc ='a';\n\t\t\t\tfor (int j = 0; j<abc.length ; j++ ) {\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int i = 0; i<line.length() ; i++ ) {\n\t\t\t\tchar c = line.charAt(i);\n\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\tchar cc ='a';\n\t\t\t\tfor (int j = 0; j<abc.length ; j++ ) {\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<line.length()",
"i",
"line.length()",
"line.length",
"line",
"i++",
"i++",
"i",
"{\n\t\t\t\tchar c = line.charAt(i);\n\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\tchar cc ='a';\n\t\t\t\tfor (int j = 0; j<abc.length ; j++ ) {\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tchar c = line.charAt(i);\n\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\tchar cc ='a';\n\t\t\t\tfor (int j = 0; j<abc.length ; j++ ) {\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}",
"char c = line.charAt(i);",
"c",
"line.charAt(i)",
"line.charAt",
"line",
"i",
"c = Character.toLowerCase(c)",
"c",
"Character.toLowerCase(c)",
"Character.toLowerCase",
"Character",
"c",
"char cc ='a';",
"cc",
"'a'",
"for (int j = 0; j<abc.length ; j++ ) {\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<abc.length",
"j",
"abc.length",
"abc",
"abc.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}",
"{\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}",
"if (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}",
"cc == c",
"cc",
"c",
"{\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}",
"abc[j]++",
"abc[j]",
"abc",
"j",
"cc++",
"cc",
"char c ='a';",
"c",
"'a'",
"for (int i = 0 ; i<abc.length ; i++ ) {\n\t\t\tSystem.out.println(c+\" : \"+abc[i]);\n\t\t\tc++;\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i<abc.length",
"i",
"abc.length",
"abc",
"abc.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(c+\" : \"+abc[i]);\n\t\t\tc++;\n\t\t}",
"{\n\t\t\tSystem.out.println(c+\" : \"+abc[i]);\n\t\t\tc++;\n\t\t}",
"System.out.println(c+\" : \"+abc[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c+\" : \"+abc[i]",
"c+\" : \"+abc[i]",
"c",
"\" : \"",
"abc[i]",
"abc",
"i",
"c++",
"c",
"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\tString line;\n\t\tint[] abc = new int[26];\n\t\twhile((line = br.readLine()) != null){\n\t\t\tfor (int i = 0; i<line.length() ; i++ ) {\n\t\t\t\tchar c = line.charAt(i);\n\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\tchar cc ='a';\n\t\t\t\tfor (int j = 0; j<abc.length ; j++ ) {\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchar c ='a';\n\t\tfor (int i = 0 ; i<abc.length ; i++ ) {\n\t\t\tSystem.out.println(c+\" : \"+abc[i]);\n\t\t\tc++;\n\t\t}\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\tString line;\n\t\tint[] abc = new int[26];\n\t\twhile((line = br.readLine()) != null){\n\t\t\tfor (int i = 0; i<line.length() ; i++ ) {\n\t\t\t\tchar c = line.charAt(i);\n\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\tchar cc ='a';\n\t\t\t\tfor (int j = 0; j<abc.length ; j++ ) {\n\t\t\t\t\tif (cc == c) {\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchar c ='a';\n\t\tfor (int i = 0 ; i<abc.length ; i++ ) {\n\t\t\tSystem.out.println(c+\" : \"+abc[i]);\n\t\t\tc++;\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.Arrays;
import java.util.Scanner;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
int[] abc = new int[26];
while((line = br.readLine()) != null){
for (int i = 0; i<line.length() ; i++ ) {
char c = line.charAt(i);
c = Character.toLowerCase(c);
char cc ='a';
for (int j = 0; j<abc.length ; j++ ) {
if (cc == c) {
abc[j]++;
}
cc++;
}
}
}
char c ='a';
for (int i = 0 ; i<abc.length ; i++ ) {
System.out.println(c+" : "+abc[i]);
c++;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
4,
18,
13,
13,
17,
14,
2,
2,
17,
13,
2,
13,
17,
30,
40,
18,
13,
2,
4,
18,
13,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
13,
17,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
105,
5
],
[
105,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
45,
53
],
[
42,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
66,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
75,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
6,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
]
| [
"import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str;\n\t\tint[] alpha=new int[26];\n\t\twhile(sc.hasNext()){\n\t\t\tstr=sc.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tint ind=Character.getNumericValue(str.charAt(i))-10;\n\t\t\t\tif(0<=ind&&ind<26){\n\t\t\t\t\talpha[Character.getNumericValue(str.charAt(i))-10]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)(i+97)+\" : \"+alpha[i]);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str;\n\t\tint[] alpha=new int[26];\n\t\twhile(sc.hasNext()){\n\t\t\tstr=sc.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tint ind=Character.getNumericValue(str.charAt(i))-10;\n\t\t\t\tif(0<=ind&&ind<26){\n\t\t\t\t\talpha[Character.getNumericValue(str.charAt(i))-10]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)(i+97)+\" : \"+alpha[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str;\n\t\tint[] alpha=new int[26];\n\t\twhile(sc.hasNext()){\n\t\t\tstr=sc.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tint ind=Character.getNumericValue(str.charAt(i))-10;\n\t\t\t\tif(0<=ind&&ind<26){\n\t\t\t\t\talpha[Character.getNumericValue(str.charAt(i))-10]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)(i+97)+\" : \"+alpha[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str;\n\t\tint[] alpha=new int[26];\n\t\twhile(sc.hasNext()){\n\t\t\tstr=sc.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tint ind=Character.getNumericValue(str.charAt(i))-10;\n\t\t\t\tif(0<=ind&&ind<26){\n\t\t\t\t\talpha[Character.getNumericValue(str.charAt(i))-10]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)(i+97)+\" : \"+alpha[i]);\n\t\t}\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str;",
"str",
"int[] alpha=new int[26];",
"alpha",
"new int[26]",
"26",
"while(sc.hasNext()){\n\t\t\tstr=sc.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tint ind=Character.getNumericValue(str.charAt(i))-10;\n\t\t\t\tif(0<=ind&&ind<26){\n\t\t\t\t\talpha[Character.getNumericValue(str.charAt(i))-10]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tstr=sc.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tint ind=Character.getNumericValue(str.charAt(i))-10;\n\t\t\t\tif(0<=ind&&ind<26){\n\t\t\t\t\talpha[Character.getNumericValue(str.charAt(i))-10]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"str=sc.nextLine()",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int i=0;i<str.length();i++){\n\t\t\t\tint ind=Character.getNumericValue(str.charAt(i))-10;\n\t\t\t\tif(0<=ind&&ind<26){\n\t\t\t\t\talpha[Character.getNumericValue(str.charAt(i))-10]++;\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n\t\t\t\tint ind=Character.getNumericValue(str.charAt(i))-10;\n\t\t\t\tif(0<=ind&&ind<26){\n\t\t\t\t\talpha[Character.getNumericValue(str.charAt(i))-10]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tint ind=Character.getNumericValue(str.charAt(i))-10;\n\t\t\t\tif(0<=ind&&ind<26){\n\t\t\t\t\talpha[Character.getNumericValue(str.charAt(i))-10]++;\n\t\t\t\t}\n\t\t\t}",
"int ind=Character.getNumericValue(str.charAt(i))-10;",
"ind",
"Character.getNumericValue(str.charAt(i))-10",
"Character.getNumericValue(str.charAt(i))",
"Character.getNumericValue",
"Character",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"10",
"if(0<=ind&&ind<26){\n\t\t\t\t\talpha[Character.getNumericValue(str.charAt(i))-10]++;\n\t\t\t\t}",
"0<=ind&&ind<26",
"0<=ind",
"0",
"ind",
"ind<26",
"ind",
"26",
"{\n\t\t\t\t\talpha[Character.getNumericValue(str.charAt(i))-10]++;\n\t\t\t\t}",
"alpha[Character.getNumericValue(str.charAt(i))-10]++",
"alpha[Character.getNumericValue(str.charAt(i))-10]",
"alpha",
"Character.getNumericValue(str.charAt(i))-10",
"Character.getNumericValue(str.charAt(i))",
"Character.getNumericValue",
"Character",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"10",
"for(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)(i+97)+\" : \"+alpha[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println((char)(i+97)+\" : \"+alpha[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println((char)(i+97)+\" : \"+alpha[i]);\n\t\t}",
"System.out.println((char)(i+97)+\" : \"+alpha[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)(i+97)+\" : \"+alpha[i]",
"(char)(i+97)+\" : \"+alpha[i]",
"(char)(i+97)",
"i",
"97",
"\" : \"",
"alpha[i]",
"alpha",
"i",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str;\n\t\tint[] alpha=new int[26];\n\t\twhile(sc.hasNext()){\n\t\t\tstr=sc.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tint ind=Character.getNumericValue(str.charAt(i))-10;\n\t\t\t\tif(0<=ind&&ind<26){\n\t\t\t\t\talpha[Character.getNumericValue(str.charAt(i))-10]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)(i+97)+\" : \"+alpha[i]);\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str;\n\t\tint[] alpha=new int[26];\n\t\twhile(sc.hasNext()){\n\t\t\tstr=sc.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tint ind=Character.getNumericValue(str.charAt(i))-10;\n\t\t\t\tif(0<=ind&&ind<26){\n\t\t\t\t\talpha[Character.getNumericValue(str.charAt(i))-10]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)(i+97)+\" : \"+alpha[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
String str;
int[] alpha=new int[26];
while(sc.hasNext()){
str=sc.nextLine();
for(int i=0;i<str.length();i++){
int ind=Character.getNumericValue(str.charAt(i))-10;
if(0<=ind&&ind<26){
alpha[Character.getNumericValue(str.charAt(i))-10]++;
}
}
}
for(int i=0;i<26;i++){
System.out.println((char)(i+97)+" : "+alpha[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
0,
13,
2,
13,
13,
41,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
2,
17,
13,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
14,
2,
2,
17,
13,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
2,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
116,
5
],
[
116,
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
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
19,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
51,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
58,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
101,
107
],
[
107,
108
],
[
107,
109
],
[
101,
110
],
[
110,
111
],
[
110,
112
],
[
6,
113
],
[
113,
114
],
[
0,
115
],
[
115,
116
],
[
115,
117
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String str = \"\";\n\n while(sc.hasNext()){\n String a = sc.nextLine();\n str = str + a;\n }\n\n int l = str.length();\n int[] num = new int[26];\n\n for(int i=0;i<l;i++){\n int c = (int)str.charAt(i);\n if('a'<=c && c<='z'){\n num[c-'a']++;\n }else if('A'<=c && c<='Z'){\n num[c-'A']++;\n }\n }\n\n for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a', num[i]);\n }\n }\n}\n\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String str = \"\";\n\n while(sc.hasNext()){\n String a = sc.nextLine();\n str = str + a;\n }\n\n int l = str.length();\n int[] num = new int[26];\n\n for(int i=0;i<l;i++){\n int c = (int)str.charAt(i);\n if('a'<=c && c<='z'){\n num[c-'a']++;\n }else if('A'<=c && c<='Z'){\n num[c-'A']++;\n }\n }\n\n for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a', num[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String str = \"\";\n\n while(sc.hasNext()){\n String a = sc.nextLine();\n str = str + a;\n }\n\n int l = str.length();\n int[] num = new int[26];\n\n for(int i=0;i<l;i++){\n int c = (int)str.charAt(i);\n if('a'<=c && c<='z'){\n num[c-'a']++;\n }else if('A'<=c && c<='Z'){\n num[c-'A']++;\n }\n }\n\n for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a', num[i]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n String str = \"\";\n\n while(sc.hasNext()){\n String a = sc.nextLine();\n str = str + a;\n }\n\n int l = str.length();\n int[] num = new int[26];\n\n for(int i=0;i<l;i++){\n int c = (int)str.charAt(i);\n if('a'<=c && c<='z'){\n num[c-'a']++;\n }else if('A'<=c && c<='Z'){\n num[c-'A']++;\n }\n }\n\n for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a', num[i]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str = \"\";",
"str",
"\"\"",
"while(sc.hasNext()){\n String a = sc.nextLine();\n str = str + a;\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String a = sc.nextLine();\n str = str + a;\n }",
"String a = sc.nextLine();",
"a",
"sc.nextLine()",
"sc.nextLine",
"sc",
"str = str + a",
"str",
"str + a",
"str",
"a",
"int l = str.length();",
"l",
"str.length()",
"str.length",
"str",
"int[] num = new int[26];",
"num",
"new int[26]",
"26",
"for(int i=0;i<l;i++){\n int c = (int)str.charAt(i);\n if('a'<=c && c<='z'){\n num[c-'a']++;\n }else if('A'<=c && c<='Z'){\n num[c-'A']++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<l",
"i",
"l",
"i++",
"i++",
"i",
"{\n int c = (int)str.charAt(i);\n if('a'<=c && c<='z'){\n num[c-'a']++;\n }else if('A'<=c && c<='Z'){\n num[c-'A']++;\n }\n }",
"{\n int c = (int)str.charAt(i);\n if('a'<=c && c<='z'){\n num[c-'a']++;\n }else if('A'<=c && c<='Z'){\n num[c-'A']++;\n }\n }",
"int c = (int)str.charAt(i);",
"c",
"(int)str.charAt(i)",
"str.charAt",
"str",
"i",
"if('a'<=c && c<='z'){\n num[c-'a']++;\n }else if('A'<=c && c<='Z'){\n num[c-'A']++;\n }",
"'a'<=c && c<='z'",
"'a'<=c",
"'a'",
"c",
"c<='z'",
"c",
"'z'",
"{\n num[c-'a']++;\n }",
"num[c-'a']++",
"num[c-'a']",
"num",
"c-'a'",
"c",
"'a'",
"if('A'<=c && c<='Z'){\n num[c-'A']++;\n }",
"'A'<=c && c<='Z'",
"'A'<=c",
"'A'",
"c",
"c<='Z'",
"c",
"'Z'",
"{\n num[c-'A']++;\n }",
"num[c-'A']++",
"num[c-'A']",
"num",
"c-'A'",
"c",
"'A'",
"for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a', num[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.printf(\"%c : %d\\n\", i+'a', num[i]);\n }",
"{\n System.out.printf(\"%c : %d\\n\", i+'a', num[i]);\n }",
"System.out.printf(\"%c : %d\\n\", i+'a', num[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"i+'a'",
"i",
"'a'",
"num[i]",
"num",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String str = \"\";\n\n while(sc.hasNext()){\n String a = sc.nextLine();\n str = str + a;\n }\n\n int l = str.length();\n int[] num = new int[26];\n\n for(int i=0;i<l;i++){\n int c = (int)str.charAt(i);\n if('a'<=c && c<='z'){\n num[c-'a']++;\n }else if('A'<=c && c<='Z'){\n num[c-'A']++;\n }\n }\n\n for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a', num[i]);\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String str = \"\";\n\n while(sc.hasNext()){\n String a = sc.nextLine();\n str = str + a;\n }\n\n int l = str.length();\n int[] num = new int[26];\n\n for(int i=0;i<l;i++){\n int c = (int)str.charAt(i);\n if('a'<=c && c<='z'){\n num[c-'a']++;\n }else if('A'<=c && c<='Z'){\n num[c-'A']++;\n }\n }\n\n for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a', num[i]);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String str = "";
while(sc.hasNext()){
String a = sc.nextLine();
str = str + a;
}
int l = str.length();
int[] num = new int[26];
for(int i=0;i<l;i++){
int c = (int)str.charAt(i);
if('a'<=c && c<='z'){
num[c-'a']++;
}else if('A'<=c && c<='Z'){
num[c-'A']++;
}
}
for(int i=0;i<26;i++){
System.out.printf("%c : %d\n", i+'a', num[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
41,
13,
20,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
28,
13,
4,
18,
13,
30,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
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
],
[
90,
11
],
[
90,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
17,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
38,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
14,
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
],
[
75,
77
],
[
73,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
12,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tString line;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tline = line.toLowerCase();\n\t\t\tfor (char c : line.toCharArray()) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + cnt[i]);\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tString line;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tline = line.toLowerCase();\n\t\t\tfor (char c : line.toCharArray()) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + cnt[i]);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tString line;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tline = line.toLowerCase();\n\t\t\tfor (char c : line.toCharArray()) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + cnt[i]);\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tString line;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tline = line.toLowerCase();\n\t\t\tfor (char c : line.toCharArray()) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + cnt[i]);\n\t\t}\n\t}",
"String line;",
"line",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int[] cnt = new int[26];",
"cnt",
"new int[26]",
"26",
"while ((line = br.readLine()) != null) {\n\t\t\tline = line.toLowerCase();\n\t\t\tfor (char c : line.toCharArray()) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tline = line.toLowerCase();\n\t\t\tfor (char c : line.toCharArray()) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"line = line.toLowerCase()",
"line",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"for (char c : line.toCharArray()) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"char c",
"line.toCharArray()",
"line.toCharArray",
"line",
"{\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"if ('a' <= c && c <= 'z') {\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t\t}",
"'a' <= c && c <= 'z'",
"'a' <= c",
"'a'",
"c",
"c <= 'z'",
"c",
"'z'",
"{\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t\t}",
"cnt[c - 'a']++",
"cnt[c - 'a']",
"cnt",
"c - 'a'",
"c",
"'a'",
"for (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + cnt[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + cnt[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + cnt[i]);\n\t\t}",
"System.out.println((char)('a' + i) + \" : \" + cnt[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)('a' + i) + \" : \" + cnt[i]",
"(char)('a' + i) + \" : \" + cnt[i]",
"(char)('a' + i)",
"'a'",
"i",
"\" : \"",
"cnt[i]",
"cnt",
"i",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tString line;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tline = line.toLowerCase();\n\t\t\tfor (char c : line.toCharArray()) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + cnt[i]);\n\t\t}\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tString line;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tline = line.toLowerCase();\n\t\t\tfor (char c : line.toCharArray()) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + cnt[i]);\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
String line;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] cnt = new int[26];
while ((line = br.readLine()) != null) {
line = line.toLowerCase();
for (char c : line.toCharArray()) {
if ('a' <= c && c <= 'z') {
cnt[c - 'a']++;
}
}
}
for (int i = 0; i < 26; i++) {
System.out.println((char)('a' + i) + " : " + cnt[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
13,
17,
14,
2,
13,
13,
30,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
149,
5
],
[
149,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
16,
26
],
[
26,
27
],
[
27,
28
],
[
16,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
46,
56
],
[
56,
57
],
[
57,
58
],
[
46,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
60,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
60,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
60,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
60,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
8,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
118,
120
],
[
111,
121
],
[
121,
122
],
[
122,
123
],
[
111,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
125,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
137,
137
],
[
137,
138
],
[
137,
139
],
[
137,
140
],
[
140,
141
],
[
140,
142
],
[
8,
143
],
[
143,
144
],
[
144,
145
],
[
6,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n\n int[] result = new int[26];\n for (int i = 0; i < result.length; i++) {\n result[i] = 0;\n }\n\n while(sc.hasNext()){\n String input = sc.nextLine();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i);\n String str = String.valueOf(ch);\n str = str.toLowerCase();\n ch = str.charAt(0);\n\n for (char c = 'a'; c <= 'z'; c++) {\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }\n }\n }\n\n for (int i = 0; i < result.length; i++) {\n char alphabet = (char)(i+'a');\n System.out.println(alphabet + \" : \" + result[i]);\n }\n\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n\n int[] result = new int[26];\n for (int i = 0; i < result.length; i++) {\n result[i] = 0;\n }\n\n while(sc.hasNext()){\n String input = sc.nextLine();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i);\n String str = String.valueOf(ch);\n str = str.toLowerCase();\n ch = str.charAt(0);\n\n for (char c = 'a'; c <= 'z'; c++) {\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }\n }\n }\n\n for (int i = 0; i < result.length; i++) {\n char alphabet = (char)(i+'a');\n System.out.println(alphabet + \" : \" + result[i]);\n }\n\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n\n int[] result = new int[26];\n for (int i = 0; i < result.length; i++) {\n result[i] = 0;\n }\n\n while(sc.hasNext()){\n String input = sc.nextLine();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i);\n String str = String.valueOf(ch);\n str = str.toLowerCase();\n ch = str.charAt(0);\n\n for (char c = 'a'; c <= 'z'; c++) {\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }\n }\n }\n\n for (int i = 0; i < result.length; i++) {\n char alphabet = (char)(i+'a');\n System.out.println(alphabet + \" : \" + result[i]);\n }\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n\n int[] result = new int[26];\n for (int i = 0; i < result.length; i++) {\n result[i] = 0;\n }\n\n while(sc.hasNext()){\n String input = sc.nextLine();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i);\n String str = String.valueOf(ch);\n str = str.toLowerCase();\n ch = str.charAt(0);\n\n for (char c = 'a'; c <= 'z'; c++) {\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }\n }\n }\n\n for (int i = 0; i < result.length; i++) {\n char alphabet = (char)(i+'a');\n System.out.println(alphabet + \" : \" + result[i]);\n }\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] result = new int[26];",
"result",
"new int[26]",
"26",
"for (int i = 0; i < result.length; i++) {\n result[i] = 0;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < result.length",
"i",
"result.length",
"result",
"result.length",
"i++",
"i++",
"i",
"{\n result[i] = 0;\n }",
"{\n result[i] = 0;\n }",
"result[i] = 0",
"result[i]",
"result",
"i",
"0",
"while(sc.hasNext()){\n String input = sc.nextLine();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i);\n String str = String.valueOf(ch);\n str = str.toLowerCase();\n ch = str.charAt(0);\n\n for (char c = 'a'; c <= 'z'; c++) {\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String input = sc.nextLine();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i);\n String str = String.valueOf(ch);\n str = str.toLowerCase();\n ch = str.charAt(0);\n\n for (char c = 'a'; c <= 'z'; c++) {\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }\n }\n }",
"String input = sc.nextLine();",
"input",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i);\n String str = String.valueOf(ch);\n str = str.toLowerCase();\n ch = str.charAt(0);\n\n for (char c = 'a'; c <= 'z'; c++) {\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < input.length()",
"i",
"input.length()",
"input.length",
"input",
"i++",
"i++",
"i",
"{\n char ch = input.charAt(i);\n String str = String.valueOf(ch);\n str = str.toLowerCase();\n ch = str.charAt(0);\n\n for (char c = 'a'; c <= 'z'; c++) {\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }\n }",
"{\n char ch = input.charAt(i);\n String str = String.valueOf(ch);\n str = str.toLowerCase();\n ch = str.charAt(0);\n\n for (char c = 'a'; c <= 'z'; c++) {\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }\n }",
"char ch = input.charAt(i);",
"ch",
"input.charAt(i)",
"input.charAt",
"input",
"i",
"String str = String.valueOf(ch);",
"str",
"String.valueOf(ch)",
"String.valueOf",
"String",
"ch",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"ch = str.charAt(0)",
"ch",
"str.charAt(0)",
"str.charAt",
"str",
"0",
"for (char c = 'a'; c <= 'z'; c++) {\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }",
"char c = 'a';",
"char c = 'a';",
"c",
"'a'",
"c <= 'z'",
"c",
"'z'",
"c++",
"c++",
"c",
"{\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }",
"{\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }",
"int index = c-'a';",
"index",
"c-'a'",
"c",
"'a'",
"if(ch == c){\n result[index]++;\n }",
"ch == c",
"ch",
"c",
"{\n result[index]++;\n }",
"result[index]++",
"result[index]",
"result",
"index",
"for (int i = 0; i < result.length; i++) {\n char alphabet = (char)(i+'a');\n System.out.println(alphabet + \" : \" + result[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < result.length",
"i",
"result.length",
"result",
"result.length",
"i++",
"i++",
"i",
"{\n char alphabet = (char)(i+'a');\n System.out.println(alphabet + \" : \" + result[i]);\n }",
"{\n char alphabet = (char)(i+'a');\n System.out.println(alphabet + \" : \" + result[i]);\n }",
"char alphabet = (char)(i+'a');",
"alphabet",
"(char)(i+'a')",
"i",
"'a'",
"System.out.println(alphabet + \" : \" + result[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alphabet + \" : \" + result[i]",
"alphabet + \" : \" + result[i]",
"alphabet",
"\" : \"",
"result[i]",
"result",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n\n int[] result = new int[26];\n for (int i = 0; i < result.length; i++) {\n result[i] = 0;\n }\n\n while(sc.hasNext()){\n String input = sc.nextLine();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i);\n String str = String.valueOf(ch);\n str = str.toLowerCase();\n ch = str.charAt(0);\n\n for (char c = 'a'; c <= 'z'; c++) {\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }\n }\n }\n\n for (int i = 0; i < result.length; i++) {\n char alphabet = (char)(i+'a');\n System.out.println(alphabet + \" : \" + result[i]);\n }\n\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n\n int[] result = new int[26];\n for (int i = 0; i < result.length; i++) {\n result[i] = 0;\n }\n\n while(sc.hasNext()){\n String input = sc.nextLine();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i);\n String str = String.valueOf(ch);\n str = str.toLowerCase();\n ch = str.charAt(0);\n\n for (char c = 'a'; c <= 'z'; c++) {\n int index = c-'a';\n\n if(ch == c){\n result[index]++;\n }\n\n }\n }\n }\n\n for (int i = 0; i < result.length; i++) {\n char alphabet = (char)(i+'a');\n System.out.println(alphabet + \" : \" + result[i]);\n }\n\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] result = new int[26];
for (int i = 0; i < result.length; i++) {
result[i] = 0;
}
while(sc.hasNext()){
String input = sc.nextLine();
for (int i = 0; i < input.length(); i++) {
char ch = input.charAt(i);
String str = String.valueOf(ch);
str = str.toLowerCase();
ch = str.charAt(0);
for (char c = 'a'; c <= 'z'; c++) {
int index = c-'a';
if(ch == c){
result[index]++;
}
}
}
}
for (int i = 0; i < result.length; i++) {
char alphabet = (char)(i+'a');
System.out.println(alphabet + " : " + result[i]);
}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
18,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
106,
8
],
[
106,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
19
],
[
19,
20
],
[
11,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
25,
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
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
11,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
95,
95
],
[
95,
96
],
[
95,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
9,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint []b = new int[26];\n\t\t\tchar e;\n\t\t\twhile(sc.hasNext()){\n\t\t\t\tString a = sc.next();\n\t\t\t\ta = a.toLowerCase();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0 ; d<c ; d++){\n\t\t\t\t\te = a.charAt(d);\n\t\t\t\t\tif((int)e>=97 && (int)e<=122){\n\t\t\t\t\t\tb[(int)e-97] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char d=97 ; d<123 ; d++){\n\t\t\t\tSystem.out.println(d+\" : \"+b[(int)d-97]);\n\t\t\t}\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint []b = new int[26];\n\t\t\tchar e;\n\t\t\twhile(sc.hasNext()){\n\t\t\t\tString a = sc.next();\n\t\t\t\ta = a.toLowerCase();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0 ; d<c ; d++){\n\t\t\t\t\te = a.charAt(d);\n\t\t\t\t\tif((int)e>=97 && (int)e<=122){\n\t\t\t\t\t\tb[(int)e-97] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char d=97 ; d<123 ; d++){\n\t\t\t\tSystem.out.println(d+\" : \"+b[(int)d-97]);\n\t\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint []b = new int[26];\n\t\t\tchar e;\n\t\t\twhile(sc.hasNext()){\n\t\t\t\tString a = sc.next();\n\t\t\t\ta = a.toLowerCase();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0 ; d<c ; d++){\n\t\t\t\t\te = a.charAt(d);\n\t\t\t\t\tif((int)e>=97 && (int)e<=122){\n\t\t\t\t\t\tb[(int)e-97] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char d=97 ; d<123 ; d++){\n\t\t\t\tSystem.out.println(d+\" : \"+b[(int)d-97]);\n\t\t\t}\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint []b = new int[26];\n\t\t\tchar e;\n\t\t\twhile(sc.hasNext()){\n\t\t\t\tString a = sc.next();\n\t\t\t\ta = a.toLowerCase();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0 ; d<c ; d++){\n\t\t\t\t\te = a.charAt(d);\n\t\t\t\t\tif((int)e>=97 && (int)e<=122){\n\t\t\t\t\t\tb[(int)e-97] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char d=97 ; d<123 ; d++){\n\t\t\t\tSystem.out.println(d+\" : \"+b[(int)d-97]);\n\t\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int []b = new int[26];",
"b",
"new int[26]",
"26",
"char e;",
"e",
"while(sc.hasNext()){\n\t\t\t\tString a = sc.next();\n\t\t\t\ta = a.toLowerCase();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0 ; d<c ; d++){\n\t\t\t\t\te = a.charAt(d);\n\t\t\t\t\tif((int)e>=97 && (int)e<=122){\n\t\t\t\t\t\tb[(int)e-97] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\t\tString a = sc.next();\n\t\t\t\ta = a.toLowerCase();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0 ; d<c ; d++){\n\t\t\t\t\te = a.charAt(d);\n\t\t\t\t\tif((int)e>=97 && (int)e<=122){\n\t\t\t\t\t\tb[(int)e-97] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"String a = sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"a = a.toLowerCase()",
"a",
"a.toLowerCase()",
"a.toLowerCase",
"a",
"int c = a.length();",
"c",
"a.length()",
"a.length",
"a",
"for(int d=0 ; d<c ; d++){\n\t\t\t\t\te = a.charAt(d);\n\t\t\t\t\tif((int)e>=97 && (int)e<=122){\n\t\t\t\t\t\tb[(int)e-97] += 1;\n\t\t\t\t\t}\n\t\t\t\t}",
"int d=0 ;",
"int d=0 ;",
"d",
"0",
"d<c",
"d",
"c",
"d++",
"d++",
"d",
"{\n\t\t\t\t\te = a.charAt(d);\n\t\t\t\t\tif((int)e>=97 && (int)e<=122){\n\t\t\t\t\t\tb[(int)e-97] += 1;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\te = a.charAt(d);\n\t\t\t\t\tif((int)e>=97 && (int)e<=122){\n\t\t\t\t\t\tb[(int)e-97] += 1;\n\t\t\t\t\t}\n\t\t\t\t}",
"e = a.charAt(d)",
"e",
"a.charAt(d)",
"a.charAt",
"a",
"d",
"if((int)e>=97 && (int)e<=122){\n\t\t\t\t\t\tb[(int)e-97] += 1;\n\t\t\t\t\t}",
"(int)e>=97 && (int)e<=122",
"(int)e>=97",
"(int)e",
"97",
"(int)e<=122",
"(int)e",
"122",
"{\n\t\t\t\t\t\tb[(int)e-97] += 1;\n\t\t\t\t\t}",
"b[(int)e-97] += 1",
"b[(int)e-97]",
"b",
"(int)e-97",
"(int)e",
"97",
"1",
"for(char d=97 ; d<123 ; d++){\n\t\t\t\tSystem.out.println(d+\" : \"+b[(int)d-97]);\n\t\t\t}",
"char d=97 ;",
"char d=97 ;",
"d",
"97",
"d<123",
"d",
"123",
"d++",
"d++",
"d",
"{\n\t\t\t\tSystem.out.println(d+\" : \"+b[(int)d-97]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(d+\" : \"+b[(int)d-97]);\n\t\t\t}",
"System.out.println(d+\" : \"+b[(int)d-97])",
"System.out.println",
"System.out",
"System",
"System.out",
"d+\" : \"+b[(int)d-97]",
"d+\" : \"+b[(int)d-97]",
"d",
"\" : \"",
"b[(int)d-97]",
"b",
"(int)d-97",
"(int)d",
"97",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint []b = new int[26];\n\t\t\tchar e;\n\t\t\twhile(sc.hasNext()){\n\t\t\t\tString a = sc.next();\n\t\t\t\ta = a.toLowerCase();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0 ; d<c ; d++){\n\t\t\t\t\te = a.charAt(d);\n\t\t\t\t\tif((int)e>=97 && (int)e<=122){\n\t\t\t\t\t\tb[(int)e-97] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char d=97 ; d<123 ; d++){\n\t\t\t\tSystem.out.println(d+\" : \"+b[(int)d-97]);\n\t\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint []b = new int[26];\n\t\t\tchar e;\n\t\t\twhile(sc.hasNext()){\n\t\t\t\tString a = sc.next();\n\t\t\t\ta = a.toLowerCase();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0 ; d<c ; d++){\n\t\t\t\t\te = a.charAt(d);\n\t\t\t\t\tif((int)e>=97 && (int)e<=122){\n\t\t\t\t\t\tb[(int)e-97] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char d=97 ; d<123 ; d++){\n\t\t\t\tSystem.out.println(d+\" : \"+b[(int)d-97]);\n\t\t\t}\n\t}\n}",
"Main"
]
| import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception{
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
int []b = new int[26];
char e;
while(sc.hasNext()){
String a = sc.next();
a = a.toLowerCase();
int c = a.length();
for(int d=0 ; d<c ; d++){
e = a.charAt(d);
if((int)e>=97 && (int)e<=122){
b[(int)e-97] += 1;
}
}
}
for(char d=97 ; d<123 ; d++){
System.out.println(d+" : "+b[(int)d-97]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
14,
4,
18,
13,
17,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
121,
8
],
[
121,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
38,
48
],
[
48,
49
],
[
49,
50
],
[
38,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
62,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
62,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
86,
91
],
[
11,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
110,
110
],
[
110,
111
],
[
110,
112
],
[
110,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
9,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
]
| [
"import java.io.*;\nimport java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = \n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = \"\";\n\t\tString check=\"\";\n\t\tint[] alph = new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\tstr = scan.next();\n\t\t\tfor(int j=0;j<str.length();j++){\n\t\t\t\tcheck =String.valueOf(str.charAt(j));\t\n\t\t\t\tif(check.matches(\"[a-z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'a']++;\n\t\t\t\t}else if(check.matches(\"[A-Z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(str.length());\n\t\t\t//System.out.println(Character.isLetterOrDigit(str.charAt(0)));\n\t\t}\n\t\tfor(int i=97;i<123;i++)\n\t\t\tSystem.out.println((char)i+\" : \"+alph[i-97]);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = \n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = \"\";\n\t\tString check=\"\";\n\t\tint[] alph = new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\tstr = scan.next();\n\t\t\tfor(int j=0;j<str.length();j++){\n\t\t\t\tcheck =String.valueOf(str.charAt(j));\t\n\t\t\t\tif(check.matches(\"[a-z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'a']++;\n\t\t\t\t}else if(check.matches(\"[A-Z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(str.length());\n\t\t\t//System.out.println(Character.isLetterOrDigit(str.charAt(0)));\n\t\t}\n\t\tfor(int i=97;i<123;i++)\n\t\t\tSystem.out.println((char)i+\" : \"+alph[i-97]);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader br = \n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = \"\";\n\t\tString check=\"\";\n\t\tint[] alph = new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\tstr = scan.next();\n\t\t\tfor(int j=0;j<str.length();j++){\n\t\t\t\tcheck =String.valueOf(str.charAt(j));\t\n\t\t\t\tif(check.matches(\"[a-z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'a']++;\n\t\t\t\t}else if(check.matches(\"[A-Z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(str.length());\n\t\t\t//System.out.println(Character.isLetterOrDigit(str.charAt(0)));\n\t\t}\n\t\tfor(int i=97;i<123;i++)\n\t\t\tSystem.out.println((char)i+\" : \"+alph[i-97]);\n\t}",
"main",
"{\n\t\tBufferedReader br = \n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = \"\";\n\t\tString check=\"\";\n\t\tint[] alph = new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\tstr = scan.next();\n\t\t\tfor(int j=0;j<str.length();j++){\n\t\t\t\tcheck =String.valueOf(str.charAt(j));\t\n\t\t\t\tif(check.matches(\"[a-z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'a']++;\n\t\t\t\t}else if(check.matches(\"[A-Z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(str.length());\n\t\t\t//System.out.println(Character.isLetterOrDigit(str.charAt(0)));\n\t\t}\n\t\tfor(int i=97;i<123;i++)\n\t\t\tSystem.out.println((char)i+\" : \"+alph[i-97]);\n\t}",
"BufferedReader br = \n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str = \"\";",
"str",
"\"\"",
"String check=\"\";",
"check",
"\"\"",
"int[] alph = new int[26];",
"alph",
"new int[26]",
"26",
"while(scan.hasNext()){\n\t\t\tstr = scan.next();\n\t\t\tfor(int j=0;j<str.length();j++){\n\t\t\t\tcheck =String.valueOf(str.charAt(j));\t\n\t\t\t\tif(check.matches(\"[a-z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'a']++;\n\t\t\t\t}else if(check.matches(\"[A-Z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(str.length());\n\t\t\t//System.out.println(Character.isLetterOrDigit(str.charAt(0)));\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tstr = scan.next();\n\t\t\tfor(int j=0;j<str.length();j++){\n\t\t\t\tcheck =String.valueOf(str.charAt(j));\t\n\t\t\t\tif(check.matches(\"[a-z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'a']++;\n\t\t\t\t}else if(check.matches(\"[A-Z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(str.length());\n\t\t\t//System.out.println(Character.isLetterOrDigit(str.charAt(0)));\n\t\t}",
"str = scan.next()",
"str",
"scan.next()",
"scan.next",
"scan",
"for(int j=0;j<str.length();j++){\n\t\t\t\tcheck =String.valueOf(str.charAt(j));\t\n\t\t\t\tif(check.matches(\"[a-z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'a']++;\n\t\t\t\t}else if(check.matches(\"[A-Z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<str.length()",
"j",
"str.length()",
"str.length",
"str",
"j++",
"j++",
"j",
"{\n\t\t\t\tcheck =String.valueOf(str.charAt(j));\t\n\t\t\t\tif(check.matches(\"[a-z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'a']++;\n\t\t\t\t}else if(check.matches(\"[A-Z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tcheck =String.valueOf(str.charAt(j));\t\n\t\t\t\tif(check.matches(\"[a-z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'a']++;\n\t\t\t\t}else if(check.matches(\"[A-Z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}\n\t\t\t}",
"check =String.valueOf(str.charAt(j))",
"check",
"String.valueOf(str.charAt(j))",
"String.valueOf",
"String",
"str.charAt(j)",
"str.charAt",
"str",
"j",
"if(check.matches(\"[a-z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'a']++;\n\t\t\t\t}else if(check.matches(\"[A-Z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}",
"check.matches(\"[a-z]+\")",
"check.matches",
"check",
"\"[a-z]+\"",
"{\n\t\t\t\t\talph[str.charAt(j)-'a']++;\n\t\t\t\t}",
"alph[str.charAt(j)-'a']++",
"alph[str.charAt(j)-'a']",
"alph",
"str.charAt(j)-'a'",
"str.charAt(j)",
"str.charAt",
"str",
"j",
"'a'",
"if(check.matches(\"[A-Z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}",
"check.matches(\"[A-Z]+\")",
"check.matches",
"check",
"\"[A-Z]+\"",
"{\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}",
"alph[str.charAt(j)-'A']++",
"alph[str.charAt(j)-'A']",
"alph",
"str.charAt(j)-'A'",
"str.charAt(j)",
"str.charAt",
"str",
"j",
"'A'",
"for(int i=97;i<123;i++)\n\t\t\tSystem.out.println((char)i+\" : \"+alph[i-97]);",
"int i=97;",
"int i=97;",
"i",
"97",
"i<123",
"i",
"123",
"i++",
"i++",
"i",
"System.out.println((char)i+\" : \"+alph[i-97]);",
"System.out.println((char)i+\" : \"+alph[i-97])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)i+\" : \"+alph[i-97]",
"(char)i+\" : \"+alph[i-97]",
"(char)i",
"\" : \"",
"alph[i-97]",
"alph",
"i-97",
"i",
"97",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = \n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = \"\";\n\t\tString check=\"\";\n\t\tint[] alph = new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\tstr = scan.next();\n\t\t\tfor(int j=0;j<str.length();j++){\n\t\t\t\tcheck =String.valueOf(str.charAt(j));\t\n\t\t\t\tif(check.matches(\"[a-z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'a']++;\n\t\t\t\t}else if(check.matches(\"[A-Z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(str.length());\n\t\t\t//System.out.println(Character.isLetterOrDigit(str.charAt(0)));\n\t\t}\n\t\tfor(int i=97;i<123;i++)\n\t\t\tSystem.out.println((char)i+\" : \"+alph[i-97]);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = \n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = \"\";\n\t\tString check=\"\";\n\t\tint[] alph = new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\tstr = scan.next();\n\t\t\tfor(int j=0;j<str.length();j++){\n\t\t\t\tcheck =String.valueOf(str.charAt(j));\t\n\t\t\t\tif(check.matches(\"[a-z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'a']++;\n\t\t\t\t}else if(check.matches(\"[A-Z]+\")){\n\t\t\t\t\talph[str.charAt(j)-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(str.length());\n\t\t\t//System.out.println(Character.isLetterOrDigit(str.charAt(0)));\n\t\t}\n\t\tfor(int i=97;i<123;i++)\n\t\t\tSystem.out.println((char)i+\" : \"+alph[i-97]);\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
Scanner scan = new Scanner(System.in);
String str = "";
String check="";
int[] alph = new int[26];
while(scan.hasNext()){
str = scan.next();
for(int j=0;j<str.length();j++){
check =String.valueOf(str.charAt(j));
if(check.matches("[a-z]+")){
alph[str.charAt(j)-'a']++;
}else if(check.matches("[A-Z]+")){
alph[str.charAt(j)-'A']++;
}
}
//System.out.println(str.length());
//System.out.println(Character.isLetterOrDigit(str.charAt(0)));
}
for(int i=97;i<123;i++)
System.out.println((char)i+" : "+alph[i-97]);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
41,
13,
20,
17,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
2,
13,
13,
41,
13,
20,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
169,
5
],
[
169,
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
],
[
17,
19
],
[
17,
20
],
[
17,
21
],
[
17,
22
],
[
17,
23
],
[
17,
24
],
[
17,
25
],
[
17,
26
],
[
17,
27
],
[
17,
28
],
[
17,
29
],
[
17,
30
],
[
17,
31
],
[
17,
32
],
[
17,
33
],
[
17,
34
],
[
17,
35
],
[
17,
36
],
[
17,
37
],
[
17,
38
],
[
17,
39
],
[
17,
40
],
[
17,
41
],
[
17,
42
],
[
17,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
48
],
[
48,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
51,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
67,
68
],
[
68,
69
],
[
8,
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
],
[
84,
86
],
[
83,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
88,
98
],
[
98,
99
],
[
99,
100
],
[
88,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
107,
112
],
[
102,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
8,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
139,
147
],
[
147,
148
],
[
148,
149
],
[
139,
150
],
[
151,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
158,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
6,
166
],
[
166,
167
],
[
0,
168
],
[
168,
169
],
[
168,
170
]
]
| [
"import java.io.*;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString linesum = \"\";\n\t\tchar[] alpha = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\tint[] alphabet = new int[26];\n\t\tString line;\n\t\twhile((line = reader.readLine()) != null){\n\t\t\tlinesum = linesum + line;\n\t\t}\n\t\tchar[] word = new char[linesum.length()];\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\talphabet[i] = 0;\n\t\t}\n\t\tfor(int i = 0; i < linesum.length(); i++){\n\t\t\tword[i] = linesum.toLowerCase().charAt(i);\n\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\tif(word[i] == alpha[j]){\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alpha[i] + \" : \" + alphabet[i]);\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString linesum = \"\";\n\t\tchar[] alpha = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\tint[] alphabet = new int[26];\n\t\tString line;\n\t\twhile((line = reader.readLine()) != null){\n\t\t\tlinesum = linesum + line;\n\t\t}\n\t\tchar[] word = new char[linesum.length()];\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\talphabet[i] = 0;\n\t\t}\n\t\tfor(int i = 0; i < linesum.length(); i++){\n\t\t\tword[i] = linesum.toLowerCase().charAt(i);\n\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\tif(word[i] == alpha[j]){\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alpha[i] + \" : \" + alphabet[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString linesum = \"\";\n\t\tchar[] alpha = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\tint[] alphabet = new int[26];\n\t\tString line;\n\t\twhile((line = reader.readLine()) != null){\n\t\t\tlinesum = linesum + line;\n\t\t}\n\t\tchar[] word = new char[linesum.length()];\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\talphabet[i] = 0;\n\t\t}\n\t\tfor(int i = 0; i < linesum.length(); i++){\n\t\t\tword[i] = linesum.toLowerCase().charAt(i);\n\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\tif(word[i] == alpha[j]){\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alpha[i] + \" : \" + alphabet[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString linesum = \"\";\n\t\tchar[] alpha = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\tint[] alphabet = new int[26];\n\t\tString line;\n\t\twhile((line = reader.readLine()) != null){\n\t\t\tlinesum = linesum + line;\n\t\t}\n\t\tchar[] word = new char[linesum.length()];\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\talphabet[i] = 0;\n\t\t}\n\t\tfor(int i = 0; i < linesum.length(); i++){\n\t\t\tword[i] = linesum.toLowerCase().charAt(i);\n\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\tif(word[i] == alpha[j]){\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alpha[i] + \" : \" + alphabet[i]);\n\t\t}\n\t}",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"String linesum = \"\";",
"linesum",
"\"\"",
"char[] alpha = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};",
"alpha",
"{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}",
"'a'",
"'b'",
"'c'",
"'d'",
"'e'",
"'f'",
"'g'",
"'h'",
"'i'",
"'j'",
"'k'",
"'l'",
"'m'",
"'n'",
"'o'",
"'p'",
"'q'",
"'r'",
"'s'",
"'t'",
"'u'",
"'v'",
"'w'",
"'x'",
"'y'",
"'z'",
"int[] alphabet = new int[26];",
"alphabet",
"new int[26]",
"26",
"String line;",
"line",
"while((line = reader.readLine()) != null){\n\t\t\tlinesum = linesum + line;\n\t\t}",
"(line = reader.readLine()) != null",
"(line = reader.readLine())",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"null",
"{\n\t\t\tlinesum = linesum + line;\n\t\t}",
"linesum = linesum + line",
"linesum",
"linesum + line",
"linesum",
"line",
"char[] word = new char[linesum.length()];",
"word",
"new char[linesum.length()]",
"linesum.length()",
"linesum.length",
"linesum",
"for(int i = 0; i < 26; i++){\n\t\t\talphabet[i] = 0;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\talphabet[i] = 0;\n\t\t}",
"{\n\t\t\talphabet[i] = 0;\n\t\t}",
"alphabet[i] = 0",
"alphabet[i]",
"alphabet",
"i",
"0",
"for(int i = 0; i < linesum.length(); i++){\n\t\t\tword[i] = linesum.toLowerCase().charAt(i);\n\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\tif(word[i] == alpha[j]){\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < linesum.length()",
"i",
"linesum.length()",
"linesum.length",
"linesum",
"i++",
"i++",
"i",
"{\n\t\t\tword[i] = linesum.toLowerCase().charAt(i);\n\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\tif(word[i] == alpha[j]){\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tword[i] = linesum.toLowerCase().charAt(i);\n\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\tif(word[i] == alpha[j]){\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"word[i] = linesum.toLowerCase().charAt(i)",
"word[i]",
"word",
"i",
"linesum.toLowerCase().charAt(i)",
"linesum.toLowerCase().charAt",
"linesum.toLowerCase()",
"linesum.toLowerCase",
"linesum",
"i",
"for(int j = 0; j < 26; j++){\n\t\t\t\tif(word[i] == alpha[j]){\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(word[i] == alpha[j]){\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(word[i] == alpha[j]){\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}\n\t\t\t}",
"if(word[i] == alpha[j]){\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}",
"word[i] == alpha[j]",
"word[i]",
"word",
"i",
"alpha[j]",
"alpha",
"j",
"{\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}",
"alphabet[j]++",
"alphabet[j]",
"alphabet",
"j",
"for(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alpha[i] + \" : \" + alphabet[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(alpha[i] + \" : \" + alphabet[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(alpha[i] + \" : \" + alphabet[i]);\n\t\t}",
"System.out.println(alpha[i] + \" : \" + alphabet[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alpha[i] + \" : \" + alphabet[i]",
"alpha[i] + \" : \" + alphabet[i]",
"alpha[i]",
"alpha",
"i",
"\" : \"",
"alphabet[i]",
"alphabet",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString linesum = \"\";\n\t\tchar[] alpha = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\tint[] alphabet = new int[26];\n\t\tString line;\n\t\twhile((line = reader.readLine()) != null){\n\t\t\tlinesum = linesum + line;\n\t\t}\n\t\tchar[] word = new char[linesum.length()];\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\talphabet[i] = 0;\n\t\t}\n\t\tfor(int i = 0; i < linesum.length(); i++){\n\t\t\tword[i] = linesum.toLowerCase().charAt(i);\n\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\tif(word[i] == alpha[j]){\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alpha[i] + \" : \" + alphabet[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString linesum = \"\";\n\t\tchar[] alpha = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\tint[] alphabet = new int[26];\n\t\tString line;\n\t\twhile((line = reader.readLine()) != null){\n\t\t\tlinesum = linesum + line;\n\t\t}\n\t\tchar[] word = new char[linesum.length()];\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\talphabet[i] = 0;\n\t\t}\n\t\tfor(int i = 0; i < linesum.length(); i++){\n\t\t\tword[i] = linesum.toLowerCase().charAt(i);\n\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\tif(word[i] == alpha[j]){\n\t\t\t\t\talphabet[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alpha[i] + \" : \" + alphabet[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.*;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String linesum = "";
char[] alpha = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
int[] alphabet = new int[26];
String line;
while((line = reader.readLine()) != null){
linesum = linesum + line;
}
char[] word = new char[linesum.length()];
for(int i = 0; i < 26; i++){
alphabet[i] = 0;
}
for(int i = 0; i < linesum.length(); i++){
word[i] = linesum.toLowerCase().charAt(i);
for(int j = 0; j < 26; j++){
if(word[i] == alpha[j]){
alphabet[j]++;
}
}
}
for(int i = 0; i < 26; i++){
System.out.println(alpha[i] + " : " + alphabet[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
0,
13,
13,
0,
13,
4,
18,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
17,
28,
13,
13,
30,
30,
14,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
83,
5
],
[
83,
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
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
19,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
30,
35
],
[
30,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
58,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
54,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
76,
76
],
[
76,
77
],
[
76,
78
],
[
76,
79
],
[
6,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString lines = \"\";\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t String line = sc.nextLine();\n\t\t \n\t\t lines += line;\n\t\t}\n\t\t\n\t\tlines = lines.toLowerCase().replace(\" \",\"\");\n\t\tchar []array_str = lines.toCharArray();\n\t\t\n\t\tfor (char lit = 'a'; lit <= 'z'; lit++){\n\t\t int count = 0;\n\t\t \n\t\t for (char c: array_str){\n\t\t if (lit == c){\n\t\t count++;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(lit+\" : \"+count);\n\t\t} \n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString lines = \"\";\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t String line = sc.nextLine();\n\t\t \n\t\t lines += line;\n\t\t}\n\t\t\n\t\tlines = lines.toLowerCase().replace(\" \",\"\");\n\t\tchar []array_str = lines.toCharArray();\n\t\t\n\t\tfor (char lit = 'a'; lit <= 'z'; lit++){\n\t\t int count = 0;\n\t\t \n\t\t for (char c: array_str){\n\t\t if (lit == c){\n\t\t count++;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(lit+\" : \"+count);\n\t\t} \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 lines = \"\";\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t String line = sc.nextLine();\n\t\t \n\t\t lines += line;\n\t\t}\n\t\t\n\t\tlines = lines.toLowerCase().replace(\" \",\"\");\n\t\tchar []array_str = lines.toCharArray();\n\t\t\n\t\tfor (char lit = 'a'; lit <= 'z'; lit++){\n\t\t int count = 0;\n\t\t \n\t\t for (char c: array_str){\n\t\t if (lit == c){\n\t\t count++;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(lit+\" : \"+count);\n\t\t} \n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString lines = \"\";\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t String line = sc.nextLine();\n\t\t \n\t\t lines += line;\n\t\t}\n\t\t\n\t\tlines = lines.toLowerCase().replace(\" \",\"\");\n\t\tchar []array_str = lines.toCharArray();\n\t\t\n\t\tfor (char lit = 'a'; lit <= 'z'; lit++){\n\t\t int count = 0;\n\t\t \n\t\t for (char c: array_str){\n\t\t if (lit == c){\n\t\t count++;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(lit+\" : \"+count);\n\t\t} \n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String lines = \"\";",
"lines",
"\"\"",
"while(sc.hasNext()){\n\t\t String line = sc.nextLine();\n\t\t \n\t\t lines += line;\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t String line = sc.nextLine();\n\t\t \n\t\t lines += line;\n\t\t}",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"lines += line",
"lines",
"line",
"lines = lines.toLowerCase().replace(\" \",\"\")",
"lines",
"lines.toLowerCase().replace(\" \",\"\")",
"lines.toLowerCase().replace",
"lines.toLowerCase()",
"lines.toLowerCase",
"lines",
"\" \"",
"\"\"",
"char []array_str = lines.toCharArray();",
"array_str",
"lines.toCharArray()",
"lines.toCharArray",
"lines",
"for (char lit = 'a'; lit <= 'z'; lit++){\n\t\t int count = 0;\n\t\t \n\t\t for (char c: array_str){\n\t\t if (lit == c){\n\t\t count++;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(lit+\" : \"+count);\n\t\t}",
"char lit = 'a';",
"char lit = 'a';",
"lit",
"'a'",
"lit <= 'z'",
"lit",
"'z'",
"lit++",
"lit++",
"lit",
"{\n\t\t int count = 0;\n\t\t \n\t\t for (char c: array_str){\n\t\t if (lit == c){\n\t\t count++;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(lit+\" : \"+count);\n\t\t}",
"{\n\t\t int count = 0;\n\t\t \n\t\t for (char c: array_str){\n\t\t if (lit == c){\n\t\t count++;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(lit+\" : \"+count);\n\t\t}",
"int count = 0;",
"count",
"0",
"for (char c: array_str){\n\t\t if (lit == c){\n\t\t count++;\n\t\t }\n\t\t }",
"char c",
"array_str",
"{\n\t\t if (lit == c){\n\t\t count++;\n\t\t }\n\t\t }",
"{\n\t\t if (lit == c){\n\t\t count++;\n\t\t }\n\t\t }",
"if (lit == c){\n\t\t count++;\n\t\t }",
"lit == c",
"lit",
"c",
"{\n\t\t count++;\n\t\t }",
"count++",
"count",
"System.out.println(lit+\" : \"+count)",
"System.out.println",
"System.out",
"System",
"System.out",
"lit+\" : \"+count",
"lit+\" : \"+count",
"lit",
"\" : \"",
"count",
"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 lines = \"\";\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t String line = sc.nextLine();\n\t\t \n\t\t lines += line;\n\t\t}\n\t\t\n\t\tlines = lines.toLowerCase().replace(\" \",\"\");\n\t\tchar []array_str = lines.toCharArray();\n\t\t\n\t\tfor (char lit = 'a'; lit <= 'z'; lit++){\n\t\t int count = 0;\n\t\t \n\t\t for (char c: array_str){\n\t\t if (lit == c){\n\t\t count++;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(lit+\" : \"+count);\n\t\t} \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 lines = \"\";\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t String line = sc.nextLine();\n\t\t \n\t\t lines += line;\n\t\t}\n\t\t\n\t\tlines = lines.toLowerCase().replace(\" \",\"\");\n\t\tchar []array_str = lines.toCharArray();\n\t\t\n\t\tfor (char lit = 'a'; lit <= 'z'; lit++){\n\t\t int count = 0;\n\t\t \n\t\t for (char c: array_str){\n\t\t if (lit == c){\n\t\t count++;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(lit+\" : \"+count);\n\t\t} \n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
String lines = "";
while(sc.hasNext()){
String line = sc.nextLine();
lines += line;
}
lines = lines.toLowerCase().replace(" ","");
char []array_str = lines.toCharArray();
for (char lit = 'a'; lit <= 'z'; lit++){
int count = 0;
for (char c: array_str){
if (lit == c){
count++;
}
}
System.out.println(lit+" : "+count);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
41,
13,
41,
13,
17,
41,
13,
41,
13,
17,
41,
13,
42,
17,
30,
38,
5,
13,
30,
3,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
2,
13,
13,
40,
13,
41,
13,
4,
18,
13,
41,
13,
0,
13,
20,
17,
11,
1,
0,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
18,
13,
13,
17,
17,
2,
2,
18,
13,
13,
17,
17,
30,
40,
18,
13,
2,
18,
13,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
13,
17,
17,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
139,
5
],
[
139,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
31,
53
],
[
53,
54
],
[
8,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
8,
62
],
[
62,
63
],
[
62,
64
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
66,
76
],
[
76,
77
],
[
77,
78
],
[
66,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
81,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
8,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
8,
133
],
[
133,
134
],
[
134,
135
],
[
6,
136
],
[
136,
137
],
[
0,
138
],
[
138,
139
],
[
138,
140
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str = \"\"; \n String text;\n String Lower_text;\n int count = 0;\n int textlen;\n int i=0;\n String testtext; \n while(true){\n try{\n text = sc.next();\n Lower_text = text.toLowerCase();\n str = str + Lower_text;\n }catch(Exception e){\n break;\n } \n i++;\n /*textlen = text.length();\n testtext = text.substring(textlen-1);\n if(testtext.equals(\".\")) break;*///Judging wether text contains \".\" or not \n }\n char[] c = str.toCharArray();\n int[] alphabet;\n alphabet = new int[26];\n \n for(count=0;count<str.length();count++){\n if((c[count]-'a')>= 0 && (c[count]-'a')<=25){\n alphabet[(c[count]-'a')]++;\n //System.out.println(c[count]);\n } \n }\n for(count=0;count<26;count++){\n System.out.println((char)(count+'a') + \" : \" + alphabet[count]);\n }\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str = \"\"; \n String text;\n String Lower_text;\n int count = 0;\n int textlen;\n int i=0;\n String testtext; \n while(true){\n try{\n text = sc.next();\n Lower_text = text.toLowerCase();\n str = str + Lower_text;\n }catch(Exception e){\n break;\n } \n i++;\n /*textlen = text.length();\n testtext = text.substring(textlen-1);\n if(testtext.equals(\".\")) break;*///Judging wether text contains \".\" or not \n }\n char[] c = str.toCharArray();\n int[] alphabet;\n alphabet = new int[26];\n \n for(count=0;count<str.length();count++){\n if((c[count]-'a')>= 0 && (c[count]-'a')<=25){\n alphabet[(c[count]-'a')]++;\n //System.out.println(c[count]);\n } \n }\n for(count=0;count<26;count++){\n System.out.println((char)(count+'a') + \" : \" + alphabet[count]);\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str = \"\"; \n String text;\n String Lower_text;\n int count = 0;\n int textlen;\n int i=0;\n String testtext; \n while(true){\n try{\n text = sc.next();\n Lower_text = text.toLowerCase();\n str = str + Lower_text;\n }catch(Exception e){\n break;\n } \n i++;\n /*textlen = text.length();\n testtext = text.substring(textlen-1);\n if(testtext.equals(\".\")) break;*///Judging wether text contains \".\" or not \n }\n char[] c = str.toCharArray();\n int[] alphabet;\n alphabet = new int[26];\n \n for(count=0;count<str.length();count++){\n if((c[count]-'a')>= 0 && (c[count]-'a')<=25){\n alphabet[(c[count]-'a')]++;\n //System.out.println(c[count]);\n } \n }\n for(count=0;count<26;count++){\n System.out.println((char)(count+'a') + \" : \" + alphabet[count]);\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String str = \"\"; \n String text;\n String Lower_text;\n int count = 0;\n int textlen;\n int i=0;\n String testtext; \n while(true){\n try{\n text = sc.next();\n Lower_text = text.toLowerCase();\n str = str + Lower_text;\n }catch(Exception e){\n break;\n } \n i++;\n /*textlen = text.length();\n testtext = text.substring(textlen-1);\n if(testtext.equals(\".\")) break;*///Judging wether text contains \".\" or not \n }\n char[] c = str.toCharArray();\n int[] alphabet;\n alphabet = new int[26];\n \n for(count=0;count<str.length();count++){\n if((c[count]-'a')>= 0 && (c[count]-'a')<=25){\n alphabet[(c[count]-'a')]++;\n //System.out.println(c[count]);\n } \n }\n for(count=0;count<26;count++){\n System.out.println((char)(count+'a') + \" : \" + alphabet[count]);\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str = \"\";",
"str",
"\"\"",
"String text;",
"text",
"String Lower_text;",
"Lower_text",
"int count = 0;",
"count",
"0",
"int textlen;",
"textlen",
"int i=0;",
"i",
"0",
"String testtext;",
"testtext",
"while(true){\n try{\n text = sc.next();\n Lower_text = text.toLowerCase();\n str = str + Lower_text;\n }catch(Exception e){\n break;\n } \n i++;\n /*textlen = text.length();\n testtext = text.substring(textlen-1);\n if(testtext.equals(\".\")) break;*///Judging wether text contains \".\" or not \n }",
"true",
"{\n try{\n text = sc.next();\n Lower_text = text.toLowerCase();\n str = str + Lower_text;\n }catch(Exception e){\n break;\n } \n i++;\n /*textlen = text.length();\n testtext = text.substring(textlen-1);\n if(testtext.equals(\".\")) break;*///Judging wether text contains \".\" or not \n }",
"try{\n text = sc.next();\n Lower_text = text.toLowerCase();\n str = str + Lower_text;\n }catch(Exception e){\n break;\n }",
"catch(Exception e){\n break;\n }",
"Exception e",
"{\n break;\n }",
"break;",
"{\n text = sc.next();\n Lower_text = text.toLowerCase();\n str = str + Lower_text;\n }",
"text = sc.next()",
"text",
"sc.next()",
"sc.next",
"sc",
"Lower_text = text.toLowerCase()",
"Lower_text",
"text.toLowerCase()",
"text.toLowerCase",
"text",
"str = str + Lower_text",
"str",
"str + Lower_text",
"str",
"Lower_text",
"i++",
"i",
"char[] c = str.toCharArray();",
"c",
"str.toCharArray()",
"str.toCharArray",
"str",
"int[] alphabet;",
"alphabet",
"alphabet = new int[26]",
"alphabet",
"new int[26]",
"26",
"for(count=0;count<str.length();count++){\n if((c[count]-'a')>= 0 && (c[count]-'a')<=25){\n alphabet[(c[count]-'a')]++;\n //System.out.println(c[count]);\n } \n }",
"count=0;",
"count=0",
"count",
"0",
"count<str.length()",
"count",
"str.length()",
"str.length",
"str",
"count++",
"count++",
"count",
"{\n if((c[count]-'a')>= 0 && (c[count]-'a')<=25){\n alphabet[(c[count]-'a')]++;\n //System.out.println(c[count]);\n } \n }",
"{\n if((c[count]-'a')>= 0 && (c[count]-'a')<=25){\n alphabet[(c[count]-'a')]++;\n //System.out.println(c[count]);\n } \n }",
"if((c[count]-'a')>= 0 && (c[count]-'a')<=25){\n alphabet[(c[count]-'a')]++;\n //System.out.println(c[count]);\n }",
"(c[count]-'a')>= 0 && (c[count]-'a')<=25",
"(c[count]-'a')>= 0",
"(c[count]-'a')",
"c[count]",
"c",
"count",
"'a'",
"0",
"(c[count]-'a')<=25",
"(c[count]-'a')",
"c[count]",
"c",
"count",
"'a'",
"25",
"{\n alphabet[(c[count]-'a')]++;\n //System.out.println(c[count]);\n }",
"alphabet[(c[count]-'a')]++",
"alphabet[(c[count]-'a')]",
"alphabet",
"(c[count]-'a')",
"c[count]",
"c",
"count",
"'a'",
"for(count=0;count<26;count++){\n System.out.println((char)(count+'a') + \" : \" + alphabet[count]);\n }",
"count=0;",
"count=0",
"count",
"0",
"count<26",
"count",
"26",
"count++",
"count++",
"count",
"{\n System.out.println((char)(count+'a') + \" : \" + alphabet[count]);\n }",
"{\n System.out.println((char)(count+'a') + \" : \" + alphabet[count]);\n }",
"System.out.println((char)(count+'a') + \" : \" + alphabet[count])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)(count+'a') + \" : \" + alphabet[count]",
"(char)(count+'a') + \" : \" + alphabet[count]",
"(char)(count+'a')",
"count",
"'a'",
"\" : \"",
"alphabet[count]",
"alphabet",
"count",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str = \"\"; \n String text;\n String Lower_text;\n int count = 0;\n int textlen;\n int i=0;\n String testtext; \n while(true){\n try{\n text = sc.next();\n Lower_text = text.toLowerCase();\n str = str + Lower_text;\n }catch(Exception e){\n break;\n } \n i++;\n /*textlen = text.length();\n testtext = text.substring(textlen-1);\n if(testtext.equals(\".\")) break;*///Judging wether text contains \".\" or not \n }\n char[] c = str.toCharArray();\n int[] alphabet;\n alphabet = new int[26];\n \n for(count=0;count<str.length();count++){\n if((c[count]-'a')>= 0 && (c[count]-'a')<=25){\n alphabet[(c[count]-'a')]++;\n //System.out.println(c[count]);\n } \n }\n for(count=0;count<26;count++){\n System.out.println((char)(count+'a') + \" : \" + alphabet[count]);\n }\n sc.close();\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str = \"\"; \n String text;\n String Lower_text;\n int count = 0;\n int textlen;\n int i=0;\n String testtext; \n while(true){\n try{\n text = sc.next();\n Lower_text = text.toLowerCase();\n str = str + Lower_text;\n }catch(Exception e){\n break;\n } \n i++;\n /*textlen = text.length();\n testtext = text.substring(textlen-1);\n if(testtext.equals(\".\")) break;*///Judging wether text contains \".\" or not \n }\n char[] c = str.toCharArray();\n int[] alphabet;\n alphabet = new int[26];\n \n for(count=0;count<str.length();count++){\n if((c[count]-'a')>= 0 && (c[count]-'a')<=25){\n alphabet[(c[count]-'a')]++;\n //System.out.println(c[count]);\n } \n }\n for(count=0;count<26;count++){\n System.out.println((char)(count+'a') + \" : \" + alphabet[count]);\n }\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String str = "";
String text;
String Lower_text;
int count = 0;
int textlen;
int i=0;
String testtext;
while(true){
try{
text = sc.next();
Lower_text = text.toLowerCase();
str = str + Lower_text;
}catch(Exception e){
break;
}
i++;
/*textlen = text.length();
testtext = text.substring(textlen-1);
if(testtext.equals(".")) break;*///Judging wether text contains "." or not
}
char[] c = str.toCharArray();
int[] alphabet;
alphabet = new int[26];
for(count=0;count<str.length();count++){
if((c[count]-'a')>= 0 && (c[count]-'a')<=25){
alphabet[(c[count]-'a')]++;
//System.out.println(c[count]);
}
}
for(count=0;count<26;count++){
System.out.println((char)(count+'a') + " : " + alphabet[count]);
}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
2,
13,
17,
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
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
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
],
[
14,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
60,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
74,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
81,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
14,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
93,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
112,
112
],
[
112,
113
],
[
112,
114
],
[
112,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
12,
120
],
[
120,
121
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\nclass Main{\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint alpha_num = 26;\n\t\tint[] num = new int[alpha_num];\n\t\tString input = \"\";\n\n\t\tfor(int i = 0; i < alpha_num; i++){\n\t\t\tnum[i] = 0;\n\t\t}\n\n\t\twhile((input = br.readLine()) != null){\n\n\t\t\tinput = input.toLowerCase();\n\n\t\t\tfor(int i = 0; i < input.length(); i++){\n\n\t\t\t\tchar c = input.charAt(i);\n\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tnum[c - 'a']++;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tfor(char i = 'a'; i <= 'z'; i++){\n\t\t\tSystem.out.println(i + \" : \" + num[i - 'a']);\n\t\t}\n\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"class Main{\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint alpha_num = 26;\n\t\tint[] num = new int[alpha_num];\n\t\tString input = \"\";\n\n\t\tfor(int i = 0; i < alpha_num; i++){\n\t\t\tnum[i] = 0;\n\t\t}\n\n\t\twhile((input = br.readLine()) != null){\n\n\t\t\tinput = input.toLowerCase();\n\n\t\t\tfor(int i = 0; i < input.length(); i++){\n\n\t\t\t\tchar c = input.charAt(i);\n\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tnum[c - 'a']++;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tfor(char i = 'a'; i <= 'z'; i++){\n\t\t\tSystem.out.println(i + \" : \" + num[i - 'a']);\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint alpha_num = 26;\n\t\tint[] num = new int[alpha_num];\n\t\tString input = \"\";\n\n\t\tfor(int i = 0; i < alpha_num; i++){\n\t\t\tnum[i] = 0;\n\t\t}\n\n\t\twhile((input = br.readLine()) != null){\n\n\t\t\tinput = input.toLowerCase();\n\n\t\t\tfor(int i = 0; i < input.length(); i++){\n\n\t\t\t\tchar c = input.charAt(i);\n\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tnum[c - 'a']++;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tfor(char i = 'a'; i <= 'z'; i++){\n\t\t\tSystem.out.println(i + \" : \" + num[i - 'a']);\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint alpha_num = 26;\n\t\tint[] num = new int[alpha_num];\n\t\tString input = \"\";\n\n\t\tfor(int i = 0; i < alpha_num; i++){\n\t\t\tnum[i] = 0;\n\t\t}\n\n\t\twhile((input = br.readLine()) != null){\n\n\t\t\tinput = input.toLowerCase();\n\n\t\t\tfor(int i = 0; i < input.length(); i++){\n\n\t\t\t\tchar c = input.charAt(i);\n\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tnum[c - 'a']++;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tfor(char i = 'a'; i <= 'z'; i++){\n\t\t\tSystem.out.println(i + \" : \" + num[i - 'a']);\n\t\t}\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int alpha_num = 26;",
"alpha_num",
"26",
"int[] num = new int[alpha_num];",
"num",
"new int[alpha_num]",
"alpha_num",
"String input = \"\";",
"input",
"\"\"",
"for(int i = 0; i < alpha_num; i++){\n\t\t\tnum[i] = 0;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < alpha_num",
"i",
"alpha_num",
"i++",
"i++",
"i",
"{\n\t\t\tnum[i] = 0;\n\t\t}",
"{\n\t\t\tnum[i] = 0;\n\t\t}",
"num[i] = 0",
"num[i]",
"num",
"i",
"0",
"while((input = br.readLine()) != null){\n\n\t\t\tinput = input.toLowerCase();\n\n\t\t\tfor(int i = 0; i < input.length(); i++){\n\n\t\t\t\tchar c = input.charAt(i);\n\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tnum[c - 'a']++;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}",
"(input = br.readLine()) != null",
"(input = br.readLine())",
"input",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\n\t\t\tinput = input.toLowerCase();\n\n\t\t\tfor(int i = 0; i < input.length(); i++){\n\n\t\t\t\tchar c = input.charAt(i);\n\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tnum[c - 'a']++;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}",
"input = input.toLowerCase()",
"input",
"input.toLowerCase()",
"input.toLowerCase",
"input",
"for(int i = 0; i < input.length(); i++){\n\n\t\t\t\tchar c = input.charAt(i);\n\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tnum[c - 'a']++;\n\t\t\t\t}\n\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < input.length()",
"i",
"input.length()",
"input.length",
"input",
"i++",
"i++",
"i",
"{\n\n\t\t\t\tchar c = input.charAt(i);\n\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tnum[c - 'a']++;\n\t\t\t\t}\n\n\t\t\t}",
"{\n\n\t\t\t\tchar c = input.charAt(i);\n\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tnum[c - 'a']++;\n\t\t\t\t}\n\n\t\t\t}",
"char c = input.charAt(i);",
"c",
"input.charAt(i)",
"input.charAt",
"input",
"i",
"if(Character.isLetter(c)){\n\t\t\t\t\tnum[c - 'a']++;\n\t\t\t\t}",
"Character.isLetter(c)",
"Character.isLetter",
"Character",
"c",
"{\n\t\t\t\t\tnum[c - 'a']++;\n\t\t\t\t}",
"num[c - 'a']++",
"num[c - 'a']",
"num",
"c - 'a'",
"c",
"'a'",
"for(char i = 'a'; i <= 'z'; i++){\n\t\t\tSystem.out.println(i + \" : \" + num[i - 'a']);\n\t\t}",
"char i = 'a';",
"char i = 'a';",
"i",
"'a'",
"i <= 'z'",
"i",
"'z'",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(i + \" : \" + num[i - 'a']);\n\t\t}",
"{\n\t\t\tSystem.out.println(i + \" : \" + num[i - 'a']);\n\t\t}",
"System.out.println(i + \" : \" + num[i - 'a'])",
"System.out.println",
"System.out",
"System",
"System.out",
"i + \" : \" + num[i - 'a']",
"i + \" : \" + num[i - 'a']",
"i",
"\" : \"",
"num[i - 'a']",
"num",
"i - 'a'",
"i",
"'a'",
"String[] args",
"args"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int alpha_num = 26;
int[] num = new int[alpha_num];
String input = "";
for(int i = 0; i < alpha_num; i++){
num[i] = 0;
}
while((input = br.readLine()) != null){
input = input.toLowerCase();
for(int i = 0; i < input.length(); i++){
char c = input.charAt(i);
if(Character.isLetter(c)){
num[c - 'a']++;
}
}
}
for(char i = 'a'; i <= 'z'; i++){
System.out.println(i + " : " + num[i - 'a']);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
41,
13,
20,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
4,
18,
13,
17,
3,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
28,
13,
13,
30,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
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
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
22,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
37,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
37,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
37,
54
],
[
54,
55
],
[
54,
56
],
[
54,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
22,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
74,
84
],
[
84,
85
],
[
85,
86
],
[
74,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
6,
103
],
[
103,
104
]
]
| [
"// ITP1_8_C Counting Characters\nimport java.io.*;\n\nclass Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String str;\n int[] alphabet = new int[26];\n while ((str = br.readLine()) != null) {\n if (str.equals(\"\"))\n break;\n str = str.toLowerCase();\n char[] ch = str.toCharArray();\n for (char c: ch) {\n if ('a' <= c && c <= 'z'){\n alphabet[c - 'a']++;\n }\n }\n }\n\n for (int i = 0; i < alphabet.length; i++) {\n System.out.println((char)('a' + i) + \" : \" + alphabet[i]);\n }\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String str;\n int[] alphabet = new int[26];\n while ((str = br.readLine()) != null) {\n if (str.equals(\"\"))\n break;\n str = str.toLowerCase();\n char[] ch = str.toCharArray();\n for (char c: ch) {\n if ('a' <= c && c <= 'z'){\n alphabet[c - 'a']++;\n }\n }\n }\n\n for (int i = 0; i < alphabet.length; i++) {\n System.out.println((char)('a' + i) + \" : \" + alphabet[i]);\n }\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String str;\n int[] alphabet = new int[26];\n while ((str = br.readLine()) != null) {\n if (str.equals(\"\"))\n break;\n str = str.toLowerCase();\n char[] ch = str.toCharArray();\n for (char c: ch) {\n if ('a' <= c && c <= 'z'){\n alphabet[c - 'a']++;\n }\n }\n }\n\n for (int i = 0; i < alphabet.length; i++) {\n System.out.println((char)('a' + i) + \" : \" + alphabet[i]);\n }\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String str;\n int[] alphabet = new int[26];\n while ((str = br.readLine()) != null) {\n if (str.equals(\"\"))\n break;\n str = str.toLowerCase();\n char[] ch = str.toCharArray();\n for (char c: ch) {\n if ('a' <= c && c <= 'z'){\n alphabet[c - 'a']++;\n }\n }\n }\n\n for (int i = 0; i < alphabet.length; i++) {\n System.out.println((char)('a' + i) + \" : \" + alphabet[i]);\n }\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n String str;\n int[] alphabet = new int[26];\n while ((str = br.readLine()) != null) {\n if (str.equals(\"\"))\n break;\n str = str.toLowerCase();\n char[] ch = str.toCharArray();\n for (char c: ch) {\n if ('a' <= c && c <= 'z'){\n alphabet[c - 'a']++;\n }\n }\n }\n\n for (int i = 0; i < alphabet.length; i++) {\n System.out.println((char)('a' + i) + \" : \" + alphabet[i]);\n }\n }\n\n catch (Exception e) {\n System.err.println(e);\n }",
"catch (Exception e) {\n System.err.println(e);\n }",
"Exception e",
"{\n System.err.println(e);\n }",
"System.err.println(e)",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n String str;\n int[] alphabet = new int[26];\n while ((str = br.readLine()) != null) {\n if (str.equals(\"\"))\n break;\n str = str.toLowerCase();\n char[] ch = str.toCharArray();\n for (char c: ch) {\n if ('a' <= c && c <= 'z'){\n alphabet[c - 'a']++;\n }\n }\n }\n\n for (int i = 0; i < alphabet.length; i++) {\n System.out.println((char)('a' + i) + \" : \" + alphabet[i]);\n }\n }",
"String str;",
"str",
"int[] alphabet = new int[26];",
"alphabet",
"new int[26]",
"26",
"while ((str = br.readLine()) != null) {\n if (str.equals(\"\"))\n break;\n str = str.toLowerCase();\n char[] ch = str.toCharArray();\n for (char c: ch) {\n if ('a' <= c && c <= 'z'){\n alphabet[c - 'a']++;\n }\n }\n }",
"(str = br.readLine()) != null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n if (str.equals(\"\"))\n break;\n str = str.toLowerCase();\n char[] ch = str.toCharArray();\n for (char c: ch) {\n if ('a' <= c && c <= 'z'){\n alphabet[c - 'a']++;\n }\n }\n }",
"if (str.equals(\"\"))\n break;",
"str.equals(\"\")",
"str.equals",
"str",
"\"\"",
"break;",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"char[] ch = str.toCharArray();",
"ch",
"str.toCharArray()",
"str.toCharArray",
"str",
"for (char c: ch) {\n if ('a' <= c && c <= 'z'){\n alphabet[c - 'a']++;\n }\n }",
"char c",
"ch",
"{\n if ('a' <= c && c <= 'z'){\n alphabet[c - 'a']++;\n }\n }",
"{\n if ('a' <= c && c <= 'z'){\n alphabet[c - 'a']++;\n }\n }",
"if ('a' <= c && c <= 'z'){\n alphabet[c - 'a']++;\n }",
"'a' <= c && c <= 'z'",
"'a' <= c",
"'a'",
"c",
"c <= 'z'",
"c",
"'z'",
"{\n alphabet[c - 'a']++;\n }",
"alphabet[c - 'a']++",
"alphabet[c - 'a']",
"alphabet",
"c - 'a'",
"c",
"'a'",
"for (int i = 0; i < alphabet.length; i++) {\n System.out.println((char)('a' + i) + \" : \" + alphabet[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < alphabet.length",
"i",
"alphabet.length",
"alphabet",
"alphabet.length",
"i++",
"i++",
"i",
"{\n System.out.println((char)('a' + i) + \" : \" + alphabet[i]);\n }",
"{\n System.out.println((char)('a' + i) + \" : \" + alphabet[i]);\n }",
"System.out.println((char)('a' + i) + \" : \" + alphabet[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)('a' + i) + \" : \" + alphabet[i]",
"(char)('a' + i) + \" : \" + alphabet[i]",
"(char)('a' + i)",
"'a'",
"i",
"\" : \"",
"alphabet[i]",
"alphabet",
"i",
"String[] args",
"args"
]
| // ITP1_8_C Counting Characters
import java.io.*;
class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
String str;
int[] alphabet = new int[26];
while ((str = br.readLine()) != null) {
if (str.equals(""))
break;
str = str.toLowerCase();
char[] ch = str.toCharArray();
for (char c: ch) {
if ('a' <= c && c <= 'z'){
alphabet[c - 'a']++;
}
}
}
for (int i = 0; i < alphabet.length; i++) {
System.out.println((char)('a' + i) + " : " + alphabet[i]);
}
}
catch (Exception e) {
System.err.println(e);
}
}
} |
[
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,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
4,
18,
4,
18,
13,
13,
30,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
2,
18,
13,
13,
17,
18,
13,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
272,
23
],
[
272,
24
],
[
24,
25
],
[
272,
26
],
[
26,
27
],
[
272,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
34,
36
],
[
30,
37
],
[
37,
38
],
[
37,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
30,
43
],
[
43,
44
],
[
44,
45
],
[
28,
46
],
[
46,
47
],
[
272,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
59,
62
],
[
59,
63
],
[
59,
64
],
[
59,
65
],
[
59,
66
],
[
59,
67
],
[
59,
68
],
[
59,
69
],
[
59,
70
],
[
59,
71
],
[
59,
72
],
[
59,
73
],
[
59,
74
],
[
59,
75
],
[
59,
76
],
[
59,
77
],
[
59,
78
],
[
59,
79
],
[
59,
80
],
[
59,
81
],
[
59,
82
],
[
59,
83
],
[
59,
84
],
[
59,
85
],
[
52,
86
],
[
86,
87
],
[
86,
88
],
[
52,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
93,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
99,
109
],
[
109,
110
],
[
110,
111
],
[
99,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
114,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
132,
137
],
[
127,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
52,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
148,
149
],
[
148,
150
],
[
143,
151
],
[
151,
152
],
[
152,
153
],
[
143,
154
],
[
155,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
160,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
160,
165
],
[
165,
166
],
[
165,
167
],
[
272,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
168,
172
],
[
172,
173
],
[
168,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
174,
180
],
[
180,
181
],
[
168,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
185,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
184,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
199,
202
],
[
202,
203
],
[
203,
204
],
[
168,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
208,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
207,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
222,
225
],
[
225,
226
],
[
226,
227
],
[
168,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
232,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
231,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
230,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
168,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
251,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
250,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
265,
268
],
[
268,
269
],
[
269,
270
],
[
0,
271
],
[
271,
272
],
[
271,
273
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\nimport java.util.Scanner;\n\npublic class Main {\n static InputReader in;\n static PrintWriter out;\n\n \n\n\n static class Solution {\n void solve() throws IOException {\n int[] cnt = new int[26];\n char[] alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',\n 'v','w','x','y','z'};\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n String word = sc.next(); \n for (int i = 0; i < word.length(); i++) {\n for (int j = 0; j < 26; j++) { \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }\n }\n \n }\n for (int i = 0; i < 26; i++) {\n out.println(alphabet[i] + \" : \" + cnt[i]);\n }\n// End solve()\n }\n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n\n \n\n\n static class Solution {\n void solve() throws IOException {\n int[] cnt = new int[26];\n char[] alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',\n 'v','w','x','y','z'};\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n String word = sc.next(); \n for (int i = 0; i < word.length(); i++) {\n for (int j = 0; j < 26; j++) { \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }\n }\n \n }\n for (int i = 0; i < 26; i++) {\n out.println(alphabet[i] + \" : \" + cnt[i]);\n }\n// End solve()\n }\n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}",
"Main",
"static InputReader in;",
"in",
"static PrintWriter out;",
"out",
"public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}",
"main",
"{\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}",
"in = new InputReader(System.in)",
"in",
"new InputReader(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"Solution solver = new Solution();",
"solver",
"new Solution()",
"solver.solve()",
"solver.solve",
"solver",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Solution {\n void solve() throws IOException {\n int[] cnt = new int[26];\n char[] alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',\n 'v','w','x','y','z'};\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n String word = sc.next(); \n for (int i = 0; i < word.length(); i++) {\n for (int j = 0; j < 26; j++) { \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }\n }\n \n }\n for (int i = 0; i < 26; i++) {\n out.println(alphabet[i] + \" : \" + cnt[i]);\n }\n// End solve()\n }\n// End Solution\n}",
"Solution",
"void solve() throws IOException {\n int[] cnt = new int[26];\n char[] alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',\n 'v','w','x','y','z'};\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n String word = sc.next(); \n for (int i = 0; i < word.length(); i++) {\n for (int j = 0; j < 26; j++) { \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }\n }\n \n }\n for (int i = 0; i < 26; i++) {\n out.println(alphabet[i] + \" : \" + cnt[i]);\n }\n// End solve()\n }",
"solve",
"{\n int[] cnt = new int[26];\n char[] alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',\n 'v','w','x','y','z'};\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n String word = sc.next(); \n for (int i = 0; i < word.length(); i++) {\n for (int j = 0; j < 26; j++) { \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }\n }\n \n }\n for (int i = 0; i < 26; i++) {\n out.println(alphabet[i] + \" : \" + cnt[i]);\n }\n// End solve()\n }",
"int[] cnt = new int[26];",
"cnt",
"new int[26]",
"26",
"char[] alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',\n 'v','w','x','y','z'};",
"alphabet",
"{'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',\n 'v','w','x','y','z'}",
"'a'",
"'b'",
"'c'",
"'d'",
"'e'",
"'f'",
"'g'",
"'h'",
"'i'",
"'j'",
"'k'",
"'l'",
"'m'",
"'n'",
"'o'",
"'p'",
"'q'",
"'r'",
"'s'",
"'t'",
"'u'",
"'v'",
"'w'",
"'x'",
"'y'",
"'z'",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (sc.hasNext()) {\n String word = sc.next(); \n for (int i = 0; i < word.length(); i++) {\n for (int j = 0; j < 26; j++) { \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }\n }\n \n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String word = sc.next(); \n for (int i = 0; i < word.length(); i++) {\n for (int j = 0; j < 26; j++) { \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }\n }\n \n }",
"String word = sc.next();",
"word",
"sc.next()",
"sc.next",
"sc",
"for (int i = 0; i < word.length(); i++) {\n for (int j = 0; j < 26; j++) { \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < word.length()",
"i",
"word.length()",
"word.length",
"word",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 26; j++) { \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }\n }",
"{\n for (int j = 0; j < 26; j++) { \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }\n }",
"for (int j = 0; j < 26; j++) { \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{ \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }",
"{ \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }",
"if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }",
"alphabet[j] == word.toLowerCase().charAt(i)",
"alphabet[j]",
"alphabet",
"j",
"word.toLowerCase().charAt(i)",
"word.toLowerCase().charAt",
"word.toLowerCase()",
"word.toLowerCase",
"word",
"i",
"{\n cnt[j]++;\n }",
"cnt[j]++",
"cnt[j]",
"cnt",
"j",
"for (int i = 0; i < 26; i++) {\n out.println(alphabet[i] + \" : \" + cnt[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n out.println(alphabet[i] + \" : \" + cnt[i]);\n }",
"{\n out.println(alphabet[i] + \" : \" + cnt[i]);\n }",
"out.println(alphabet[i] + \" : \" + cnt[i])",
"out.println",
"out",
"alphabet[i] + \" : \" + cnt[i]",
"alphabet[i] + \" : \" + cnt[i]",
"alphabet[i]",
"alphabet",
"i",
"\" : \"",
"cnt[i]",
"cnt",
"i",
"static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }",
"InputReader",
"public BufferedReader br;",
"br",
"public StringTokenizer st;",
"st",
"public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"InputReader",
"{\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"br = new BufferedReader(new InputStreamReader(stream))",
"br",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }",
"nextInt",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Integer.parseInt(st.nextToken());",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }",
"nextLong",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Long.parseLong(st.nextToken());",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }",
"nextDouble",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Double.parseDouble(st.nextToken());",
"Double.parseDouble(st.nextToken())",
"Double.parseDouble",
"Double",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n\n \n\n\n static class Solution {\n void solve() throws IOException {\n int[] cnt = new int[26];\n char[] alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',\n 'v','w','x','y','z'};\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n String word = sc.next(); \n for (int i = 0; i < word.length(); i++) {\n for (int j = 0; j < 26; j++) { \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }\n }\n \n }\n for (int i = 0; i < 26; i++) {\n out.println(alphabet[i] + \" : \" + cnt[i]);\n }\n// End solve()\n }\n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n\n \n\n\n static class Solution {\n void solve() throws IOException {\n int[] cnt = new int[26];\n char[] alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',\n 'v','w','x','y','z'};\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n String word = sc.next(); \n for (int i = 0; i < word.length(); i++) {\n for (int j = 0; j < 26; j++) { \n if(alphabet[j] == word.toLowerCase().charAt(i)) {\n cnt[j]++;\n }\n }\n }\n \n }\n for (int i = 0; i < 26; i++) {\n out.println(alphabet[i] + \" : \" + cnt[i]);\n }\n// End solve()\n }\n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.util.Scanner;
public class Main {
static InputReader in;
static PrintWriter out;
static class Solution {
void solve() throws IOException {
int[] cnt = new int[26];
char[] alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',
'v','w','x','y','z'};
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
String word = sc.next();
for (int i = 0; i < word.length(); i++) {
for (int j = 0; j < 26; j++) {
if(alphabet[j] == word.toLowerCase().charAt(i)) {
cnt[j]++;
}
}
}
}
for (int i = 0; i < 26; i++) {
out.println(alphabet[i] + " : " + cnt[i]);
}
// End solve()
}
// End Solution
}
public static void main(String[] args) throws IOException {
in = new InputReader(System.in);
out = new PrintWriter(System.out);
Solution solver = new Solution();
solver.solve();
out.close();
}
static class InputReader {
public BufferedReader br;
public StringTokenizer st;
public InputReader(InputStream stream) {
br = new BufferedReader(new InputStreamReader(stream));
}
public int nextInt() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Integer.parseInt(st.nextToken());
}
public long nextLong() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Long.parseLong(st.nextToken());
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return st.nextToken();
}
public double nextDouble() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Double.parseDouble(st.nextToken());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
2,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
107,
5
],
[
107,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
42,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
49,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
92,
98
],
[
98,
99
],
[
98,
100
],
[
92,
101
],
[
101,
102
],
[
101,
103
],
[
6,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int a[] = new int[26];\n int i;\n \n while(sc.hasNext()){\n String x = sc.next();\n\n for(i = 0;i < x.length();i++){\n char c = x.charAt(i);\n if(c >= 'a' && c <= 'z'){\n a[c - 97]++;\n }\n else if(c >= 'A' && c <= 'Z'){\n a[c - 65]++;\n }\n }\n }\n\n for(i = 0;i < 26;i++){\n System.out.printf(\"%c : %d\\n\",(i + 97),a[i]);\n }\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int a[] = new int[26];\n int i;\n \n while(sc.hasNext()){\n String x = sc.next();\n\n for(i = 0;i < x.length();i++){\n char c = x.charAt(i);\n if(c >= 'a' && c <= 'z'){\n a[c - 97]++;\n }\n else if(c >= 'A' && c <= 'Z'){\n a[c - 65]++;\n }\n }\n }\n\n for(i = 0;i < 26;i++){\n System.out.printf(\"%c : %d\\n\",(i + 97),a[i]);\n }\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int a[] = new int[26];\n int i;\n \n while(sc.hasNext()){\n String x = sc.next();\n\n for(i = 0;i < x.length();i++){\n char c = x.charAt(i);\n if(c >= 'a' && c <= 'z'){\n a[c - 97]++;\n }\n else if(c >= 'A' && c <= 'Z'){\n a[c - 65]++;\n }\n }\n }\n\n for(i = 0;i < 26;i++){\n System.out.printf(\"%c : %d\\n\",(i + 97),a[i]);\n }\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int a[] = new int[26];\n int i;\n \n while(sc.hasNext()){\n String x = sc.next();\n\n for(i = 0;i < x.length();i++){\n char c = x.charAt(i);\n if(c >= 'a' && c <= 'z'){\n a[c - 97]++;\n }\n else if(c >= 'A' && c <= 'Z'){\n a[c - 65]++;\n }\n }\n }\n\n for(i = 0;i < 26;i++){\n System.out.printf(\"%c : %d\\n\",(i + 97),a[i]);\n }\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a[] = new int[26];",
"a",
"new int[26]",
"26",
"int i;",
"i",
"while(sc.hasNext()){\n String x = sc.next();\n\n for(i = 0;i < x.length();i++){\n char c = x.charAt(i);\n if(c >= 'a' && c <= 'z'){\n a[c - 97]++;\n }\n else if(c >= 'A' && c <= 'Z'){\n a[c - 65]++;\n }\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String x = sc.next();\n\n for(i = 0;i < x.length();i++){\n char c = x.charAt(i);\n if(c >= 'a' && c <= 'z'){\n a[c - 97]++;\n }\n else if(c >= 'A' && c <= 'Z'){\n a[c - 65]++;\n }\n }\n }",
"String x = sc.next();",
"x",
"sc.next()",
"sc.next",
"sc",
"for(i = 0;i < x.length();i++){\n char c = x.charAt(i);\n if(c >= 'a' && c <= 'z'){\n a[c - 97]++;\n }\n else if(c >= 'A' && c <= 'Z'){\n a[c - 65]++;\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < x.length()",
"i",
"x.length()",
"x.length",
"x",
"i++",
"i++",
"i",
"{\n char c = x.charAt(i);\n if(c >= 'a' && c <= 'z'){\n a[c - 97]++;\n }\n else if(c >= 'A' && c <= 'Z'){\n a[c - 65]++;\n }\n }",
"{\n char c = x.charAt(i);\n if(c >= 'a' && c <= 'z'){\n a[c - 97]++;\n }\n else if(c >= 'A' && c <= 'Z'){\n a[c - 65]++;\n }\n }",
"char c = x.charAt(i);",
"c",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"if(c >= 'a' && c <= 'z'){\n a[c - 97]++;\n }\n else if(c >= 'A' && c <= 'Z'){\n a[c - 65]++;\n }",
"c >= 'a' && c <= 'z'",
"c >= 'a'",
"c",
"'a'",
"c <= 'z'",
"c",
"'z'",
"{\n a[c - 97]++;\n }",
"a[c - 97]++",
"a[c - 97]",
"a",
"c - 97",
"c",
"97",
"if(c >= 'A' && c <= 'Z'){\n a[c - 65]++;\n }",
"c >= 'A' && c <= 'Z'",
"c >= 'A'",
"c",
"'A'",
"c <= 'Z'",
"c",
"'Z'",
"{\n a[c - 65]++;\n }",
"a[c - 65]++",
"a[c - 65]",
"a",
"c - 65",
"c",
"65",
"for(i = 0;i < 26;i++){\n System.out.printf(\"%c : %d\\n\",(i + 97),a[i]);\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.printf(\"%c : %d\\n\",(i + 97),a[i]);\n }",
"{\n System.out.printf(\"%c : %d\\n\",(i + 97),a[i]);\n }",
"System.out.printf(\"%c : %d\\n\",(i + 97),a[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"(i + 97)",
"i",
"97",
"a[i]",
"a",
"i",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int a[] = new int[26];\n int i;\n \n while(sc.hasNext()){\n String x = sc.next();\n\n for(i = 0;i < x.length();i++){\n char c = x.charAt(i);\n if(c >= 'a' && c <= 'z'){\n a[c - 97]++;\n }\n else if(c >= 'A' && c <= 'Z'){\n a[c - 65]++;\n }\n }\n }\n\n for(i = 0;i < 26;i++){\n System.out.printf(\"%c : %d\\n\",(i + 97),a[i]);\n }\n\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int a[] = new int[26];\n int i;\n \n while(sc.hasNext()){\n String x = sc.next();\n\n for(i = 0;i < x.length();i++){\n char c = x.charAt(i);\n if(c >= 'a' && c <= 'z'){\n a[c - 97]++;\n }\n else if(c >= 'A' && c <= 'Z'){\n a[c - 65]++;\n }\n }\n }\n\n for(i = 0;i < 26;i++){\n System.out.printf(\"%c : %d\\n\",(i + 97),a[i]);\n }\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a[] = new int[26];
int i;
while(sc.hasNext()){
String x = sc.next();
for(i = 0;i < x.length();i++){
char c = x.charAt(i);
if(c >= 'a' && c <= 'z'){
a[c - 97]++;
}
else if(c >= 'A' && c <= 'Z'){
a[c - 65]++;
}
}
}
for(i = 0;i < 26;i++){
System.out.printf("%c : %d\n",(i + 97),a[i]);
}
}
}
|
[
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,
20,
41,
13,
20,
41,
13,
20,
17,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
28,
13,
4,
18,
13,
30,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
2,
2,
13,
17,
18,
13,
2,
13,
17,
17,
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
],
[
118,
17
],
[
118,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
30,
32
],
[
20,
33
],
[
33,
34
],
[
33,
35
],
[
20,
37
],
[
37,
38
],
[
20,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
48,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
55,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
20,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
103,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
20,
112
],
[
112,
113
],
[
113,
114
],
[
18,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
]
| [
"import java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.io.IOException;\n\npublic class Main {\n\n public static void main(String args[]) throws IOException {\n InputStreamReader ir = new InputStreamReader(System.in, \"ISO-8859-1\");\n OutputStreamWriter ow = new OutputStreamWriter(System.out, \"ISO-8859-1\");\n BufferedWriter bw = new BufferedWriter(ow);\n BufferedReader br = new BufferedReader(ir);\n int[] count = new int[26];\n String input;\n while ((input = br.readLine()) != null) {\n for (char c : input.toCharArray()) {\n if (c >= 'a' && c <= 'z') {\n count[c - 'a']++;\n } else if (c >= 'A' && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }\n for (int i = 'a'; i <= 'z'; i++) {\n bw.append((char) i + \" : \" + count[i - 'a'] + \"\\n\");\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.io.IOException;",
"IOException",
"java.io",
"public class Main {\n\n public static void main(String args[]) throws IOException {\n InputStreamReader ir = new InputStreamReader(System.in, \"ISO-8859-1\");\n OutputStreamWriter ow = new OutputStreamWriter(System.out, \"ISO-8859-1\");\n BufferedWriter bw = new BufferedWriter(ow);\n BufferedReader br = new BufferedReader(ir);\n int[] count = new int[26];\n String input;\n while ((input = br.readLine()) != null) {\n for (char c : input.toCharArray()) {\n if (c >= 'a' && c <= 'z') {\n count[c - 'a']++;\n } else if (c >= 'A' && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }\n for (int i = 'a'; i <= 'z'; i++) {\n bw.append((char) i + \" : \" + count[i - 'a'] + \"\\n\");\n }\n bw.flush();\n }\n\n}",
"Main",
"public static void main(String args[]) throws IOException {\n InputStreamReader ir = new InputStreamReader(System.in, \"ISO-8859-1\");\n OutputStreamWriter ow = new OutputStreamWriter(System.out, \"ISO-8859-1\");\n BufferedWriter bw = new BufferedWriter(ow);\n BufferedReader br = new BufferedReader(ir);\n int[] count = new int[26];\n String input;\n while ((input = br.readLine()) != null) {\n for (char c : input.toCharArray()) {\n if (c >= 'a' && c <= 'z') {\n count[c - 'a']++;\n } else if (c >= 'A' && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }\n for (int i = 'a'; i <= 'z'; i++) {\n bw.append((char) i + \" : \" + count[i - 'a'] + \"\\n\");\n }\n bw.flush();\n }",
"main",
"{\n InputStreamReader ir = new InputStreamReader(System.in, \"ISO-8859-1\");\n OutputStreamWriter ow = new OutputStreamWriter(System.out, \"ISO-8859-1\");\n BufferedWriter bw = new BufferedWriter(ow);\n BufferedReader br = new BufferedReader(ir);\n int[] count = new int[26];\n String input;\n while ((input = br.readLine()) != null) {\n for (char c : input.toCharArray()) {\n if (c >= 'a' && c <= 'z') {\n count[c - 'a']++;\n } else if (c >= 'A' && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }\n for (int i = 'a'; i <= 'z'; i++) {\n bw.append((char) i + \" : \" + count[i - 'a'] + \"\\n\");\n }\n bw.flush();\n }",
"InputStreamReader ir = new InputStreamReader(System.in, \"ISO-8859-1\");",
"ir",
"new InputStreamReader(System.in, \"ISO-8859-1\")",
"OutputStreamWriter ow = new OutputStreamWriter(System.out, \"ISO-8859-1\");",
"ow",
"new OutputStreamWriter(System.out, \"ISO-8859-1\")",
"BufferedWriter bw = new BufferedWriter(ow);",
"bw",
"new BufferedWriter(ow)",
"BufferedReader br = new BufferedReader(ir);",
"br",
"new BufferedReader(ir)",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"String input;",
"input",
"while ((input = br.readLine()) != null) {\n for (char c : input.toCharArray()) {\n if (c >= 'a' && c <= 'z') {\n count[c - 'a']++;\n } else if (c >= 'A' && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }",
"(input = br.readLine()) != null",
"(input = br.readLine())",
"input",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n for (char c : input.toCharArray()) {\n if (c >= 'a' && c <= 'z') {\n count[c - 'a']++;\n } else if (c >= 'A' && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }",
"for (char c : input.toCharArray()) {\n if (c >= 'a' && c <= 'z') {\n count[c - 'a']++;\n } else if (c >= 'A' && c <= 'Z') {\n count[c - 'A']++;\n }\n }",
"char c",
"input.toCharArray()",
"input.toCharArray",
"input",
"{\n if (c >= 'a' && c <= 'z') {\n count[c - 'a']++;\n } else if (c >= 'A' && c <= 'Z') {\n count[c - 'A']++;\n }\n }",
"{\n if (c >= 'a' && c <= 'z') {\n count[c - 'a']++;\n } else if (c >= 'A' && c <= 'Z') {\n count[c - 'A']++;\n }\n }",
"if (c >= 'a' && c <= 'z') {\n count[c - 'a']++;\n } else if (c >= 'A' && c <= 'Z') {\n count[c - 'A']++;\n }",
"c >= 'a' && c <= 'z'",
"c >= 'a'",
"c",
"'a'",
"c <= 'z'",
"c",
"'z'",
"{\n count[c - 'a']++;\n }",
"count[c - 'a']++",
"count[c - 'a']",
"count",
"c - 'a'",
"c",
"'a'",
"if (c >= 'A' && c <= 'Z') {\n count[c - 'A']++;\n }",
"c >= 'A' && c <= 'Z'",
"c >= 'A'",
"c",
"'A'",
"c <= 'Z'",
"c",
"'Z'",
"{\n count[c - 'A']++;\n }",
"count[c - 'A']++",
"count[c - 'A']",
"count",
"c - 'A'",
"c",
"'A'",
"for (int i = 'a'; i <= 'z'; i++) {\n bw.append((char) i + \" : \" + count[i - 'a'] + \"\\n\");\n }",
"int i = 'a';",
"int i = 'a';",
"i",
"'a'",
"i <= 'z'",
"i",
"'z'",
"i++",
"i++",
"i",
"{\n bw.append((char) i + \" : \" + count[i - 'a'] + \"\\n\");\n }",
"{\n bw.append((char) i + \" : \" + count[i - 'a'] + \"\\n\");\n }",
"bw.append((char) i + \" : \" + count[i - 'a'] + \"\\n\")",
"bw.append",
"bw",
"(char) i + \" : \" + count[i - 'a'] + \"\\n\"",
"count[i - 'a']",
"(char) i + \" : \" + count[i - 'a'] + \"\\n\"",
"(char) i",
"\" : \"",
"count[i - 'a']",
"count",
"i - 'a'",
"i",
"'a'",
"\"\\n\"",
"bw.flush()",
"bw.flush",
"bw",
"String args[]",
"args",
"public class Main {\n\n public static void main(String args[]) throws IOException {\n InputStreamReader ir = new InputStreamReader(System.in, \"ISO-8859-1\");\n OutputStreamWriter ow = new OutputStreamWriter(System.out, \"ISO-8859-1\");\n BufferedWriter bw = new BufferedWriter(ow);\n BufferedReader br = new BufferedReader(ir);\n int[] count = new int[26];\n String input;\n while ((input = br.readLine()) != null) {\n for (char c : input.toCharArray()) {\n if (c >= 'a' && c <= 'z') {\n count[c - 'a']++;\n } else if (c >= 'A' && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }\n for (int i = 'a'; i <= 'z'; i++) {\n bw.append((char) i + \" : \" + count[i - 'a'] + \"\\n\");\n }\n bw.flush();\n }\n\n}",
"public class Main {\n\n public static void main(String args[]) throws IOException {\n InputStreamReader ir = new InputStreamReader(System.in, \"ISO-8859-1\");\n OutputStreamWriter ow = new OutputStreamWriter(System.out, \"ISO-8859-1\");\n BufferedWriter bw = new BufferedWriter(ow);\n BufferedReader br = new BufferedReader(ir);\n int[] count = new int[26];\n String input;\n while ((input = br.readLine()) != null) {\n for (char c : input.toCharArray()) {\n if (c >= 'a' && c <= 'z') {\n count[c - 'a']++;\n } else if (c >= 'A' && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }\n for (int i = 'a'; i <= 'z'; i++) {\n bw.append((char) i + \" : \" + count[i - 'a'] + \"\\n\");\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.io.IOException;
public class Main {
public static void main(String args[]) throws IOException {
InputStreamReader ir = new InputStreamReader(System.in, "ISO-8859-1");
OutputStreamWriter ow = new OutputStreamWriter(System.out, "ISO-8859-1");
BufferedWriter bw = new BufferedWriter(ow);
BufferedReader br = new BufferedReader(ir);
int[] count = new int[26];
String input;
while ((input = br.readLine()) != null) {
for (char c : input.toCharArray()) {
if (c >= 'a' && c <= 'z') {
count[c - 'a']++;
} else if (c >= 'A' && c <= 'Z') {
count[c - 'A']++;
}
}
}
for (int i = 'a'; i <= 'z'; i++) {
bw.append((char) i + " : " + count[i - 'a'] + "\n");
}
bw.flush();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
17,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
41,
13,
28,
13,
13,
30,
30,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
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
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
18,
24
],
[
17,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
39,
42
],
[
39,
43
],
[
39,
44
],
[
39,
45
],
[
39,
46
],
[
39,
47
],
[
39,
48
],
[
39,
49
],
[
39,
50
],
[
39,
51
],
[
39,
52
],
[
39,
53
],
[
39,
54
],
[
39,
55
],
[
39,
56
],
[
39,
57
],
[
39,
58
],
[
39,
59
],
[
39,
60
],
[
39,
61
],
[
39,
62
],
[
39,
63
],
[
39,
64
],
[
39,
65
],
[
8,
66
],
[
66,
67
],
[
8,
68
],
[
68,
69
],
[
68,
70
],
[
68,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
76,
86
],
[
86,
87
],
[
87,
88
],
[
76,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
92,
97
],
[
91,
98
],
[
98,
99
],
[
98,
100
],
[
72,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
107,
107
],
[
107,
108
],
[
107,
109
],
[
107,
110
],
[
6,
111
],
[
111,
112
]
]
| [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString l,s=\"\";\n\t\twhile ((l=br.readLine())!=null) s+=l.toLowerCase();\n\t\ts=s.replace(\" \",\"\");\n\t\tchar[] a={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tint r;\n for(char c:a){\n \tr=0;\n \tfor(int i=0;i<s.length();i++){\n \tif(s.charAt(i)==c) r+=1; \n \t}\n \tSystem.out.println(c+\" : \"+r);\n }\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString l,s=\"\";\n\t\twhile ((l=br.readLine())!=null) s+=l.toLowerCase();\n\t\ts=s.replace(\" \",\"\");\n\t\tchar[] a={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tint r;\n for(char c:a){\n \tr=0;\n \tfor(int i=0;i<s.length();i++){\n \tif(s.charAt(i)==c) r+=1; \n \t}\n \tSystem.out.println(c+\" : \"+r);\n }\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString l,s=\"\";\n\t\twhile ((l=br.readLine())!=null) s+=l.toLowerCase();\n\t\ts=s.replace(\" \",\"\");\n\t\tchar[] a={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tint r;\n for(char c:a){\n \tr=0;\n \tfor(int i=0;i<s.length();i++){\n \tif(s.charAt(i)==c) r+=1; \n \t}\n \tSystem.out.println(c+\" : \"+r);\n }\n\t}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString l,s=\"\";\n\t\twhile ((l=br.readLine())!=null) s+=l.toLowerCase();\n\t\ts=s.replace(\" \",\"\");\n\t\tchar[] a={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tint r;\n for(char c:a){\n \tr=0;\n \tfor(int i=0;i<s.length();i++){\n \tif(s.charAt(i)==c) r+=1; \n \t}\n \tSystem.out.println(c+\" : \"+r);\n }\n\t}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String l",
"l",
"s=\"\";",
"s",
"\"\"",
"while ((l=br.readLine())!=null) s+=l.toLowerCase();",
"(l=br.readLine())!=null",
"(l=br.readLine())",
"l",
"br.readLine()",
"br.readLine",
"br",
"null",
"s+=l.toLowerCase()",
"s",
"l.toLowerCase()",
"l.toLowerCase",
"l",
"s=s.replace(\" \",\"\")",
"s",
"s.replace(\" \",\"\")",
"s.replace",
"s",
"\" \"",
"\"\"",
"char[] a={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};",
"a",
"{'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}",
"'a'",
"'b'",
"'c'",
"'d'",
"'e'",
"'f'",
"'g'",
"'h'",
"'i'",
"'j'",
"'k'",
"'l'",
"'m'",
"'n'",
"'o'",
"'p'",
"'q'",
"'r'",
"'s'",
"'t'",
"'u'",
"'v'",
"'w'",
"'x'",
"'y'",
"'z'",
"int r;",
"r",
"for(char c:a){\n \tr=0;\n \tfor(int i=0;i<s.length();i++){\n \tif(s.charAt(i)==c) r+=1; \n \t}\n \tSystem.out.println(c+\" : \"+r);\n }",
"char c",
"a",
"{\n \tr=0;\n \tfor(int i=0;i<s.length();i++){\n \tif(s.charAt(i)==c) r+=1; \n \t}\n \tSystem.out.println(c+\" : \"+r);\n }",
"{\n \tr=0;\n \tfor(int i=0;i<s.length();i++){\n \tif(s.charAt(i)==c) r+=1; \n \t}\n \tSystem.out.println(c+\" : \"+r);\n }",
"r=0",
"r",
"0",
"for(int i=0;i<s.length();i++){\n \tif(s.charAt(i)==c) r+=1; \n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n \tif(s.charAt(i)==c) r+=1; \n \t}",
"{\n \tif(s.charAt(i)==c) r+=1; \n \t}",
"if(s.charAt(i)==c) r+=1;",
"s.charAt(i)==c",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"c",
"r+=1",
"r",
"1",
"System.out.println(c+\" : \"+r)",
"System.out.println",
"System.out",
"System",
"System.out",
"c+\" : \"+r",
"c+\" : \"+r",
"c",
"\" : \"",
"r",
"String[] args",
"args"
]
| import java.io.*;
class Main {
public static void main(String[] args) throws Exception {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String l,s="";
while ((l=br.readLine())!=null) s+=l.toLowerCase();
s=s.replace(" ","");
char[] a={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
int r;
for(char c:a){
r=0;
for(int i=0;i<s.length();i++){
if(s.charAt(i)==c) r+=1;
}
System.out.println(c+" : "+r);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
17,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
4,
13,
4,
18,
13,
4,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
2,
17,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
18,
13,
13,
13,
30,
40,
18,
13,
2,
13,
17,
3,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
13,
17,
17,
18,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
120,
5
],
[
120,
6
],
[
6,
7
],
[
6,
8
],
[
120,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
12,
26
],
[
26,
27
],
[
10,
28
],
[
28,
29
],
[
120,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
38,
48
],
[
48,
49
],
[
49,
50
],
[
38,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
53,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
69,
76
],
[
68,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
77,
84
],
[
30,
85
],
[
85,
86
],
[
120,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
90,
100
],
[
100,
101
],
[
101,
102
],
[
90,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\t// a~zの文字数を記録する配列\n\tstatic int[] CharCount = new int[26];\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// Ctrl+Zが押されるまで繰り返す\n\t\twhile (sc.hasNext()) {\n\t\t\t// 入力と文字カウント\n\t\t\tCountingCharacters(sc.next());\n\t\t}\n\t\t// 表示\n\t\tPrint();\n\n\t}\n\n\t// 文字列からa~zの文字をカウントする(大小文字区別なし)\n\tstatic void CountingCharacters(String str) {\n\n\t\tchar[] c = str.toCharArray();\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tfor (int a = (int) 'A'; a < 1 + (int) 'Z'; a++) {\n\t\t\t\tif (Character.toUpperCase(c[i]) == (char) a) {\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// 表示処理\n\tstatic void Print() {\n\t\tfor (int i = 0; i < CharCount.length; i++) {\n\t\t\tSystem.out.println((char) (i + (int) 'a') + \" : \" + CharCount[i]);\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\t// a~zの文字数を記録する配列\n\tstatic int[] CharCount = new int[26];\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// Ctrl+Zが押されるまで繰り返す\n\t\twhile (sc.hasNext()) {\n\t\t\t// 入力と文字カウント\n\t\t\tCountingCharacters(sc.next());\n\t\t}\n\t\t// 表示\n\t\tPrint();\n\n\t}\n\n\t// 文字列からa~zの文字をカウントする(大小文字区別なし)\n\tstatic void CountingCharacters(String str) {\n\n\t\tchar[] c = str.toCharArray();\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tfor (int a = (int) 'A'; a < 1 + (int) 'Z'; a++) {\n\t\t\t\tif (Character.toUpperCase(c[i]) == (char) a) {\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// 表示処理\n\tstatic void Print() {\n\t\tfor (int i = 0; i < CharCount.length; i++) {\n\t\t\tSystem.out.println((char) (i + (int) 'a') + \" : \" + CharCount[i]);\n\t\t}\n\t}\n\n}",
"Main",
"// a~zの文字数を記録する配列\n\tstatic int[] CharCount = new int[26];",
"CharCount",
"new int[26]",
"26",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// Ctrl+Zが押されるまで繰り返す\n\t\twhile (sc.hasNext()) {\n\t\t\t// 入力と文字カウント\n\t\t\tCountingCharacters(sc.next());\n\t\t}\n\t\t// 表示\n\t\tPrint();\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// Ctrl+Zが押されるまで繰り返す\n\t\twhile (sc.hasNext()) {\n\t\t\t// 入力と文字カウント\n\t\t\tCountingCharacters(sc.next());\n\t\t}\n\t\t// 表示\n\t\tPrint();\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (sc.hasNext()) {\n\t\t\t// 入力と文字カウント\n\t\t\tCountingCharacters(sc.next());\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\t// 入力と文字カウント\n\t\t\tCountingCharacters(sc.next());\n\t\t}",
"CountingCharacters(sc.next())",
"CountingCharacters",
"sc.next()",
"sc.next",
"sc",
"Print()",
"Print",
"String[] args",
"args",
"// 文字列からa~zの文字をカウントする(大小文字区別なし)\n\tstatic void CountingCharacters(String str) {\n\n\t\tchar[] c = str.toCharArray();\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tfor (int a = (int) 'A'; a < 1 + (int) 'Z'; a++) {\n\t\t\t\tif (Character.toUpperCase(c[i]) == (char) a) {\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"CountingCharacters",
"{\n\n\t\tchar[] c = str.toCharArray();\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tfor (int a = (int) 'A'; a < 1 + (int) 'Z'; a++) {\n\t\t\t\tif (Character.toUpperCase(c[i]) == (char) a) {\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"char[] c = str.toCharArray();",
"c",
"str.toCharArray()",
"str.toCharArray",
"str",
"for (int i = 0; i < c.length; i++) {\n\t\t\tfor (int a = (int) 'A'; a < 1 + (int) 'Z'; a++) {\n\t\t\t\tif (Character.toUpperCase(c[i]) == (char) a) {\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int a = (int) 'A'; a < 1 + (int) 'Z'; a++) {\n\t\t\t\tif (Character.toUpperCase(c[i]) == (char) a) {\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int a = (int) 'A'; a < 1 + (int) 'Z'; a++) {\n\t\t\t\tif (Character.toUpperCase(c[i]) == (char) a) {\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int a = (int) 'A'; a < 1 + (int) 'Z'; a++) {\n\t\t\t\tif (Character.toUpperCase(c[i]) == (char) a) {\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"int a = (int) 'A';",
"int a = (int) 'A';",
"a",
"(int) 'A'",
"a < 1 + (int) 'Z'",
"a",
"1 + (int) 'Z'",
"1",
"(int) 'Z'",
"a++",
"a++",
"a",
"{\n\t\t\t\tif (Character.toUpperCase(c[i]) == (char) a) {\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (Character.toUpperCase(c[i]) == (char) a) {\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if (Character.toUpperCase(c[i]) == (char) a) {\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"Character.toUpperCase(c[i]) == (char) a",
"Character.toUpperCase(c[i])",
"Character.toUpperCase",
"Character",
"c[i]",
"c",
"i",
"(char) a",
"{\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"CharCount[a - (int) 'A']++",
"CharCount[a - (int) 'A']",
"CharCount",
"a - (int) 'A'",
"a",
"(int) 'A'",
"break;",
"String str",
"str",
"// 表示処理\n\tstatic void Print() {\n\t\tfor (int i = 0; i < CharCount.length; i++) {\n\t\t\tSystem.out.println((char) (i + (int) 'a') + \" : \" + CharCount[i]);\n\t\t}\n\t}",
"Print",
"{\n\t\tfor (int i = 0; i < CharCount.length; i++) {\n\t\t\tSystem.out.println((char) (i + (int) 'a') + \" : \" + CharCount[i]);\n\t\t}\n\t}",
"for (int i = 0; i < CharCount.length; i++) {\n\t\t\tSystem.out.println((char) (i + (int) 'a') + \" : \" + CharCount[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < CharCount.length",
"i",
"CharCount.length",
"CharCount",
"CharCount.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println((char) (i + (int) 'a') + \" : \" + CharCount[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println((char) (i + (int) 'a') + \" : \" + CharCount[i]);\n\t\t}",
"System.out.println((char) (i + (int) 'a') + \" : \" + CharCount[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char) (i + (int) 'a') + \" : \" + CharCount[i]",
"(char) (i + (int) 'a') + \" : \" + CharCount[i]",
"(char) (i + (int) 'a')",
"i",
"(int) 'a'",
"\" : \"",
"CharCount[i]",
"CharCount",
"i",
"public class Main {\n\n\t// a~zの文字数を記録する配列\n\tstatic int[] CharCount = new int[26];\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// Ctrl+Zが押されるまで繰り返す\n\t\twhile (sc.hasNext()) {\n\t\t\t// 入力と文字カウント\n\t\t\tCountingCharacters(sc.next());\n\t\t}\n\t\t// 表示\n\t\tPrint();\n\n\t}\n\n\t// 文字列からa~zの文字をカウントする(大小文字区別なし)\n\tstatic void CountingCharacters(String str) {\n\n\t\tchar[] c = str.toCharArray();\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tfor (int a = (int) 'A'; a < 1 + (int) 'Z'; a++) {\n\t\t\t\tif (Character.toUpperCase(c[i]) == (char) a) {\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// 表示処理\n\tstatic void Print() {\n\t\tfor (int i = 0; i < CharCount.length; i++) {\n\t\t\tSystem.out.println((char) (i + (int) 'a') + \" : \" + CharCount[i]);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\t// a~zの文字数を記録する配列\n\tstatic int[] CharCount = new int[26];\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// Ctrl+Zが押されるまで繰り返す\n\t\twhile (sc.hasNext()) {\n\t\t\t// 入力と文字カウント\n\t\t\tCountingCharacters(sc.next());\n\t\t}\n\t\t// 表示\n\t\tPrint();\n\n\t}\n\n\t// 文字列からa~zの文字をカウントする(大小文字区別なし)\n\tstatic void CountingCharacters(String str) {\n\n\t\tchar[] c = str.toCharArray();\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tfor (int a = (int) 'A'; a < 1 + (int) 'Z'; a++) {\n\t\t\t\tif (Character.toUpperCase(c[i]) == (char) a) {\n\t\t\t\t\tCharCount[a - (int) 'A']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// 表示処理\n\tstatic void Print() {\n\t\tfor (int i = 0; i < CharCount.length; i++) {\n\t\t\tSystem.out.println((char) (i + (int) 'a') + \" : \" + CharCount[i]);\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
// a~zの文字数を記録する配列
static int[] CharCount = new int[26];
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Ctrl+Zが押されるまで繰り返す
while (sc.hasNext()) {
// 入力と文字カウント
CountingCharacters(sc.next());
}
// 表示
Print();
}
// 文字列からa~zの文字をカウントする(大小文字区別なし)
static void CountingCharacters(String str) {
char[] c = str.toCharArray();
for (int i = 0; i < c.length; i++) {
for (int a = (int) 'A'; a < 1 + (int) 'Z'; a++) {
if (Character.toUpperCase(c[i]) == (char) a) {
CharCount[a - (int) 'A']++;
break;
}
}
}
}
// 表示処理
static void Print() {
for (int i = 0; i < CharCount.length; i++) {
System.out.println((char) (i + (int) 'a') + " : " + CharCount[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
41,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
40,
18,
13,
2,
4,
18,
13,
13,
17,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
40,
18,
13,
2,
4,
18,
13,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
130,
5
],
[
130,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
34,
44
],
[
44,
45
],
[
45,
46
],
[
34,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
48,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
55,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
55,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
76,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
91,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
109,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
121,
121
],
[
121,
122
],
[
121,
123
],
[
121,
124
],
[
124,
125
],
[
124,
126
],
[
6,
127
],
[
127,
128
],
[
0,
129
],
[
129,
130
],
[
129,
131
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] aaa){\n Scanner s = new Scanner(System.in);\n int[] count = new int[27];\n String st;\n char m;\n int i,j;\n while(s.hasNext()){\n st = s.next();\n for(i=0;i<st.length();i++){\n j=st.charAt(i);\n if(j-'a'>=0&&j-'a'<26)count[st.charAt(i)-'a']++;\n else if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;\n }\n }\n for(i=0;i<26;i++){\n m = (char)('a'+i);\n System.out.println(m+\" : \"+count[i]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] aaa){\n Scanner s = new Scanner(System.in);\n int[] count = new int[27];\n String st;\n char m;\n int i,j;\n while(s.hasNext()){\n st = s.next();\n for(i=0;i<st.length();i++){\n j=st.charAt(i);\n if(j-'a'>=0&&j-'a'<26)count[st.charAt(i)-'a']++;\n else if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;\n }\n }\n for(i=0;i<26;i++){\n m = (char)('a'+i);\n System.out.println(m+\" : \"+count[i]);\n }\n }\n}",
"Main",
"public static void main(String[] aaa){\n Scanner s = new Scanner(System.in);\n int[] count = new int[27];\n String st;\n char m;\n int i,j;\n while(s.hasNext()){\n st = s.next();\n for(i=0;i<st.length();i++){\n j=st.charAt(i);\n if(j-'a'>=0&&j-'a'<26)count[st.charAt(i)-'a']++;\n else if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;\n }\n }\n for(i=0;i<26;i++){\n m = (char)('a'+i);\n System.out.println(m+\" : \"+count[i]);\n }\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int[] count = new int[27];\n String st;\n char m;\n int i,j;\n while(s.hasNext()){\n st = s.next();\n for(i=0;i<st.length();i++){\n j=st.charAt(i);\n if(j-'a'>=0&&j-'a'<26)count[st.charAt(i)-'a']++;\n else if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;\n }\n }\n for(i=0;i<26;i++){\n m = (char)('a'+i);\n System.out.println(m+\" : \"+count[i]);\n }\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int[] count = new int[27];",
"count",
"new int[27]",
"27",
"String st;",
"st",
"char m;",
"m",
"int i",
"i",
"j;",
"j",
"while(s.hasNext()){\n st = s.next();\n for(i=0;i<st.length();i++){\n j=st.charAt(i);\n if(j-'a'>=0&&j-'a'<26)count[st.charAt(i)-'a']++;\n else if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;\n }\n }",
"s.hasNext()",
"s.hasNext",
"s",
"{\n st = s.next();\n for(i=0;i<st.length();i++){\n j=st.charAt(i);\n if(j-'a'>=0&&j-'a'<26)count[st.charAt(i)-'a']++;\n else if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;\n }\n }",
"st = s.next()",
"st",
"s.next()",
"s.next",
"s",
"for(i=0;i<st.length();i++){\n j=st.charAt(i);\n if(j-'a'>=0&&j-'a'<26)count[st.charAt(i)-'a']++;\n else if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<st.length()",
"i",
"st.length()",
"st.length",
"st",
"i++",
"i++",
"i",
"{\n j=st.charAt(i);\n if(j-'a'>=0&&j-'a'<26)count[st.charAt(i)-'a']++;\n else if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;\n }",
"{\n j=st.charAt(i);\n if(j-'a'>=0&&j-'a'<26)count[st.charAt(i)-'a']++;\n else if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;\n }",
"j=st.charAt(i)",
"j",
"st.charAt(i)",
"st.charAt",
"st",
"i",
"if(j-'a'>=0&&j-'a'<26)count[st.charAt(i)-'a']++;\n else if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;",
"j-'a'>=0&&j-'a'<26",
"j-'a'>=0",
"j-'a'",
"j",
"'a'",
"0",
"j-'a'<26",
"j-'a'",
"j",
"'a'",
"26",
"count[st.charAt(i)-'a']++",
"count[st.charAt(i)-'a']",
"count",
"st.charAt(i)-'a'",
"st.charAt(i)",
"st.charAt",
"st",
"i",
"'a'",
"if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;",
"j-'A'<26&&j-'A'>=0",
"j-'A'<26",
"j-'A'",
"j",
"'A'",
"26",
"j-'A'>=0",
"j-'A'",
"j",
"'A'",
"0",
"count[st.charAt(i)-'A']++",
"count[st.charAt(i)-'A']",
"count",
"st.charAt(i)-'A'",
"st.charAt(i)",
"st.charAt",
"st",
"i",
"'A'",
"for(i=0;i<26;i++){\n m = (char)('a'+i);\n System.out.println(m+\" : \"+count[i]);\n }",
"i=0;",
"i=0",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n m = (char)('a'+i);\n System.out.println(m+\" : \"+count[i]);\n }",
"{\n m = (char)('a'+i);\n System.out.println(m+\" : \"+count[i]);\n }",
"m = (char)('a'+i)",
"m",
"(char)('a'+i)",
"'a'",
"i",
"System.out.println(m+\" : \"+count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"m+\" : \"+count[i]",
"m+\" : \"+count[i]",
"m",
"\" : \"",
"count[i]",
"count",
"i",
"String[] aaa",
"aaa",
"public class Main{\n public static void main(String[] aaa){\n Scanner s = new Scanner(System.in);\n int[] count = new int[27];\n String st;\n char m;\n int i,j;\n while(s.hasNext()){\n st = s.next();\n for(i=0;i<st.length();i++){\n j=st.charAt(i);\n if(j-'a'>=0&&j-'a'<26)count[st.charAt(i)-'a']++;\n else if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;\n }\n }\n for(i=0;i<26;i++){\n m = (char)('a'+i);\n System.out.println(m+\" : \"+count[i]);\n }\n }\n}",
"public class Main{\n public static void main(String[] aaa){\n Scanner s = new Scanner(System.in);\n int[] count = new int[27];\n String st;\n char m;\n int i,j;\n while(s.hasNext()){\n st = s.next();\n for(i=0;i<st.length();i++){\n j=st.charAt(i);\n if(j-'a'>=0&&j-'a'<26)count[st.charAt(i)-'a']++;\n else if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;\n }\n }\n for(i=0;i<26;i++){\n m = (char)('a'+i);\n System.out.println(m+\" : \"+count[i]);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] aaa){
Scanner s = new Scanner(System.in);
int[] count = new int[27];
String st;
char m;
int i,j;
while(s.hasNext()){
st = s.next();
for(i=0;i<st.length();i++){
j=st.charAt(i);
if(j-'a'>=0&&j-'a'<26)count[st.charAt(i)-'a']++;
else if(j-'A'<26&&j-'A'>=0)count[st.charAt(i)-'A']++;
}
}
for(i=0;i<26;i++){
m = (char)('a'+i);
System.out.println(m+" : "+count[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
18,
13,
13,
40,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
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
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
25,
28
],
[
25,
29
],
[
25,
30
],
[
25,
31
],
[
25,
32
],
[
25,
33
],
[
25,
34
],
[
25,
35
],
[
25,
36
],
[
25,
37
],
[
25,
38
],
[
25,
39
],
[
25,
40
],
[
25,
41
],
[
25,
42
],
[
25,
43
],
[
25,
44
],
[
25,
45
],
[
25,
46
],
[
25,
47
],
[
25,
48
],
[
25,
49
],
[
25,
50
],
[
25,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
8,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
67,
77
],
[
77,
78
],
[
78,
79
],
[
67,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
82,
92
],
[
92,
93
],
[
93,
94
],
[
82,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
97,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
8,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
110,
120
],
[
120,
121
],
[
121,
122
],
[
110,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
6,
139
],
[
139,
140
]
]
| [
"import java.util.*;\nclass Main{\npublic static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int i,j;\n int[] count=new int[26];\n String sentence=\" \";\n char basic_c[] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n while(sc.hasNext()){\n sentence+=sc.nextLine();\n }\n sentence = sentence.toLowerCase();\n for(i=0; i < sentence.length(); i++){\n for (j = 0; j < basic_c.length; j++) {\n if (sentence.charAt(i)==basic_c[j])\n count[j]++;\n }\n } \n for(j = 0; j < basic_c.length; j++){\n System.out.println(basic_c[j]+\" : \"+count[j]);\n } \n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\npublic static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int i,j;\n int[] count=new int[26];\n String sentence=\" \";\n char basic_c[] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n while(sc.hasNext()){\n sentence+=sc.nextLine();\n }\n sentence = sentence.toLowerCase();\n for(i=0; i < sentence.length(); i++){\n for (j = 0; j < basic_c.length; j++) {\n if (sentence.charAt(i)==basic_c[j])\n count[j]++;\n }\n } \n for(j = 0; j < basic_c.length; j++){\n System.out.println(basic_c[j]+\" : \"+count[j]);\n } \n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int i,j;\n int[] count=new int[26];\n String sentence=\" \";\n char basic_c[] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n while(sc.hasNext()){\n sentence+=sc.nextLine();\n }\n sentence = sentence.toLowerCase();\n for(i=0; i < sentence.length(); i++){\n for (j = 0; j < basic_c.length; j++) {\n if (sentence.charAt(i)==basic_c[j])\n count[j]++;\n }\n } \n for(j = 0; j < basic_c.length; j++){\n System.out.println(basic_c[j]+\" : \"+count[j]);\n } \n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int i,j;\n int[] count=new int[26];\n String sentence=\" \";\n char basic_c[] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n while(sc.hasNext()){\n sentence+=sc.nextLine();\n }\n sentence = sentence.toLowerCase();\n for(i=0; i < sentence.length(); i++){\n for (j = 0; j < basic_c.length; j++) {\n if (sentence.charAt(i)==basic_c[j])\n count[j]++;\n }\n } \n for(j = 0; j < basic_c.length; j++){\n System.out.println(basic_c[j]+\" : \"+count[j]);\n } \n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int i",
"i",
"j;",
"j",
"int[] count=new int[26];",
"count",
"new int[26]",
"26",
"String sentence=\" \";",
"sentence",
"\" \"",
"char basic_c[] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};",
"basic_c",
"{'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}",
"'a'",
"'b'",
"'c'",
"'d'",
"'e'",
"'f'",
"'g'",
"'h'",
"'i'",
"'j'",
"'k'",
"'l'",
"'m'",
"'n'",
"'o'",
"'p'",
"'q'",
"'r'",
"'s'",
"'t'",
"'u'",
"'v'",
"'w'",
"'x'",
"'y'",
"'z'",
"while(sc.hasNext()){\n sentence+=sc.nextLine();\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n sentence+=sc.nextLine();\n }",
"sentence+=sc.nextLine()",
"sentence",
"sc.nextLine()",
"sc.nextLine",
"sc",
"sentence = sentence.toLowerCase()",
"sentence",
"sentence.toLowerCase()",
"sentence.toLowerCase",
"sentence",
"for(i=0; i < sentence.length(); i++){\n for (j = 0; j < basic_c.length; j++) {\n if (sentence.charAt(i)==basic_c[j])\n count[j]++;\n }\n }",
"i=0;",
"i=0",
"i",
"0",
"i < sentence.length()",
"i",
"sentence.length()",
"sentence.length",
"sentence",
"i++",
"i++",
"i",
"{\n for (j = 0; j < basic_c.length; j++) {\n if (sentence.charAt(i)==basic_c[j])\n count[j]++;\n }\n }",
"{\n for (j = 0; j < basic_c.length; j++) {\n if (sentence.charAt(i)==basic_c[j])\n count[j]++;\n }\n }",
"for (j = 0; j < basic_c.length; j++) {\n if (sentence.charAt(i)==basic_c[j])\n count[j]++;\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < basic_c.length",
"j",
"basic_c.length",
"basic_c",
"basic_c.length",
"j++",
"j++",
"j",
"{\n if (sentence.charAt(i)==basic_c[j])\n count[j]++;\n }",
"{\n if (sentence.charAt(i)==basic_c[j])\n count[j]++;\n }",
"if (sentence.charAt(i)==basic_c[j])\n count[j]++;",
"sentence.charAt(i)==basic_c[j]",
"sentence.charAt(i)",
"sentence.charAt",
"sentence",
"i",
"basic_c[j]",
"basic_c",
"j",
"count[j]++",
"count[j]",
"count",
"j",
"for(j = 0; j < basic_c.length; j++){\n System.out.println(basic_c[j]+\" : \"+count[j]);\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < basic_c.length",
"j",
"basic_c.length",
"basic_c",
"basic_c.length",
"j++",
"j++",
"j",
"{\n System.out.println(basic_c[j]+\" : \"+count[j]);\n }",
"{\n System.out.println(basic_c[j]+\" : \"+count[j]);\n }",
"System.out.println(basic_c[j]+\" : \"+count[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"basic_c[j]+\" : \"+count[j]",
"basic_c[j]+\" : \"+count[j]",
"basic_c[j]",
"basic_c",
"j",
"\" : \"",
"count[j]",
"count",
"j",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int i,j;
int[] count=new int[26];
String sentence=" ";
char basic_c[] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
while(sc.hasNext()){
sentence+=sc.nextLine();
}
sentence = sentence.toLowerCase();
for(i=0; i < sentence.length(); i++){
for (j = 0; j < basic_c.length; j++) {
if (sentence.charAt(i)==basic_c[j])
count[j]++;
}
}
for(j = 0; j < basic_c.length; j++){
System.out.println(basic_c[j]+" : "+count[j]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
40,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
78,
5
],
[
78,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
69,
69
],
[
69,
70
],
[
69,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
6,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int[] cnt = new int[200];\n\n while(sc.hasNext()){\n String str = sc.next().toLowerCase();\n for(int i=0;i<str.length();i++){\n cnt[str.charAt(i)]++;\n }\n }\n\n for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+cnt[ch]);\n }\n\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int[] cnt = new int[200];\n\n while(sc.hasNext()){\n String str = sc.next().toLowerCase();\n for(int i=0;i<str.length();i++){\n cnt[str.charAt(i)]++;\n }\n }\n\n for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+cnt[ch]);\n }\n\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int[] cnt = new int[200];\n\n while(sc.hasNext()){\n String str = sc.next().toLowerCase();\n for(int i=0;i<str.length();i++){\n cnt[str.charAt(i)]++;\n }\n }\n\n for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+cnt[ch]);\n }\n\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int[] cnt = new int[200];\n\n while(sc.hasNext()){\n String str = sc.next().toLowerCase();\n for(int i=0;i<str.length();i++){\n cnt[str.charAt(i)]++;\n }\n }\n\n for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+cnt[ch]);\n }\n\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] cnt = new int[200];",
"cnt",
"new int[200]",
"200",
"while(sc.hasNext()){\n String str = sc.next().toLowerCase();\n for(int i=0;i<str.length();i++){\n cnt[str.charAt(i)]++;\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String str = sc.next().toLowerCase();\n for(int i=0;i<str.length();i++){\n cnt[str.charAt(i)]++;\n }\n }",
"String str = sc.next().toLowerCase();",
"str",
"sc.next().toLowerCase()",
"sc.next().toLowerCase",
"sc.next()",
"sc.next",
"sc",
"for(int i=0;i<str.length();i++){\n cnt[str.charAt(i)]++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n cnt[str.charAt(i)]++;\n }",
"{\n cnt[str.charAt(i)]++;\n }",
"cnt[str.charAt(i)]++",
"cnt[str.charAt(i)]",
"cnt",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+cnt[ch]);\n }",
"char ch='a';",
"char ch='a';",
"ch",
"'a'",
"ch<='z'",
"ch",
"'z'",
"ch++",
"ch++",
"ch",
"{\n System.out.println(ch+\" : \"+cnt[ch]);\n }",
"{\n System.out.println(ch+\" : \"+cnt[ch]);\n }",
"System.out.println(ch+\" : \"+cnt[ch])",
"System.out.println",
"System.out",
"System",
"System.out",
"ch+\" : \"+cnt[ch]",
"ch+\" : \"+cnt[ch]",
"ch",
"\" : \"",
"cnt[ch]",
"cnt",
"ch",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int[] cnt = new int[200];\n\n while(sc.hasNext()){\n String str = sc.next().toLowerCase();\n for(int i=0;i<str.length();i++){\n cnt[str.charAt(i)]++;\n }\n }\n\n for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+cnt[ch]);\n }\n\n\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int[] cnt = new int[200];\n\n while(sc.hasNext()){\n String str = sc.next().toLowerCase();\n for(int i=0;i<str.length();i++){\n cnt[str.charAt(i)]++;\n }\n }\n\n for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+cnt[ch]);\n }\n\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int[] cnt = new int[200];
while(sc.hasNext()){
String str = sc.next().toLowerCase();
for(int i=0;i<str.length();i++){
cnt[str.charAt(i)]++;
}
}
for(char ch='a';ch<='z';ch++){
System.out.println(ch+" : "+cnt[ch]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
41,
13,
0,
13,
20,
17,
42,
4,
18,
13,
30,
0,
13,
2,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
18,
13,
2,
13,
17,
17,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
2,
40,
13,
17,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
11,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
38,
48
],
[
48,
49
],
[
49,
50
],
[
38,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
52,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
59,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
84,
90
],
[
11,
91
],
[
91,
92
],
[
91,
93
],
[
11,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
110,
114
],
[
114,
115
],
[
114,
116
],
[
106,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
9,
123
],
[
123,
124
]
]
| [
"import java.util.*;\nimport java.io.*;\n\n/**\n * @author kawakami\n *\n */\nclass Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tString str = \"\";\n\t\t\n\t\tint alf[];\n\t\tchar line;\n\t\talf = new int[26];\n\t\t\n\t\t\t\t\n\t\twhile(as.hasNext()){\n\t\t\t\n\t\t\tstr = str + as.nextLine();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<str.length();i++){ //\n \n line = str.charAt(i);\n \n \tif(line > '@' && line < '['){\n\n \t\t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse if(line > '\\u0060' & line < '{'){\n \t\n \t\talf[line-'a'] += 1;\n \t\t\n \t}\n \t\n \n \n }\n\t\t\n\t\tline = 'a';\n\t\t\n\t\tfor(int i=0;i<26;i++){\n\t\t\n\t\t\tstr = (line++) + \" : \" + alf[i];\n\t\t\tSystem.out.println(str);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tString str = \"\";\n\t\t\n\t\tint alf[];\n\t\tchar line;\n\t\talf = new int[26];\n\t\t\n\t\t\t\t\n\t\twhile(as.hasNext()){\n\t\t\t\n\t\t\tstr = str + as.nextLine();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<str.length();i++){ //\n \n line = str.charAt(i);\n \n \tif(line > '@' && line < '['){\n\n \t\t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse if(line > '\\u0060' & line < '{'){\n \t\n \t\talf[line-'a'] += 1;\n \t\t\n \t}\n \t\n \n \n }\n\t\t\n\t\tline = 'a';\n\t\t\n\t\tfor(int i=0;i<26;i++){\n\t\t\n\t\t\tstr = (line++) + \" : \" + alf[i];\n\t\t\tSystem.out.println(str);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t}\n\n}",
"Main",
"/**\n\t * @param args\n\t * @throws IOException \n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tString str = \"\";\n\t\t\n\t\tint alf[];\n\t\tchar line;\n\t\talf = new int[26];\n\t\t\n\t\t\t\t\n\t\twhile(as.hasNext()){\n\t\t\t\n\t\t\tstr = str + as.nextLine();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<str.length();i++){ //\n \n line = str.charAt(i);\n \n \tif(line > '@' && line < '['){\n\n \t\t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse if(line > '\\u0060' & line < '{'){\n \t\n \t\talf[line-'a'] += 1;\n \t\t\n \t}\n \t\n \n \n }\n\t\t\n\t\tline = 'a';\n\t\t\n\t\tfor(int i=0;i<26;i++){\n\t\t\n\t\t\tstr = (line++) + \" : \" + alf[i];\n\t\t\tSystem.out.println(str);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tString str = \"\";\n\t\t\n\t\tint alf[];\n\t\tchar line;\n\t\talf = new int[26];\n\t\t\n\t\t\t\t\n\t\twhile(as.hasNext()){\n\t\t\t\n\t\t\tstr = str + as.nextLine();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<str.length();i++){ //\n \n line = str.charAt(i);\n \n \tif(line > '@' && line < '['){\n\n \t\t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse if(line > '\\u0060' & line < '{'){\n \t\n \t\talf[line-'a'] += 1;\n \t\t\n \t}\n \t\n \n \n }\n\t\t\n\t\tline = 'a';\n\t\t\n\t\tfor(int i=0;i<26;i++){\n\t\t\n\t\t\tstr = (line++) + \" : \" + alf[i];\n\t\t\tSystem.out.println(str);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t}",
"Scanner as = new Scanner(System.in);",
"as",
"new Scanner(System.in)",
"String str = \"\";",
"str",
"\"\"",
"int alf[];",
"alf",
"char line;",
"line",
"alf = new int[26]",
"alf",
"new int[26]",
"26",
"while(as.hasNext()){\n\t\t\t\n\t\t\tstr = str + as.nextLine();\n\t\t\t\n\t\t}",
"as.hasNext()",
"as.hasNext",
"as",
"{\n\t\t\t\n\t\t\tstr = str + as.nextLine();\n\t\t\t\n\t\t}",
"str = str + as.nextLine()",
"str",
"str + as.nextLine()",
"str",
"as.nextLine()",
"as.nextLine",
"as",
"for(int i=0;i<str.length();i++){ //\n \n line = str.charAt(i);\n \n \tif(line > '@' && line < '['){\n\n \t\t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse if(line > '\\u0060' & line < '{'){\n \t\n \t\talf[line-'a'] += 1;\n \t\t\n \t}\n \t\n \n \n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{ //\n \n line = str.charAt(i);\n \n \tif(line > '@' && line < '['){\n\n \t\t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse if(line > '\\u0060' & line < '{'){\n \t\n \t\talf[line-'a'] += 1;\n \t\t\n \t}\n \t\n \n \n }",
"{ //\n \n line = str.charAt(i);\n \n \tif(line > '@' && line < '['){\n\n \t\t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse if(line > '\\u0060' & line < '{'){\n \t\n \t\talf[line-'a'] += 1;\n \t\t\n \t}\n \t\n \n \n }",
"line = str.charAt(i)",
"line",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if(line > '@' && line < '['){\n\n \t\t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse if(line > '\\u0060' & line < '{'){\n \t\n \t\talf[line-'a'] += 1;\n \t\t\n \t}",
"line > '@' && line < '['",
"line > '@'",
"line",
"'@'",
"line < '['",
"line",
"'['",
"{\n\n \t\t\talf[line-'A'] += 1;\n \t\t\n \t}",
"alf[line-'A'] += 1",
"alf[line-'A']",
"alf",
"line-'A'",
"line",
"'A'",
"1",
"if(line > '\\u0060' & line < '{'){\n \t\n \t\talf[line-'a'] += 1;\n \t\t\n \t}",
"line > '\\u0060' & line < '{'",
"line > '\\u0060'",
"line",
"'\\u0060'",
"line < '{'",
"line",
"'{'",
"{\n \t\n \t\talf[line-'a'] += 1;\n \t\t\n \t}",
"alf[line-'a'] += 1",
"alf[line-'a']",
"alf",
"line-'a'",
"line",
"'a'",
"1",
"line = 'a'",
"line",
"'a'",
"for(int i=0;i<26;i++){\n\t\t\n\t\t\tstr = (line++) + \" : \" + alf[i];\n\t\t\tSystem.out.println(str);\n\t\t\t\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\n\t\t\tstr = (line++) + \" : \" + alf[i];\n\t\t\tSystem.out.println(str);\n\t\t\t\n\t\t}",
"{\n\t\t\n\t\t\tstr = (line++) + \" : \" + alf[i];\n\t\t\tSystem.out.println(str);\n\t\t\t\n\t\t}",
"str = (line++) + \" : \" + alf[i]",
"str",
"(line++) + \" : \" + alf[i]",
"(line++) + \" : \" + alf[i]",
"(line++)",
"line",
"\" : \"",
"alf[i]",
"alf",
"i",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args"
]
| import java.util.*;
import java.io.*;
/**
* @author kawakami
*
*/
class Main {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
Scanner as = new Scanner(System.in);
String str = "";
int alf[];
char line;
alf = new int[26];
while(as.hasNext()){
str = str + as.nextLine();
}
for(int i=0;i<str.length();i++){ //
line = str.charAt(i);
if(line > '@' && line < '['){
alf[line-'A'] += 1;
}
else if(line > '\u0060' & line < '{'){
alf[line-'a'] += 1;
}
}
line = 'a';
for(int i=0;i<26;i++){
str = (line++) + " : " + alf[i];
System.out.println(str);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
41,
13,
20,
17,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
40,
4,
18,
13,
13,
30,
30,
14,
4,
18,
13,
13,
30,
0,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
158,
5
],
[
158,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
14,
17
],
[
14,
18
],
[
14,
19
],
[
14,
20
],
[
14,
21
],
[
14,
22
],
[
14,
23
],
[
14,
24
],
[
14,
25
],
[
14,
26
],
[
14,
27
],
[
14,
28
],
[
14,
29
],
[
14,
30
],
[
14,
31
],
[
14,
32
],
[
14,
33
],
[
14,
34
],
[
14,
35
],
[
14,
36
],
[
14,
37
],
[
14,
38
],
[
14,
39
],
[
14,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
8,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
64,
74
],
[
74,
75
],
[
75,
76
],
[
64,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
78,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
85,
91
],
[
85,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
92,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
105,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
118,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
8,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
128,
136
],
[
136,
137
],
[
137,
138
],
[
128,
139
],
[
140,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
147,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
6,
155
],
[
155,
156
],
[
0,
157
],
[
157,
158
],
[
157,
159
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar[] alf = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tint[] count = new int[26];\n\t\t\n\t\tStringBuilder str_kari = new StringBuilder();\n\t\twhile(scan.hasNextLine()) {\n\t\t\tstr_kari.append(scan.nextLine());\n\t\t}\n\n\t\tString str = str_kari.toString();\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tchar temp = str.charAt(i);\n\t\t\t// not alfabet\n\t\t\tif(!Character.isLetter(temp)) {\n\t\t\t\t// nothing\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// 大文字なら小文字へ\n\t\t\t\tif(Character.isUpperCase(temp)) {\n\t\t\t\t\ttemp = Character.toLowerCase(temp);\n\t\t\t\t}\n\t\t\t\tfor(int j = 0; j < 26; j++) {\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alf[i] + \" : \" + count[i]);\n\t\t}\n\t\t\t\n\t\t\n\t\t\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar[] alf = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tint[] count = new int[26];\n\t\t\n\t\tStringBuilder str_kari = new StringBuilder();\n\t\twhile(scan.hasNextLine()) {\n\t\t\tstr_kari.append(scan.nextLine());\n\t\t}\n\n\t\tString str = str_kari.toString();\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tchar temp = str.charAt(i);\n\t\t\t// not alfabet\n\t\t\tif(!Character.isLetter(temp)) {\n\t\t\t\t// nothing\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// 大文字なら小文字へ\n\t\t\t\tif(Character.isUpperCase(temp)) {\n\t\t\t\t\ttemp = Character.toLowerCase(temp);\n\t\t\t\t}\n\t\t\t\tfor(int j = 0; j < 26; j++) {\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alf[i] + \" : \" + count[i]);\n\t\t}\n\t\t\t\n\t\t\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar[] alf = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tint[] count = new int[26];\n\t\t\n\t\tStringBuilder str_kari = new StringBuilder();\n\t\twhile(scan.hasNextLine()) {\n\t\t\tstr_kari.append(scan.nextLine());\n\t\t}\n\n\t\tString str = str_kari.toString();\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tchar temp = str.charAt(i);\n\t\t\t// not alfabet\n\t\t\tif(!Character.isLetter(temp)) {\n\t\t\t\t// nothing\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// 大文字なら小文字へ\n\t\t\t\tif(Character.isUpperCase(temp)) {\n\t\t\t\t\ttemp = Character.toLowerCase(temp);\n\t\t\t\t}\n\t\t\t\tfor(int j = 0; j < 26; j++) {\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alf[i] + \" : \" + count[i]);\n\t\t}\n\t\t\t\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar[] alf = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tint[] count = new int[26];\n\t\t\n\t\tStringBuilder str_kari = new StringBuilder();\n\t\twhile(scan.hasNextLine()) {\n\t\t\tstr_kari.append(scan.nextLine());\n\t\t}\n\n\t\tString str = str_kari.toString();\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tchar temp = str.charAt(i);\n\t\t\t// not alfabet\n\t\t\tif(!Character.isLetter(temp)) {\n\t\t\t\t// nothing\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// 大文字なら小文字へ\n\t\t\t\tif(Character.isUpperCase(temp)) {\n\t\t\t\t\ttemp = Character.toLowerCase(temp);\n\t\t\t\t}\n\t\t\t\tfor(int j = 0; j < 26; j++) {\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alf[i] + \" : \" + count[i]);\n\t\t}\n\t\t\t\n\t\t\n\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"char[] alf = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};",
"alf",
"{'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}",
"'a'",
"'b'",
"'c'",
"'d'",
"'e'",
"'f'",
"'g'",
"'h'",
"'i'",
"'j'",
"'k'",
"'l'",
"'m'",
"'n'",
"'o'",
"'p'",
"'q'",
"'r'",
"'s'",
"'t'",
"'u'",
"'v'",
"'w'",
"'x'",
"'y'",
"'z'",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"StringBuilder str_kari = new StringBuilder();",
"str_kari",
"new StringBuilder()",
"while(scan.hasNextLine()) {\n\t\t\tstr_kari.append(scan.nextLine());\n\t\t}",
"scan.hasNextLine()",
"scan.hasNextLine",
"scan",
"{\n\t\t\tstr_kari.append(scan.nextLine());\n\t\t}",
"str_kari.append(scan.nextLine())",
"str_kari.append",
"str_kari",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String str = str_kari.toString();",
"str",
"str_kari.toString()",
"str_kari.toString",
"str_kari",
"for(int i = 0; i < str.length(); i++) {\n\t\t\tchar temp = str.charAt(i);\n\t\t\t// not alfabet\n\t\t\tif(!Character.isLetter(temp)) {\n\t\t\t\t// nothing\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// 大文字なら小文字へ\n\t\t\t\tif(Character.isUpperCase(temp)) {\n\t\t\t\t\ttemp = Character.toLowerCase(temp);\n\t\t\t\t}\n\t\t\t\tfor(int j = 0; j < 26; j++) {\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n\t\t\tchar temp = str.charAt(i);\n\t\t\t// not alfabet\n\t\t\tif(!Character.isLetter(temp)) {\n\t\t\t\t// nothing\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// 大文字なら小文字へ\n\t\t\t\tif(Character.isUpperCase(temp)) {\n\t\t\t\t\ttemp = Character.toLowerCase(temp);\n\t\t\t\t}\n\t\t\t\tfor(int j = 0; j < 26; j++) {\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tchar temp = str.charAt(i);\n\t\t\t// not alfabet\n\t\t\tif(!Character.isLetter(temp)) {\n\t\t\t\t// nothing\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// 大文字なら小文字へ\n\t\t\t\tif(Character.isUpperCase(temp)) {\n\t\t\t\t\ttemp = Character.toLowerCase(temp);\n\t\t\t\t}\n\t\t\t\tfor(int j = 0; j < 26; j++) {\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"char temp = str.charAt(i);",
"temp",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if(!Character.isLetter(temp)) {\n\t\t\t\t// nothing\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// 大文字なら小文字へ\n\t\t\t\tif(Character.isUpperCase(temp)) {\n\t\t\t\t\ttemp = Character.toLowerCase(temp);\n\t\t\t\t}\n\t\t\t\tfor(int j = 0; j < 26; j++) {\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"!Character.isLetter(temp)",
"Character.isLetter(temp)",
"Character.isLetter",
"Character",
"temp",
"{\n\t\t\t\t// nothing\n\t\t\t}",
"{\n\t\t\t\t// 大文字なら小文字へ\n\t\t\t\tif(Character.isUpperCase(temp)) {\n\t\t\t\t\ttemp = Character.toLowerCase(temp);\n\t\t\t\t}\n\t\t\t\tfor(int j = 0; j < 26; j++) {\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"if(Character.isUpperCase(temp)) {\n\t\t\t\t\ttemp = Character.toLowerCase(temp);\n\t\t\t\t}",
"Character.isUpperCase(temp)",
"Character.isUpperCase",
"Character",
"temp",
"{\n\t\t\t\t\ttemp = Character.toLowerCase(temp);\n\t\t\t\t}",
"temp = Character.toLowerCase(temp)",
"temp",
"Character.toLowerCase(temp)",
"Character.toLowerCase",
"Character",
"temp",
"for(int j = 0; j < 26; j++) {\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}",
"{\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}",
"if(temp == alf[j]) count[j]++;",
"temp == alf[j]",
"temp",
"alf[j]",
"alf",
"j",
"count[j]++",
"count[j]",
"count",
"j",
"for(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alf[i] + \" : \" + count[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(alf[i] + \" : \" + count[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(alf[i] + \" : \" + count[i]);\n\t\t}",
"System.out.println(alf[i] + \" : \" + count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alf[i] + \" : \" + count[i]",
"alf[i] + \" : \" + count[i]",
"alf[i]",
"alf",
"i",
"\" : \"",
"count[i]",
"count",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar[] alf = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tint[] count = new int[26];\n\t\t\n\t\tStringBuilder str_kari = new StringBuilder();\n\t\twhile(scan.hasNextLine()) {\n\t\t\tstr_kari.append(scan.nextLine());\n\t\t}\n\n\t\tString str = str_kari.toString();\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tchar temp = str.charAt(i);\n\t\t\t// not alfabet\n\t\t\tif(!Character.isLetter(temp)) {\n\t\t\t\t// nothing\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// 大文字なら小文字へ\n\t\t\t\tif(Character.isUpperCase(temp)) {\n\t\t\t\t\ttemp = Character.toLowerCase(temp);\n\t\t\t\t}\n\t\t\t\tfor(int j = 0; j < 26; j++) {\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alf[i] + \" : \" + count[i]);\n\t\t}\n\t\t\t\n\t\t\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar[] alf = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tint[] count = new int[26];\n\t\t\n\t\tStringBuilder str_kari = new StringBuilder();\n\t\twhile(scan.hasNextLine()) {\n\t\t\tstr_kari.append(scan.nextLine());\n\t\t}\n\n\t\tString str = str_kari.toString();\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tchar temp = str.charAt(i);\n\t\t\t// not alfabet\n\t\t\tif(!Character.isLetter(temp)) {\n\t\t\t\t// nothing\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// 大文字なら小文字へ\n\t\t\t\tif(Character.isUpperCase(temp)) {\n\t\t\t\t\ttemp = Character.toLowerCase(temp);\n\t\t\t\t}\n\t\t\t\tfor(int j = 0; j < 26; j++) {\n\t\t\t\t\tif(temp == alf[j]) count[j]++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alf[i] + \" : \" + count[i]);\n\t\t}\n\t\t\t\n\t\t\n\t\t\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scan = new Scanner(System.in);
char[] alf = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
int[] count = new int[26];
StringBuilder str_kari = new StringBuilder();
while(scan.hasNextLine()) {
str_kari.append(scan.nextLine());
}
String str = str_kari.toString();
for(int i = 0; i < str.length(); i++) {
char temp = str.charAt(i);
// not alfabet
if(!Character.isLetter(temp)) {
// nothing
}
else {
// 大文字なら小文字へ
if(Character.isUpperCase(temp)) {
temp = Character.toLowerCase(temp);
}
for(int j = 0; j < 26; j++) {
if(temp == alf[j]) count[j]++;
}
}
}
for(int i = 0; i < 26; i++) {
System.out.println(alf[i] + " : " + count[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
42,
2,
0,
13,
4,
18,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
30,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
30,
4,
18,
13,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
30,
4,
18,
13,
4,
18,
13,
13,
30,
4,
18,
13,
17,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
143,
11
],
[
143,
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
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
33,
43
],
[
43,
44
],
[
44,
45
],
[
33,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
47,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
69,
74
],
[
59,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
76,
80
],
[
14,
81
],
[
81,
82
],
[
81,
83
],
[
14,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
97,
103
],
[
96,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
96,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
110,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
110,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
96,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
14,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
138,
139
],
[
12,
140
],
[
140,
141
],
[
0,
142
],
[
142,
143
],
[
142,
144
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.HashMap;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String line = \"\";\n\t HashMap<String, Integer> ans = new HashMap<String, Integer>();\n\t while ((line = br.readLine()) != null) {\n\t\t for (int i = 0; i < line.length(); i++) {\n\t\t \tString str = Character.toString(line.charAt(i)).toLowerCase();\n\n\t\t \tif (ans.containsKey(str)) {\n\t\t \t\tans.put(str, ans.get(str) + 1);\n\t\t \t} else {\n\t\t \t\tans.put(str, 1);\n\t\t \t}\n\t\t }\n\t }\n\n\t // Display Answer\n\t StringBuilder sb = new StringBuilder();\n\t for (char c = 'a'; c <= 'z'; c++) {\n\t \tsb.append(c).append(\" : \");\n\t \tString keyChar = Character.toString(c);\n\t \tif (ans.containsKey(keyChar)) {\n\t \t\tsb.append(ans.get(keyChar));\n\t \t} else {\n\t \t\tsb.append(\"0\");\n\t \t}\n\n \t\tsb.append(\"\\n\");\n \t }\n\t System.out.print(sb.toString());\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.HashMap;",
"HashMap",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String line = \"\";\n\t HashMap<String, Integer> ans = new HashMap<String, Integer>();\n\t while ((line = br.readLine()) != null) {\n\t\t for (int i = 0; i < line.length(); i++) {\n\t\t \tString str = Character.toString(line.charAt(i)).toLowerCase();\n\n\t\t \tif (ans.containsKey(str)) {\n\t\t \t\tans.put(str, ans.get(str) + 1);\n\t\t \t} else {\n\t\t \t\tans.put(str, 1);\n\t\t \t}\n\t\t }\n\t }\n\n\t // Display Answer\n\t StringBuilder sb = new StringBuilder();\n\t for (char c = 'a'; c <= 'z'; c++) {\n\t \tsb.append(c).append(\" : \");\n\t \tString keyChar = Character.toString(c);\n\t \tif (ans.containsKey(keyChar)) {\n\t \t\tsb.append(ans.get(keyChar));\n\t \t} else {\n\t \t\tsb.append(\"0\");\n\t \t}\n\n \t\tsb.append(\"\\n\");\n \t }\n\t System.out.print(sb.toString());\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String line = \"\";\n\t HashMap<String, Integer> ans = new HashMap<String, Integer>();\n\t while ((line = br.readLine()) != null) {\n\t\t for (int i = 0; i < line.length(); i++) {\n\t\t \tString str = Character.toString(line.charAt(i)).toLowerCase();\n\n\t\t \tif (ans.containsKey(str)) {\n\t\t \t\tans.put(str, ans.get(str) + 1);\n\t\t \t} else {\n\t\t \t\tans.put(str, 1);\n\t\t \t}\n\t\t }\n\t }\n\n\t // Display Answer\n\t StringBuilder sb = new StringBuilder();\n\t for (char c = 'a'; c <= 'z'; c++) {\n\t \tsb.append(c).append(\" : \");\n\t \tString keyChar = Character.toString(c);\n\t \tif (ans.containsKey(keyChar)) {\n\t \t\tsb.append(ans.get(keyChar));\n\t \t} else {\n\t \t\tsb.append(\"0\");\n\t \t}\n\n \t\tsb.append(\"\\n\");\n \t }\n\t System.out.print(sb.toString());\n\t}",
"main",
"{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String line = \"\";\n\t HashMap<String, Integer> ans = new HashMap<String, Integer>();\n\t while ((line = br.readLine()) != null) {\n\t\t for (int i = 0; i < line.length(); i++) {\n\t\t \tString str = Character.toString(line.charAt(i)).toLowerCase();\n\n\t\t \tif (ans.containsKey(str)) {\n\t\t \t\tans.put(str, ans.get(str) + 1);\n\t\t \t} else {\n\t\t \t\tans.put(str, 1);\n\t\t \t}\n\t\t }\n\t }\n\n\t // Display Answer\n\t StringBuilder sb = new StringBuilder();\n\t for (char c = 'a'; c <= 'z'; c++) {\n\t \tsb.append(c).append(\" : \");\n\t \tString keyChar = Character.toString(c);\n\t \tif (ans.containsKey(keyChar)) {\n\t \t\tsb.append(ans.get(keyChar));\n\t \t} else {\n\t \t\tsb.append(\"0\");\n\t \t}\n\n \t\tsb.append(\"\\n\");\n \t }\n\t System.out.print(sb.toString());\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line = \"\";",
"line",
"\"\"",
"HashMap<String, Integer> ans = new HashMap<String, Integer>();",
"ans",
"new HashMap<String, Integer>()",
"while ((line = br.readLine()) != null) {\n\t\t for (int i = 0; i < line.length(); i++) {\n\t\t \tString str = Character.toString(line.charAt(i)).toLowerCase();\n\n\t\t \tif (ans.containsKey(str)) {\n\t\t \t\tans.put(str, ans.get(str) + 1);\n\t\t \t} else {\n\t\t \t\tans.put(str, 1);\n\t\t \t}\n\t\t }\n\t }",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t for (int i = 0; i < line.length(); i++) {\n\t\t \tString str = Character.toString(line.charAt(i)).toLowerCase();\n\n\t\t \tif (ans.containsKey(str)) {\n\t\t \t\tans.put(str, ans.get(str) + 1);\n\t\t \t} else {\n\t\t \t\tans.put(str, 1);\n\t\t \t}\n\t\t }\n\t }",
"for (int i = 0; i < line.length(); i++) {\n\t\t \tString str = Character.toString(line.charAt(i)).toLowerCase();\n\n\t\t \tif (ans.containsKey(str)) {\n\t\t \t\tans.put(str, ans.get(str) + 1);\n\t\t \t} else {\n\t\t \t\tans.put(str, 1);\n\t\t \t}\n\t\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < line.length()",
"i",
"line.length()",
"line.length",
"line",
"i++",
"i++",
"i",
"{\n\t\t \tString str = Character.toString(line.charAt(i)).toLowerCase();\n\n\t\t \tif (ans.containsKey(str)) {\n\t\t \t\tans.put(str, ans.get(str) + 1);\n\t\t \t} else {\n\t\t \t\tans.put(str, 1);\n\t\t \t}\n\t\t }",
"{\n\t\t \tString str = Character.toString(line.charAt(i)).toLowerCase();\n\n\t\t \tif (ans.containsKey(str)) {\n\t\t \t\tans.put(str, ans.get(str) + 1);\n\t\t \t} else {\n\t\t \t\tans.put(str, 1);\n\t\t \t}\n\t\t }",
"String str = Character.toString(line.charAt(i)).toLowerCase();",
"str",
"Character.toString(line.charAt(i)).toLowerCase()",
"Character.toString(line.charAt(i)).toLowerCase",
"Character.toString(line.charAt(i))",
"Character.toString",
"Character",
"line.charAt(i)",
"line.charAt",
"line",
"i",
"if (ans.containsKey(str)) {\n\t\t \t\tans.put(str, ans.get(str) + 1);\n\t\t \t} else {\n\t\t \t\tans.put(str, 1);\n\t\t \t}",
"ans.containsKey(str)",
"ans.containsKey",
"ans",
"str",
"{\n\t\t \t\tans.put(str, ans.get(str) + 1);\n\t\t \t}",
"ans.put(str, ans.get(str) + 1)",
"ans.put",
"ans",
"str",
"ans.get(str) + 1",
"ans.get(str)",
"ans.get",
"ans",
"str",
"1",
"{\n\t\t \t\tans.put(str, 1);\n\t\t \t}",
"ans.put(str, 1)",
"ans.put",
"ans",
"str",
"1",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for (char c = 'a'; c <= 'z'; c++) {\n\t \tsb.append(c).append(\" : \");\n\t \tString keyChar = Character.toString(c);\n\t \tif (ans.containsKey(keyChar)) {\n\t \t\tsb.append(ans.get(keyChar));\n\t \t} else {\n\t \t\tsb.append(\"0\");\n\t \t}\n\n \t\tsb.append(\"\\n\");\n \t }",
"char c = 'a';",
"char c = 'a';",
"c",
"'a'",
"c <= 'z'",
"c",
"'z'",
"c++",
"c++",
"c",
"{\n\t \tsb.append(c).append(\" : \");\n\t \tString keyChar = Character.toString(c);\n\t \tif (ans.containsKey(keyChar)) {\n\t \t\tsb.append(ans.get(keyChar));\n\t \t} else {\n\t \t\tsb.append(\"0\");\n\t \t}\n\n \t\tsb.append(\"\\n\");\n \t }",
"{\n\t \tsb.append(c).append(\" : \");\n\t \tString keyChar = Character.toString(c);\n\t \tif (ans.containsKey(keyChar)) {\n\t \t\tsb.append(ans.get(keyChar));\n\t \t} else {\n\t \t\tsb.append(\"0\");\n\t \t}\n\n \t\tsb.append(\"\\n\");\n \t }",
"sb.append(c).append(\" : \")",
"sb.append(c).append",
"sb.append(c)",
"sb.append",
"sb",
"c",
"\" : \"",
"String keyChar = Character.toString(c);",
"keyChar",
"Character.toString(c)",
"Character.toString",
"Character",
"c",
"if (ans.containsKey(keyChar)) {\n\t \t\tsb.append(ans.get(keyChar));\n\t \t} else {\n\t \t\tsb.append(\"0\");\n\t \t}",
"ans.containsKey(keyChar)",
"ans.containsKey",
"ans",
"keyChar",
"{\n\t \t\tsb.append(ans.get(keyChar));\n\t \t}",
"sb.append(ans.get(keyChar))",
"sb.append",
"sb",
"ans.get(keyChar)",
"ans.get",
"ans",
"keyChar",
"{\n\t \t\tsb.append(\"0\");\n\t \t}",
"sb.append(\"0\")",
"sb.append",
"sb",
"\"0\"",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"System.out.print(sb.toString())",
"System.out.print",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String line = \"\";\n\t HashMap<String, Integer> ans = new HashMap<String, Integer>();\n\t while ((line = br.readLine()) != null) {\n\t\t for (int i = 0; i < line.length(); i++) {\n\t\t \tString str = Character.toString(line.charAt(i)).toLowerCase();\n\n\t\t \tif (ans.containsKey(str)) {\n\t\t \t\tans.put(str, ans.get(str) + 1);\n\t\t \t} else {\n\t\t \t\tans.put(str, 1);\n\t\t \t}\n\t\t }\n\t }\n\n\t // Display Answer\n\t StringBuilder sb = new StringBuilder();\n\t for (char c = 'a'; c <= 'z'; c++) {\n\t \tsb.append(c).append(\" : \");\n\t \tString keyChar = Character.toString(c);\n\t \tif (ans.containsKey(keyChar)) {\n\t \t\tsb.append(ans.get(keyChar));\n\t \t} else {\n\t \t\tsb.append(\"0\");\n\t \t}\n\n \t\tsb.append(\"\\n\");\n \t }\n\t System.out.print(sb.toString());\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String line = \"\";\n\t HashMap<String, Integer> ans = new HashMap<String, Integer>();\n\t while ((line = br.readLine()) != null) {\n\t\t for (int i = 0; i < line.length(); i++) {\n\t\t \tString str = Character.toString(line.charAt(i)).toLowerCase();\n\n\t\t \tif (ans.containsKey(str)) {\n\t\t \t\tans.put(str, ans.get(str) + 1);\n\t\t \t} else {\n\t\t \t\tans.put(str, 1);\n\t\t \t}\n\t\t }\n\t }\n\n\t // Display Answer\n\t StringBuilder sb = new StringBuilder();\n\t for (char c = 'a'; c <= 'z'; c++) {\n\t \tsb.append(c).append(\" : \");\n\t \tString keyChar = Character.toString(c);\n\t \tif (ans.containsKey(keyChar)) {\n\t \t\tsb.append(ans.get(keyChar));\n\t \t} else {\n\t \t\tsb.append(\"0\");\n\t \t}\n\n \t\tsb.append(\"\\n\");\n \t }\n\t System.out.print(sb.toString());\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashMap;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = "";
HashMap<String, Integer> ans = new HashMap<String, Integer>();
while ((line = br.readLine()) != null) {
for (int i = 0; i < line.length(); i++) {
String str = Character.toString(line.charAt(i)).toLowerCase();
if (ans.containsKey(str)) {
ans.put(str, ans.get(str) + 1);
} else {
ans.put(str, 1);
}
}
}
// Display Answer
StringBuilder sb = new StringBuilder();
for (char c = 'a'; c <= 'z'; c++) {
sb.append(c).append(" : ");
String keyChar = Character.toString(c);
if (ans.containsKey(keyChar)) {
sb.append(ans.get(keyChar));
} else {
sb.append("0");
}
sb.append("\n");
}
System.out.print(sb.toString());
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
20,
2,
2,
17,
17,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
2,
18,
13,
13,
17,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
2,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
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
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
9,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
16,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
40,
50
],
[
50,
51
],
[
51,
52
],
[
40,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
55,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
54,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
76,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
16,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
97,
107
],
[
107,
108
],
[
108,
109
],
[
97,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
115,
117
],
[
111,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
124,
124
],
[
124,
125
],
[
124,
126
],
[
124,
127
],
[
127,
128
],
[
127,
129
],
[
6,
130
],
[
130,
131
]
]
| [
"//import java.io.File;\nimport java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args) {\ntry{\n\t\t//Scanner scan = new Scanner(new File(\"in.txt\"));\n\t\tScanner scan = new Scanner(System.in);\n\n\n\t\tint[] alpha = new int['z'-'a'+1];\n\n\t\twhile(scan.hasNext()) {\n\t\t\tchar[] arr = scan.nextLine().toCharArray();\n\t\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\t\tif(arr[i] >= 'a' && arr[i] <= 'z') {\n\t\t\t\t\talpha[arr[i]-'a']++;\n\t\t\t\t}\n\t\t\t\tif(arr[i] >= 'A' && arr[i] <= 'Z') {\n\t\t\t\t\talpha[arr[i]-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < alpha.length; i++) {\n\t\t\tchar letter = 'a';\n\t\t\tletter += i;\n\t\t\tSystem.out.println(letter+\" : \"+alpha[i]);\n\t\t}\n\t\t\n\n}catch(Exception e) {\n\te.printStackTrace();\n}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args) {\ntry{\n\t\t//Scanner scan = new Scanner(new File(\"in.txt\"));\n\t\tScanner scan = new Scanner(System.in);\n\n\n\t\tint[] alpha = new int['z'-'a'+1];\n\n\t\twhile(scan.hasNext()) {\n\t\t\tchar[] arr = scan.nextLine().toCharArray();\n\t\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\t\tif(arr[i] >= 'a' && arr[i] <= 'z') {\n\t\t\t\t\talpha[arr[i]-'a']++;\n\t\t\t\t}\n\t\t\t\tif(arr[i] >= 'A' && arr[i] <= 'Z') {\n\t\t\t\t\talpha[arr[i]-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < alpha.length; i++) {\n\t\t\tchar letter = 'a';\n\t\t\tletter += i;\n\t\t\tSystem.out.println(letter+\" : \"+alpha[i]);\n\t\t}\n\t\t\n\n}catch(Exception e) {\n\te.printStackTrace();\n}\n\t}\n}",
"Main",
"public static void main(String[] args) {\ntry{\n\t\t//Scanner scan = new Scanner(new File(\"in.txt\"));\n\t\tScanner scan = new Scanner(System.in);\n\n\n\t\tint[] alpha = new int['z'-'a'+1];\n\n\t\twhile(scan.hasNext()) {\n\t\t\tchar[] arr = scan.nextLine().toCharArray();\n\t\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\t\tif(arr[i] >= 'a' && arr[i] <= 'z') {\n\t\t\t\t\talpha[arr[i]-'a']++;\n\t\t\t\t}\n\t\t\t\tif(arr[i] >= 'A' && arr[i] <= 'Z') {\n\t\t\t\t\talpha[arr[i]-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < alpha.length; i++) {\n\t\t\tchar letter = 'a';\n\t\t\tletter += i;\n\t\t\tSystem.out.println(letter+\" : \"+alpha[i]);\n\t\t}\n\t\t\n\n}catch(Exception e) {\n\te.printStackTrace();\n}\n\t}",
"main",
"{\ntry{\n\t\t//Scanner scan = new Scanner(new File(\"in.txt\"));\n\t\tScanner scan = new Scanner(System.in);\n\n\n\t\tint[] alpha = new int['z'-'a'+1];\n\n\t\twhile(scan.hasNext()) {\n\t\t\tchar[] arr = scan.nextLine().toCharArray();\n\t\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\t\tif(arr[i] >= 'a' && arr[i] <= 'z') {\n\t\t\t\t\talpha[arr[i]-'a']++;\n\t\t\t\t}\n\t\t\t\tif(arr[i] >= 'A' && arr[i] <= 'Z') {\n\t\t\t\t\talpha[arr[i]-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < alpha.length; i++) {\n\t\t\tchar letter = 'a';\n\t\t\tletter += i;\n\t\t\tSystem.out.println(letter+\" : \"+alpha[i]);\n\t\t}\n\t\t\n\n}catch(Exception e) {\n\te.printStackTrace();\n}\n\t}",
"try{\n\t\t//Scanner scan = new Scanner(new File(\"in.txt\"));\n\t\tScanner scan = new Scanner(System.in);\n\n\n\t\tint[] alpha = new int['z'-'a'+1];\n\n\t\twhile(scan.hasNext()) {\n\t\t\tchar[] arr = scan.nextLine().toCharArray();\n\t\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\t\tif(arr[i] >= 'a' && arr[i] <= 'z') {\n\t\t\t\t\talpha[arr[i]-'a']++;\n\t\t\t\t}\n\t\t\t\tif(arr[i] >= 'A' && arr[i] <= 'Z') {\n\t\t\t\t\talpha[arr[i]-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < alpha.length; i++) {\n\t\t\tchar letter = 'a';\n\t\t\tletter += i;\n\t\t\tSystem.out.println(letter+\" : \"+alpha[i]);\n\t\t}\n\t\t\n\n}catch(Exception e) {\n\te.printStackTrace();\n}",
"catch(Exception e) {\n\te.printStackTrace();\n}",
"Exception e",
"{\n\te.printStackTrace();\n}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t//Scanner scan = new Scanner(new File(\"in.txt\"));\n\t\tScanner scan = new Scanner(System.in);\n\n\n\t\tint[] alpha = new int['z'-'a'+1];\n\n\t\twhile(scan.hasNext()) {\n\t\t\tchar[] arr = scan.nextLine().toCharArray();\n\t\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\t\tif(arr[i] >= 'a' && arr[i] <= 'z') {\n\t\t\t\t\talpha[arr[i]-'a']++;\n\t\t\t\t}\n\t\t\t\tif(arr[i] >= 'A' && arr[i] <= 'Z') {\n\t\t\t\t\talpha[arr[i]-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < alpha.length; i++) {\n\t\t\tchar letter = 'a';\n\t\t\tletter += i;\n\t\t\tSystem.out.println(letter+\" : \"+alpha[i]);\n\t\t}\n\t\t\n\n}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[] alpha = new int['z'-'a'+1];",
"alpha",
"new int['z'-'a'+1]",
"'z'-'a'+1",
"'z'-'a'",
"'z'",
"'a'",
"1",
"while(scan.hasNext()) {\n\t\t\tchar[] arr = scan.nextLine().toCharArray();\n\t\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\t\tif(arr[i] >= 'a' && arr[i] <= 'z') {\n\t\t\t\t\talpha[arr[i]-'a']++;\n\t\t\t\t}\n\t\t\t\tif(arr[i] >= 'A' && arr[i] <= 'Z') {\n\t\t\t\t\talpha[arr[i]-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tchar[] arr = scan.nextLine().toCharArray();\n\t\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\t\tif(arr[i] >= 'a' && arr[i] <= 'z') {\n\t\t\t\t\talpha[arr[i]-'a']++;\n\t\t\t\t}\n\t\t\t\tif(arr[i] >= 'A' && arr[i] <= 'Z') {\n\t\t\t\t\talpha[arr[i]-'A']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"char[] arr = scan.nextLine().toCharArray();",
"arr",
"scan.nextLine().toCharArray()",
"scan.nextLine().toCharArray",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for(int i = 0; i < arr.length; i++) {\n\t\t\t\tif(arr[i] >= 'a' && arr[i] <= 'z') {\n\t\t\t\t\talpha[arr[i]-'a']++;\n\t\t\t\t}\n\t\t\t\tif(arr[i] >= 'A' && arr[i] <= 'Z') {\n\t\t\t\t\talpha[arr[i]-'A']++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(arr[i] >= 'a' && arr[i] <= 'z') {\n\t\t\t\t\talpha[arr[i]-'a']++;\n\t\t\t\t}\n\t\t\t\tif(arr[i] >= 'A' && arr[i] <= 'Z') {\n\t\t\t\t\talpha[arr[i]-'A']++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(arr[i] >= 'a' && arr[i] <= 'z') {\n\t\t\t\t\talpha[arr[i]-'a']++;\n\t\t\t\t}\n\t\t\t\tif(arr[i] >= 'A' && arr[i] <= 'Z') {\n\t\t\t\t\talpha[arr[i]-'A']++;\n\t\t\t\t}\n\t\t\t}",
"if(arr[i] >= 'a' && arr[i] <= 'z') {\n\t\t\t\t\talpha[arr[i]-'a']++;\n\t\t\t\t}",
"arr[i] >= 'a' && arr[i] <= 'z'",
"arr[i] >= 'a'",
"arr[i]",
"arr",
"i",
"'a'",
"arr[i] <= 'z'",
"arr[i]",
"arr",
"i",
"'z'",
"{\n\t\t\t\t\talpha[arr[i]-'a']++;\n\t\t\t\t}",
"alpha[arr[i]-'a']++",
"alpha[arr[i]-'a']",
"alpha",
"arr[i]-'a'",
"arr[i]",
"arr",
"i",
"'a'",
"if(arr[i] >= 'A' && arr[i] <= 'Z') {\n\t\t\t\t\talpha[arr[i]-'A']++;\n\t\t\t\t}",
"arr[i] >= 'A' && arr[i] <= 'Z'",
"arr[i] >= 'A'",
"arr[i]",
"arr",
"i",
"'A'",
"arr[i] <= 'Z'",
"arr[i]",
"arr",
"i",
"'Z'",
"{\n\t\t\t\t\talpha[arr[i]-'A']++;\n\t\t\t\t}",
"alpha[arr[i]-'A']++",
"alpha[arr[i]-'A']",
"alpha",
"arr[i]-'A'",
"arr[i]",
"arr",
"i",
"'A'",
"for(int i = 0; i < alpha.length; i++) {\n\t\t\tchar letter = 'a';\n\t\t\tletter += i;\n\t\t\tSystem.out.println(letter+\" : \"+alpha[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < alpha.length",
"i",
"alpha.length",
"alpha",
"alpha.length",
"i++",
"i++",
"i",
"{\n\t\t\tchar letter = 'a';\n\t\t\tletter += i;\n\t\t\tSystem.out.println(letter+\" : \"+alpha[i]);\n\t\t}",
"{\n\t\t\tchar letter = 'a';\n\t\t\tletter += i;\n\t\t\tSystem.out.println(letter+\" : \"+alpha[i]);\n\t\t}",
"char letter = 'a';",
"letter",
"'a'",
"letter += i",
"letter",
"i",
"System.out.println(letter+\" : \"+alpha[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"letter+\" : \"+alpha[i]",
"letter+\" : \"+alpha[i]",
"letter",
"\" : \"",
"alpha[i]",
"alpha",
"i",
"String[] args",
"args"
]
| //import java.io.File;
import java.util.Scanner;
class Main{
public static void main(String[] args) {
try{
//Scanner scan = new Scanner(new File("in.txt"));
Scanner scan = new Scanner(System.in);
int[] alpha = new int['z'-'a'+1];
while(scan.hasNext()) {
char[] arr = scan.nextLine().toCharArray();
for(int i = 0; i < arr.length; i++) {
if(arr[i] >= 'a' && arr[i] <= 'z') {
alpha[arr[i]-'a']++;
}
if(arr[i] >= 'A' && arr[i] <= 'Z') {
alpha[arr[i]-'A']++;
}
}
}
for(int i = 0; i < alpha.length; i++) {
char letter = 'a';
letter += i;
System.out.println(letter+" : "+alpha[i]);
}
}catch(Exception e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
4,
18,
13,
13,
30,
40,
18,
13,
2,
4,
18,
13,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
40,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
95,
5
],
[
95,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
30,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
57,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
6,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
]
| [
"import java.io.*;\n\npublic class Main{\n public static void main(String[]args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int count[] = new int[26];\n char abc ='a';\n \n while((str=br.readLine())!=null){\n \n for(int i=0;i<str.length();i++){\n if(Character.isLetter(str.charAt(i))){\n count[Character.toLowerCase(str.charAt(i)) - 'a']++;\n }\n }\n }\n for(int i=0;i<26;i++){\n System.out.println(abc++ + \" : \" +count[i]);\n }\n \n \n }\n\n \n}",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[]args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int count[] = new int[26];\n char abc ='a';\n \n while((str=br.readLine())!=null){\n \n for(int i=0;i<str.length();i++){\n if(Character.isLetter(str.charAt(i))){\n count[Character.toLowerCase(str.charAt(i)) - 'a']++;\n }\n }\n }\n for(int i=0;i<26;i++){\n System.out.println(abc++ + \" : \" +count[i]);\n }\n \n \n }\n\n \n}",
"Main",
"public static void main(String[]args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int count[] = new int[26];\n char abc ='a';\n \n while((str=br.readLine())!=null){\n \n for(int i=0;i<str.length();i++){\n if(Character.isLetter(str.charAt(i))){\n count[Character.toLowerCase(str.charAt(i)) - 'a']++;\n }\n }\n }\n for(int i=0;i<26;i++){\n System.out.println(abc++ + \" : \" +count[i]);\n }\n \n \n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int count[] = new int[26];\n char abc ='a';\n \n while((str=br.readLine())!=null){\n \n for(int i=0;i<str.length();i++){\n if(Character.isLetter(str.charAt(i))){\n count[Character.toLowerCase(str.charAt(i)) - 'a']++;\n }\n }\n }\n for(int i=0;i<26;i++){\n System.out.println(abc++ + \" : \" +count[i]);\n }\n \n \n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"int count[] = new int[26];",
"count",
"new int[26]",
"26",
"char abc ='a';",
"abc",
"'a'",
"while((str=br.readLine())!=null){\n \n for(int i=0;i<str.length();i++){\n if(Character.isLetter(str.charAt(i))){\n count[Character.toLowerCase(str.charAt(i)) - 'a']++;\n }\n }\n }",
"(str=br.readLine())!=null",
"(str=br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n \n for(int i=0;i<str.length();i++){\n if(Character.isLetter(str.charAt(i))){\n count[Character.toLowerCase(str.charAt(i)) - 'a']++;\n }\n }\n }",
"for(int i=0;i<str.length();i++){\n if(Character.isLetter(str.charAt(i))){\n count[Character.toLowerCase(str.charAt(i)) - 'a']++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n if(Character.isLetter(str.charAt(i))){\n count[Character.toLowerCase(str.charAt(i)) - 'a']++;\n }\n }",
"{\n if(Character.isLetter(str.charAt(i))){\n count[Character.toLowerCase(str.charAt(i)) - 'a']++;\n }\n }",
"if(Character.isLetter(str.charAt(i))){\n count[Character.toLowerCase(str.charAt(i)) - 'a']++;\n }",
"Character.isLetter(str.charAt(i))",
"Character.isLetter",
"Character",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"{\n count[Character.toLowerCase(str.charAt(i)) - 'a']++;\n }",
"count[Character.toLowerCase(str.charAt(i)) - 'a']++",
"count[Character.toLowerCase(str.charAt(i)) - 'a']",
"count",
"Character.toLowerCase(str.charAt(i)) - 'a'",
"Character.toLowerCase(str.charAt(i))",
"Character.toLowerCase",
"Character",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'a'",
"for(int i=0;i<26;i++){\n System.out.println(abc++ + \" : \" +count[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println(abc++ + \" : \" +count[i]);\n }",
"{\n System.out.println(abc++ + \" : \" +count[i]);\n }",
"System.out.println(abc++ + \" : \" +count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"abc++ + \" : \" +count[i]",
"abc++ + \" : \" +count[i]",
"abc++",
"abc",
"\" : \"",
"count[i]",
"count",
"i",
"String[]args",
"args",
"public class Main{\n public static void main(String[]args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int count[] = new int[26];\n char abc ='a';\n \n while((str=br.readLine())!=null){\n \n for(int i=0;i<str.length();i++){\n if(Character.isLetter(str.charAt(i))){\n count[Character.toLowerCase(str.charAt(i)) - 'a']++;\n }\n }\n }\n for(int i=0;i<26;i++){\n System.out.println(abc++ + \" : \" +count[i]);\n }\n \n \n }\n\n \n}",
"public class Main{\n public static void main(String[]args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int count[] = new int[26];\n char abc ='a';\n \n while((str=br.readLine())!=null){\n \n for(int i=0;i<str.length();i++){\n if(Character.isLetter(str.charAt(i))){\n count[Character.toLowerCase(str.charAt(i)) - 'a']++;\n }\n }\n }\n for(int i=0;i<26;i++){\n System.out.println(abc++ + \" : \" +count[i]);\n }\n \n \n }\n\n \n}",
"Main"
]
| import java.io.*;
public class Main{
public static void main(String[]args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
int count[] = new int[26];
char abc ='a';
while((str=br.readLine())!=null){
for(int i=0;i<str.length();i++){
if(Character.isLetter(str.charAt(i))){
count[Character.toLowerCase(str.charAt(i)) - 'a']++;
}
}
}
for(int i=0;i<26;i++){
System.out.println(abc++ + " : " +count[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
12,
13,
30,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
0,
13,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
105,
5
],
[
105,
6
],
[
6,
7
],
[
6,
8
],
[
105,
9
],
[
9,
10
],
[
9,
11
],
[
105,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
105,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
33,
35
],
[
19,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
19,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
19,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
46,
56
],
[
56,
57
],
[
57,
58
],
[
46,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
64,
74
],
[
74,
75
],
[
75,
76
],
[
64,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
60,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
96,
101
],
[
17,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n static String arr =\"abcdefghijklmnopqrstuvwxyz\";\n static char alArr[] = arr.toCharArray();\n public static void main(String[] args) {\n String str = \"\";\n while (sc.hasNext()){\n String aa = sc.next();\n str += aa;\n }\n str = str.toLowerCase();\n char strarr[] = str.toCharArray();\n for (int i = 0; i < arr.length(); i++){\n int count = 0;\n for (int j = 0; j < str.length(); j++){\n if(strarr[j]==alArr[i]){\n count++;\n }\n }\n System.out.println(alArr[i] + \" : \" + count);\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static String arr =\"abcdefghijklmnopqrstuvwxyz\";\n static char alArr[] = arr.toCharArray();\n public static void main(String[] args) {\n String str = \"\";\n while (sc.hasNext()){\n String aa = sc.next();\n str += aa;\n }\n str = str.toLowerCase();\n char strarr[] = str.toCharArray();\n for (int i = 0; i < arr.length(); i++){\n int count = 0;\n for (int j = 0; j < str.length(); j++){\n if(strarr[j]==alArr[i]){\n count++;\n }\n }\n System.out.println(alArr[i] + \" : \" + count);\n }\n }\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"static String arr =\"abcdefghijklmnopqrstuvwxyz\";",
"arr",
"\"abcdefghijklmnopqrstuvwxyz\"",
"static char alArr[] = arr.toCharArray();",
"alArr",
"arr.toCharArray()",
"arr.toCharArray",
"arr",
"public static void main(String[] args) {\n String str = \"\";\n while (sc.hasNext()){\n String aa = sc.next();\n str += aa;\n }\n str = str.toLowerCase();\n char strarr[] = str.toCharArray();\n for (int i = 0; i < arr.length(); i++){\n int count = 0;\n for (int j = 0; j < str.length(); j++){\n if(strarr[j]==alArr[i]){\n count++;\n }\n }\n System.out.println(alArr[i] + \" : \" + count);\n }\n }",
"main",
"{\n String str = \"\";\n while (sc.hasNext()){\n String aa = sc.next();\n str += aa;\n }\n str = str.toLowerCase();\n char strarr[] = str.toCharArray();\n for (int i = 0; i < arr.length(); i++){\n int count = 0;\n for (int j = 0; j < str.length(); j++){\n if(strarr[j]==alArr[i]){\n count++;\n }\n }\n System.out.println(alArr[i] + \" : \" + count);\n }\n }",
"String str = \"\";",
"str",
"\"\"",
"while (sc.hasNext()){\n String aa = sc.next();\n str += aa;\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String aa = sc.next();\n str += aa;\n }",
"String aa = sc.next();",
"aa",
"sc.next()",
"sc.next",
"sc",
"str += aa",
"str",
"aa",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"char strarr[] = str.toCharArray();",
"strarr",
"str.toCharArray()",
"str.toCharArray",
"str",
"for (int i = 0; i < arr.length(); i++){\n int count = 0;\n for (int j = 0; j < str.length(); j++){\n if(strarr[j]==alArr[i]){\n count++;\n }\n }\n System.out.println(alArr[i] + \" : \" + count);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arr.length()",
"i",
"arr.length()",
"arr.length",
"arr",
"i++",
"i++",
"i",
"{\n int count = 0;\n for (int j = 0; j < str.length(); j++){\n if(strarr[j]==alArr[i]){\n count++;\n }\n }\n System.out.println(alArr[i] + \" : \" + count);\n }",
"{\n int count = 0;\n for (int j = 0; j < str.length(); j++){\n if(strarr[j]==alArr[i]){\n count++;\n }\n }\n System.out.println(alArr[i] + \" : \" + count);\n }",
"int count = 0;",
"count",
"0",
"for (int j = 0; j < str.length(); j++){\n if(strarr[j]==alArr[i]){\n count++;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < str.length()",
"j",
"str.length()",
"str.length",
"str",
"j++",
"j++",
"j",
"{\n if(strarr[j]==alArr[i]){\n count++;\n }\n }",
"{\n if(strarr[j]==alArr[i]){\n count++;\n }\n }",
"if(strarr[j]==alArr[i]){\n count++;\n }",
"strarr[j]==alArr[i]",
"strarr[j]",
"strarr",
"j",
"alArr[i]",
"alArr",
"i",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(alArr[i] + \" : \" + count)",
"System.out.println",
"System.out",
"System",
"System.out",
"alArr[i] + \" : \" + count",
"alArr[i] + \" : \" + count",
"alArr[i]",
"alArr",
"i",
"\" : \"",
"count",
"String[] args",
"args",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static String arr =\"abcdefghijklmnopqrstuvwxyz\";\n static char alArr[] = arr.toCharArray();\n public static void main(String[] args) {\n String str = \"\";\n while (sc.hasNext()){\n String aa = sc.next();\n str += aa;\n }\n str = str.toLowerCase();\n char strarr[] = str.toCharArray();\n for (int i = 0; i < arr.length(); i++){\n int count = 0;\n for (int j = 0; j < str.length(); j++){\n if(strarr[j]==alArr[i]){\n count++;\n }\n }\n System.out.println(alArr[i] + \" : \" + count);\n }\n }\n}",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static String arr =\"abcdefghijklmnopqrstuvwxyz\";\n static char alArr[] = arr.toCharArray();\n public static void main(String[] args) {\n String str = \"\";\n while (sc.hasNext()){\n String aa = sc.next();\n str += aa;\n }\n str = str.toLowerCase();\n char strarr[] = str.toCharArray();\n for (int i = 0; i < arr.length(); i++){\n int count = 0;\n for (int j = 0; j < str.length(); j++){\n if(strarr[j]==alArr[i]){\n count++;\n }\n }\n System.out.println(alArr[i] + \" : \" + count);\n }\n }\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
static String arr ="abcdefghijklmnopqrstuvwxyz";
static char alArr[] = arr.toCharArray();
public static void main(String[] args) {
String str = "";
while (sc.hasNext()){
String aa = sc.next();
str += aa;
}
str = str.toLowerCase();
char strarr[] = str.toCharArray();
for (int i = 0; i < arr.length(); i++){
int count = 0;
for (int j = 0; j < str.length(); j++){
if(strarr[j]==alArr[i]){
count++;
}
}
System.out.println(alArr[i] + " : " + count);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
0,
13,
20,
17,
41,
13,
17,
41,
13,
17,
41,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
40,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
2,
13,
17,
17,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
51,
61
],
[
61,
62
],
[
62,
63
],
[
51,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
96,
98
],
[
92,
99
],
[
92,
100
],
[
100,
101
],
[
100,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
6,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int[] count;\n count = new int[128];\n String alpha = \"abcdefghijklmnopqrstuvwxyz\";\n String sen=\"\";\n String pass;\n\n while(sc.hasNext()){ \n pass = sc.nextLine(); \n sen += pass;\n }\n sen = sen.toLowerCase();\n sen = sen.replace(\" \", \"\");\n\n for(int i=0; i<sen.length(); i++){\n count[sen.charAt(i)]++;\n }\n\n for(int i =97; i<=122;i++){\n System.out.println(alpha.charAt(i-97) +\" : \"+ count[i]);\n }\n\n\n sc.close();\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int[] count;\n count = new int[128];\n String alpha = \"abcdefghijklmnopqrstuvwxyz\";\n String sen=\"\";\n String pass;\n\n while(sc.hasNext()){ \n pass = sc.nextLine(); \n sen += pass;\n }\n sen = sen.toLowerCase();\n sen = sen.replace(\" \", \"\");\n\n for(int i=0; i<sen.length(); i++){\n count[sen.charAt(i)]++;\n }\n\n for(int i =97; i<=122;i++){\n System.out.println(alpha.charAt(i-97) +\" : \"+ count[i]);\n }\n\n\n sc.close();\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int[] count;\n count = new int[128];\n String alpha = \"abcdefghijklmnopqrstuvwxyz\";\n String sen=\"\";\n String pass;\n\n while(sc.hasNext()){ \n pass = sc.nextLine(); \n sen += pass;\n }\n sen = sen.toLowerCase();\n sen = sen.replace(\" \", \"\");\n\n for(int i=0; i<sen.length(); i++){\n count[sen.charAt(i)]++;\n }\n\n for(int i =97; i<=122;i++){\n System.out.println(alpha.charAt(i-97) +\" : \"+ count[i]);\n }\n\n\n sc.close();\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int[] count;\n count = new int[128];\n String alpha = \"abcdefghijklmnopqrstuvwxyz\";\n String sen=\"\";\n String pass;\n\n while(sc.hasNext()){ \n pass = sc.nextLine(); \n sen += pass;\n }\n sen = sen.toLowerCase();\n sen = sen.replace(\" \", \"\");\n\n for(int i=0; i<sen.length(); i++){\n count[sen.charAt(i)]++;\n }\n\n for(int i =97; i<=122;i++){\n System.out.println(alpha.charAt(i-97) +\" : \"+ count[i]);\n }\n\n\n sc.close();\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] count;",
"count",
"count = new int[128]",
"count",
"new int[128]",
"128",
"String alpha = \"abcdefghijklmnopqrstuvwxyz\";",
"alpha",
"\"abcdefghijklmnopqrstuvwxyz\"",
"String sen=\"\";",
"sen",
"\"\"",
"String pass;",
"pass",
"while(sc.hasNext()){ \n pass = sc.nextLine(); \n sen += pass;\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{ \n pass = sc.nextLine(); \n sen += pass;\n }",
"pass = sc.nextLine()",
"pass",
"sc.nextLine()",
"sc.nextLine",
"sc",
"sen += pass",
"sen",
"pass",
"sen = sen.toLowerCase()",
"sen",
"sen.toLowerCase()",
"sen.toLowerCase",
"sen",
"sen = sen.replace(\" \", \"\")",
"sen",
"sen.replace(\" \", \"\")",
"sen.replace",
"sen",
"\" \"",
"\"\"",
"for(int i=0; i<sen.length(); i++){\n count[sen.charAt(i)]++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<sen.length()",
"i",
"sen.length()",
"sen.length",
"sen",
"i++",
"i++",
"i",
"{\n count[sen.charAt(i)]++;\n }",
"{\n count[sen.charAt(i)]++;\n }",
"count[sen.charAt(i)]++",
"count[sen.charAt(i)]",
"count",
"sen.charAt(i)",
"sen.charAt",
"sen",
"i",
"for(int i =97; i<=122;i++){\n System.out.println(alpha.charAt(i-97) +\" : \"+ count[i]);\n }",
"int i =97;",
"int i =97;",
"i",
"97",
"i<=122",
"i",
"122",
"i++",
"i++",
"i",
"{\n System.out.println(alpha.charAt(i-97) +\" : \"+ count[i]);\n }",
"{\n System.out.println(alpha.charAt(i-97) +\" : \"+ count[i]);\n }",
"System.out.println(alpha.charAt(i-97) +\" : \"+ count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alpha.charAt(i-97) +\" : \"+ count[i]",
"alpha.charAt(i-97) +\" : \"+ count[i]",
"alpha.charAt(i-97)",
"alpha.charAt",
"alpha",
"i-97",
"i",
"97",
"\" : \"",
"count[i]",
"count",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int[] count;\n count = new int[128];\n String alpha = \"abcdefghijklmnopqrstuvwxyz\";\n String sen=\"\";\n String pass;\n\n while(sc.hasNext()){ \n pass = sc.nextLine(); \n sen += pass;\n }\n sen = sen.toLowerCase();\n sen = sen.replace(\" \", \"\");\n\n for(int i=0; i<sen.length(); i++){\n count[sen.charAt(i)]++;\n }\n\n for(int i =97; i<=122;i++){\n System.out.println(alpha.charAt(i-97) +\" : \"+ count[i]);\n }\n\n\n sc.close();\n\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int[] count;\n count = new int[128];\n String alpha = \"abcdefghijklmnopqrstuvwxyz\";\n String sen=\"\";\n String pass;\n\n while(sc.hasNext()){ \n pass = sc.nextLine(); \n sen += pass;\n }\n sen = sen.toLowerCase();\n sen = sen.replace(\" \", \"\");\n\n for(int i=0; i<sen.length(); i++){\n count[sen.charAt(i)]++;\n }\n\n for(int i =97; i<=122;i++){\n System.out.println(alpha.charAt(i-97) +\" : \"+ count[i]);\n }\n\n\n sc.close();\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int[] count;
count = new int[128];
String alpha = "abcdefghijklmnopqrstuvwxyz";
String sen="";
String pass;
while(sc.hasNext()){
pass = sc.nextLine();
sen += pass;
}
sen = sen.toLowerCase();
sen = sen.replace(" ", "");
for(int i=0; i<sen.length(); i++){
count[sen.charAt(i)]++;
}
for(int i =97; i<=122;i++){
System.out.println(alpha.charAt(i-97) +" : "+ count[i]);
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
2,
17,
13,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
14,
2,
2,
17,
13,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
112,
5
],
[
112,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
19,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
29,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
43,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
50,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
80,
90
],
[
90,
91
],
[
91,
92
],
[
80,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
6,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
]
| [
"import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String string = \"\";\n int[] arrays = new int[26];\n while(sc.hasNext()){\n string+=sc.nextLine();\n }\n for(int i = 0; i < string.length(); i++){\n int temp = string.charAt(i);\n if('A'<= temp && temp <= 'Z'){\n arrays[temp - 'A']++;\n }else if('a' <= temp && temp <= 'z'){\n arrays[temp - 'a']++;\n }\n }\n for(int i = 0; i < arrays.length; i++){\n System.out.println((char)('a' + i) + \" : \" + arrays[i]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String string = \"\";\n int[] arrays = new int[26];\n while(sc.hasNext()){\n string+=sc.nextLine();\n }\n for(int i = 0; i < string.length(); i++){\n int temp = string.charAt(i);\n if('A'<= temp && temp <= 'Z'){\n arrays[temp - 'A']++;\n }else if('a' <= temp && temp <= 'z'){\n arrays[temp - 'a']++;\n }\n }\n for(int i = 0; i < arrays.length; i++){\n System.out.println((char)('a' + i) + \" : \" + arrays[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String string = \"\";\n int[] arrays = new int[26];\n while(sc.hasNext()){\n string+=sc.nextLine();\n }\n for(int i = 0; i < string.length(); i++){\n int temp = string.charAt(i);\n if('A'<= temp && temp <= 'Z'){\n arrays[temp - 'A']++;\n }else if('a' <= temp && temp <= 'z'){\n arrays[temp - 'a']++;\n }\n }\n for(int i = 0; i < arrays.length; i++){\n System.out.println((char)('a' + i) + \" : \" + arrays[i]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String string = \"\";\n int[] arrays = new int[26];\n while(sc.hasNext()){\n string+=sc.nextLine();\n }\n for(int i = 0; i < string.length(); i++){\n int temp = string.charAt(i);\n if('A'<= temp && temp <= 'Z'){\n arrays[temp - 'A']++;\n }else if('a' <= temp && temp <= 'z'){\n arrays[temp - 'a']++;\n }\n }\n for(int i = 0; i < arrays.length; i++){\n System.out.println((char)('a' + i) + \" : \" + arrays[i]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String string = \"\";",
"string",
"\"\"",
"int[] arrays = new int[26];",
"arrays",
"new int[26]",
"26",
"while(sc.hasNext()){\n string+=sc.nextLine();\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n string+=sc.nextLine();\n }",
"string+=sc.nextLine()",
"string",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int i = 0; i < string.length(); i++){\n int temp = string.charAt(i);\n if('A'<= temp && temp <= 'Z'){\n arrays[temp - 'A']++;\n }else if('a' <= temp && temp <= 'z'){\n arrays[temp - 'a']++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < string.length()",
"i",
"string.length()",
"string.length",
"string",
"i++",
"i++",
"i",
"{\n int temp = string.charAt(i);\n if('A'<= temp && temp <= 'Z'){\n arrays[temp - 'A']++;\n }else if('a' <= temp && temp <= 'z'){\n arrays[temp - 'a']++;\n }\n }",
"{\n int temp = string.charAt(i);\n if('A'<= temp && temp <= 'Z'){\n arrays[temp - 'A']++;\n }else if('a' <= temp && temp <= 'z'){\n arrays[temp - 'a']++;\n }\n }",
"int temp = string.charAt(i);",
"temp",
"string.charAt(i)",
"string.charAt",
"string",
"i",
"if('A'<= temp && temp <= 'Z'){\n arrays[temp - 'A']++;\n }else if('a' <= temp && temp <= 'z'){\n arrays[temp - 'a']++;\n }",
"'A'<= temp && temp <= 'Z'",
"'A'<= temp",
"'A'",
"temp",
"temp <= 'Z'",
"temp",
"'Z'",
"{\n arrays[temp - 'A']++;\n }",
"arrays[temp - 'A']++",
"arrays[temp - 'A']",
"arrays",
"temp - 'A'",
"temp",
"'A'",
"if('a' <= temp && temp <= 'z'){\n arrays[temp - 'a']++;\n }",
"'a' <= temp && temp <= 'z'",
"'a' <= temp",
"'a'",
"temp",
"temp <= 'z'",
"temp",
"'z'",
"{\n arrays[temp - 'a']++;\n }",
"arrays[temp - 'a']++",
"arrays[temp - 'a']",
"arrays",
"temp - 'a'",
"temp",
"'a'",
"for(int i = 0; i < arrays.length; i++){\n System.out.println((char)('a' + i) + \" : \" + arrays[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arrays.length",
"i",
"arrays.length",
"arrays",
"arrays.length",
"i++",
"i++",
"i",
"{\n System.out.println((char)('a' + i) + \" : \" + arrays[i]);\n }",
"{\n System.out.println((char)('a' + i) + \" : \" + arrays[i]);\n }",
"System.out.println((char)('a' + i) + \" : \" + arrays[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)('a' + i) + \" : \" + arrays[i]",
"(char)('a' + i) + \" : \" + arrays[i]",
"(char)('a' + i)",
"'a'",
"i",
"\" : \"",
"arrays[i]",
"arrays",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String string = \"\";\n int[] arrays = new int[26];\n while(sc.hasNext()){\n string+=sc.nextLine();\n }\n for(int i = 0; i < string.length(); i++){\n int temp = string.charAt(i);\n if('A'<= temp && temp <= 'Z'){\n arrays[temp - 'A']++;\n }else if('a' <= temp && temp <= 'z'){\n arrays[temp - 'a']++;\n }\n }\n for(int i = 0; i < arrays.length; i++){\n System.out.println((char)('a' + i) + \" : \" + arrays[i]);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String string = \"\";\n int[] arrays = new int[26];\n while(sc.hasNext()){\n string+=sc.nextLine();\n }\n for(int i = 0; i < string.length(); i++){\n int temp = string.charAt(i);\n if('A'<= temp && temp <= 'Z'){\n arrays[temp - 'A']++;\n }else if('a' <= temp && temp <= 'z'){\n arrays[temp - 'a']++;\n }\n }\n for(int i = 0; i < arrays.length; i++){\n System.out.println((char)('a' + i) + \" : \" + arrays[i]);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String string = "";
int[] arrays = new int[26];
while(sc.hasNext()){
string+=sc.nextLine();
}
for(int i = 0; i < string.length(); i++){
int temp = string.charAt(i);
if('A'<= temp && temp <= 'Z'){
arrays[temp - 'A']++;
}else if('a' <= temp && temp <= 'z'){
arrays[temp - 'a']++;
}
}
for(int i = 0; i < arrays.length; i++){
System.out.println((char)('a' + i) + " : " + arrays[i]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
30,
0,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
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
],
[
111,
11
],
[
111,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
24,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
36,
46
],
[
46,
47
],
[
47,
48
],
[
36,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
50,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
50,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
69,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
14,
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
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
12,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint[] count = new int[26];\n\t\twhile(true){\n//\t\t\t//int x = Integer.parseInt(br.readLine());\n//\t\t\tString input = br.readLine();\n//\n//\t\t\tif(input.equals(\"0\")){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\n//\t\t\tint sum = 0;\n//\t\t\tfor(int i = input.length() - 1; i >= 0 ; i--){\n//\t\t\t\tsum += input.charAt(i) - '0';\n//\t\t\t}\n//\n//\t\t\tSystem.out.println(sum);\n//\t\t}\n\t\t\tString input = br.readLine();\n\t\t\tif(input == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\n\t\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\t\tchar c = input.charAt(i);\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\t}\n\n\t\t\t\tif(Character.isAlphabetic(c)){\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tcount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + count[i]);\n\t\t}\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\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",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint[] count = new int[26];\n\t\twhile(true){\n//\t\t\t//int x = Integer.parseInt(br.readLine());\n//\t\t\tString input = br.readLine();\n//\n//\t\t\tif(input.equals(\"0\")){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\n//\t\t\tint sum = 0;\n//\t\t\tfor(int i = input.length() - 1; i >= 0 ; i--){\n//\t\t\t\tsum += input.charAt(i) - '0';\n//\t\t\t}\n//\n//\t\t\tSystem.out.println(sum);\n//\t\t}\n\t\t\tString input = br.readLine();\n\t\t\tif(input == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\n\t\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\t\tchar c = input.charAt(i);\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\t}\n\n\t\t\t\tif(Character.isAlphabetic(c)){\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tcount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + count[i]);\n\t\t}\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint[] count = new int[26];\n\t\twhile(true){\n//\t\t\t//int x = Integer.parseInt(br.readLine());\n//\t\t\tString input = br.readLine();\n//\n//\t\t\tif(input.equals(\"0\")){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\n//\t\t\tint sum = 0;\n//\t\t\tfor(int i = input.length() - 1; i >= 0 ; i--){\n//\t\t\t\tsum += input.charAt(i) - '0';\n//\t\t\t}\n//\n//\t\t\tSystem.out.println(sum);\n//\t\t}\n\t\t\tString input = br.readLine();\n\t\t\tif(input == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\n\t\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\t\tchar c = input.charAt(i);\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\t}\n\n\t\t\t\tif(Character.isAlphabetic(c)){\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tcount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + count[i]);\n\t\t}\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint[] count = new int[26];\n\t\twhile(true){\n//\t\t\t//int x = Integer.parseInt(br.readLine());\n//\t\t\tString input = br.readLine();\n//\n//\t\t\tif(input.equals(\"0\")){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\n//\t\t\tint sum = 0;\n//\t\t\tfor(int i = input.length() - 1; i >= 0 ; i--){\n//\t\t\t\tsum += input.charAt(i) - '0';\n//\t\t\t}\n//\n//\t\t\tSystem.out.println(sum);\n//\t\t}\n\t\t\tString input = br.readLine();\n\t\t\tif(input == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\n\t\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\t\tchar c = input.charAt(i);\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\t}\n\n\t\t\t\tif(Character.isAlphabetic(c)){\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tcount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + count[i]);\n\t\t}\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"while(true){\n//\t\t\t//int x = Integer.parseInt(br.readLine());\n//\t\t\tString input = br.readLine();\n//\n//\t\t\tif(input.equals(\"0\")){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\n//\t\t\tint sum = 0;\n//\t\t\tfor(int i = input.length() - 1; i >= 0 ; i--){\n//\t\t\t\tsum += input.charAt(i) - '0';\n//\t\t\t}\n//\n//\t\t\tSystem.out.println(sum);\n//\t\t}\n\t\t\tString input = br.readLine();\n\t\t\tif(input == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\n\t\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\t\tchar c = input.charAt(i);\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\t}\n\n\t\t\t\tif(Character.isAlphabetic(c)){\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tcount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"true",
"{\n//\t\t\t//int x = Integer.parseInt(br.readLine());\n//\t\t\tString input = br.readLine();\n//\n//\t\t\tif(input.equals(\"0\")){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\n//\t\t\tint sum = 0;\n//\t\t\tfor(int i = input.length() - 1; i >= 0 ; i--){\n//\t\t\t\tsum += input.charAt(i) - '0';\n//\t\t\t}\n//\n//\t\t\tSystem.out.println(sum);\n//\t\t}\n\t\t\tString input = br.readLine();\n\t\t\tif(input == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\n\t\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\t\tchar c = input.charAt(i);\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\t}\n\n\t\t\t\tif(Character.isAlphabetic(c)){\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tcount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String input = br.readLine();",
"input",
"br.readLine()",
"br.readLine",
"br",
"if(input == null){\n\t\t\t\tbreak;\n\t\t\t}",
"input == null",
"input",
"null",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"for(int i = 0; i < input.length() ; i++){\n\t\t\t\tchar c = input.charAt(i);\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\t}\n\n\t\t\t\tif(Character.isAlphabetic(c)){\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tcount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < input.length()",
"i",
"input.length()",
"input.length",
"input",
"i++",
"i++",
"i",
"{\n\t\t\t\tchar c = input.charAt(i);\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\t}\n\n\t\t\t\tif(Character.isAlphabetic(c)){\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tcount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tchar c = input.charAt(i);\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\t}\n\n\t\t\t\tif(Character.isAlphabetic(c)){\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tcount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"char c = input.charAt(i);",
"c",
"input.charAt(i)",
"input.charAt",
"input",
"i",
"if(Character.isUpperCase(c)){\n\t\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\t}",
"Character.isUpperCase(c)",
"Character.isUpperCase",
"Character",
"c",
"{\n\t\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\t}",
"c = Character.toLowerCase(c)",
"c",
"Character.toLowerCase(c)",
"Character.toLowerCase",
"Character",
"c",
"if(Character.isAlphabetic(c)){\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tcount[c - 'a']++;\n\t\t\t\t}",
"Character.isAlphabetic(c)",
"Character.isAlphabetic",
"Character",
"c",
"{\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tcount[c - 'a']++;\n\t\t\t\t}",
"count[c - 'a']++",
"count[c - 'a']",
"count",
"c - 'a'",
"c",
"'a'",
"for(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + count[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + count[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + count[i]);\n\t\t}",
"System.out.println((char)('a'+i) + \" : \" + count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)('a'+i) + \" : \" + count[i]",
"(char)('a'+i) + \" : \" + count[i]",
"(char)('a'+i)",
"'a'",
"i",
"\" : \"",
"count[i]",
"count",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint[] count = new int[26];\n\t\twhile(true){\n//\t\t\t//int x = Integer.parseInt(br.readLine());\n//\t\t\tString input = br.readLine();\n//\n//\t\t\tif(input.equals(\"0\")){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\n//\t\t\tint sum = 0;\n//\t\t\tfor(int i = input.length() - 1; i >= 0 ; i--){\n//\t\t\t\tsum += input.charAt(i) - '0';\n//\t\t\t}\n//\n//\t\t\tSystem.out.println(sum);\n//\t\t}\n\t\t\tString input = br.readLine();\n\t\t\tif(input == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\n\t\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\t\tchar c = input.charAt(i);\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\t}\n\n\t\t\t\tif(Character.isAlphabetic(c)){\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tcount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + count[i]);\n\t\t}\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint[] count = new int[26];\n\t\twhile(true){\n//\t\t\t//int x = Integer.parseInt(br.readLine());\n//\t\t\tString input = br.readLine();\n//\n//\t\t\tif(input.equals(\"0\")){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\n//\t\t\tint sum = 0;\n//\t\t\tfor(int i = input.length() - 1; i >= 0 ; i--){\n//\t\t\t\tsum += input.charAt(i) - '0';\n//\t\t\t}\n//\n//\t\t\tSystem.out.println(sum);\n//\t\t}\n\t\t\tString input = br.readLine();\n\t\t\tif(input == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\n\t\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\t\tchar c = input.charAt(i);\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tc = Character.toLowerCase(c);\n\t\t\t\t}\n\n\t\t\t\tif(Character.isAlphabetic(c)){\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tcount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + count[i]);\n\t\t}\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
// TODO ?????????????????????????????????????????????
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] count = new int[26];
while(true){
// //int x = Integer.parseInt(br.readLine());
// String input = br.readLine();
//
// if(input.equals("0")){
// break;
// }
//
// int sum = 0;
// for(int i = input.length() - 1; i >= 0 ; i--){
// sum += input.charAt(i) - '0';
// }
//
// System.out.println(sum);
// }
String input = br.readLine();
if(input == null){
break;
}
for(int i = 0; i < input.length() ; i++){
char c = input.charAt(i);
if(Character.isUpperCase(c)){
c = Character.toLowerCase(c);
}
if(Character.isAlphabetic(c)){
//System.out.println(c);
count[c - 'a']++;
}
}
}
for(int i = 0; i < 26; i++){
System.out.println((char)('a'+i) + " : " + count[i]);
}
//
// if(Character.isLowerCase(c)){
// System.out.print(Character.toUpperCase(c));
// }
//
// else if(Character.isUpperCase(c)){
// System.out.print(Character.toLowerCase(c));
// }
// else {
// System.out.print(c);
// }
// }
// System.out.println();
// String[] tmpArray = br.readLine().split(" ");
// int n = Integer.parseInt(tmpArray[0]);
// int m = Integer.parseInt(tmpArray[1]);
// int l = Integer.parseInt(tmpArray[2]);
//
// long[][] a = new long[n][m];
// long[][] b = new long[m][l];
// long[][] c = new long[n][l];
//
// for(int i = 0; i < n; i ++){
// tmpArray = br.readLine().split(" ");
// for(int j = 0; j < m; j++){
// a[i][j] = Long.parseLong(tmpArray[j]);
// }
// }
//
// for(int i = 0; i < m; i ++){
// tmpArray = br.readLine().split(" ");
// for(int j = 0; j < l; j++){
// b[i][j] = Integer.parseInt(tmpArray[j]);
// }
// }
//
// for(int i = 0; i < n; i++){
// for(int j = 0; j < l; j++){
// for(int k = 0; k < m; k++){
// c[i][j] += a[i][k]*b[k][j];
// }
//
// if(j != 0 ){
// System.out.print(" ");
// }
// System.out.print(c[i][j]);
// }
// System.out.println();
// }
}
} |
[
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,
4,
18,
13,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
41,
13,
4,
18,
13,
18,
13,
13,
4,
18,
13,
18,
13,
13,
40,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
4,
18,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
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
],
[
28,
31
],
[
28,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
45,
50
],
[
45,
51
],
[
37,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
37,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
57,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
72,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
90,
92
],
[
84,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
96,
98
],
[
93,
99
],
[
99,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
110,
111
],
[
101,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
120,
120
],
[
120,
121
],
[
120,
122
],
[
120,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
6,
127
],
[
127,
128
]
]
| [
"\nimport java.util.*;\nclass Main {\n\tpublic static void main(String...args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tMap<Character , Integer >strs = new HashMap<>();\n\t\t\n\t\tfor(int i = 97; i <= 122; i++) {\n\t\t\tstrs.put((char)i,0);\n\t\t}\n\t\t//input\n\t\twhile(scan.hasNext()) {\n\t\t String str = scan.nextLine();\n\t\t str = str.toLowerCase().replaceAll(\" \",\"\");\n\t\t char[] str2 = str.toCharArray();\n\t\t for(int i = 0; i < str2.length; i++) {\n\t\t if(str2[i] > 96 && str2[i] < 123){\n\t\t int\tcount = strs.get(str2[i]);\n\t\t strs.put(str2[i],++count);\n\t\t }\n\t\t }\n\t\t}\n\t\t//output\n\t for(int i = 97; i <= 122 ; i++) {\n\t\tSystem.out.println((char)i + \" : \" + strs.get((char)i)); \n\t\t}\n\t}\n}\n\t\t\n\t\t",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main(String...args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tMap<Character , Integer >strs = new HashMap<>();\n\t\t\n\t\tfor(int i = 97; i <= 122; i++) {\n\t\t\tstrs.put((char)i,0);\n\t\t}\n\t\t//input\n\t\twhile(scan.hasNext()) {\n\t\t String str = scan.nextLine();\n\t\t str = str.toLowerCase().replaceAll(\" \",\"\");\n\t\t char[] str2 = str.toCharArray();\n\t\t for(int i = 0; i < str2.length; i++) {\n\t\t if(str2[i] > 96 && str2[i] < 123){\n\t\t int\tcount = strs.get(str2[i]);\n\t\t strs.put(str2[i],++count);\n\t\t }\n\t\t }\n\t\t}\n\t\t//output\n\t for(int i = 97; i <= 122 ; i++) {\n\t\tSystem.out.println((char)i + \" : \" + strs.get((char)i)); \n\t\t}\n\t}\n}",
"Main",
"public static void main(String...args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tMap<Character , Integer >strs = new HashMap<>();\n\t\t\n\t\tfor(int i = 97; i <= 122; i++) {\n\t\t\tstrs.put((char)i,0);\n\t\t}\n\t\t//input\n\t\twhile(scan.hasNext()) {\n\t\t String str = scan.nextLine();\n\t\t str = str.toLowerCase().replaceAll(\" \",\"\");\n\t\t char[] str2 = str.toCharArray();\n\t\t for(int i = 0; i < str2.length; i++) {\n\t\t if(str2[i] > 96 && str2[i] < 123){\n\t\t int\tcount = strs.get(str2[i]);\n\t\t strs.put(str2[i],++count);\n\t\t }\n\t\t }\n\t\t}\n\t\t//output\n\t for(int i = 97; i <= 122 ; i++) {\n\t\tSystem.out.println((char)i + \" : \" + strs.get((char)i)); \n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tMap<Character , Integer >strs = new HashMap<>();\n\t\t\n\t\tfor(int i = 97; i <= 122; i++) {\n\t\t\tstrs.put((char)i,0);\n\t\t}\n\t\t//input\n\t\twhile(scan.hasNext()) {\n\t\t String str = scan.nextLine();\n\t\t str = str.toLowerCase().replaceAll(\" \",\"\");\n\t\t char[] str2 = str.toCharArray();\n\t\t for(int i = 0; i < str2.length; i++) {\n\t\t if(str2[i] > 96 && str2[i] < 123){\n\t\t int\tcount = strs.get(str2[i]);\n\t\t strs.put(str2[i],++count);\n\t\t }\n\t\t }\n\t\t}\n\t\t//output\n\t for(int i = 97; i <= 122 ; i++) {\n\t\tSystem.out.println((char)i + \" : \" + strs.get((char)i)); \n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"Map<Character , Integer >strs = new HashMap<>();",
"strs",
"new HashMap<>()",
"for(int i = 97; i <= 122; i++) {\n\t\t\tstrs.put((char)i,0);\n\t\t}",
"int i = 97;",
"int i = 97;",
"i",
"97",
"i <= 122",
"i",
"122",
"i++",
"i++",
"i",
"{\n\t\t\tstrs.put((char)i,0);\n\t\t}",
"{\n\t\t\tstrs.put((char)i,0);\n\t\t}",
"strs.put((char)i,0)",
"strs.put",
"strs",
"(char)i",
"0",
"while(scan.hasNext()) {\n\t\t String str = scan.nextLine();\n\t\t str = str.toLowerCase().replaceAll(\" \",\"\");\n\t\t char[] str2 = str.toCharArray();\n\t\t for(int i = 0; i < str2.length; i++) {\n\t\t if(str2[i] > 96 && str2[i] < 123){\n\t\t int\tcount = strs.get(str2[i]);\n\t\t strs.put(str2[i],++count);\n\t\t }\n\t\t }\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t String str = scan.nextLine();\n\t\t str = str.toLowerCase().replaceAll(\" \",\"\");\n\t\t char[] str2 = str.toCharArray();\n\t\t for(int i = 0; i < str2.length; i++) {\n\t\t if(str2[i] > 96 && str2[i] < 123){\n\t\t int\tcount = strs.get(str2[i]);\n\t\t strs.put(str2[i],++count);\n\t\t }\n\t\t }\n\t\t}",
"String str = scan.nextLine();",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"str = str.toLowerCase().replaceAll(\" \",\"\")",
"str",
"str.toLowerCase().replaceAll(\" \",\"\")",
"str.toLowerCase().replaceAll",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"\" \"",
"\"\"",
"char[] str2 = str.toCharArray();",
"str2",
"str.toCharArray()",
"str.toCharArray",
"str",
"for(int i = 0; i < str2.length; i++) {\n\t\t if(str2[i] > 96 && str2[i] < 123){\n\t\t int\tcount = strs.get(str2[i]);\n\t\t strs.put(str2[i],++count);\n\t\t }\n\t\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < str2.length",
"i",
"str2.length",
"str2",
"str2.length",
"i++",
"i++",
"i",
"{\n\t\t if(str2[i] > 96 && str2[i] < 123){\n\t\t int\tcount = strs.get(str2[i]);\n\t\t strs.put(str2[i],++count);\n\t\t }\n\t\t }",
"{\n\t\t if(str2[i] > 96 && str2[i] < 123){\n\t\t int\tcount = strs.get(str2[i]);\n\t\t strs.put(str2[i],++count);\n\t\t }\n\t\t }",
"if(str2[i] > 96 && str2[i] < 123){\n\t\t int\tcount = strs.get(str2[i]);\n\t\t strs.put(str2[i],++count);\n\t\t }",
"str2[i] > 96 && str2[i] < 123",
"str2[i] > 96",
"str2[i]",
"str2",
"i",
"96",
"str2[i] < 123",
"str2[i]",
"str2",
"i",
"123",
"{\n\t\t int\tcount = strs.get(str2[i]);\n\t\t strs.put(str2[i],++count);\n\t\t }",
"int\tcount = strs.get(str2[i]);",
"count",
"strs.get(str2[i])",
"strs.get",
"strs",
"str2[i]",
"str2",
"i",
"strs.put(str2[i],++count)",
"strs.put",
"strs",
"str2[i]",
"str2",
"i",
"++count",
"count",
"for(int i = 97; i <= 122 ; i++) {\n\t\tSystem.out.println((char)i + \" : \" + strs.get((char)i)); \n\t\t}",
"int i = 97;",
"int i = 97;",
"i",
"97",
"i <= 122",
"i",
"122",
"i++",
"i++",
"i",
"{\n\t\tSystem.out.println((char)i + \" : \" + strs.get((char)i)); \n\t\t}",
"{\n\t\tSystem.out.println((char)i + \" : \" + strs.get((char)i)); \n\t\t}",
"System.out.println((char)i + \" : \" + strs.get((char)i))",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)i + \" : \" + strs.get((char)i)",
"(char)i + \" : \" + strs.get((char)i)",
"(char)i",
"\" : \"",
"strs.get((char)i)",
"strs.get",
"strs",
"(char)i",
"String...args",
"args"
]
|
import java.util.*;
class Main {
public static void main(String...args) {
Scanner scan = new Scanner(System.in);
Map<Character , Integer >strs = new HashMap<>();
for(int i = 97; i <= 122; i++) {
strs.put((char)i,0);
}
//input
while(scan.hasNext()) {
String str = scan.nextLine();
str = str.toLowerCase().replaceAll(" ","");
char[] str2 = str.toCharArray();
for(int i = 0; i < str2.length; i++) {
if(str2[i] > 96 && str2[i] < 123){
int count = strs.get(str2[i]);
strs.put(str2[i],++count);
}
}
}
//output
for(int i = 97; i <= 122 ; i++) {
System.out.println((char)i + " : " + strs.get((char)i));
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
0,
13,
2,
13,
13,
41,
13,
4,
18,
13,
41,
13,
0,
13,
20,
17,
41,
13,
4,
18,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
17,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
18,
13,
13,
40,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
131,
5
],
[
131,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
19,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
8,
56
],
[
56,
57
],
[
8,
58
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
60,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
75,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
88,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
110,
111
],
[
101,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
6,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString x = new String();\n\t\twhile(scan.hasNext()){\n\t\t\tString buf = scan.nextLine();\n\t\t\tx = x + buf;\n\t\t}\n\t\tString lx = x.toLowerCase();\n\t\tint[] b;\n\t\tb = new int[100];\n\t\tString xl[] = lx.split(\"\");\n\t\tString al = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString alf[] = al.split(\"\");\n\t\tint i,m;\n\t\tfor(i = 0; i < x.length(); i++){\n\t\t\tfor(m = 0; m < 26; m++){\n\t\t\t\tif(xl[i].equals(alf[m]))\n\t\t\t\t\tb[m]++;\n\t\t\t}\n\t\t}\n\t\tfor(i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alf[i]+\" : \"+b[i]);\n\t\t}\n\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString x = new String();\n\t\twhile(scan.hasNext()){\n\t\t\tString buf = scan.nextLine();\n\t\t\tx = x + buf;\n\t\t}\n\t\tString lx = x.toLowerCase();\n\t\tint[] b;\n\t\tb = new int[100];\n\t\tString xl[] = lx.split(\"\");\n\t\tString al = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString alf[] = al.split(\"\");\n\t\tint i,m;\n\t\tfor(i = 0; i < x.length(); i++){\n\t\t\tfor(m = 0; m < 26; m++){\n\t\t\t\tif(xl[i].equals(alf[m]))\n\t\t\t\t\tb[m]++;\n\t\t\t}\n\t\t}\n\t\tfor(i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alf[i]+\" : \"+b[i]);\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString x = new String();\n\t\twhile(scan.hasNext()){\n\t\t\tString buf = scan.nextLine();\n\t\t\tx = x + buf;\n\t\t}\n\t\tString lx = x.toLowerCase();\n\t\tint[] b;\n\t\tb = new int[100];\n\t\tString xl[] = lx.split(\"\");\n\t\tString al = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString alf[] = al.split(\"\");\n\t\tint i,m;\n\t\tfor(i = 0; i < x.length(); i++){\n\t\t\tfor(m = 0; m < 26; m++){\n\t\t\t\tif(xl[i].equals(alf[m]))\n\t\t\t\t\tb[m]++;\n\t\t\t}\n\t\t}\n\t\tfor(i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alf[i]+\" : \"+b[i]);\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString x = new String();\n\t\twhile(scan.hasNext()){\n\t\t\tString buf = scan.nextLine();\n\t\t\tx = x + buf;\n\t\t}\n\t\tString lx = x.toLowerCase();\n\t\tint[] b;\n\t\tb = new int[100];\n\t\tString xl[] = lx.split(\"\");\n\t\tString al = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString alf[] = al.split(\"\");\n\t\tint i,m;\n\t\tfor(i = 0; i < x.length(); i++){\n\t\t\tfor(m = 0; m < 26; m++){\n\t\t\t\tif(xl[i].equals(alf[m]))\n\t\t\t\t\tb[m]++;\n\t\t\t}\n\t\t}\n\t\tfor(i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alf[i]+\" : \"+b[i]);\n\t\t}\n\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String x = new String();",
"x",
"new String()",
"while(scan.hasNext()){\n\t\t\tString buf = scan.nextLine();\n\t\t\tx = x + buf;\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tString buf = scan.nextLine();\n\t\t\tx = x + buf;\n\t\t}",
"String buf = scan.nextLine();",
"buf",
"scan.nextLine()",
"scan.nextLine",
"scan",
"x = x + buf",
"x",
"x + buf",
"x",
"buf",
"String lx = x.toLowerCase();",
"lx",
"x.toLowerCase()",
"x.toLowerCase",
"x",
"int[] b;",
"b",
"b = new int[100]",
"b",
"new int[100]",
"100",
"String xl[] = lx.split(\"\");",
"xl",
"lx.split(\"\")",
"lx.split",
"lx",
"\"\"",
"String al = \"abcdefghijklmnopqrstuvwxyz\";",
"al",
"\"abcdefghijklmnopqrstuvwxyz\"",
"String alf[] = al.split(\"\");",
"alf",
"al.split(\"\")",
"al.split",
"al",
"\"\"",
"int i",
"i",
"m;",
"m",
"for(i = 0; i < x.length(); i++){\n\t\t\tfor(m = 0; m < 26; m++){\n\t\t\t\tif(xl[i].equals(alf[m]))\n\t\t\t\t\tb[m]++;\n\t\t\t}\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < x.length()",
"i",
"x.length()",
"x.length",
"x",
"i++",
"i++",
"i",
"{\n\t\t\tfor(m = 0; m < 26; m++){\n\t\t\t\tif(xl[i].equals(alf[m]))\n\t\t\t\t\tb[m]++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(m = 0; m < 26; m++){\n\t\t\t\tif(xl[i].equals(alf[m]))\n\t\t\t\t\tb[m]++;\n\t\t\t}\n\t\t}",
"for(m = 0; m < 26; m++){\n\t\t\t\tif(xl[i].equals(alf[m]))\n\t\t\t\t\tb[m]++;\n\t\t\t}",
"m = 0;",
"m = 0",
"m",
"0",
"m < 26",
"m",
"26",
"m++",
"m++",
"m",
"{\n\t\t\t\tif(xl[i].equals(alf[m]))\n\t\t\t\t\tb[m]++;\n\t\t\t}",
"{\n\t\t\t\tif(xl[i].equals(alf[m]))\n\t\t\t\t\tb[m]++;\n\t\t\t}",
"if(xl[i].equals(alf[m]))\n\t\t\t\t\tb[m]++;",
"xl[i].equals(alf[m])",
"xl[i].equals",
"xl[i]",
"xl",
"i",
"alf[m]",
"alf",
"m",
"b[m]++",
"b[m]",
"b",
"m",
"for(i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alf[i]+\" : \"+b[i]);\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(alf[i]+\" : \"+b[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(alf[i]+\" : \"+b[i]);\n\t\t}",
"System.out.println(alf[i]+\" : \"+b[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alf[i]+\" : \"+b[i]",
"alf[i]+\" : \"+b[i]",
"alf[i]",
"alf",
"i",
"\" : \"",
"b[i]",
"b",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString x = new String();\n\t\twhile(scan.hasNext()){\n\t\t\tString buf = scan.nextLine();\n\t\t\tx = x + buf;\n\t\t}\n\t\tString lx = x.toLowerCase();\n\t\tint[] b;\n\t\tb = new int[100];\n\t\tString xl[] = lx.split(\"\");\n\t\tString al = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString alf[] = al.split(\"\");\n\t\tint i,m;\n\t\tfor(i = 0; i < x.length(); i++){\n\t\t\tfor(m = 0; m < 26; m++){\n\t\t\t\tif(xl[i].equals(alf[m]))\n\t\t\t\t\tb[m]++;\n\t\t\t}\n\t\t}\n\t\tfor(i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alf[i]+\" : \"+b[i]);\n\t\t}\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString x = new String();\n\t\twhile(scan.hasNext()){\n\t\t\tString buf = scan.nextLine();\n\t\t\tx = x + buf;\n\t\t}\n\t\tString lx = x.toLowerCase();\n\t\tint[] b;\n\t\tb = new int[100];\n\t\tString xl[] = lx.split(\"\");\n\t\tString al = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString alf[] = al.split(\"\");\n\t\tint i,m;\n\t\tfor(i = 0; i < x.length(); i++){\n\t\t\tfor(m = 0; m < 26; m++){\n\t\t\t\tif(xl[i].equals(alf[m]))\n\t\t\t\t\tb[m]++;\n\t\t\t}\n\t\t}\n\t\tfor(i = 0; i < 26; i++){\n\t\t\tSystem.out.println(alf[i]+\" : \"+b[i]);\n\t\t}\n\t\t\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String x = new String();
while(scan.hasNext()){
String buf = scan.nextLine();
x = x + buf;
}
String lx = x.toLowerCase();
int[] b;
b = new int[100];
String xl[] = lx.split("");
String al = "abcdefghijklmnopqrstuvwxyz";
String alf[] = al.split("");
int i,m;
for(i = 0; i < x.length(); i++){
for(m = 0; m < 26; m++){
if(xl[i].equals(alf[m]))
b[m]++;
}
}
for(i = 0; i < 26; i++){
System.out.println(alf[i]+" : "+b[i]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
41,
13,
17,
41,
13,
17,
42,
2,
17,
0,
13,
4,
18,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
13,
30,
40,
18,
13,
13,
0,
13,
17,
3,
30,
40,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
40,
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
],
[
134,
11
],
[
134,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
22
],
[
22,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
14,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
39,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
53,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
71,
81
],
[
81,
82
],
[
82,
83
],
[
71,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
86,
99
],
[
99,
100
],
[
100,
101
],
[
14,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
102,
112
],
[
112,
113
],
[
113,
114
],
[
102,
115
],
[
116,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
123,
123
],
[
123,
124
],
[
123,
125
],
[
123,
126
],
[
126,
127
],
[
126,
128
],
[
116,
129
],
[
129,
130
],
[
12,
131
],
[
131,
132
],
[
0,
133
],
[
133,
134
],
[
133,
135
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\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 cnt[] = new int[26];\n String str;\n char c = 0;\n char c2 = 'a';\n\n while (null != (str = br.readLine())) {\n for (int i = 0; i < str.length(); i++) {\n str = str.toLowerCase();\n c = str.charAt(i);\n if (Character.isLowerCase(c)) {\n for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }\n }\n }\n }\n \n for (int i = 0; i < cnt.length; i++) {\n System.out.println(c2 + \" : \" + cnt[i]);\n c2++;\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int cnt[] = new int[26];\n String str;\n char c = 0;\n char c2 = 'a';\n\n while (null != (str = br.readLine())) {\n for (int i = 0; i < str.length(); i++) {\n str = str.toLowerCase();\n c = str.charAt(i);\n if (Character.isLowerCase(c)) {\n for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }\n }\n }\n }\n \n for (int i = 0; i < cnt.length; i++) {\n System.out.println(c2 + \" : \" + cnt[i]);\n c2++;\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int cnt[] = new int[26];\n String str;\n char c = 0;\n char c2 = 'a';\n\n while (null != (str = br.readLine())) {\n for (int i = 0; i < str.length(); i++) {\n str = str.toLowerCase();\n c = str.charAt(i);\n if (Character.isLowerCase(c)) {\n for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }\n }\n }\n }\n \n for (int i = 0; i < cnt.length; i++) {\n System.out.println(c2 + \" : \" + cnt[i]);\n c2++;\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int cnt[] = new int[26];\n String str;\n char c = 0;\n char c2 = 'a';\n\n while (null != (str = br.readLine())) {\n for (int i = 0; i < str.length(); i++) {\n str = str.toLowerCase();\n c = str.charAt(i);\n if (Character.isLowerCase(c)) {\n for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }\n }\n }\n }\n \n for (int i = 0; i < cnt.length; i++) {\n System.out.println(c2 + \" : \" + cnt[i]);\n c2++;\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int cnt[] = new int[26];",
"cnt",
"new int[26]",
"26",
"String str;",
"str",
"char c = 0;",
"c",
"0",
"char c2 = 'a';",
"c2",
"'a'",
"while (null != (str = br.readLine())) {\n for (int i = 0; i < str.length(); i++) {\n str = str.toLowerCase();\n c = str.charAt(i);\n if (Character.isLowerCase(c)) {\n for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }\n }\n }\n }",
"null != (str = br.readLine())",
"null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"{\n for (int i = 0; i < str.length(); i++) {\n str = str.toLowerCase();\n c = str.charAt(i);\n if (Character.isLowerCase(c)) {\n for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }\n }\n }\n }",
"for (int i = 0; i < str.length(); i++) {\n str = str.toLowerCase();\n c = str.charAt(i);\n if (Character.isLowerCase(c)) {\n for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n str = str.toLowerCase();\n c = str.charAt(i);\n if (Character.isLowerCase(c)) {\n for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }\n }\n }",
"{\n str = str.toLowerCase();\n c = str.charAt(i);\n if (Character.isLowerCase(c)) {\n for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }\n }\n }",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"c = str.charAt(i)",
"c",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if (Character.isLowerCase(c)) {\n for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }\n }",
"Character.isLowerCase(c)",
"Character.isLowerCase",
"Character",
"c",
"{\n for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }\n }",
"for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < cnt.length",
"j",
"cnt.length",
"cnt",
"cnt.length",
"j++",
"j++",
"j",
"{\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }",
"{\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }",
"if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }",
"c == c2",
"c",
"c2",
"{\n cnt[j]++;\n c2 = 'a';\n break;\n }",
"cnt[j]++",
"cnt[j]",
"cnt",
"j",
"c2 = 'a'",
"c2",
"'a'",
"break;",
"{\n c2++;\n }",
"c2++",
"c2",
"for (int i = 0; i < cnt.length; i++) {\n System.out.println(c2 + \" : \" + cnt[i]);\n c2++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cnt.length",
"i",
"cnt.length",
"cnt",
"cnt.length",
"i++",
"i++",
"i",
"{\n System.out.println(c2 + \" : \" + cnt[i]);\n c2++;\n }",
"{\n System.out.println(c2 + \" : \" + cnt[i]);\n c2++;\n }",
"System.out.println(c2 + \" : \" + cnt[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c2 + \" : \" + cnt[i]",
"c2 + \" : \" + cnt[i]",
"c2",
"\" : \"",
"cnt[i]",
"cnt",
"i",
"c2++",
"c2",
"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 cnt[] = new int[26];\n String str;\n char c = 0;\n char c2 = 'a';\n\n while (null != (str = br.readLine())) {\n for (int i = 0; i < str.length(); i++) {\n str = str.toLowerCase();\n c = str.charAt(i);\n if (Character.isLowerCase(c)) {\n for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }\n }\n }\n }\n \n for (int i = 0; i < cnt.length; i++) {\n System.out.println(c2 + \" : \" + cnt[i]);\n c2++;\n }\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 cnt[] = new int[26];\n String str;\n char c = 0;\n char c2 = 'a';\n\n while (null != (str = br.readLine())) {\n for (int i = 0; i < str.length(); i++) {\n str = str.toLowerCase();\n c = str.charAt(i);\n if (Character.isLowerCase(c)) {\n for (int j = 0; j < cnt.length; j++) {\n if (c == c2) {\n cnt[j]++;\n c2 = 'a';\n break;\n } else {\n c2++;\n }\n }\n }\n }\n }\n \n for (int i = 0; i < cnt.length; i++) {\n System.out.println(c2 + \" : \" + cnt[i]);\n c2++;\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int cnt[] = new int[26];
String str;
char c = 0;
char c2 = 'a';
while (null != (str = br.readLine())) {
for (int i = 0; i < str.length(); i++) {
str = str.toLowerCase();
c = str.charAt(i);
if (Character.isLowerCase(c)) {
for (int j = 0; j < cnt.length; j++) {
if (c == c2) {
cnt[j]++;
c2 = 'a';
break;
} else {
c2++;
}
}
}
}
}
for (int i = 0; i < cnt.length; i++) {
System.out.println(c2 + " : " + cnt[i]);
c2++;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
4,
13,
13,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
13,
30,
40,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
154,
5
],
[
154,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
42,
52
],
[
52,
53
],
[
53,
54
],
[
42,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
6,
77
],
[
77,
78
],
[
154,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
85,
95
],
[
95,
96
],
[
96,
97
],
[
85,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
81,
109
],
[
109,
110
],
[
79,
111
],
[
111,
112
],
[
79,
113
],
[
113,
114
],
[
154,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
121,
122
],
[
121,
123
],
[
117,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
124,
134
],
[
134,
135
],
[
135,
136
],
[
124,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
146,
148
],
[
117,
149
],
[
149,
150
],
[
115,
151
],
[
151,
152
],
[
0,
153
],
[
153,
154
],
[
153,
155
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tchar[] tgts = new char[] {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',\n\t\t\t\t'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\t// int[] cnts = new int[tgts.length];\n\t\tchar[] chars = new char[1200];\n\t\tString str = \" \";\n\n\t\t while(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\n\t\t\tchars = str.toCharArray();\n\n\t\t\tchars = switch_l(chars);\n\t\t }\n\n\n\t\tfor (int i = 0; i < tgts.length; i++) {\n\t\t\tSystem.out.println( tgts[i] + \" : \" + cnt_char(chars, tgts[i]) );\n\t\t}\n\n\t\tsc.close();\n\n\t}\n\n\tprivate static int cnt_char(char[] chars, char c) {\n\t\tint cnt = 0;\n\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\tif ( chars[i] == c ){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\n\t\treturn cnt;\n\t}\n\n\tprivate static char[] switch_l(char[] chars) {\n\n\t\tchar[] chars_switch = new char[chars.length];\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tchars_switch[i] = Character.toLowerCase(chars[i]);\n\t\t}\n\t\treturn chars_switch;\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tchar[] tgts = new char[] {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',\n\t\t\t\t'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\t// int[] cnts = new int[tgts.length];\n\t\tchar[] chars = new char[1200];\n\t\tString str = \" \";\n\n\t\t while(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\n\t\t\tchars = str.toCharArray();\n\n\t\t\tchars = switch_l(chars);\n\t\t }\n\n\n\t\tfor (int i = 0; i < tgts.length; i++) {\n\t\t\tSystem.out.println( tgts[i] + \" : \" + cnt_char(chars, tgts[i]) );\n\t\t}\n\n\t\tsc.close();\n\n\t}\n\n\tprivate static int cnt_char(char[] chars, char c) {\n\t\tint cnt = 0;\n\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\tif ( chars[i] == c ){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\n\t\treturn cnt;\n\t}\n\n\tprivate static char[] switch_l(char[] chars) {\n\n\t\tchar[] chars_switch = new char[chars.length];\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tchars_switch[i] = Character.toLowerCase(chars[i]);\n\t\t}\n\t\treturn chars_switch;\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tchar[] tgts = new char[] {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',\n\t\t\t\t'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\t// int[] cnts = new int[tgts.length];\n\t\tchar[] chars = new char[1200];\n\t\tString str = \" \";\n\n\t\t while(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\n\t\t\tchars = str.toCharArray();\n\n\t\t\tchars = switch_l(chars);\n\t\t }\n\n\n\t\tfor (int i = 0; i < tgts.length; i++) {\n\t\t\tSystem.out.println( tgts[i] + \" : \" + cnt_char(chars, tgts[i]) );\n\t\t}\n\n\t\tsc.close();\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tchar[] tgts = new char[] {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',\n\t\t\t\t'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\t// int[] cnts = new int[tgts.length];\n\t\tchar[] chars = new char[1200];\n\t\tString str = \" \";\n\n\t\t while(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\n\t\t\tchars = str.toCharArray();\n\n\t\t\tchars = switch_l(chars);\n\t\t }\n\n\n\t\tfor (int i = 0; i < tgts.length; i++) {\n\t\t\tSystem.out.println( tgts[i] + \" : \" + cnt_char(chars, tgts[i]) );\n\t\t}\n\n\t\tsc.close();\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"char[] tgts = new char[] {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',\n\t\t\t\t'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};",
"tgts",
"new char[] {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',\n\t\t\t\t'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}",
"char[] chars = new char[1200];",
"chars",
"new char[1200]",
"1200",
"String str = \" \";",
"str",
"\" \"",
"while(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\n\t\t\tchars = str.toCharArray();\n\n\t\t\tchars = switch_l(chars);\n\t\t }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tstr += sc.nextLine();\n\n\t\t\tchars = str.toCharArray();\n\n\t\t\tchars = switch_l(chars);\n\t\t }",
"str += sc.nextLine()",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"chars = str.toCharArray()",
"chars",
"str.toCharArray()",
"str.toCharArray",
"str",
"chars = switch_l(chars)",
"chars",
"switch_l(chars)",
"switch_l",
"chars",
"for (int i = 0; i < tgts.length; i++) {\n\t\t\tSystem.out.println( tgts[i] + \" : \" + cnt_char(chars, tgts[i]) );\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < tgts.length",
"i",
"tgts.length",
"tgts",
"tgts.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println( tgts[i] + \" : \" + cnt_char(chars, tgts[i]) );\n\t\t}",
"{\n\t\t\tSystem.out.println( tgts[i] + \" : \" + cnt_char(chars, tgts[i]) );\n\t\t}",
"System.out.println( tgts[i] + \" : \" + cnt_char(chars, tgts[i]) )",
"System.out.println",
"System.out",
"System",
"System.out",
"tgts[i] + \" : \" + cnt_char(chars, tgts[i])",
"tgts[i] + \" : \" + cnt_char(chars, tgts[i])",
"tgts[i]",
"tgts",
"i",
"\" : \"",
"cnt_char(chars, tgts[i])",
"cnt_char",
"chars",
"tgts[i]",
"tgts",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"private static int cnt_char(char[] chars, char c) {\n\t\tint cnt = 0;\n\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\tif ( chars[i] == c ){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\n\t\treturn cnt;\n\t}",
"cnt_char",
"{\n\t\tint cnt = 0;\n\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\tif ( chars[i] == c ){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\n\t\treturn cnt;\n\t}",
"int cnt = 0;",
"cnt",
"0",
"for (int i = 0; i < chars.length; i++) {\n\t\t\tif ( chars[i] == c ){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < chars.length",
"i",
"chars.length",
"chars",
"chars.length",
"i++",
"i++",
"i",
"{\n\t\t\tif ( chars[i] == c ){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif ( chars[i] == c ){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"if ( chars[i] == c ){\n\t\t\t\tcnt++;\n\t\t\t}",
"chars[i] == c",
"chars[i]",
"chars",
"i",
"c",
"{\n\t\t\t\tcnt++;\n\t\t\t}",
"cnt++",
"cnt",
"return cnt;",
"cnt",
"char[] chars",
"chars",
"char c",
"c",
"private static char[] switch_l(char[] chars) {\n\n\t\tchar[] chars_switch = new char[chars.length];\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tchars_switch[i] = Character.toLowerCase(chars[i]);\n\t\t}\n\t\treturn chars_switch;\n\t}",
"switch_l",
"{\n\n\t\tchar[] chars_switch = new char[chars.length];\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tchars_switch[i] = Character.toLowerCase(chars[i]);\n\t\t}\n\t\treturn chars_switch;\n\t}",
"char[] chars_switch = new char[chars.length];",
"chars_switch",
"new char[chars.length]",
"chars.length",
"chars",
"chars.length",
"for (int i = 0; i < chars.length; i++) {\n\t\t\t\tchars_switch[i] = Character.toLowerCase(chars[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < chars.length",
"i",
"chars.length",
"chars",
"chars.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tchars_switch[i] = Character.toLowerCase(chars[i]);\n\t\t}",
"{\n\t\t\t\tchars_switch[i] = Character.toLowerCase(chars[i]);\n\t\t}",
"chars_switch[i] = Character.toLowerCase(chars[i])",
"chars_switch[i]",
"chars_switch",
"i",
"Character.toLowerCase(chars[i])",
"Character.toLowerCase",
"Character",
"chars[i]",
"chars",
"i",
"return chars_switch;",
"chars_switch",
"char[] chars",
"chars",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tchar[] tgts = new char[] {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',\n\t\t\t\t'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\t// int[] cnts = new int[tgts.length];\n\t\tchar[] chars = new char[1200];\n\t\tString str = \" \";\n\n\t\t while(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\n\t\t\tchars = str.toCharArray();\n\n\t\t\tchars = switch_l(chars);\n\t\t }\n\n\n\t\tfor (int i = 0; i < tgts.length; i++) {\n\t\t\tSystem.out.println( tgts[i] + \" : \" + cnt_char(chars, tgts[i]) );\n\t\t}\n\n\t\tsc.close();\n\n\t}\n\n\tprivate static int cnt_char(char[] chars, char c) {\n\t\tint cnt = 0;\n\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\tif ( chars[i] == c ){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\n\t\treturn cnt;\n\t}\n\n\tprivate static char[] switch_l(char[] chars) {\n\n\t\tchar[] chars_switch = new char[chars.length];\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tchars_switch[i] = Character.toLowerCase(chars[i]);\n\t\t}\n\t\treturn chars_switch;\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\tchar[] tgts = new char[] {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',\n\t\t\t\t'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\t// int[] cnts = new int[tgts.length];\n\t\tchar[] chars = new char[1200];\n\t\tString str = \" \";\n\n\t\t while(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\n\t\t\tchars = str.toCharArray();\n\n\t\t\tchars = switch_l(chars);\n\t\t }\n\n\n\t\tfor (int i = 0; i < tgts.length; i++) {\n\t\t\tSystem.out.println( tgts[i] + \" : \" + cnt_char(chars, tgts[i]) );\n\t\t}\n\n\t\tsc.close();\n\n\t}\n\n\tprivate static int cnt_char(char[] chars, char c) {\n\t\tint cnt = 0;\n\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\tif ( chars[i] == c ){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\n\t\treturn cnt;\n\t}\n\n\tprivate static char[] switch_l(char[] chars) {\n\n\t\tchar[] chars_switch = new char[chars.length];\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tchars_switch[i] = Character.toLowerCase(chars[i]);\n\t\t}\n\t\treturn chars_switch;\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char[] tgts = new char[] {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
// int[] cnts = new int[tgts.length];
char[] chars = new char[1200];
String str = " ";
while(sc.hasNext()){
str += sc.nextLine();
chars = str.toCharArray();
chars = switch_l(chars);
}
for (int i = 0; i < tgts.length; i++) {
System.out.println( tgts[i] + " : " + cnt_char(chars, tgts[i]) );
}
sc.close();
}
private static int cnt_char(char[] chars, char c) {
int cnt = 0;
for (int i = 0; i < chars.length; i++) {
if ( chars[i] == c ){
cnt++;
}
}
return cnt;
}
private static char[] switch_l(char[] chars) {
char[] chars_switch = new char[chars.length];
for (int i = 0; i < chars.length; i++) {
chars_switch[i] = Character.toLowerCase(chars[i]);
}
return chars_switch;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
3,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
18,
13,
13,
28,
13,
4,
18,
13,
30,
30,
14,
4,
18,
13,
13,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
18,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
42,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
42,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
59,
69
],
[
69,
70
],
[
70,
71
],
[
59,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
81,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
88,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
14,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
12,
127
],
[
127,
128
]
]
| [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int[] Alph = new int[26];\n\n for(int j = 0; j < 26; j++){\n\t Alph[j] = 0;\n }\n\n while(true){\n\t String line = br.readLine();\n\t if(line == null ) break;\n\n\t String[] token = line.split(\"\");\n\t for (int i = 0; i < token.length; i++){\n\t\t String str = token[i].toLowerCase();\n\n\t\t for(char ch: str.toCharArray()){\n\t\t if(Character.isLetter(ch)){\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }\n\t\t }\n\t }\n\n }\n\n for(int i = 0; i<26 ; i++){\n\t System.out.println( (char)('a'+i) + \" : \" + Alph[i] );\n }\n\n\n\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int[] Alph = new int[26];\n\n for(int j = 0; j < 26; j++){\n\t Alph[j] = 0;\n }\n\n while(true){\n\t String line = br.readLine();\n\t if(line == null ) break;\n\n\t String[] token = line.split(\"\");\n\t for (int i = 0; i < token.length; i++){\n\t\t String str = token[i].toLowerCase();\n\n\t\t for(char ch: str.toCharArray()){\n\t\t if(Character.isLetter(ch)){\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }\n\t\t }\n\t }\n\n }\n\n for(int i = 0; i<26 ; i++){\n\t System.out.println( (char)('a'+i) + \" : \" + Alph[i] );\n }\n\n\n\n }\n}",
"Main",
"public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int[] Alph = new int[26];\n\n for(int j = 0; j < 26; j++){\n\t Alph[j] = 0;\n }\n\n while(true){\n\t String line = br.readLine();\n\t if(line == null ) break;\n\n\t String[] token = line.split(\"\");\n\t for (int i = 0; i < token.length; i++){\n\t\t String str = token[i].toLowerCase();\n\n\t\t for(char ch: str.toCharArray()){\n\t\t if(Character.isLetter(ch)){\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }\n\t\t }\n\t }\n\n }\n\n for(int i = 0; i<26 ; i++){\n\t System.out.println( (char)('a'+i) + \" : \" + Alph[i] );\n }\n\n\n\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int[] Alph = new int[26];\n\n for(int j = 0; j < 26; j++){\n\t Alph[j] = 0;\n }\n\n while(true){\n\t String line = br.readLine();\n\t if(line == null ) break;\n\n\t String[] token = line.split(\"\");\n\t for (int i = 0; i < token.length; i++){\n\t\t String str = token[i].toLowerCase();\n\n\t\t for(char ch: str.toCharArray()){\n\t\t if(Character.isLetter(ch)){\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }\n\t\t }\n\t }\n\n }\n\n for(int i = 0; i<26 ; i++){\n\t System.out.println( (char)('a'+i) + \" : \" + Alph[i] );\n }\n\n\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int[] Alph = new int[26];",
"Alph",
"new int[26]",
"26",
"for(int j = 0; j < 26; j++){\n\t Alph[j] = 0;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n\t Alph[j] = 0;\n }",
"{\n\t Alph[j] = 0;\n }",
"Alph[j] = 0",
"Alph[j]",
"Alph",
"j",
"0",
"while(true){\n\t String line = br.readLine();\n\t if(line == null ) break;\n\n\t String[] token = line.split(\"\");\n\t for (int i = 0; i < token.length; i++){\n\t\t String str = token[i].toLowerCase();\n\n\t\t for(char ch: str.toCharArray()){\n\t\t if(Character.isLetter(ch)){\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }\n\t\t }\n\t }\n\n }",
"true",
"{\n\t String line = br.readLine();\n\t if(line == null ) break;\n\n\t String[] token = line.split(\"\");\n\t for (int i = 0; i < token.length; i++){\n\t\t String str = token[i].toLowerCase();\n\n\t\t for(char ch: str.toCharArray()){\n\t\t if(Character.isLetter(ch)){\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }\n\t\t }\n\t }\n\n }",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"if(line == null ) break;",
"line == null",
"line",
"null",
"break;",
"String[] token = line.split(\"\");",
"token",
"line.split(\"\")",
"line.split",
"line",
"\"\"",
"for (int i = 0; i < token.length; i++){\n\t\t String str = token[i].toLowerCase();\n\n\t\t for(char ch: str.toCharArray()){\n\t\t if(Character.isLetter(ch)){\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }\n\t\t }\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < token.length",
"i",
"token.length",
"token",
"token.length",
"i++",
"i++",
"i",
"{\n\t\t String str = token[i].toLowerCase();\n\n\t\t for(char ch: str.toCharArray()){\n\t\t if(Character.isLetter(ch)){\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }\n\t\t }\n\t }",
"{\n\t\t String str = token[i].toLowerCase();\n\n\t\t for(char ch: str.toCharArray()){\n\t\t if(Character.isLetter(ch)){\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }\n\t\t }\n\t }",
"String str = token[i].toLowerCase();",
"str",
"token[i].toLowerCase()",
"token[i].toLowerCase",
"token[i]",
"token",
"i",
"for(char ch: str.toCharArray()){\n\t\t if(Character.isLetter(ch)){\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }\n\t\t }",
"char ch",
"str.toCharArray()",
"str.toCharArray",
"str",
"{\n\t\t if(Character.isLetter(ch)){\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }\n\t\t }",
"{\n\t\t if(Character.isLetter(ch)){\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }\n\t\t }",
"if(Character.isLetter(ch)){\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }",
"Character.isLetter(ch)",
"Character.isLetter",
"Character",
"ch",
"{\n\t\t\t Alph[ch - 'a'] ++;\n\t\t }",
"Alph[ch - 'a'] ++",
"Alph[ch - 'a']",
"Alph",
"ch - 'a'",
"ch",
"'a'",
"for(int i = 0; i<26 ; i++){\n\t System.out.println( (char)('a'+i) + \" : \" + Alph[i] );\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t System.out.println( (char)('a'+i) + \" : \" + Alph[i] );\n }",
"{\n\t System.out.println( (char)('a'+i) + \" : \" + Alph[i] );\n }",
"System.out.println( (char)('a'+i) + \" : \" + Alph[i] )",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)('a'+i) + \" : \" + Alph[i]",
"(char)('a'+i) + \" : \" + Alph[i]",
"(char)('a'+i)",
"'a'",
"i",
"\" : \"",
"Alph[i]",
"Alph",
"i",
"String args[]",
"args"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String args[]) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] Alph = new int[26];
for(int j = 0; j < 26; j++){
Alph[j] = 0;
}
while(true){
String line = br.readLine();
if(line == null ) break;
String[] token = line.split("");
for (int i = 0; i < token.length; i++){
String str = token[i].toLowerCase();
for(char ch: str.toCharArray()){
if(Character.isLetter(ch)){
Alph[ch - 'a'] ++;
}
}
}
}
for(int i = 0; i<26 ; i++){
System.out.println( (char)('a'+i) + " : " + Alph[i] );
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
17,
28,
13,
13,
30,
30,
14,
2,
4,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
13,
13,
40,
17,
30,
0,
13,
2,
13,
17,
14,
2,
4,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
13,
0,
18,
13,
13,
2,
18,
13,
13,
17,
41,
13,
17,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
41,
13,
4,
18,
13,
0,
13,
4,
13,
2,
18,
13,
17,
17,
0,
13,
20,
23,
13,
12,
13,
30,
41,
13,
20,
17,
0,
18,
13,
17,
2,
17,
13,
29,
13,
23,
13,
12,
13,
30,
14,
2,
2,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
29,
17,
14,
2,
13,
17,
30,
29,
40,
17,
29,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
217,
11
],
[
217,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
14,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
58,
70
],
[
70,
71
],
[
70,
72
],
[
58,
73
],
[
73,
74
],
[
73,
75
],
[
58,
76
],
[
76,
77
],
[
76,
78
],
[
76,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
81,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
91,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
91,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
104,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
58,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
14,
127
],
[
127,
128
],
[
127,
129
],
[
14,
130
],
[
130,
131
],
[
130,
132
],
[
130,
133
],
[
134,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
141,
141
],
[
141,
142
],
[
141,
143
],
[
141,
144
],
[
134,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
134,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
134,
159
],
[
159,
160
],
[
159,
161
],
[
12,
162
],
[
162,
163
],
[
217,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
175,
177
],
[
166,
178
],
[
178,
179
],
[
164,
180
],
[
180,
181
],
[
217,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
187,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
195,
197
],
[
187,
198
],
[
198,
199
],
[
198,
200
],
[
185,
201
],
[
201,
202
],
[
202,
203
],
[
184,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
184,
212
],
[
212,
213
],
[
182,
214
],
[
214,
215
],
[
0,
216
],
[
216,
217
],
[
216,
218
]
]
| [
"import java.nio.ByteBuffer;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder(1200);\n\t\tdo {\n\t\t\tsb.append(br.readLine());\n\t\t} while (br.ready());\n\t\tString str = sb.toString();\n\t\tint len = str.length();\n\t\tint[] alpabetCnt = new int[26];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tbyte[] bytes = String.valueOf(str.charAt(i)).getBytes();\n\t\t\tint index = 0;\n\t\t\tboolean flg = true;\n\t\t\tfor (byte b : bytes) {\n\t\t\t\tif (judgeByte(b) == 0) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flg)\n\t\t\t\talpabetCnt[index] = alpabetCnt[index] + 1;\n\t\t}\n\t\tString label = \"a\";\n\t\tfor (int cnt : alpabetCnt) {\n\t\t\tSystem.out.println(label + \" : \" + cnt);\n\t\t\tbyte[] bs = label.getBytes();\n\t\t\tbs = toBytes(bs[0] + 1);\n\t\t\tlabel = new String(bs, \"US-ASCII\");\n\t\t}\n\t}\n\n\tprivate static byte[] toBytes(int n) {\n\t\tbyte[] bs = new byte[1];\n\t\tbs[0] = (byte) (0x000000ff & (n));\n\t\treturn bs;\n\t}\n\n\tprivate static int judgeByte(byte b) {\n\t\tif (b < 65 | (b > 90 & b < 97) | b > 122) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (b < 91) {\n\t\t\treturn -1;\n\t\t}\n\t\treturn 1;\n\t}\n}",
"import java.nio.ByteBuffer;",
"ByteBuffer",
"java.nio",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder(1200);\n\t\tdo {\n\t\t\tsb.append(br.readLine());\n\t\t} while (br.ready());\n\t\tString str = sb.toString();\n\t\tint len = str.length();\n\t\tint[] alpabetCnt = new int[26];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tbyte[] bytes = String.valueOf(str.charAt(i)).getBytes();\n\t\t\tint index = 0;\n\t\t\tboolean flg = true;\n\t\t\tfor (byte b : bytes) {\n\t\t\t\tif (judgeByte(b) == 0) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flg)\n\t\t\t\talpabetCnt[index] = alpabetCnt[index] + 1;\n\t\t}\n\t\tString label = \"a\";\n\t\tfor (int cnt : alpabetCnt) {\n\t\t\tSystem.out.println(label + \" : \" + cnt);\n\t\t\tbyte[] bs = label.getBytes();\n\t\t\tbs = toBytes(bs[0] + 1);\n\t\t\tlabel = new String(bs, \"US-ASCII\");\n\t\t}\n\t}\n\n\tprivate static byte[] toBytes(int n) {\n\t\tbyte[] bs = new byte[1];\n\t\tbs[0] = (byte) (0x000000ff & (n));\n\t\treturn bs;\n\t}\n\n\tprivate static int judgeByte(byte b) {\n\t\tif (b < 65 | (b > 90 & b < 97) | b > 122) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (b < 91) {\n\t\t\treturn -1;\n\t\t}\n\t\treturn 1;\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder(1200);\n\t\tdo {\n\t\t\tsb.append(br.readLine());\n\t\t} while (br.ready());\n\t\tString str = sb.toString();\n\t\tint len = str.length();\n\t\tint[] alpabetCnt = new int[26];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tbyte[] bytes = String.valueOf(str.charAt(i)).getBytes();\n\t\t\tint index = 0;\n\t\t\tboolean flg = true;\n\t\t\tfor (byte b : bytes) {\n\t\t\t\tif (judgeByte(b) == 0) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flg)\n\t\t\t\talpabetCnt[index] = alpabetCnt[index] + 1;\n\t\t}\n\t\tString label = \"a\";\n\t\tfor (int cnt : alpabetCnt) {\n\t\t\tSystem.out.println(label + \" : \" + cnt);\n\t\t\tbyte[] bs = label.getBytes();\n\t\t\tbs = toBytes(bs[0] + 1);\n\t\t\tlabel = new String(bs, \"US-ASCII\");\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder(1200);\n\t\tdo {\n\t\t\tsb.append(br.readLine());\n\t\t} while (br.ready());\n\t\tString str = sb.toString();\n\t\tint len = str.length();\n\t\tint[] alpabetCnt = new int[26];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tbyte[] bytes = String.valueOf(str.charAt(i)).getBytes();\n\t\t\tint index = 0;\n\t\t\tboolean flg = true;\n\t\t\tfor (byte b : bytes) {\n\t\t\t\tif (judgeByte(b) == 0) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flg)\n\t\t\t\talpabetCnt[index] = alpabetCnt[index] + 1;\n\t\t}\n\t\tString label = \"a\";\n\t\tfor (int cnt : alpabetCnt) {\n\t\t\tSystem.out.println(label + \" : \" + cnt);\n\t\t\tbyte[] bs = label.getBytes();\n\t\t\tbs = toBytes(bs[0] + 1);\n\t\t\tlabel = new String(bs, \"US-ASCII\");\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder(1200);",
"sb",
"new StringBuilder(1200)",
"do {\n\t\t\tsb.append(br.readLine());\n\t\t} while (br.ready());",
"br.ready()",
"br.ready",
"br",
"{\n\t\t\tsb.append(br.readLine());\n\t\t}",
"sb.append(br.readLine())",
"sb.append",
"sb",
"br.readLine()",
"br.readLine",
"br",
"String str = sb.toString();",
"str",
"sb.toString()",
"sb.toString",
"sb",
"int len = str.length();",
"len",
"str.length()",
"str.length",
"str",
"int[] alpabetCnt = new int[26];",
"alpabetCnt",
"new int[26]",
"26",
"for (int i = 0; i < len; i++) {\n\t\t\tbyte[] bytes = String.valueOf(str.charAt(i)).getBytes();\n\t\t\tint index = 0;\n\t\t\tboolean flg = true;\n\t\t\tfor (byte b : bytes) {\n\t\t\t\tif (judgeByte(b) == 0) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flg)\n\t\t\t\talpabetCnt[index] = alpabetCnt[index] + 1;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < len",
"i",
"len",
"i++",
"i++",
"i",
"{\n\t\t\tbyte[] bytes = String.valueOf(str.charAt(i)).getBytes();\n\t\t\tint index = 0;\n\t\t\tboolean flg = true;\n\t\t\tfor (byte b : bytes) {\n\t\t\t\tif (judgeByte(b) == 0) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flg)\n\t\t\t\talpabetCnt[index] = alpabetCnt[index] + 1;\n\t\t}",
"{\n\t\t\tbyte[] bytes = String.valueOf(str.charAt(i)).getBytes();\n\t\t\tint index = 0;\n\t\t\tboolean flg = true;\n\t\t\tfor (byte b : bytes) {\n\t\t\t\tif (judgeByte(b) == 0) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flg)\n\t\t\t\talpabetCnt[index] = alpabetCnt[index] + 1;\n\t\t}",
"byte[] bytes = String.valueOf(str.charAt(i)).getBytes();",
"bytes",
"String.valueOf(str.charAt(i)).getBytes()",
"String.valueOf(str.charAt(i)).getBytes",
"String.valueOf(str.charAt(i))",
"String.valueOf",
"String",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"int index = 0;",
"index",
"0",
"boolean flg = true;",
"flg",
"true",
"for (byte b : bytes) {\n\t\t\t\tif (judgeByte(b) == 0) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}\n\t\t\t}",
"byte b",
"bytes",
"{\n\t\t\t\tif (judgeByte(b) == 0) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (judgeByte(b) == 0) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}\n\t\t\t}",
"if (judgeByte(b) == 0) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}",
"judgeByte(b) == 0",
"judgeByte(b)",
"judgeByte",
"b",
"0",
"{\n\t\t\t\t\tflg = false;\n\t\t\t\t}",
"flg = false",
"flg",
"false",
"if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}",
"judgeByte(b) == -1",
"judgeByte(b)",
"judgeByte",
"b",
"-1",
"1",
"{\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}",
"index = b % 65",
"index",
"b % 65",
"b",
"65",
"if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}",
"judgeByte(b) == 1",
"judgeByte(b)",
"judgeByte",
"b",
"1",
"{\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}",
"index = b % 97",
"index",
"b % 97",
"b",
"97",
"if (flg)\n\t\t\t\talpabetCnt[index] = alpabetCnt[index] + 1;",
"flg",
"alpabetCnt[index] = alpabetCnt[index] + 1",
"alpabetCnt[index]",
"alpabetCnt",
"index",
"alpabetCnt[index] + 1",
"alpabetCnt[index]",
"alpabetCnt",
"index",
"1",
"String label = \"a\";",
"label",
"\"a\"",
"for (int cnt : alpabetCnt) {\n\t\t\tSystem.out.println(label + \" : \" + cnt);\n\t\t\tbyte[] bs = label.getBytes();\n\t\t\tbs = toBytes(bs[0] + 1);\n\t\t\tlabel = new String(bs, \"US-ASCII\");\n\t\t}",
"int cnt",
"alpabetCnt",
"{\n\t\t\tSystem.out.println(label + \" : \" + cnt);\n\t\t\tbyte[] bs = label.getBytes();\n\t\t\tbs = toBytes(bs[0] + 1);\n\t\t\tlabel = new String(bs, \"US-ASCII\");\n\t\t}",
"{\n\t\t\tSystem.out.println(label + \" : \" + cnt);\n\t\t\tbyte[] bs = label.getBytes();\n\t\t\tbs = toBytes(bs[0] + 1);\n\t\t\tlabel = new String(bs, \"US-ASCII\");\n\t\t}",
"System.out.println(label + \" : \" + cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"label + \" : \" + cnt",
"label + \" : \" + cnt",
"label",
"\" : \"",
"cnt",
"byte[] bs = label.getBytes();",
"bs",
"label.getBytes()",
"label.getBytes",
"label",
"bs = toBytes(bs[0] + 1)",
"bs",
"toBytes(bs[0] + 1)",
"toBytes",
"bs[0] + 1",
"bs[0]",
"bs",
"0",
"1",
"label = new String(bs, \"US-ASCII\")",
"label",
"new String(bs, \"US-ASCII\")",
"String[] args",
"args",
"private static byte[] toBytes(int n) {\n\t\tbyte[] bs = new byte[1];\n\t\tbs[0] = (byte) (0x000000ff & (n));\n\t\treturn bs;\n\t}",
"toBytes",
"{\n\t\tbyte[] bs = new byte[1];\n\t\tbs[0] = (byte) (0x000000ff & (n));\n\t\treturn bs;\n\t}",
"byte[] bs = new byte[1];",
"bs",
"new byte[1]",
"1",
"bs[0] = (byte) (0x000000ff & (n))",
"bs[0]",
"bs",
"0",
"(byte) (0x000000ff & (n))",
"0x000000ff",
"(n)",
"return bs;",
"bs",
"int n",
"n",
"private static int judgeByte(byte b) {\n\t\tif (b < 65 | (b > 90 & b < 97) | b > 122) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (b < 91) {\n\t\t\treturn -1;\n\t\t}\n\t\treturn 1;\n\t}",
"judgeByte",
"{\n\t\tif (b < 65 | (b > 90 & b < 97) | b > 122) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (b < 91) {\n\t\t\treturn -1;\n\t\t}\n\t\treturn 1;\n\t}",
"if (b < 65 | (b > 90 & b < 97) | b > 122) {\n\t\t\treturn 0;\n\t\t}",
"b < 65 | (b > 90 & b < 97) | b > 122",
"b < 65 | (b > 90 & b < 97) | b > 122",
"b < 65",
"b",
"65",
"(b > 90 & b < 97)",
"b > 90",
"b",
"90",
"b < 97",
"b",
"97",
"b > 122",
"b",
"122",
"{\n\t\t\treturn 0;\n\t\t}",
"return 0;",
"0",
"if (b < 91) {\n\t\t\treturn -1;\n\t\t}",
"b < 91",
"b",
"91",
"{\n\t\t\treturn -1;\n\t\t}",
"return -1;",
"-1",
"1",
"return 1;",
"1",
"byte b",
"b",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder(1200);\n\t\tdo {\n\t\t\tsb.append(br.readLine());\n\t\t} while (br.ready());\n\t\tString str = sb.toString();\n\t\tint len = str.length();\n\t\tint[] alpabetCnt = new int[26];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tbyte[] bytes = String.valueOf(str.charAt(i)).getBytes();\n\t\t\tint index = 0;\n\t\t\tboolean flg = true;\n\t\t\tfor (byte b : bytes) {\n\t\t\t\tif (judgeByte(b) == 0) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flg)\n\t\t\t\talpabetCnt[index] = alpabetCnt[index] + 1;\n\t\t}\n\t\tString label = \"a\";\n\t\tfor (int cnt : alpabetCnt) {\n\t\t\tSystem.out.println(label + \" : \" + cnt);\n\t\t\tbyte[] bs = label.getBytes();\n\t\t\tbs = toBytes(bs[0] + 1);\n\t\t\tlabel = new String(bs, \"US-ASCII\");\n\t\t}\n\t}\n\n\tprivate static byte[] toBytes(int n) {\n\t\tbyte[] bs = new byte[1];\n\t\tbs[0] = (byte) (0x000000ff & (n));\n\t\treturn bs;\n\t}\n\n\tprivate static int judgeByte(byte b) {\n\t\tif (b < 65 | (b > 90 & b < 97) | b > 122) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (b < 91) {\n\t\t\treturn -1;\n\t\t}\n\t\treturn 1;\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder(1200);\n\t\tdo {\n\t\t\tsb.append(br.readLine());\n\t\t} while (br.ready());\n\t\tString str = sb.toString();\n\t\tint len = str.length();\n\t\tint[] alpabetCnt = new int[26];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tbyte[] bytes = String.valueOf(str.charAt(i)).getBytes();\n\t\t\tint index = 0;\n\t\t\tboolean flg = true;\n\t\t\tfor (byte b : bytes) {\n\t\t\t\tif (judgeByte(b) == 0) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == -1) {\n\t\t\t\t\tindex = b % 65;\n\t\t\t\t}\n\t\t\t\telse if (judgeByte(b) == 1) {\n\t\t\t\t\tindex = b % 97;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flg)\n\t\t\t\talpabetCnt[index] = alpabetCnt[index] + 1;\n\t\t}\n\t\tString label = \"a\";\n\t\tfor (int cnt : alpabetCnt) {\n\t\t\tSystem.out.println(label + \" : \" + cnt);\n\t\t\tbyte[] bs = label.getBytes();\n\t\t\tbs = toBytes(bs[0] + 1);\n\t\t\tlabel = new String(bs, \"US-ASCII\");\n\t\t}\n\t}\n\n\tprivate static byte[] toBytes(int n) {\n\t\tbyte[] bs = new byte[1];\n\t\tbs[0] = (byte) (0x000000ff & (n));\n\t\treturn bs;\n\t}\n\n\tprivate static int judgeByte(byte b) {\n\t\tif (b < 65 | (b > 90 & b < 97) | b > 122) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (b < 91) {\n\t\t\treturn -1;\n\t\t}\n\t\treturn 1;\n\t}\n}",
"Main"
]
| import java.nio.ByteBuffer;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder(1200);
do {
sb.append(br.readLine());
} while (br.ready());
String str = sb.toString();
int len = str.length();
int[] alpabetCnt = new int[26];
for (int i = 0; i < len; i++) {
byte[] bytes = String.valueOf(str.charAt(i)).getBytes();
int index = 0;
boolean flg = true;
for (byte b : bytes) {
if (judgeByte(b) == 0) {
flg = false;
}
else if (judgeByte(b) == -1) {
index = b % 65;
}
else if (judgeByte(b) == 1) {
index = b % 97;
}
}
if (flg)
alpabetCnt[index] = alpabetCnt[index] + 1;
}
String label = "a";
for (int cnt : alpabetCnt) {
System.out.println(label + " : " + cnt);
byte[] bs = label.getBytes();
bs = toBytes(bs[0] + 1);
label = new String(bs, "US-ASCII");
}
}
private static byte[] toBytes(int n) {
byte[] bs = new byte[1];
bs[0] = (byte) (0x000000ff & (n));
return bs;
}
private static int judgeByte(byte b) {
if (b < 65 | (b > 90 & b < 97) | b > 122) {
return 0;
}
if (b < 91) {
return -1;
}
return 1;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
4,
18,
13,
17,
3,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
28,
13,
13,
30,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
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
],
[
101,
11
],
[
101,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
32,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
32,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
32,
49
],
[
49,
50
],
[
49,
51
],
[
49,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
14,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
69,
79
],
[
79,
80
],
[
80,
81
],
[
69,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
12,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
]
| [
"import java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.IOException;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint[] counter = new int[26];\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tif (str.equals(\"\"))\n\t\t\t\tbreak;\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] ch = str.toCharArray();\n\t\t\tfor (char c : ch) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcounter[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < counter.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + counter[i]);\n\t\t}\n\n\t}\n}",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint[] counter = new int[26];\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tif (str.equals(\"\"))\n\t\t\t\tbreak;\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] ch = str.toCharArray();\n\t\t\tfor (char c : ch) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcounter[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < counter.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + counter[i]);\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint[] counter = new int[26];\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tif (str.equals(\"\"))\n\t\t\t\tbreak;\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] ch = str.toCharArray();\n\t\t\tfor (char c : ch) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcounter[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < counter.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + counter[i]);\n\t\t}\n\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint[] counter = new int[26];\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tif (str.equals(\"\"))\n\t\t\t\tbreak;\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] ch = str.toCharArray();\n\t\t\tfor (char c : ch) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcounter[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < counter.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + counter[i]);\n\t\t}\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"int[] counter = new int[26];",
"counter",
"new int[26]",
"26",
"while ((str = br.readLine()) != null) {\n\t\t\tif (str.equals(\"\"))\n\t\t\t\tbreak;\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] ch = str.toCharArray();\n\t\t\tfor (char c : ch) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcounter[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"(str = br.readLine()) != null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tif (str.equals(\"\"))\n\t\t\t\tbreak;\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] ch = str.toCharArray();\n\t\t\tfor (char c : ch) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcounter[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if (str.equals(\"\"))\n\t\t\t\tbreak;",
"str.equals(\"\")",
"str.equals",
"str",
"\"\"",
"break;",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"char[] ch = str.toCharArray();",
"ch",
"str.toCharArray()",
"str.toCharArray",
"str",
"for (char c : ch) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcounter[c - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"char c",
"ch",
"{\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcounter[c - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcounter[c - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"if ('a' <= c && c <= 'z') {\n\t\t\t\t\tcounter[c - 'a']++;\n\t\t\t\t}",
"'a' <= c && c <= 'z'",
"'a' <= c",
"'a'",
"c",
"c <= 'z'",
"c",
"'z'",
"{\n\t\t\t\t\tcounter[c - 'a']++;\n\t\t\t\t}",
"counter[c - 'a']++",
"counter[c - 'a']",
"counter",
"c - 'a'",
"c",
"'a'",
"for (int i = 0; i < counter.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + counter[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < counter.length",
"i",
"counter.length",
"counter",
"counter.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + counter[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + counter[i]);\n\t\t}",
"System.out.println((char) ('a' + i) + \" : \" + counter[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char) ('a' + i) + \" : \" + counter[i]",
"(char) ('a' + i) + \" : \" + counter[i]",
"(char) ('a' + i)",
"'a'",
"i",
"\" : \"",
"counter[i]",
"counter",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint[] counter = new int[26];\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tif (str.equals(\"\"))\n\t\t\t\tbreak;\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] ch = str.toCharArray();\n\t\t\tfor (char c : ch) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcounter[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < counter.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + counter[i]);\n\t\t}\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint[] counter = new int[26];\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tif (str.equals(\"\"))\n\t\t\t\tbreak;\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] ch = str.toCharArray();\n\t\t\tfor (char c : ch) {\n\t\t\t\tif ('a' <= c && c <= 'z') {\n\t\t\t\t\tcounter[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < counter.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + counter[i]);\n\t\t}\n\n\t}\n}",
"Main"
]
| import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
// TODO ?????????????????????????????????????????????
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
int[] counter = new int[26];
while ((str = br.readLine()) != null) {
if (str.equals(""))
break;
str = str.toLowerCase();
char[] ch = str.toCharArray();
for (char c : ch) {
if ('a' <= c && c <= 'z') {
counter[c - 'a']++;
}
}
}
for (int i = 0; i < counter.length; i++) {
System.out.println((char) ('a' + i) + " : " + counter[i]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
20,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
4,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
40,
13,
40,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
136,
8
],
[
136,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
33,
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
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
63,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
78,
91
],
[
91,
92
],
[
92,
93
],
[
78,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
98,
104
],
[
95,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
59,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
122,
122
],
[
122,
123
],
[
122,
124
],
[
122,
125
],
[
59,
126
],
[
126,
127
],
[
59,
128
],
[
128,
129
],
[
11,
130
],
[
130,
131
],
[
131,
132
],
[
9,
133
],
[
133,
134
],
[
0,
135
],
[
135,
136
],
[
135,
137
]
]
| [
"import java.util.Scanner;\nimport java.util.ArrayList;\n\npublic class Main {\n\t\n\tpublic static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tfinal int ALPHABET = 26;\n\t\tint count;\n\t\tchar c, lca = 97, ucl = 65;\n\t\tString ch;\n\t\tArrayList<String> data = new ArrayList<String>();\n\t\t\n\t\twhile (scan.hasNext()) {\n\t\t\tch = scan.next();\n\t\t\tdata.add(ch);\n\t\t} \n\t\t\n\t\t\n\t\tfor (int i = 0; i < ALPHABET; i++) {\n\t\t\tcount = 0;\n\t\t\tfor ( int j = 0; j < data.size(); j ++) {\n\t\t\t\tfor (int k = 0; k < data.get(j).length(); k++) {\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println (lca + \" : \" + count);\n\t\t\tlca++;\n\t\t\tucl++;\n\t\t}\n\t\t\n\t\tscan.close();\n\t\t\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n\t\n\tpublic static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tfinal int ALPHABET = 26;\n\t\tint count;\n\t\tchar c, lca = 97, ucl = 65;\n\t\tString ch;\n\t\tArrayList<String> data = new ArrayList<String>();\n\t\t\n\t\twhile (scan.hasNext()) {\n\t\t\tch = scan.next();\n\t\t\tdata.add(ch);\n\t\t} \n\t\t\n\t\t\n\t\tfor (int i = 0; i < ALPHABET; i++) {\n\t\t\tcount = 0;\n\t\t\tfor ( int j = 0; j < data.size(); j ++) {\n\t\t\t\tfor (int k = 0; k < data.get(j).length(); k++) {\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println (lca + \" : \" + count);\n\t\t\tlca++;\n\t\t\tucl++;\n\t\t}\n\t\t\n\t\tscan.close();\n\t\t\n\t}\n}",
"Main",
"public static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tfinal int ALPHABET = 26;\n\t\tint count;\n\t\tchar c, lca = 97, ucl = 65;\n\t\tString ch;\n\t\tArrayList<String> data = new ArrayList<String>();\n\t\t\n\t\twhile (scan.hasNext()) {\n\t\t\tch = scan.next();\n\t\t\tdata.add(ch);\n\t\t} \n\t\t\n\t\t\n\t\tfor (int i = 0; i < ALPHABET; i++) {\n\t\t\tcount = 0;\n\t\t\tfor ( int j = 0; j < data.size(); j ++) {\n\t\t\t\tfor (int k = 0; k < data.get(j).length(); k++) {\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println (lca + \" : \" + count);\n\t\t\tlca++;\n\t\t\tucl++;\n\t\t}\n\t\t\n\t\tscan.close();\n\t\t\n\t}",
"main",
"{\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tfinal int ALPHABET = 26;\n\t\tint count;\n\t\tchar c, lca = 97, ucl = 65;\n\t\tString ch;\n\t\tArrayList<String> data = new ArrayList<String>();\n\t\t\n\t\twhile (scan.hasNext()) {\n\t\t\tch = scan.next();\n\t\t\tdata.add(ch);\n\t\t} \n\t\t\n\t\t\n\t\tfor (int i = 0; i < ALPHABET; i++) {\n\t\t\tcount = 0;\n\t\t\tfor ( int j = 0; j < data.size(); j ++) {\n\t\t\t\tfor (int k = 0; k < data.get(j).length(); k++) {\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println (lca + \" : \" + count);\n\t\t\tlca++;\n\t\t\tucl++;\n\t\t}\n\t\t\n\t\tscan.close();\n\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"final int ALPHABET = 26;",
"ALPHABET",
"26",
"int count;",
"count",
"char c",
"c",
"lca = 97",
"lca",
"97",
"ucl = 65;",
"ucl",
"65",
"String ch;",
"ch",
"ArrayList<String> data = new ArrayList<String>();",
"data",
"new ArrayList<String>()",
"while (scan.hasNext()) {\n\t\t\tch = scan.next();\n\t\t\tdata.add(ch);\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tch = scan.next();\n\t\t\tdata.add(ch);\n\t\t}",
"ch = scan.next()",
"ch",
"scan.next()",
"scan.next",
"scan",
"data.add(ch)",
"data.add",
"data",
"ch",
"for (int i = 0; i < ALPHABET; i++) {\n\t\t\tcount = 0;\n\t\t\tfor ( int j = 0; j < data.size(); j ++) {\n\t\t\t\tfor (int k = 0; k < data.get(j).length(); k++) {\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println (lca + \" : \" + count);\n\t\t\tlca++;\n\t\t\tucl++;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ALPHABET",
"i",
"ALPHABET",
"i++",
"i++",
"i",
"{\n\t\t\tcount = 0;\n\t\t\tfor ( int j = 0; j < data.size(); j ++) {\n\t\t\t\tfor (int k = 0; k < data.get(j).length(); k++) {\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println (lca + \" : \" + count);\n\t\t\tlca++;\n\t\t\tucl++;\n\t\t}",
"{\n\t\t\tcount = 0;\n\t\t\tfor ( int j = 0; j < data.size(); j ++) {\n\t\t\t\tfor (int k = 0; k < data.get(j).length(); k++) {\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println (lca + \" : \" + count);\n\t\t\tlca++;\n\t\t\tucl++;\n\t\t}",
"count = 0",
"count",
"0",
"for ( int j = 0; j < data.size(); j ++) {\n\t\t\t\tfor (int k = 0; k < data.get(j).length(); k++) {\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < data.size()",
"j",
"data.size()",
"data.size",
"data",
"j ++",
"j ++",
"j",
"{\n\t\t\t\tfor (int k = 0; k < data.get(j).length(); k++) {\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < data.get(j).length(); k++) {\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}",
"for (int k = 0; k < data.get(j).length(); k++) {\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < data.get(j).length()",
"k",
"data.get(j).length()",
"data.get(j).length",
"data.get(j)",
"data.get",
"data",
"j",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}",
"c = data.get(j).charAt(k)",
"c",
"data.get(j).charAt(k)",
"data.get(j).charAt",
"data.get(j)",
"data.get",
"data",
"j",
"k",
"if ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}",
"lca == c || ucl == c",
"lca == c",
"lca",
"c",
"ucl == c",
"ucl",
"c",
"{\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}",
"count++",
"count",
"System.out.println (lca + \" : \" + count)",
"System.out.println",
"System.out",
"System",
"System.out",
"lca + \" : \" + count",
"lca + \" : \" + count",
"lca",
"\" : \"",
"count",
"lca++",
"lca",
"ucl++",
"ucl",
"scan.close()",
"scan.close",
"scan",
"String [] args",
"args",
"public class Main {\n\t\n\tpublic static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tfinal int ALPHABET = 26;\n\t\tint count;\n\t\tchar c, lca = 97, ucl = 65;\n\t\tString ch;\n\t\tArrayList<String> data = new ArrayList<String>();\n\t\t\n\t\twhile (scan.hasNext()) {\n\t\t\tch = scan.next();\n\t\t\tdata.add(ch);\n\t\t} \n\t\t\n\t\t\n\t\tfor (int i = 0; i < ALPHABET; i++) {\n\t\t\tcount = 0;\n\t\t\tfor ( int j = 0; j < data.size(); j ++) {\n\t\t\t\tfor (int k = 0; k < data.get(j).length(); k++) {\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println (lca + \" : \" + count);\n\t\t\tlca++;\n\t\t\tucl++;\n\t\t}\n\t\t\n\t\tscan.close();\n\t\t\n\t}\n}",
"public class Main {\n\t\n\tpublic static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tfinal int ALPHABET = 26;\n\t\tint count;\n\t\tchar c, lca = 97, ucl = 65;\n\t\tString ch;\n\t\tArrayList<String> data = new ArrayList<String>();\n\t\t\n\t\twhile (scan.hasNext()) {\n\t\t\tch = scan.next();\n\t\t\tdata.add(ch);\n\t\t} \n\t\t\n\t\t\n\t\tfor (int i = 0; i < ALPHABET; i++) {\n\t\t\tcount = 0;\n\t\t\tfor ( int j = 0; j < data.size(); j ++) {\n\t\t\t\tfor (int k = 0; k < data.get(j).length(); k++) {\n\t\t\t\t\tc = data.get(j).charAt(k);\n\t\t\t\t\tif ( lca == c || ucl == c) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println (lca + \" : \" + count);\n\t\t\tlca++;\n\t\t\tucl++;\n\t\t}\n\t\t\n\t\tscan.close();\n\t\t\n\t}\n}",
"Main"
]
| import java.util.Scanner;
import java.util.ArrayList;
public class Main {
public static void main(String [] args) {
Scanner scan = new Scanner(System.in);
final int ALPHABET = 26;
int count;
char c, lca = 97, ucl = 65;
String ch;
ArrayList<String> data = new ArrayList<String>();
while (scan.hasNext()) {
ch = scan.next();
data.add(ch);
}
for (int i = 0; i < ALPHABET; i++) {
count = 0;
for ( int j = 0; j < data.size(); j ++) {
for (int k = 0; k < data.get(j).length(); k++) {
c = data.get(j).charAt(k);
if ( lca == c || ucl == c) {
count++;
}
}
}
System.out.println (lca + " : " + count);
lca++;
ucl++;
}
scan.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
13,
40,
18,
13,
13,
40,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
40,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
117,
5
],
[
117,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
19,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
27,
37
],
[
37,
38
],
[
38,
39
],
[
27,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
41,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
41,
54
],
[
54,
55
],
[
54,
56
],
[
41,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
57,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
71,
80
],
[
80,
81
],
[
8,
82
],
[
82,
83
],
[
82,
84
],
[
8,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
85,
95
],
[
95,
96
],
[
96,
97
],
[
85,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
106,
106
],
[
106,
107
],
[
106,
108
],
[
106,
109
],
[
109,
110
],
[
109,
111
],
[
99,
112
],
[
112,
113
],
[
6,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"import java.io.*;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString sentence;\n\t\tint[] abc = new int[26];\n\n\t\twhile ((sentence = input.readLine()) != null) {\n\t\t\tfor (int i = 0; i < sentence.length(); i++) {\n\t\t\t\tchar c = sentence.charAt(i);\n\t\t\t\t c = Character.toLowerCase(c);\n\t\t\t\tchar cc = 'a';\n\t\t\t\tfor (int j = 0; j < abc.length; j++) {\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchar cc = 'a';\n\t\tfor (int i = 0; i < abc.length; i++) {\n\t\t\tSystem.out.println(cc + \" : \" + abc[i]);\n\t\t\tcc++;\n\t\t}\n\t}\n\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString sentence;\n\t\tint[] abc = new int[26];\n\n\t\twhile ((sentence = input.readLine()) != null) {\n\t\t\tfor (int i = 0; i < sentence.length(); i++) {\n\t\t\t\tchar c = sentence.charAt(i);\n\t\t\t\t c = Character.toLowerCase(c);\n\t\t\t\tchar cc = 'a';\n\t\t\t\tfor (int j = 0; j < abc.length; j++) {\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchar cc = 'a';\n\t\tfor (int i = 0; i < abc.length; i++) {\n\t\t\tSystem.out.println(cc + \" : \" + abc[i]);\n\t\t\tcc++;\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString sentence;\n\t\tint[] abc = new int[26];\n\n\t\twhile ((sentence = input.readLine()) != null) {\n\t\t\tfor (int i = 0; i < sentence.length(); i++) {\n\t\t\t\tchar c = sentence.charAt(i);\n\t\t\t\t c = Character.toLowerCase(c);\n\t\t\t\tchar cc = 'a';\n\t\t\t\tfor (int j = 0; j < abc.length; j++) {\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchar cc = 'a';\n\t\tfor (int i = 0; i < abc.length; i++) {\n\t\t\tSystem.out.println(cc + \" : \" + abc[i]);\n\t\t\tcc++;\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString sentence;\n\t\tint[] abc = new int[26];\n\n\t\twhile ((sentence = input.readLine()) != null) {\n\t\t\tfor (int i = 0; i < sentence.length(); i++) {\n\t\t\t\tchar c = sentence.charAt(i);\n\t\t\t\t c = Character.toLowerCase(c);\n\t\t\t\tchar cc = 'a';\n\t\t\t\tfor (int j = 0; j < abc.length; j++) {\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchar cc = 'a';\n\t\tfor (int i = 0; i < abc.length; i++) {\n\t\t\tSystem.out.println(cc + \" : \" + abc[i]);\n\t\t\tcc++;\n\t\t}\n\t}",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"String sentence;",
"sentence",
"int[] abc = new int[26];",
"abc",
"new int[26]",
"26",
"while ((sentence = input.readLine()) != null) {\n\t\t\tfor (int i = 0; i < sentence.length(); i++) {\n\t\t\t\tchar c = sentence.charAt(i);\n\t\t\t\t c = Character.toLowerCase(c);\n\t\t\t\tchar cc = 'a';\n\t\t\t\tfor (int j = 0; j < abc.length; j++) {\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"(sentence = input.readLine()) != null",
"(sentence = input.readLine())",
"sentence",
"input.readLine()",
"input.readLine",
"input",
"null",
"{\n\t\t\tfor (int i = 0; i < sentence.length(); i++) {\n\t\t\t\tchar c = sentence.charAt(i);\n\t\t\t\t c = Character.toLowerCase(c);\n\t\t\t\tchar cc = 'a';\n\t\t\t\tfor (int j = 0; j < abc.length; j++) {\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int i = 0; i < sentence.length(); i++) {\n\t\t\t\tchar c = sentence.charAt(i);\n\t\t\t\t c = Character.toLowerCase(c);\n\t\t\t\tchar cc = 'a';\n\t\t\t\tfor (int j = 0; j < abc.length; j++) {\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < sentence.length()",
"i",
"sentence.length()",
"sentence.length",
"sentence",
"i++",
"i++",
"i",
"{\n\t\t\t\tchar c = sentence.charAt(i);\n\t\t\t\t c = Character.toLowerCase(c);\n\t\t\t\tchar cc = 'a';\n\t\t\t\tfor (int j = 0; j < abc.length; j++) {\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tchar c = sentence.charAt(i);\n\t\t\t\t c = Character.toLowerCase(c);\n\t\t\t\tchar cc = 'a';\n\t\t\t\tfor (int j = 0; j < abc.length; j++) {\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}",
"char c = sentence.charAt(i);",
"c",
"sentence.charAt(i)",
"sentence.charAt",
"sentence",
"i",
"c = Character.toLowerCase(c)",
"c",
"Character.toLowerCase(c)",
"Character.toLowerCase",
"Character",
"c",
"char cc = 'a';",
"cc",
"'a'",
"for (int j = 0; j < abc.length; j++) {\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < abc.length",
"j",
"abc.length",
"abc",
"abc.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}",
"{\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}",
"if (cc == c)\n\t\t\t\t\t\tabc[j]++;",
"cc == c",
"cc",
"c",
"abc[j]++",
"abc[j]",
"abc",
"j",
"cc++",
"cc",
"char cc = 'a';",
"cc",
"'a'",
"for (int i = 0; i < abc.length; i++) {\n\t\t\tSystem.out.println(cc + \" : \" + abc[i]);\n\t\t\tcc++;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < abc.length",
"i",
"abc.length",
"abc",
"abc.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(cc + \" : \" + abc[i]);\n\t\t\tcc++;\n\t\t}",
"{\n\t\t\tSystem.out.println(cc + \" : \" + abc[i]);\n\t\t\tcc++;\n\t\t}",
"System.out.println(cc + \" : \" + abc[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"cc + \" : \" + abc[i]",
"cc + \" : \" + abc[i]",
"cc",
"\" : \"",
"abc[i]",
"abc",
"i",
"cc++",
"cc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString sentence;\n\t\tint[] abc = new int[26];\n\n\t\twhile ((sentence = input.readLine()) != null) {\n\t\t\tfor (int i = 0; i < sentence.length(); i++) {\n\t\t\t\tchar c = sentence.charAt(i);\n\t\t\t\t c = Character.toLowerCase(c);\n\t\t\t\tchar cc = 'a';\n\t\t\t\tfor (int j = 0; j < abc.length; j++) {\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchar cc = 'a';\n\t\tfor (int i = 0; i < abc.length; i++) {\n\t\t\tSystem.out.println(cc + \" : \" + abc[i]);\n\t\t\tcc++;\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString sentence;\n\t\tint[] abc = new int[26];\n\n\t\twhile ((sentence = input.readLine()) != null) {\n\t\t\tfor (int i = 0; i < sentence.length(); i++) {\n\t\t\t\tchar c = sentence.charAt(i);\n\t\t\t\t c = Character.toLowerCase(c);\n\t\t\t\tchar cc = 'a';\n\t\t\t\tfor (int j = 0; j < abc.length; j++) {\n\t\t\t\t\tif (cc == c)\n\t\t\t\t\t\tabc[j]++;\n\t\t\t\t\tcc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchar cc = 'a';\n\t\tfor (int i = 0; i < abc.length; i++) {\n\t\t\tSystem.out.println(cc + \" : \" + abc[i]);\n\t\t\tcc++;\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String sentence;
int[] abc = new int[26];
while ((sentence = input.readLine()) != null) {
for (int i = 0; i < sentence.length(); i++) {
char c = sentence.charAt(i);
c = Character.toLowerCase(c);
char cc = 'a';
for (int j = 0; j < abc.length; j++) {
if (cc == c)
abc[j]++;
cc++;
}
}
}
char cc = 'a';
for (int i = 0; i < abc.length; i++) {
System.out.println(cc + " : " + abc[i]);
cc++;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
3,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
4,
18,
13,
13,
30,
41,
13,
2,
4,
18,
13,
4,
18,
13,
13,
17,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
40,
13,
17,
18,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
38,
48
],
[
48,
49
],
[
49,
50
],
[
38,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
64,
72
],
[
61,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
14,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
77,
87
],
[
87,
88
],
[
88,
89
],
[
77,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
98,
102
],
[
102,
103
],
[
102,
104
],
[
12,
105
],
[
105,
106
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] alphabet = new int[26];\n\t\tchar a = 'a';\n\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tif(str == null)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0; i<str.length(); i++){\n\t\t\t\tif(Character.isUnicodeIdentifierStart(str.charAt(i))){\n\t\t\t\t\tint num = Character.toLowerCase(str.charAt(i)) - 'a';\n\t\t\t\t\talphabet[num]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0; i<alphabet.length; i++){\n\t\t\tSystem.out.println(a++ + \" : \" + alphabet[i]);\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] alphabet = new int[26];\n\t\tchar a = 'a';\n\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tif(str == null)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0; i<str.length(); i++){\n\t\t\t\tif(Character.isUnicodeIdentifierStart(str.charAt(i))){\n\t\t\t\t\tint num = Character.toLowerCase(str.charAt(i)) - 'a';\n\t\t\t\t\talphabet[num]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0; i<alphabet.length; i++){\n\t\t\tSystem.out.println(a++ + \" : \" + alphabet[i]);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] alphabet = new int[26];\n\t\tchar a = 'a';\n\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tif(str == null)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0; i<str.length(); i++){\n\t\t\t\tif(Character.isUnicodeIdentifierStart(str.charAt(i))){\n\t\t\t\t\tint num = Character.toLowerCase(str.charAt(i)) - 'a';\n\t\t\t\t\talphabet[num]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0; i<alphabet.length; i++){\n\t\t\tSystem.out.println(a++ + \" : \" + alphabet[i]);\n\t\t}\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] alphabet = new int[26];\n\t\tchar a = 'a';\n\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tif(str == null)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0; i<str.length(); i++){\n\t\t\t\tif(Character.isUnicodeIdentifierStart(str.charAt(i))){\n\t\t\t\t\tint num = Character.toLowerCase(str.charAt(i)) - 'a';\n\t\t\t\t\talphabet[num]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0; i<alphabet.length; i++){\n\t\t\tSystem.out.println(a++ + \" : \" + alphabet[i]);\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int[] alphabet = new int[26];",
"alphabet",
"new int[26]",
"26",
"char a = 'a';",
"a",
"'a'",
"while(true){\n\t\t\tString str = br.readLine();\n\t\t\tif(str == null)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0; i<str.length(); i++){\n\t\t\t\tif(Character.isUnicodeIdentifierStart(str.charAt(i))){\n\t\t\t\t\tint num = Character.toLowerCase(str.charAt(i)) - 'a';\n\t\t\t\t\talphabet[num]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tString str = br.readLine();\n\t\t\tif(str == null)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0; i<str.length(); i++){\n\t\t\t\tif(Character.isUnicodeIdentifierStart(str.charAt(i))){\n\t\t\t\t\tint num = Character.toLowerCase(str.charAt(i)) - 'a';\n\t\t\t\t\talphabet[num]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"if(str == null)\n\t\t\t\tbreak;",
"str == null",
"str",
"null",
"break;",
"for(int i=0; i<str.length(); i++){\n\t\t\t\tif(Character.isUnicodeIdentifierStart(str.charAt(i))){\n\t\t\t\t\tint num = Character.toLowerCase(str.charAt(i)) - 'a';\n\t\t\t\t\talphabet[num]++;\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(Character.isUnicodeIdentifierStart(str.charAt(i))){\n\t\t\t\t\tint num = Character.toLowerCase(str.charAt(i)) - 'a';\n\t\t\t\t\talphabet[num]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(Character.isUnicodeIdentifierStart(str.charAt(i))){\n\t\t\t\t\tint num = Character.toLowerCase(str.charAt(i)) - 'a';\n\t\t\t\t\talphabet[num]++;\n\t\t\t\t}\n\t\t\t}",
"if(Character.isUnicodeIdentifierStart(str.charAt(i))){\n\t\t\t\t\tint num = Character.toLowerCase(str.charAt(i)) - 'a';\n\t\t\t\t\talphabet[num]++;\n\t\t\t\t}",
"Character.isUnicodeIdentifierStart(str.charAt(i))",
"Character.isUnicodeIdentifierStart",
"Character",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"{\n\t\t\t\t\tint num = Character.toLowerCase(str.charAt(i)) - 'a';\n\t\t\t\t\talphabet[num]++;\n\t\t\t\t}",
"int num = Character.toLowerCase(str.charAt(i)) - 'a';",
"num",
"Character.toLowerCase(str.charAt(i)) - 'a'",
"Character.toLowerCase(str.charAt(i))",
"Character.toLowerCase",
"Character",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'a'",
"alphabet[num]++",
"alphabet[num]",
"alphabet",
"num",
"for(int i=0; i<alphabet.length; i++){\n\t\t\tSystem.out.println(a++ + \" : \" + alphabet[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<alphabet.length",
"i",
"alphabet.length",
"alphabet",
"alphabet.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(a++ + \" : \" + alphabet[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(a++ + \" : \" + alphabet[i]);\n\t\t}",
"System.out.println(a++ + \" : \" + alphabet[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"a++ + \" : \" + alphabet[i]",
"a++ + \" : \" + alphabet[i]",
"a++",
"a",
"\" : \"",
"alphabet[i]",
"alphabet",
"i",
"String[] args",
"args"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] alphabet = new int[26];
char a = 'a';
while(true){
String str = br.readLine();
if(str == null)
break;
for(int i=0; i<str.length(); i++){
if(Character.isUnicodeIdentifierStart(str.charAt(i))){
int num = Character.toLowerCase(str.charAt(i)) - 'a';
alphabet[num]++;
}
}
}
for(int i=0; i<alphabet.length; i++){
System.out.println(a++ + " : " + alphabet[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
41,
13,
20,
17,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
13,
13,
2,
13,
17,
18,
13,
13,
30,
40,
18,
13,
13,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
143,
5
],
[
143,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
14,
17
],
[
14,
18
],
[
14,
19
],
[
14,
20
],
[
14,
21
],
[
14,
22
],
[
14,
23
],
[
14,
24
],
[
14,
25
],
[
14,
26
],
[
14,
27
],
[
14,
28
],
[
14,
29
],
[
14,
30
],
[
14,
31
],
[
14,
32
],
[
14,
33
],
[
14,
34
],
[
14,
35
],
[
14,
36
],
[
14,
37
],
[
14,
38
],
[
14,
39
],
[
14,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
8,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
66,
76
],
[
76,
77
],
[
77,
78
],
[
66,
79
],
[
80,
80
],
[
80,
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
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
97,
101
],
[
101,
102
],
[
101,
103
],
[
95,
104
],
[
104,
105
],
[
104,
106
],
[
94,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
8,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
132,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
6,
140
],
[
140,
141
],
[
0,
142
],
[
142,
143
],
[
142,
144
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] arr = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\", \"l\",\n \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\", \"w\", \"x\", \"y\", \"z\"};\n int[] ans = new int[26];\n StringBuilder sb = new StringBuilder();\n while(sc.hasNext()) {\n sb.append(sc.next());\n }\n String s = sb.toString().toLowerCase();\n for(int i = 0; i < s.length(); i++) {\n for(int j = 0; j < 26; j++) {\n if(s.substring(i, i + 1).equals(arr[j])) {\n ans[j]++;\n break;\n }\n }\n }\n for(int i = 0; i < 26; i++) {\n System.out.println(arr[i] + \" : \" + ans[i]);\n }\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] arr = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\", \"l\",\n \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\", \"w\", \"x\", \"y\", \"z\"};\n int[] ans = new int[26];\n StringBuilder sb = new StringBuilder();\n while(sc.hasNext()) {\n sb.append(sc.next());\n }\n String s = sb.toString().toLowerCase();\n for(int i = 0; i < s.length(); i++) {\n for(int j = 0; j < 26; j++) {\n if(s.substring(i, i + 1).equals(arr[j])) {\n ans[j]++;\n break;\n }\n }\n }\n for(int i = 0; i < 26; i++) {\n System.out.println(arr[i] + \" : \" + ans[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] arr = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\", \"l\",\n \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\", \"w\", \"x\", \"y\", \"z\"};\n int[] ans = new int[26];\n StringBuilder sb = new StringBuilder();\n while(sc.hasNext()) {\n sb.append(sc.next());\n }\n String s = sb.toString().toLowerCase();\n for(int i = 0; i < s.length(); i++) {\n for(int j = 0; j < 26; j++) {\n if(s.substring(i, i + 1).equals(arr[j])) {\n ans[j]++;\n break;\n }\n }\n }\n for(int i = 0; i < 26; i++) {\n System.out.println(arr[i] + \" : \" + ans[i]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String[] arr = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\", \"l\",\n \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\", \"w\", \"x\", \"y\", \"z\"};\n int[] ans = new int[26];\n StringBuilder sb = new StringBuilder();\n while(sc.hasNext()) {\n sb.append(sc.next());\n }\n String s = sb.toString().toLowerCase();\n for(int i = 0; i < s.length(); i++) {\n for(int j = 0; j < 26; j++) {\n if(s.substring(i, i + 1).equals(arr[j])) {\n ans[j]++;\n break;\n }\n }\n }\n for(int i = 0; i < 26; i++) {\n System.out.println(arr[i] + \" : \" + ans[i]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] arr = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\", \"l\",\n \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\", \"w\", \"x\", \"y\", \"z\"};",
"arr",
"{\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\", \"l\",\n \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\", \"w\", \"x\", \"y\", \"z\"}",
"\"a\"",
"\"b\"",
"\"c\"",
"\"d\"",
"\"e\"",
"\"f\"",
"\"g\"",
"\"h\"",
"\"i\"",
"\"j\"",
"\"k\"",
"\"l\"",
"\"m\"",
"\"n\"",
"\"o\"",
"\"p\"",
"\"q\"",
"\"r\"",
"\"s\"",
"\"t\"",
"\"u\"",
"\"v\"",
"\"w\"",
"\"x\"",
"\"y\"",
"\"z\"",
"int[] ans = new int[26];",
"ans",
"new int[26]",
"26",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while(sc.hasNext()) {\n sb.append(sc.next());\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n sb.append(sc.next());\n }",
"sb.append(sc.next())",
"sb.append",
"sb",
"sc.next()",
"sc.next",
"sc",
"String s = sb.toString().toLowerCase();",
"s",
"sb.toString().toLowerCase()",
"sb.toString().toLowerCase",
"sb.toString()",
"sb.toString",
"sb",
"for(int i = 0; i < s.length(); i++) {\n for(int j = 0; j < 26; j++) {\n if(s.substring(i, i + 1).equals(arr[j])) {\n ans[j]++;\n break;\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < 26; j++) {\n if(s.substring(i, i + 1).equals(arr[j])) {\n ans[j]++;\n break;\n }\n }\n }",
"{\n for(int j = 0; j < 26; j++) {\n if(s.substring(i, i + 1).equals(arr[j])) {\n ans[j]++;\n break;\n }\n }\n }",
"for(int j = 0; j < 26; j++) {\n if(s.substring(i, i + 1).equals(arr[j])) {\n ans[j]++;\n break;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n if(s.substring(i, i + 1).equals(arr[j])) {\n ans[j]++;\n break;\n }\n }",
"{\n if(s.substring(i, i + 1).equals(arr[j])) {\n ans[j]++;\n break;\n }\n }",
"if(s.substring(i, i + 1).equals(arr[j])) {\n ans[j]++;\n break;\n }",
"s.substring(i, i + 1).equals(arr[j])",
"s.substring(i, i + 1).equals",
"s.substring(i, i + 1)",
"s.substring",
"s",
"i",
"i + 1",
"i",
"1",
"arr[j]",
"arr",
"j",
"{\n ans[j]++;\n break;\n }",
"ans[j]++",
"ans[j]",
"ans",
"j",
"break;",
"for(int i = 0; i < 26; i++) {\n System.out.println(arr[i] + \" : \" + ans[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println(arr[i] + \" : \" + ans[i]);\n }",
"{\n System.out.println(arr[i] + \" : \" + ans[i]);\n }",
"System.out.println(arr[i] + \" : \" + ans[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"arr[i] + \" : \" + ans[i]",
"arr[i] + \" : \" + ans[i]",
"arr[i]",
"arr",
"i",
"\" : \"",
"ans[i]",
"ans",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] arr = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\", \"l\",\n \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\", \"w\", \"x\", \"y\", \"z\"};\n int[] ans = new int[26];\n StringBuilder sb = new StringBuilder();\n while(sc.hasNext()) {\n sb.append(sc.next());\n }\n String s = sb.toString().toLowerCase();\n for(int i = 0; i < s.length(); i++) {\n for(int j = 0; j < 26; j++) {\n if(s.substring(i, i + 1).equals(arr[j])) {\n ans[j]++;\n break;\n }\n }\n }\n for(int i = 0; i < 26; i++) {\n System.out.println(arr[i] + \" : \" + ans[i]);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] arr = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\", \"l\",\n \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\", \"w\", \"x\", \"y\", \"z\"};\n int[] ans = new int[26];\n StringBuilder sb = new StringBuilder();\n while(sc.hasNext()) {\n sb.append(sc.next());\n }\n String s = sb.toString().toLowerCase();\n for(int i = 0; i < s.length(); i++) {\n for(int j = 0; j < 26; j++) {\n if(s.substring(i, i + 1).equals(arr[j])) {\n ans[j]++;\n break;\n }\n }\n }\n for(int i = 0; i < 26; i++) {\n System.out.println(arr[i] + \" : \" + ans[i]);\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] arr = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l",
"m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"};
int[] ans = new int[26];
StringBuilder sb = new StringBuilder();
while(sc.hasNext()) {
sb.append(sc.next());
}
String s = sb.toString().toLowerCase();
for(int i = 0; i < s.length(); i++) {
for(int j = 0; j < 26; j++) {
if(s.substring(i, i + 1).equals(arr[j])) {
ans[j]++;
break;
}
}
}
for(int i = 0; i < 26; i++) {
System.out.println(arr[i] + " : " + ans[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
2,
13,
17,
13,
41,
13,
20,
17,
41,
13,
20,
41,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
4,
18,
13,
13,
17,
17,
2,
17,
2,
4,
18,
13,
13,
17,
40,
18,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
126,
5
],
[
126,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
13
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
13,
18
],
[
18,
19
],
[
18,
20
],
[
13,
21
],
[
21,
22
],
[
22,
23
],
[
13,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
25,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
54,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
72,
77
],
[
71,
78
],
[
70,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
81,
86
],
[
69,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
6,
123
],
[
123,
124
],
[
0,
125
],
[
125,
126
],
[
125,
127
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tchar[] abc = new char[26];\n\t\tfor(char i = 'a';i <= 'z';i++) abc[i - 'a'] = i;\n\n\t\tint[] count = new int[26];\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\twhile(sc.hasNext()){\n\t\t\tinput += sc.nextLine().toLowerCase();\n\t\t}\n\n\t\tfor(int i = 0;i < input.length();i++){\n\t\t\tif(input.charAt(i) - 'a' < 26 && 0 <= input.charAt(i) - 'a')\n\t\t\t\tcount[input.charAt(i) - 'a']++;\n\t\t}\n\n\t\tfor(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(abc[i] + \" : \" + count[i]);\n\t\t}\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tchar[] abc = new char[26];\n\t\tfor(char i = 'a';i <= 'z';i++) abc[i - 'a'] = i;\n\n\t\tint[] count = new int[26];\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\twhile(sc.hasNext()){\n\t\t\tinput += sc.nextLine().toLowerCase();\n\t\t}\n\n\t\tfor(int i = 0;i < input.length();i++){\n\t\t\tif(input.charAt(i) - 'a' < 26 && 0 <= input.charAt(i) - 'a')\n\t\t\t\tcount[input.charAt(i) - 'a']++;\n\t\t}\n\n\t\tfor(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(abc[i] + \" : \" + count[i]);\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tchar[] abc = new char[26];\n\t\tfor(char i = 'a';i <= 'z';i++) abc[i - 'a'] = i;\n\n\t\tint[] count = new int[26];\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\twhile(sc.hasNext()){\n\t\t\tinput += sc.nextLine().toLowerCase();\n\t\t}\n\n\t\tfor(int i = 0;i < input.length();i++){\n\t\t\tif(input.charAt(i) - 'a' < 26 && 0 <= input.charAt(i) - 'a')\n\t\t\t\tcount[input.charAt(i) - 'a']++;\n\t\t}\n\n\t\tfor(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(abc[i] + \" : \" + count[i]);\n\t\t}\n\n\t}",
"main",
"{\n\t\tchar[] abc = new char[26];\n\t\tfor(char i = 'a';i <= 'z';i++) abc[i - 'a'] = i;\n\n\t\tint[] count = new int[26];\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\twhile(sc.hasNext()){\n\t\t\tinput += sc.nextLine().toLowerCase();\n\t\t}\n\n\t\tfor(int i = 0;i < input.length();i++){\n\t\t\tif(input.charAt(i) - 'a' < 26 && 0 <= input.charAt(i) - 'a')\n\t\t\t\tcount[input.charAt(i) - 'a']++;\n\t\t}\n\n\t\tfor(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(abc[i] + \" : \" + count[i]);\n\t\t}\n\n\t}",
"char[] abc = new char[26];",
"abc",
"new char[26]",
"26",
"for(char i = 'a';i <= 'z';i++) abc[i - 'a'] = i;",
"char i = 'a';",
"char i = 'a';",
"i",
"'a'",
"i <= 'z'",
"i",
"'z'",
"i++",
"i++",
"i",
"abc[i - 'a'] = i;",
"abc[i - 'a'] = i",
"abc[i - 'a']",
"abc",
"i - 'a'",
"i",
"'a'",
"i",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String input = \"\";",
"input",
"\"\"",
"while(sc.hasNext()){\n\t\t\tinput += sc.nextLine().toLowerCase();\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tinput += sc.nextLine().toLowerCase();\n\t\t}",
"input += sc.nextLine().toLowerCase()",
"input",
"sc.nextLine().toLowerCase()",
"sc.nextLine().toLowerCase",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int i = 0;i < input.length();i++){\n\t\t\tif(input.charAt(i) - 'a' < 26 && 0 <= input.charAt(i) - 'a')\n\t\t\t\tcount[input.charAt(i) - 'a']++;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < input.length()",
"i",
"input.length()",
"input.length",
"input",
"i++",
"i++",
"i",
"{\n\t\t\tif(input.charAt(i) - 'a' < 26 && 0 <= input.charAt(i) - 'a')\n\t\t\t\tcount[input.charAt(i) - 'a']++;\n\t\t}",
"{\n\t\t\tif(input.charAt(i) - 'a' < 26 && 0 <= input.charAt(i) - 'a')\n\t\t\t\tcount[input.charAt(i) - 'a']++;\n\t\t}",
"if(input.charAt(i) - 'a' < 26 && 0 <= input.charAt(i) - 'a')\n\t\t\t\tcount[input.charAt(i) - 'a']++;",
"input.charAt(i) - 'a' < 26 && 0 <= input.charAt(i) - 'a'",
"input.charAt(i) - 'a' < 26",
"input.charAt(i) - 'a'",
"input.charAt(i)",
"input.charAt",
"input",
"i",
"'a'",
"26",
"0 <= input.charAt(i) - 'a'",
"0",
"input.charAt(i) - 'a'",
"input.charAt(i)",
"input.charAt",
"input",
"i",
"'a'",
"count[input.charAt(i) - 'a']++",
"count[input.charAt(i) - 'a']",
"count",
"input.charAt(i) - 'a'",
"input.charAt(i)",
"input.charAt",
"input",
"i",
"'a'",
"for(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(abc[i] + \" : \" + count[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(abc[i] + \" : \" + count[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(abc[i] + \" : \" + count[i]);\n\t\t}",
"System.out.println(abc[i] + \" : \" + count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"abc[i] + \" : \" + count[i]",
"abc[i] + \" : \" + count[i]",
"abc[i]",
"abc",
"i",
"\" : \"",
"count[i]",
"count",
"i",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tchar[] abc = new char[26];\n\t\tfor(char i = 'a';i <= 'z';i++) abc[i - 'a'] = i;\n\n\t\tint[] count = new int[26];\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\twhile(sc.hasNext()){\n\t\t\tinput += sc.nextLine().toLowerCase();\n\t\t}\n\n\t\tfor(int i = 0;i < input.length();i++){\n\t\t\tif(input.charAt(i) - 'a' < 26 && 0 <= input.charAt(i) - 'a')\n\t\t\t\tcount[input.charAt(i) - 'a']++;\n\t\t}\n\n\t\tfor(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(abc[i] + \" : \" + count[i]);\n\t\t}\n\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tchar[] abc = new char[26];\n\t\tfor(char i = 'a';i <= 'z';i++) abc[i - 'a'] = i;\n\n\t\tint[] count = new int[26];\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\twhile(sc.hasNext()){\n\t\t\tinput += sc.nextLine().toLowerCase();\n\t\t}\n\n\t\tfor(int i = 0;i < input.length();i++){\n\t\t\tif(input.charAt(i) - 'a' < 26 && 0 <= input.charAt(i) - 'a')\n\t\t\t\tcount[input.charAt(i) - 'a']++;\n\t\t}\n\n\t\tfor(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(abc[i] + \" : \" + count[i]);\n\t\t}\n\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
char[] abc = new char[26];
for(char i = 'a';i <= 'z';i++) abc[i - 'a'] = i;
int[] count = new int[26];
Scanner sc = new Scanner(System.in);
String input = "";
while(sc.hasNext()){
input += sc.nextLine().toLowerCase();
}
for(int i = 0;i < input.length();i++){
if(input.charAt(i) - 'a' < 26 && 0 <= input.charAt(i) - 'a')
count[input.charAt(i) - 'a']++;
}
for(int i = 0;i < 26;i++){
System.out.println(abc[i] + " : " + count[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
13,
30,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
32,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
60,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
97,
102
],
[
97,
103
],
[
103,
104
],
[
103,
105
],
[
6,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = \"\";\n\t\tString alp = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint ans[] = new int[26];\n\t\twhile(sc.hasNext()) {\n\t\t\ts =sc.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alp.charAt(i) + \" : \" + ans[i]);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = \"\";\n\t\tString alp = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint ans[] = new int[26];\n\t\twhile(sc.hasNext()) {\n\t\t\ts =sc.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alp.charAt(i) + \" : \" + ans[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = \"\";\n\t\tString alp = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint ans[] = new int[26];\n\t\twhile(sc.hasNext()) {\n\t\t\ts =sc.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alp.charAt(i) + \" : \" + ans[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = \"\";\n\t\tString alp = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint ans[] = new int[26];\n\t\twhile(sc.hasNext()) {\n\t\t\ts =sc.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alp.charAt(i) + \" : \" + ans[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = \"\";",
"s",
"\"\"",
"String alp = \"abcdefghijklmnopqrstuvwxyz\";",
"alp",
"\"abcdefghijklmnopqrstuvwxyz\"",
"int ans[] = new int[26];",
"ans",
"new int[26]",
"26",
"while(sc.hasNext()) {\n\t\t\ts =sc.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\ts =sc.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"s =sc.nextLine()",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int i = 0; i < s.length(); i++) {\n\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for (int j = 0; j < 26; j++) {\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}",
"Character.toLowerCase(s.charAt(i)) == alp.charAt(j)",
"Character.toLowerCase(s.charAt(i))",
"Character.toLowerCase",
"Character",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"alp.charAt(j)",
"alp.charAt",
"alp",
"j",
"{\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}",
"ans[j]++",
"ans[j]",
"ans",
"j",
"for (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alp.charAt(i) + \" : \" + ans[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(alp.charAt(i) + \" : \" + ans[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(alp.charAt(i) + \" : \" + ans[i]);\n\t\t}",
"System.out.println(alp.charAt(i) + \" : \" + ans[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alp.charAt(i) + \" : \" + ans[i]",
"alp.charAt(i) + \" : \" + ans[i]",
"alp.charAt(i)",
"alp.charAt",
"alp",
"i",
"\" : \"",
"ans[i]",
"ans",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = \"\";\n\t\tString alp = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint ans[] = new int[26];\n\t\twhile(sc.hasNext()) {\n\t\t\ts =sc.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alp.charAt(i) + \" : \" + ans[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = \"\";\n\t\tString alp = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint ans[] = new int[26];\n\t\twhile(sc.hasNext()) {\n\t\t\ts =sc.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\tif (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(alp.charAt(i) + \" : \" + ans[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = "";
String alp = "abcdefghijklmnopqrstuvwxyz";
int ans[] = new int[26];
while(sc.hasNext()) {
s =sc.nextLine();
for (int i = 0; i < s.length(); i++) {
for (int j = 0; j < 26; j++) {
if (Character.toLowerCase(s.charAt(i)) == alp.charAt(j)) {
ans[j]++;
}
}
}
}
for (int i = 0; i < 26; i++) {
System.out.println(alp.charAt(i) + " : " + ans[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
41,
13,
20,
17,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
17,
9,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
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
],
[
585,
11
],
[
585,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
24,
27
],
[
24,
28
],
[
24,
29
],
[
24,
30
],
[
24,
31
],
[
24,
32
],
[
24,
33
],
[
24,
34
],
[
24,
35
],
[
24,
36
],
[
24,
37
],
[
24,
38
],
[
24,
39
],
[
24,
40
],
[
24,
41
],
[
24,
42
],
[
24,
43
],
[
24,
44
],
[
24,
45
],
[
24,
46
],
[
24,
47
],
[
24,
48
],
[
24,
49
],
[
24,
50
],
[
14,
51
],
[
51,
52
],
[
51,
53
],
[
14,
55
],
[
55,
56
],
[
14,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
71,
81
],
[
81,
82
],
[
82,
83
],
[
71,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
86,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
86,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
104,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
104,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
123,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
122,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
122,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
141,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
140,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
140,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
159,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
158,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
158,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
177,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
176,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
188,
193
],
[
176,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
195,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
194,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
206,
211
],
[
194,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
213,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
212,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
224,
229
],
[
212,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
232,
236
],
[
231,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
237,
241
],
[
230,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
242,
247
],
[
230,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
254
],
[
249,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
248,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
260,
265
],
[
248,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
268,
272
],
[
267,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
277
],
[
266,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
278,
283
],
[
266,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
290
],
[
285,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
291,
295
],
[
284,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
296,
301
],
[
284,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
304,
308
],
[
303,
309
],
[
309,
310
],
[
310,
311
],
[
310,
312
],
[
309,
313
],
[
302,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
314,
319
],
[
302,
320
],
[
320,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
322,
326
],
[
321,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
327,
331
],
[
320,
332
],
[
332,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
332,
337
],
[
320,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
340,
344
],
[
339,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
345,
349
],
[
338,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
350,
355
],
[
338,
356
],
[
356,
357
],
[
357,
358
],
[
358,
359
],
[
359,
360
],
[
359,
361
],
[
358,
362
],
[
357,
363
],
[
363,
364
],
[
364,
365
],
[
364,
366
],
[
363,
367
],
[
356,
368
],
[
368,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
368,
373
],
[
356,
374
],
[
374,
375
],
[
375,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
376,
380
],
[
375,
381
],
[
381,
382
],
[
382,
383
],
[
382,
384
],
[
381,
385
],
[
374,
386
],
[
386,
387
],
[
387,
388
],
[
388,
389
],
[
388,
390
],
[
386,
391
],
[
374,
392
],
[
392,
393
],
[
393,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
394,
398
],
[
393,
399
],
[
399,
400
],
[
400,
401
],
[
400,
402
],
[
399,
403
],
[
392,
404
],
[
404,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
404,
409
],
[
392,
410
],
[
410,
411
],
[
411,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
412,
416
],
[
411,
417
],
[
417,
418
],
[
418,
419
],
[
418,
420
],
[
417,
421
],
[
410,
422
],
[
422,
423
],
[
423,
424
],
[
424,
425
],
[
424,
426
],
[
422,
427
],
[
410,
428
],
[
428,
429
],
[
429,
430
],
[
430,
431
],
[
431,
432
],
[
431,
433
],
[
430,
434
],
[
429,
435
],
[
435,
436
],
[
436,
437
],
[
436,
438
],
[
435,
439
],
[
428,
440
],
[
440,
441
],
[
441,
442
],
[
442,
443
],
[
442,
444
],
[
440,
445
],
[
428,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
449,
450
],
[
449,
451
],
[
448,
452
],
[
447,
453
],
[
453,
454
],
[
454,
455
],
[
454,
456
],
[
453,
457
],
[
446,
458
],
[
458,
459
],
[
459,
460
],
[
460,
461
],
[
460,
462
],
[
458,
463
],
[
446,
464
],
[
464,
465
],
[
465,
466
],
[
466,
467
],
[
467,
468
],
[
467,
469
],
[
466,
470
],
[
465,
471
],
[
471,
472
],
[
472,
473
],
[
472,
474
],
[
471,
475
],
[
464,
476
],
[
476,
477
],
[
477,
478
],
[
478,
479
],
[
478,
480
],
[
476,
481
],
[
464,
482
],
[
482,
483
],
[
483,
484
],
[
484,
485
],
[
485,
486
],
[
485,
487
],
[
484,
488
],
[
483,
489
],
[
489,
490
],
[
490,
491
],
[
490,
492
],
[
489,
493
],
[
482,
494
],
[
494,
495
],
[
495,
496
],
[
496,
497
],
[
496,
498
],
[
494,
499
],
[
482,
500
],
[
500,
501
],
[
501,
502
],
[
502,
503
],
[
503,
504
],
[
503,
505
],
[
502,
506
],
[
501,
507
],
[
507,
508
],
[
508,
509
],
[
508,
510
],
[
507,
511
],
[
500,
512
],
[
512,
513
],
[
513,
514
],
[
514,
515
],
[
514,
516
],
[
512,
517
],
[
500,
518
],
[
518,
519
],
[
519,
520
],
[
520,
521
],
[
521,
522
],
[
521,
523
],
[
520,
524
],
[
519,
525
],
[
525,
526
],
[
526,
527
],
[
526,
528
],
[
525,
529
],
[
518,
530
],
[
530,
531
],
[
531,
532
],
[
532,
533
],
[
532,
534
],
[
530,
535
],
[
518,
536
],
[
536,
537
],
[
537,
538
],
[
538,
539
],
[
539,
540
],
[
539,
541
],
[
538,
542
],
[
537,
543
],
[
543,
544
],
[
544,
545
],
[
544,
546
],
[
543,
547
],
[
536,
548
],
[
548,
549
],
[
549,
550
],
[
550,
551
],
[
550,
552
],
[
548,
553
],
[
14,
554
],
[
554,
555
],
[
555,
556
],
[
556,
557
],
[
556,
558
],
[
554,
559
],
[
559,
560
],
[
559,
561
],
[
561,
562
],
[
561,
563
],
[
554,
564
],
[
564,
565
],
[
565,
566
],
[
554,
567
],
[
567,
568
],
[
568,
569
],
[
569,
570
],
[
570,
571
],
[
570,
572
],
[
568,
573
],
[
574,
574
],
[
574,
575
],
[
575,
576
],
[
575,
577
],
[
574,
578
],
[
574,
579
],
[
579,
580
],
[
579,
581
],
[
12,
582
],
[
582,
583
],
[
0,
584
],
[
584,
585
],
[
584,
586
]
]
| [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\t// ex : This is a pen.\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// input sample\n\t\tint[] cntAlpha = new int[26];\n\t\tchar[] alpha = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',\n\t\t\t\t't', 'u', 'v', 'w', 'x', 'y', 'z' };\n\t\tchar[] firstInput = new char[' '];\n\t\tString str;\n\n\t\t// break condition\n\t\twhile ((str = br.readLine()) != null) {\n\n\t\t\tfirstInput =str.toCharArray(); // Error\n\n\t\t\tfor (int i = 0; i < firstInput.length; i++) {\n\t\t\t\t// ex : This is a pen.\n\t\t\t\t// split the Alpha\n\t\t\t\tif (firstInput[i] == 'a' || firstInput[i] == 'A') {\n\t\t\t\t\tcntAlpha[0]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'b' || firstInput[i] == 'B') {\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tfor (int i = 0; i < cntAlpha.length; i++)\n\t\t\t\tSystem.out.println(alpha[i] + \" : \" + cntAlpha[i]);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\t// ex : This is a pen.\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// input sample\n\t\tint[] cntAlpha = new int[26];\n\t\tchar[] alpha = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',\n\t\t\t\t't', 'u', 'v', 'w', 'x', 'y', 'z' };\n\t\tchar[] firstInput = new char[' '];\n\t\tString str;\n\n\t\t// break condition\n\t\twhile ((str = br.readLine()) != null) {\n\n\t\t\tfirstInput =str.toCharArray(); // Error\n\n\t\t\tfor (int i = 0; i < firstInput.length; i++) {\n\t\t\t\t// ex : This is a pen.\n\t\t\t\t// split the Alpha\n\t\t\t\tif (firstInput[i] == 'a' || firstInput[i] == 'A') {\n\t\t\t\t\tcntAlpha[0]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'b' || firstInput[i] == 'B') {\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tfor (int i = 0; i < cntAlpha.length; i++)\n\t\t\t\tSystem.out.println(alpha[i] + \" : \" + cntAlpha[i]);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\t// ex : This is a pen.\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// input sample\n\t\tint[] cntAlpha = new int[26];\n\t\tchar[] alpha = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',\n\t\t\t\t't', 'u', 'v', 'w', 'x', 'y', 'z' };\n\t\tchar[] firstInput = new char[' '];\n\t\tString str;\n\n\t\t// break condition\n\t\twhile ((str = br.readLine()) != null) {\n\n\t\t\tfirstInput =str.toCharArray(); // Error\n\n\t\t\tfor (int i = 0; i < firstInput.length; i++) {\n\t\t\t\t// ex : This is a pen.\n\t\t\t\t// split the Alpha\n\t\t\t\tif (firstInput[i] == 'a' || firstInput[i] == 'A') {\n\t\t\t\t\tcntAlpha[0]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'b' || firstInput[i] == 'B') {\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tfor (int i = 0; i < cntAlpha.length; i++)\n\t\t\t\tSystem.out.println(alpha[i] + \" : \" + cntAlpha[i]);\n\t}",
"main",
"{\n\n\t\t// ex : This is a pen.\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// input sample\n\t\tint[] cntAlpha = new int[26];\n\t\tchar[] alpha = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',\n\t\t\t\t't', 'u', 'v', 'w', 'x', 'y', 'z' };\n\t\tchar[] firstInput = new char[' '];\n\t\tString str;\n\n\t\t// break condition\n\t\twhile ((str = br.readLine()) != null) {\n\n\t\t\tfirstInput =str.toCharArray(); // Error\n\n\t\t\tfor (int i = 0; i < firstInput.length; i++) {\n\t\t\t\t// ex : This is a pen.\n\t\t\t\t// split the Alpha\n\t\t\t\tif (firstInput[i] == 'a' || firstInput[i] == 'A') {\n\t\t\t\t\tcntAlpha[0]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'b' || firstInput[i] == 'B') {\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tfor (int i = 0; i < cntAlpha.length; i++)\n\t\t\t\tSystem.out.println(alpha[i] + \" : \" + cntAlpha[i]);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int[] cntAlpha = new int[26];",
"cntAlpha",
"new int[26]",
"26",
"char[] alpha = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',\n\t\t\t\t't', 'u', 'v', 'w', 'x', 'y', 'z' };",
"alpha",
"{ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',\n\t\t\t\t't', 'u', 'v', 'w', 'x', 'y', 'z' }",
"'a'",
"'b'",
"'c'",
"'d'",
"'e'",
"'f'",
"'g'",
"'h'",
"'i'",
"'j'",
"'k'",
"'l'",
"'m'",
"'n'",
"'o'",
"'p'",
"'q'",
"'r'",
"'s'",
"'t'",
"'u'",
"'v'",
"'w'",
"'x'",
"'y'",
"'z'",
"char[] firstInput = new char[' '];",
"firstInput",
"new char[' ']",
"' '",
"String str;",
"str",
"while ((str = br.readLine()) != null) {\n\n\t\t\tfirstInput =str.toCharArray(); // Error\n\n\t\t\tfor (int i = 0; i < firstInput.length; i++) {\n\t\t\t\t// ex : This is a pen.\n\t\t\t\t// split the Alpha\n\t\t\t\tif (firstInput[i] == 'a' || firstInput[i] == 'A') {\n\t\t\t\t\tcntAlpha[0]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'b' || firstInput[i] == 'B') {\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"(str = br.readLine()) != null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\n\t\t\tfirstInput =str.toCharArray(); // Error\n\n\t\t\tfor (int i = 0; i < firstInput.length; i++) {\n\t\t\t\t// ex : This is a pen.\n\t\t\t\t// split the Alpha\n\t\t\t\tif (firstInput[i] == 'a' || firstInput[i] == 'A') {\n\t\t\t\t\tcntAlpha[0]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'b' || firstInput[i] == 'B') {\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"firstInput =str.toCharArray()",
"firstInput",
"str.toCharArray()",
"str.toCharArray",
"str",
"for (int i = 0; i < firstInput.length; i++) {\n\t\t\t\t// ex : This is a pen.\n\t\t\t\t// split the Alpha\n\t\t\t\tif (firstInput[i] == 'a' || firstInput[i] == 'A') {\n\t\t\t\t\tcntAlpha[0]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'b' || firstInput[i] == 'B') {\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < firstInput.length",
"i",
"firstInput.length",
"firstInput",
"firstInput.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t// ex : This is a pen.\n\t\t\t\t// split the Alpha\n\t\t\t\tif (firstInput[i] == 'a' || firstInput[i] == 'A') {\n\t\t\t\t\tcntAlpha[0]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'b' || firstInput[i] == 'B') {\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\t// ex : This is a pen.\n\t\t\t\t// split the Alpha\n\t\t\t\tif (firstInput[i] == 'a' || firstInput[i] == 'A') {\n\t\t\t\t\tcntAlpha[0]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'b' || firstInput[i] == 'B') {\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}",
"if (firstInput[i] == 'a' || firstInput[i] == 'A') {\n\t\t\t\t\tcntAlpha[0]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'b' || firstInput[i] == 'B') {\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'a' || firstInput[i] == 'A'",
"firstInput[i] == 'a'",
"firstInput[i]",
"firstInput",
"i",
"'a'",
"firstInput[i] == 'A'",
"firstInput[i]",
"firstInput",
"i",
"'A'",
"{\n\t\t\t\t\tcntAlpha[0]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[0]++",
"cntAlpha[0]",
"cntAlpha",
"0",
"continue;",
"if (firstInput[i] == 'b' || firstInput[i] == 'B') {\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'b' || firstInput[i] == 'B'",
"firstInput[i] == 'b'",
"firstInput[i]",
"firstInput",
"i",
"'b'",
"firstInput[i] == 'B'",
"firstInput[i]",
"firstInput",
"i",
"'B'",
"{\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[1]++",
"cntAlpha[1]",
"cntAlpha",
"1",
"continue;",
"if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'c' || firstInput[i] == 'C'",
"firstInput[i] == 'c'",
"firstInput[i]",
"firstInput",
"i",
"'c'",
"firstInput[i] == 'C'",
"firstInput[i]",
"firstInput",
"i",
"'C'",
"{\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[2]++",
"cntAlpha[2]",
"cntAlpha",
"2",
"continue;",
"if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'd' || firstInput[i] == 'D'",
"firstInput[i] == 'd'",
"firstInput[i]",
"firstInput",
"i",
"'d'",
"firstInput[i] == 'D'",
"firstInput[i]",
"firstInput",
"i",
"'D'",
"{\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[3]++",
"cntAlpha[3]",
"cntAlpha",
"3",
"continue;",
"if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'e' || firstInput[i] == 'E'",
"firstInput[i] == 'e'",
"firstInput[i]",
"firstInput",
"i",
"'e'",
"firstInput[i] == 'E'",
"firstInput[i]",
"firstInput",
"i",
"'E'",
"{\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[4]++",
"cntAlpha[4]",
"cntAlpha",
"4",
"continue;",
"if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'f' || firstInput[i] == 'F'",
"firstInput[i] == 'f'",
"firstInput[i]",
"firstInput",
"i",
"'f'",
"firstInput[i] == 'F'",
"firstInput[i]",
"firstInput",
"i",
"'F'",
"{\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[5]++",
"cntAlpha[5]",
"cntAlpha",
"5",
"continue;",
"if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'g' || firstInput[i] == 'G'",
"firstInput[i] == 'g'",
"firstInput[i]",
"firstInput",
"i",
"'g'",
"firstInput[i] == 'G'",
"firstInput[i]",
"firstInput",
"i",
"'G'",
"{\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[6]++",
"cntAlpha[6]",
"cntAlpha",
"6",
"continue;",
"if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'h' || firstInput[i] == 'H'",
"firstInput[i] == 'h'",
"firstInput[i]",
"firstInput",
"i",
"'h'",
"firstInput[i] == 'H'",
"firstInput[i]",
"firstInput",
"i",
"'H'",
"{\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[7]++",
"cntAlpha[7]",
"cntAlpha",
"7",
"continue;",
"if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'i' || firstInput[i] == 'I'",
"firstInput[i] == 'i'",
"firstInput[i]",
"firstInput",
"i",
"'i'",
"firstInput[i] == 'I'",
"firstInput[i]",
"firstInput",
"i",
"'I'",
"{\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[8]++",
"cntAlpha[8]",
"cntAlpha",
"8",
"continue;",
"if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'j' || firstInput[i] == 'J'",
"firstInput[i] == 'j'",
"firstInput[i]",
"firstInput",
"i",
"'j'",
"firstInput[i] == 'J'",
"firstInput[i]",
"firstInput",
"i",
"'J'",
"{\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[9]++",
"cntAlpha[9]",
"cntAlpha",
"9",
"continue;",
"if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'k' || firstInput[i] == 'K'",
"firstInput[i] == 'k'",
"firstInput[i]",
"firstInput",
"i",
"'k'",
"firstInput[i] == 'K'",
"firstInput[i]",
"firstInput",
"i",
"'K'",
"{\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[10]++",
"cntAlpha[10]",
"cntAlpha",
"10",
"continue;",
"if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'l' || firstInput[i] == 'L'",
"firstInput[i] == 'l'",
"firstInput[i]",
"firstInput",
"i",
"'l'",
"firstInput[i] == 'L'",
"firstInput[i]",
"firstInput",
"i",
"'L'",
"{\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[11]++",
"cntAlpha[11]",
"cntAlpha",
"11",
"continue;",
"if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'm' || firstInput[i] == 'M'",
"firstInput[i] == 'm'",
"firstInput[i]",
"firstInput",
"i",
"'m'",
"firstInput[i] == 'M'",
"firstInput[i]",
"firstInput",
"i",
"'M'",
"{\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[12]++",
"cntAlpha[12]",
"cntAlpha",
"12",
"continue;",
"if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'n' || firstInput[i] == 'N'",
"firstInput[i] == 'n'",
"firstInput[i]",
"firstInput",
"i",
"'n'",
"firstInput[i] == 'N'",
"firstInput[i]",
"firstInput",
"i",
"'N'",
"{\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[13]++",
"cntAlpha[13]",
"cntAlpha",
"13",
"continue;",
"if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'o' || firstInput[i] == 'O'",
"firstInput[i] == 'o'",
"firstInput[i]",
"firstInput",
"i",
"'o'",
"firstInput[i] == 'O'",
"firstInput[i]",
"firstInput",
"i",
"'O'",
"{\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[14]++",
"cntAlpha[14]",
"cntAlpha",
"14",
"continue;",
"if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'p' || firstInput[i] == 'P'",
"firstInput[i] == 'p'",
"firstInput[i]",
"firstInput",
"i",
"'p'",
"firstInput[i] == 'P'",
"firstInput[i]",
"firstInput",
"i",
"'P'",
"{\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[15]++",
"cntAlpha[15]",
"cntAlpha",
"15",
"continue;",
"if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'q' || firstInput[i] == 'Q'",
"firstInput[i] == 'q'",
"firstInput[i]",
"firstInput",
"i",
"'q'",
"firstInput[i] == 'Q'",
"firstInput[i]",
"firstInput",
"i",
"'Q'",
"{\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[16]++",
"cntAlpha[16]",
"cntAlpha",
"16",
"continue;",
"if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'r' || firstInput[i] == 'R'",
"firstInput[i] == 'r'",
"firstInput[i]",
"firstInput",
"i",
"'r'",
"firstInput[i] == 'R'",
"firstInput[i]",
"firstInput",
"i",
"'R'",
"{\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[17]++",
"cntAlpha[17]",
"cntAlpha",
"17",
"continue;",
"if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 's' || firstInput[i] == 'S'",
"firstInput[i] == 's'",
"firstInput[i]",
"firstInput",
"i",
"'s'",
"firstInput[i] == 'S'",
"firstInput[i]",
"firstInput",
"i",
"'S'",
"{\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[18]++",
"cntAlpha[18]",
"cntAlpha",
"18",
"continue;",
"if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 't' || firstInput[i] == 'T'",
"firstInput[i] == 't'",
"firstInput[i]",
"firstInput",
"i",
"'t'",
"firstInput[i] == 'T'",
"firstInput[i]",
"firstInput",
"i",
"'T'",
"{\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[19]++",
"cntAlpha[19]",
"cntAlpha",
"19",
"continue;",
"if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'u' || firstInput[i] == 'U'",
"firstInput[i] == 'u'",
"firstInput[i]",
"firstInput",
"i",
"'u'",
"firstInput[i] == 'U'",
"firstInput[i]",
"firstInput",
"i",
"'U'",
"{\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[20]++",
"cntAlpha[20]",
"cntAlpha",
"20",
"continue;",
"if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'v' || firstInput[i] == 'V'",
"firstInput[i] == 'v'",
"firstInput[i]",
"firstInput",
"i",
"'v'",
"firstInput[i] == 'V'",
"firstInput[i]",
"firstInput",
"i",
"'V'",
"{\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[21]++",
"cntAlpha[21]",
"cntAlpha",
"21",
"continue;",
"if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'w' || firstInput[i] == 'W'",
"firstInput[i] == 'w'",
"firstInput[i]",
"firstInput",
"i",
"'w'",
"firstInput[i] == 'W'",
"firstInput[i]",
"firstInput",
"i",
"'W'",
"{\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[22]++",
"cntAlpha[22]",
"cntAlpha",
"22",
"continue;",
"if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'x' || firstInput[i] == 'X'",
"firstInput[i] == 'x'",
"firstInput[i]",
"firstInput",
"i",
"'x'",
"firstInput[i] == 'X'",
"firstInput[i]",
"firstInput",
"i",
"'X'",
"{\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[23]++",
"cntAlpha[23]",
"cntAlpha",
"23",
"continue;",
"if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'y' || firstInput[i] == 'Y'",
"firstInput[i] == 'y'",
"firstInput[i]",
"firstInput",
"i",
"'y'",
"firstInput[i] == 'Y'",
"firstInput[i]",
"firstInput",
"i",
"'Y'",
"{\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[24]++",
"cntAlpha[24]",
"cntAlpha",
"24",
"continue;",
"if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"firstInput[i] == 'z' || firstInput[i] == 'Z'",
"firstInput[i] == 'z'",
"firstInput[i]",
"firstInput",
"i",
"'z'",
"firstInput[i] == 'Z'",
"firstInput[i]",
"firstInput",
"i",
"'Z'",
"{\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"cntAlpha[25]++",
"cntAlpha[25]",
"cntAlpha",
"25",
"continue;",
"for (int i = 0; i < cntAlpha.length; i++)\n\t\t\t\tSystem.out.println(alpha[i] + \" : \" + cntAlpha[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cntAlpha.length",
"i",
"cntAlpha.length",
"cntAlpha",
"cntAlpha.length",
"i++",
"i++",
"i",
"System.out.println(alpha[i] + \" : \" + cntAlpha[i]);",
"System.out.println(alpha[i] + \" : \" + cntAlpha[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alpha[i] + \" : \" + cntAlpha[i]",
"alpha[i] + \" : \" + cntAlpha[i]",
"alpha[i]",
"alpha",
"i",
"\" : \"",
"cntAlpha[i]",
"cntAlpha",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\t// ex : This is a pen.\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// input sample\n\t\tint[] cntAlpha = new int[26];\n\t\tchar[] alpha = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',\n\t\t\t\t't', 'u', 'v', 'w', 'x', 'y', 'z' };\n\t\tchar[] firstInput = new char[' '];\n\t\tString str;\n\n\t\t// break condition\n\t\twhile ((str = br.readLine()) != null) {\n\n\t\t\tfirstInput =str.toCharArray(); // Error\n\n\t\t\tfor (int i = 0; i < firstInput.length; i++) {\n\t\t\t\t// ex : This is a pen.\n\t\t\t\t// split the Alpha\n\t\t\t\tif (firstInput[i] == 'a' || firstInput[i] == 'A') {\n\t\t\t\t\tcntAlpha[0]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'b' || firstInput[i] == 'B') {\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tfor (int i = 0; i < cntAlpha.length; i++)\n\t\t\t\tSystem.out.println(alpha[i] + \" : \" + cntAlpha[i]);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\t// ex : This is a pen.\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// input sample\n\t\tint[] cntAlpha = new int[26];\n\t\tchar[] alpha = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',\n\t\t\t\t't', 'u', 'v', 'w', 'x', 'y', 'z' };\n\t\tchar[] firstInput = new char[' '];\n\t\tString str;\n\n\t\t// break condition\n\t\twhile ((str = br.readLine()) != null) {\n\n\t\t\tfirstInput =str.toCharArray(); // Error\n\n\t\t\tfor (int i = 0; i < firstInput.length; i++) {\n\t\t\t\t// ex : This is a pen.\n\t\t\t\t// split the Alpha\n\t\t\t\tif (firstInput[i] == 'a' || firstInput[i] == 'A') {\n\t\t\t\t\tcntAlpha[0]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'b' || firstInput[i] == 'B') {\n\t\t\t\t\tcntAlpha[1]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {\n\t\t\t\t\tcntAlpha[2]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {\n\t\t\t\t\tcntAlpha[3]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {\n\t\t\t\t\tcntAlpha[4]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {\n\t\t\t\t\tcntAlpha[5]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {\n\t\t\t\t\tcntAlpha[6]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {\n\t\t\t\t\tcntAlpha[7]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {\n\t\t\t\t\tcntAlpha[8]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {\n\t\t\t\t\tcntAlpha[9]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {\n\t\t\t\t\tcntAlpha[10]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {\n\t\t\t\t\tcntAlpha[11]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {\n\t\t\t\t\tcntAlpha[12]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {\n\t\t\t\t\tcntAlpha[13]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {\n\t\t\t\t\tcntAlpha[14]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {\n\t\t\t\t\tcntAlpha[15]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {\n\t\t\t\t\tcntAlpha[16]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {\n\t\t\t\t\tcntAlpha[17]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 's' || firstInput[i] == 'S') {\n\t\t\t\t\tcntAlpha[18]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 't' || firstInput[i] == 'T') {\n\t\t\t\t\tcntAlpha[19]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {\n\t\t\t\t\tcntAlpha[20]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {\n\t\t\t\t\tcntAlpha[21]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {\n\t\t\t\t\tcntAlpha[22]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {\n\t\t\t\t\tcntAlpha[23]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {\n\t\t\t\t\tcntAlpha[24]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {\n\t\t\t\t\tcntAlpha[25]++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tfor (int i = 0; i < cntAlpha.length; i++)\n\t\t\t\tSystem.out.println(alpha[i] + \" : \" + cntAlpha[i]);\n\t}\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
// ex : This is a pen.
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// input sample
int[] cntAlpha = new int[26];
char[] alpha = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',
't', 'u', 'v', 'w', 'x', 'y', 'z' };
char[] firstInput = new char[' '];
String str;
// break condition
while ((str = br.readLine()) != null) {
firstInput =str.toCharArray(); // Error
for (int i = 0; i < firstInput.length; i++) {
// ex : This is a pen.
// split the Alpha
if (firstInput[i] == 'a' || firstInput[i] == 'A') {
cntAlpha[0]++;
continue;
} else if (firstInput[i] == 'b' || firstInput[i] == 'B') {
cntAlpha[1]++;
continue;
} else if (firstInput[i] == 'c' || firstInput[i] == 'C') {
cntAlpha[2]++;
continue;
} else if (firstInput[i] == 'd' || firstInput[i] == 'D') {
cntAlpha[3]++;
continue;
} else if (firstInput[i] == 'e' || firstInput[i] == 'E') {
cntAlpha[4]++;
continue;
} else if (firstInput[i] == 'f' || firstInput[i] == 'F') {
cntAlpha[5]++;
continue;
} else if (firstInput[i] == 'g' || firstInput[i] == 'G') {
cntAlpha[6]++;
continue;
} else if (firstInput[i] == 'h' || firstInput[i] == 'H') {
cntAlpha[7]++;
continue;
} else if (firstInput[i] == 'i' || firstInput[i] == 'I') {
cntAlpha[8]++;
continue;
} else if (firstInput[i] == 'j' || firstInput[i] == 'J') {
cntAlpha[9]++;
continue;
} else if (firstInput[i] == 'k' || firstInput[i] == 'K') {
cntAlpha[10]++;
continue;
} else if (firstInput[i] == 'l' || firstInput[i] == 'L') {
cntAlpha[11]++;
continue;
} else if (firstInput[i] == 'm' || firstInput[i] == 'M') {
cntAlpha[12]++;
continue;
} else if (firstInput[i] == 'n' || firstInput[i] == 'N') {
cntAlpha[13]++;
continue;
} else if (firstInput[i] == 'o' || firstInput[i] == 'O') {
cntAlpha[14]++;
continue;
} else if (firstInput[i] == 'p' || firstInput[i] == 'P') {
cntAlpha[15]++;
continue;
} else if (firstInput[i] == 'q' || firstInput[i] == 'Q') {
cntAlpha[16]++;
continue;
} else if (firstInput[i] == 'r' || firstInput[i] == 'R') {
cntAlpha[17]++;
continue;
} else if (firstInput[i] == 's' || firstInput[i] == 'S') {
cntAlpha[18]++;
continue;
} else if (firstInput[i] == 't' || firstInput[i] == 'T') {
cntAlpha[19]++;
continue;
} else if (firstInput[i] == 'u' || firstInput[i] == 'U') {
cntAlpha[20]++;
continue;
} else if (firstInput[i] == 'v' || firstInput[i] == 'V') {
cntAlpha[21]++;
continue;
} else if (firstInput[i] == 'w' || firstInput[i] == 'W') {
cntAlpha[22]++;
continue;
} else if (firstInput[i] == 'x' || firstInput[i] == 'X') {
cntAlpha[23]++;
continue;
} else if (firstInput[i] == 'y' || firstInput[i] == 'Y') {
cntAlpha[24]++;
continue;
} else if (firstInput[i] == 'z' || firstInput[i] == 'Z') {
cntAlpha[25]++;
continue;
}
}
}
for (int i = 0; i < cntAlpha.length; i++)
System.out.println(alpha[i] + " : " + cntAlpha[i]);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
41,
13,
17,
11,
1,
2,
0,
13,
4,
18,
13,
17,
30,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
4,
18,
13,
13,
40,
18,
13,
2,
4,
18,
13,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
40,
13,
17,
18,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
17,
23
],
[
23,
24
],
[
23,
25
],
[
17,
27
],
[
27,
28
],
[
27,
29
],
[
17,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
30,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
46,
56
],
[
56,
57
],
[
57,
58
],
[
46,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
72,
80
],
[
17,
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
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
100,
104
],
[
104,
105
],
[
104,
106
],
[
15,
107
],
[
107,
108
]
]
| [
"import java.io.BufferedReader;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\nclass Main{\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint[] count=new int[26];\n\t\tchar ch='a';\n\t\tfor(;(str=br.readLine())!=null;){\n\t\t\tstr=str.toLowerCase();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(Character.isLetter(str.charAt(i)))\n\t\t\t\t\tcount[Character.toLowerCase(str.charAt(i))-'a']++;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println(ch++ +\" : \"+count[i]);\n\t\t}\n\t\n\t\n\t}}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.FileReader;",
"FileReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main{\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint[] count=new int[26];\n\t\tchar ch='a';\n\t\tfor(;(str=br.readLine())!=null;){\n\t\t\tstr=str.toLowerCase();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(Character.isLetter(str.charAt(i)))\n\t\t\t\t\tcount[Character.toLowerCase(str.charAt(i))-'a']++;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println(ch++ +\" : \"+count[i]);\n\t\t}\n\t\n\t\n\t}}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint[] count=new int[26];\n\t\tchar ch='a';\n\t\tfor(;(str=br.readLine())!=null;){\n\t\t\tstr=str.toLowerCase();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(Character.isLetter(str.charAt(i)))\n\t\t\t\t\tcount[Character.toLowerCase(str.charAt(i))-'a']++;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println(ch++ +\" : \"+count[i]);\n\t\t}\n\t\n\t\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint[] count=new int[26];\n\t\tchar ch='a';\n\t\tfor(;(str=br.readLine())!=null;){\n\t\t\tstr=str.toLowerCase();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(Character.isLetter(str.charAt(i)))\n\t\t\t\t\tcount[Character.toLowerCase(str.charAt(i))-'a']++;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println(ch++ +\" : \"+count[i]);\n\t\t}\n\t\n\t\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"int[] count=new int[26];",
"count",
"new int[26]",
"26",
"char ch='a';",
"ch",
"'a'",
"for(;(str=br.readLine())!=null;){\n\t\t\tstr=str.toLowerCase();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(Character.isLetter(str.charAt(i)))\n\t\t\t\t\tcount[Character.toLowerCase(str.charAt(i))-'a']++;\n\t\t\t\t\n\t\t\t}\n\t\t}",
";",
"(str=br.readLine())!=null",
"(str=br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tstr=str.toLowerCase();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(Character.isLetter(str.charAt(i)))\n\t\t\t\t\tcount[Character.toLowerCase(str.charAt(i))-'a']++;\n\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tstr=str.toLowerCase();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(Character.isLetter(str.charAt(i)))\n\t\t\t\t\tcount[Character.toLowerCase(str.charAt(i))-'a']++;\n\t\t\t\t\n\t\t\t}\n\t\t}",
"str=str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"for(int i=0;i<str.length();i++){\n\t\t\t\tif(Character.isLetter(str.charAt(i)))\n\t\t\t\t\tcount[Character.toLowerCase(str.charAt(i))-'a']++;\n\t\t\t\t\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(Character.isLetter(str.charAt(i)))\n\t\t\t\t\tcount[Character.toLowerCase(str.charAt(i))-'a']++;\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tif(Character.isLetter(str.charAt(i)))\n\t\t\t\t\tcount[Character.toLowerCase(str.charAt(i))-'a']++;\n\t\t\t\t\n\t\t\t}",
"if(Character.isLetter(str.charAt(i)))\n\t\t\t\t\tcount[Character.toLowerCase(str.charAt(i))-'a']++;",
"Character.isLetter(str.charAt(i))",
"Character.isLetter",
"Character",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"count[Character.toLowerCase(str.charAt(i))-'a']++",
"count[Character.toLowerCase(str.charAt(i))-'a']",
"count",
"Character.toLowerCase(str.charAt(i))-'a'",
"Character.toLowerCase(str.charAt(i))",
"Character.toLowerCase",
"Character",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'a'",
"for(int i=0;i<26;i++){\n\t\t\tSystem.out.println(ch++ +\" : \"+count[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(ch++ +\" : \"+count[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(ch++ +\" : \"+count[i]);\n\t\t}",
"System.out.println(ch++ +\" : \"+count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"ch++ +\" : \"+count[i]",
"ch++ +\" : \"+count[i]",
"ch++",
"ch",
"\" : \"",
"count[i]",
"count",
"i",
"String[] args",
"args"
]
| import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
int[] count=new int[26];
char ch='a';
for(;(str=br.readLine())!=null;){
str=str.toLowerCase();
for(int i=0;i<str.length();i++){
if(Character.isLetter(str.charAt(i)))
count[Character.toLowerCase(str.charAt(i))-'a']++;
}
}
for(int i=0;i<26;i++){
System.out.println(ch++ +" : "+count[i]);
}
}} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
2,
4,
18,
13,
13,
17,
2,
17,
4,
18,
13,
13,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
14,
2,
2,
4,
18,
13,
13,
17,
2,
17,
4,
18,
13,
13,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
40,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
137,
2
],
[
137,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
5,
13
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
13,
18
],
[
18,
19
],
[
18,
20
],
[
13,
21
],
[
21,
22
],
[
22,
23
],
[
13,
24
],
[
25,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
5,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
41,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
57,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
56,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
74,
79
],
[
56,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
82,
87
],
[
81,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
80,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
98,
103
],
[
5,
104
],
[
104,
105
],
[
104,
106
],
[
5,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
126,
126
],
[
126,
127
],
[
126,
128
],
[
126,
129
],
[
129,
130
],
[
129,
131
],
[
119,
132
],
[
132,
133
],
[
3,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
]
| [
"public class Main {\n public static void main(String[] args) {\n\n // ??????????????????????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n // ??¢??????????????????????????°????¨??????????????????????????????????????????????.\n int[] num = new int[26];\n for (int i = 0; i < 26; i ++) { num[i] = 0; }\n\n // ???????????????????????§????????????????????? 1 ?????\\???????????????????????????.\n // ???????????? 1 ???????????????????????¢??????????????????????????°?????????????????????.\n while (sc.hasNext()) {\n String s = sc.nextLine();\n for (int i = 0; i < s.length(); i ++) {\n if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }\n else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }\n }\n }\n char c = 'a';\n for (int i = 0; i < 26; i ++) {\n System.out.println(c + \" : \" + num[i]);\n c ++;\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n // ??????????????????????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n // ??¢??????????????????????????°????¨??????????????????????????????????????????????.\n int[] num = new int[26];\n for (int i = 0; i < 26; i ++) { num[i] = 0; }\n\n // ???????????????????????§????????????????????? 1 ?????\\???????????????????????????.\n // ???????????? 1 ???????????????????????¢??????????????????????????°?????????????????????.\n while (sc.hasNext()) {\n String s = sc.nextLine();\n for (int i = 0; i < s.length(); i ++) {\n if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }\n else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }\n }\n }\n char c = 'a';\n for (int i = 0; i < 26; i ++) {\n System.out.println(c + \" : \" + num[i]);\n c ++;\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\n // ??????????????????????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n // ??¢??????????????????????????°????¨??????????????????????????????????????????????.\n int[] num = new int[26];\n for (int i = 0; i < 26; i ++) { num[i] = 0; }\n\n // ???????????????????????§????????????????????? 1 ?????\\???????????????????????????.\n // ???????????? 1 ???????????????????????¢??????????????????????????°?????????????????????.\n while (sc.hasNext()) {\n String s = sc.nextLine();\n for (int i = 0; i < s.length(); i ++) {\n if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }\n else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }\n }\n }\n char c = 'a';\n for (int i = 0; i < 26; i ++) {\n System.out.println(c + \" : \" + num[i]);\n c ++;\n }\n }",
"main",
"{\n\n // ??????????????????????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n // ??¢??????????????????????????°????¨??????????????????????????????????????????????.\n int[] num = new int[26];\n for (int i = 0; i < 26; i ++) { num[i] = 0; }\n\n // ???????????????????????§????????????????????? 1 ?????\\???????????????????????????.\n // ???????????? 1 ???????????????????????¢??????????????????????????°?????????????????????.\n while (sc.hasNext()) {\n String s = sc.nextLine();\n for (int i = 0; i < s.length(); i ++) {\n if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }\n else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }\n }\n }\n char c = 'a';\n for (int i = 0; i < 26; i ++) {\n System.out.println(c + \" : \" + num[i]);\n c ++;\n }\n }",
"java.util.Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"int[] num = new int[26];",
"num",
"new int[26]",
"26",
"for (int i = 0; i < 26; i ++) { num[i] = 0; }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i ++",
"i ++",
"i",
"{ num[i] = 0; }",
"{ num[i] = 0; }",
"num[i] = 0",
"num[i]",
"num",
"i",
"0",
"while (sc.hasNext()) {\n String s = sc.nextLine();\n for (int i = 0; i < s.length(); i ++) {\n if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }\n else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String s = sc.nextLine();\n for (int i = 0; i < s.length(); i ++) {\n if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }\n else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }\n }\n }",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int i = 0; i < s.length(); i ++) {\n if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }\n else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i ++",
"i ++",
"i",
"{\n if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }\n else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }\n }",
"{\n if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }\n else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }\n }",
"if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }\n else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }",
"s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)",
"s.charAt(i) <= 'Z'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'Z'",
"'A' <= s.charAt(i)",
"'A'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"{ num[s.charAt(i) - 'A'] ++; }",
"num[s.charAt(i) - 'A'] ++",
"num[s.charAt(i) - 'A']",
"num",
"s.charAt(i) - 'A'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'A'",
"if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }",
"s.charAt(i) <= 'z' && 'a' <= s.charAt(i)",
"s.charAt(i) <= 'z'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'z'",
"'a' <= s.charAt(i)",
"'a'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"{ num[s.charAt(i) - 'a'] ++; }",
"num[s.charAt(i) - 'a'] ++",
"num[s.charAt(i) - 'a']",
"num",
"s.charAt(i) - 'a'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'a'",
"char c = 'a';",
"c",
"'a'",
"for (int i = 0; i < 26; i ++) {\n System.out.println(c + \" : \" + num[i]);\n c ++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i ++",
"i ++",
"i",
"{\n System.out.println(c + \" : \" + num[i]);\n c ++;\n }",
"{\n System.out.println(c + \" : \" + num[i]);\n c ++;\n }",
"System.out.println(c + \" : \" + num[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c + \" : \" + num[i]",
"c + \" : \" + num[i]",
"c",
"\" : \"",
"num[i]",
"num",
"i",
"c ++",
"c",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n // ??????????????????????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n // ??¢??????????????????????????°????¨??????????????????????????????????????????????.\n int[] num = new int[26];\n for (int i = 0; i < 26; i ++) { num[i] = 0; }\n\n // ???????????????????????§????????????????????? 1 ?????\\???????????????????????????.\n // ???????????? 1 ???????????????????????¢??????????????????????????°?????????????????????.\n while (sc.hasNext()) {\n String s = sc.nextLine();\n for (int i = 0; i < s.length(); i ++) {\n if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }\n else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }\n }\n }\n char c = 'a';\n for (int i = 0; i < 26; i ++) {\n System.out.println(c + \" : \" + num[i]);\n c ++;\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n // ??????????????????????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n // ??¢??????????????????????????°????¨??????????????????????????????????????????????.\n int[] num = new int[26];\n for (int i = 0; i < 26; i ++) { num[i] = 0; }\n\n // ???????????????????????§????????????????????? 1 ?????\\???????????????????????????.\n // ???????????? 1 ???????????????????????¢??????????????????????????°?????????????????????.\n while (sc.hasNext()) {\n String s = sc.nextLine();\n for (int i = 0; i < s.length(); i ++) {\n if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }\n else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }\n }\n }\n char c = 'a';\n for (int i = 0; i < 26; i ++) {\n System.out.println(c + \" : \" + num[i]);\n c ++;\n }\n }\n}",
"Main"
]
| public class Main {
public static void main(String[] args) {
// ??????????????????????????????.
java.util.Scanner sc = new java.util.Scanner(System.in);
// ??¢??????????????????????????°????¨??????????????????????????????????????????????.
int[] num = new int[26];
for (int i = 0; i < 26; i ++) { num[i] = 0; }
// ???????????????????????§????????????????????? 1 ?????\???????????????????????????.
// ???????????? 1 ???????????????????????¢??????????????????????????°?????????????????????.
while (sc.hasNext()) {
String s = sc.nextLine();
for (int i = 0; i < s.length(); i ++) {
if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }
else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }
}
}
char c = 'a';
for (int i = 0; i < 26; i ++) {
System.out.println(c + " : " + num[i]);
c ++;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
41,
13,
20,
41,
13,
41,
13,
4,
18,
17,
17,
41,
13,
4,
18,
17,
17,
41,
13,
20,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
4,
18,
13,
3,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
9,
0,
18,
13,
2,
13,
13,
17,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
4,
18,
4,
18,
13,
2,
13,
13,
17,
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
],
[
144,
11
],
[
144,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
22,
24
],
[
16,
25
],
[
25,
26
],
[
16,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
16,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
16,
39
],
[
39,
40
],
[
39,
41
],
[
16,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
51,
59
],
[
45,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
45,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
66,
76
],
[
76,
77
],
[
77,
78
],
[
66,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
80,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
80,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
96,
102
],
[
45,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
16,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
114,
116
],
[
107,
117
],
[
117,
118
],
[
118,
119
],
[
107,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
134,
136
],
[
128,
137
],
[
128,
138
],
[
138,
139
],
[
138,
140
],
[
12,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder lowered = new StringBuilder();\n char c;\n char ca = \"a\".charAt(0);\n char cz = \"z\".charAt(0);\n int[] count = new int[26];\n\n while(true) {\n line = br.readLine();\n if ( line == null || line.isEmpty() ) break;\n\n lowered.append(line.toLowerCase());\n for ( int i = 0; i < lowered.length(); i++ ) {\n c = lowered.charAt(i);\n if( ca > c || c > cz) continue;\n count[(c-ca)] += 1;\n }\n lowered.setLength(0);\n\n }\n\n for ( int i = 0; i < count.length; i++ ) {\n System.out.println(Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i]);\n }\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder lowered = new StringBuilder();\n char c;\n char ca = \"a\".charAt(0);\n char cz = \"z\".charAt(0);\n int[] count = new int[26];\n\n while(true) {\n line = br.readLine();\n if ( line == null || line.isEmpty() ) break;\n\n lowered.append(line.toLowerCase());\n for ( int i = 0; i < lowered.length(); i++ ) {\n c = lowered.charAt(i);\n if( ca > c || c > cz) continue;\n count[(c-ca)] += 1;\n }\n lowered.setLength(0);\n\n }\n\n for ( int i = 0; i < count.length; i++ ) {\n System.out.println(Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i]);\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder lowered = new StringBuilder();\n char c;\n char ca = \"a\".charAt(0);\n char cz = \"z\".charAt(0);\n int[] count = new int[26];\n\n while(true) {\n line = br.readLine();\n if ( line == null || line.isEmpty() ) break;\n\n lowered.append(line.toLowerCase());\n for ( int i = 0; i < lowered.length(); i++ ) {\n c = lowered.charAt(i);\n if( ca > c || c > cz) continue;\n count[(c-ca)] += 1;\n }\n lowered.setLength(0);\n\n }\n\n for ( int i = 0; i < count.length; i++ ) {\n System.out.println(Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i]);\n }\n }\n }",
"main",
"{\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder lowered = new StringBuilder();\n char c;\n char ca = \"a\".charAt(0);\n char cz = \"z\".charAt(0);\n int[] count = new int[26];\n\n while(true) {\n line = br.readLine();\n if ( line == null || line.isEmpty() ) break;\n\n lowered.append(line.toLowerCase());\n for ( int i = 0; i < lowered.length(); i++ ) {\n c = lowered.charAt(i);\n if( ca > c || c > cz) continue;\n count[(c-ca)] += 1;\n }\n lowered.setLength(0);\n\n }\n\n for ( int i = 0; i < count.length; i++ ) {\n System.out.println(Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i]);\n }\n }\n }",
"try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder lowered = new StringBuilder();\n char c;\n char ca = \"a\".charAt(0);\n char cz = \"z\".charAt(0);\n int[] count = new int[26];\n\n while(true) {\n line = br.readLine();\n if ( line == null || line.isEmpty() ) break;\n\n lowered.append(line.toLowerCase());\n for ( int i = 0; i < lowered.length(); i++ ) {\n c = lowered.charAt(i);\n if( ca > c || c > cz) continue;\n count[(c-ca)] += 1;\n }\n lowered.setLength(0);\n\n }\n\n for ( int i = 0; i < count.length; i++ ) {\n System.out.println(Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i]);\n }\n }",
"{\n\n String line;\n StringBuilder lowered = new StringBuilder();\n char c;\n char ca = \"a\".charAt(0);\n char cz = \"z\".charAt(0);\n int[] count = new int[26];\n\n while(true) {\n line = br.readLine();\n if ( line == null || line.isEmpty() ) break;\n\n lowered.append(line.toLowerCase());\n for ( int i = 0; i < lowered.length(); i++ ) {\n c = lowered.charAt(i);\n if( ca > c || c > cz) continue;\n count[(c-ca)] += 1;\n }\n lowered.setLength(0);\n\n }\n\n for ( int i = 0; i < count.length; i++ ) {\n System.out.println(Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i]);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"StringBuilder lowered = new StringBuilder();",
"lowered",
"new StringBuilder()",
"char c;",
"c",
"char ca = \"a\".charAt(0);",
"ca",
"\"a\".charAt(0)",
"\"a\".charAt",
"\"a\"",
"0",
"char cz = \"z\".charAt(0);",
"cz",
"\"z\".charAt(0)",
"\"z\".charAt",
"\"z\"",
"0",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"while(true) {\n line = br.readLine();\n if ( line == null || line.isEmpty() ) break;\n\n lowered.append(line.toLowerCase());\n for ( int i = 0; i < lowered.length(); i++ ) {\n c = lowered.charAt(i);\n if( ca > c || c > cz) continue;\n count[(c-ca)] += 1;\n }\n lowered.setLength(0);\n\n }",
"true",
"{\n line = br.readLine();\n if ( line == null || line.isEmpty() ) break;\n\n lowered.append(line.toLowerCase());\n for ( int i = 0; i < lowered.length(); i++ ) {\n c = lowered.charAt(i);\n if( ca > c || c > cz) continue;\n count[(c-ca)] += 1;\n }\n lowered.setLength(0);\n\n }",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"if ( line == null || line.isEmpty() ) break;",
"line == null || line.isEmpty()",
"line == null",
"line",
"null",
"line.isEmpty()",
"line.isEmpty",
"line",
"break;",
"lowered.append(line.toLowerCase())",
"lowered.append",
"lowered",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"for ( int i = 0; i < lowered.length(); i++ ) {\n c = lowered.charAt(i);\n if( ca > c || c > cz) continue;\n count[(c-ca)] += 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < lowered.length()",
"i",
"lowered.length()",
"lowered.length",
"lowered",
"i++",
"i++",
"i",
"{\n c = lowered.charAt(i);\n if( ca > c || c > cz) continue;\n count[(c-ca)] += 1;\n }",
"{\n c = lowered.charAt(i);\n if( ca > c || c > cz) continue;\n count[(c-ca)] += 1;\n }",
"c = lowered.charAt(i)",
"c",
"lowered.charAt(i)",
"lowered.charAt",
"lowered",
"i",
"if( ca > c || c > cz) continue;",
"ca > c || c > cz",
"ca > c",
"ca",
"c",
"c > cz",
"c",
"cz",
"continue;",
"count[(c-ca)] += 1",
"count[(c-ca)]",
"count",
"(c-ca)",
"c",
"ca",
"1",
"lowered.setLength(0)",
"lowered.setLength",
"lowered",
"0",
"for ( int i = 0; i < count.length; i++ ) {\n System.out.println(Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count.length",
"i",
"count.length",
"count",
"count.length",
"i++",
"i++",
"i",
"{\n System.out.println(Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i]);\n }",
"{\n System.out.println(Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i]);\n }",
"System.out.println(Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i]",
"Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i]",
"Character.valueOf((char)(ca + (char)i)).toString()",
"Character.valueOf((char)(ca + (char)i)).toString",
"Character.valueOf((char)(ca + (char)i))",
"Character.valueOf",
"Character",
"(char)(ca + (char)i)",
"ca",
"(char)i",
"\" : \"",
"count[i]",
"count",
"i",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder lowered = new StringBuilder();\n char c;\n char ca = \"a\".charAt(0);\n char cz = \"z\".charAt(0);\n int[] count = new int[26];\n\n while(true) {\n line = br.readLine();\n if ( line == null || line.isEmpty() ) break;\n\n lowered.append(line.toLowerCase());\n for ( int i = 0; i < lowered.length(); i++ ) {\n c = lowered.charAt(i);\n if( ca > c || c > cz) continue;\n count[(c-ca)] += 1;\n }\n lowered.setLength(0);\n\n }\n\n for ( int i = 0; i < count.length; i++ ) {\n System.out.println(Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i]);\n }\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder lowered = new StringBuilder();\n char c;\n char ca = \"a\".charAt(0);\n char cz = \"z\".charAt(0);\n int[] count = new int[26];\n\n while(true) {\n line = br.readLine();\n if ( line == null || line.isEmpty() ) break;\n\n lowered.append(line.toLowerCase());\n for ( int i = 0; i < lowered.length(); i++ ) {\n c = lowered.charAt(i);\n if( ca > c || c > cz) continue;\n count[(c-ca)] += 1;\n }\n lowered.setLength(0);\n\n }\n\n for ( int i = 0; i < count.length; i++ ) {\n System.out.println(Character.valueOf((char)(ca + (char)i)).toString() + \" : \" + count[i]);\n }\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
String line;
StringBuilder lowered = new StringBuilder();
char c;
char ca = "a".charAt(0);
char cz = "z".charAt(0);
int[] count = new int[26];
while(true) {
line = br.readLine();
if ( line == null || line.isEmpty() ) break;
lowered.append(line.toLowerCase());
for ( int i = 0; i < lowered.length(); i++ ) {
c = lowered.charAt(i);
if( ca > c || c > cz) continue;
count[(c-ca)] += 1;
}
lowered.setLength(0);
}
for ( int i = 0; i < count.length; i++ ) {
System.out.println(Character.valueOf((char)(ca + (char)i)).toString() + " : " + count[i]);
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
13,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
28,
13,
4,
18,
13,
30,
30,
14,
4,
18,
13,
13,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
2,
17,
13,
4,
18,
4,
18,
4,
18,
13,
17,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
4,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
16,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
33
],
[
33,
34
],
[
33,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
50,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
26,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
68,
78
],
[
78,
79
],
[
79,
80
],
[
68,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
82,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
91,
97
],
[
97,
98
],
[
97,
99
],
[
89,
100
],
[
26,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
9,
107
],
[
107,
108
]
]
| [
"/* ITP1_8_C */\nimport java.io.*;\n\nclass Main\n{\n static final int ALPHABET = 26;\n\n public static void main(String[] args)\n {\n int[] count = new int[ALPHABET];\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String str = \"\";\n\n while((str = br.readLine()) != null){\n str = str.toLowerCase();\n\n for(char c : str.toCharArray()){\n if(Character.isLetter(c))\n count[c - 'a']++;\n }\n }\n\n for(int i = 0; i < count.length; i++){\n sb.append((char)('a' + i));\n sb.append(\" : \").append(count[i]).append(\"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n static final int ALPHABET = 26;\n\n public static void main(String[] args)\n {\n int[] count = new int[ALPHABET];\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String str = \"\";\n\n while((str = br.readLine()) != null){\n str = str.toLowerCase();\n\n for(char c : str.toCharArray()){\n if(Character.isLetter(c))\n count[c - 'a']++;\n }\n }\n\n for(int i = 0; i < count.length; i++){\n sb.append((char)('a' + i));\n sb.append(\" : \").append(count[i]).append(\"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"Main",
"static final int ALPHABET = 26;",
"ALPHABET",
"26",
"public static void main(String[] args)\n {\n int[] count = new int[ALPHABET];\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String str = \"\";\n\n while((str = br.readLine()) != null){\n str = str.toLowerCase();\n\n for(char c : str.toCharArray()){\n if(Character.isLetter(c))\n count[c - 'a']++;\n }\n }\n\n for(int i = 0; i < count.length; i++){\n sb.append((char)('a' + i));\n sb.append(\" : \").append(count[i]).append(\"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }",
"main",
"{\n int[] count = new int[ALPHABET];\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String str = \"\";\n\n while((str = br.readLine()) != null){\n str = str.toLowerCase();\n\n for(char c : str.toCharArray()){\n if(Character.isLetter(c))\n count[c - 'a']++;\n }\n }\n\n for(int i = 0; i < count.length; i++){\n sb.append((char)('a' + i));\n sb.append(\" : \").append(count[i]).append(\"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }",
"int[] count = new int[ALPHABET];",
"count",
"new int[ALPHABET]",
"ALPHABET",
"try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String str = \"\";\n\n while((str = br.readLine()) != null){\n str = str.toLowerCase();\n\n for(char c : str.toCharArray()){\n if(Character.isLetter(c))\n count[c - 'a']++;\n }\n }\n\n for(int i = 0; i < count.length; i++){\n sb.append((char)('a' + i));\n sb.append(\" : \").append(count[i]).append(\"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }",
"catch(Exception e){\n System.out.println(e);\n }",
"Exception e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String str = \"\";\n\n while((str = br.readLine()) != null){\n str = str.toLowerCase();\n\n for(char c : str.toCharArray()){\n if(Character.isLetter(c))\n count[c - 'a']++;\n }\n }\n\n for(int i = 0; i < count.length; i++){\n sb.append((char)('a' + i));\n sb.append(\" : \").append(count[i]).append(\"\\n\");\n }\n System.out.print(sb);\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"String str = \"\";",
"str",
"\"\"",
"while((str = br.readLine()) != null){\n str = str.toLowerCase();\n\n for(char c : str.toCharArray()){\n if(Character.isLetter(c))\n count[c - 'a']++;\n }\n }",
"(str = br.readLine()) != null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n str = str.toLowerCase();\n\n for(char c : str.toCharArray()){\n if(Character.isLetter(c))\n count[c - 'a']++;\n }\n }",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"for(char c : str.toCharArray()){\n if(Character.isLetter(c))\n count[c - 'a']++;\n }",
"char c",
"str.toCharArray()",
"str.toCharArray",
"str",
"{\n if(Character.isLetter(c))\n count[c - 'a']++;\n }",
"{\n if(Character.isLetter(c))\n count[c - 'a']++;\n }",
"if(Character.isLetter(c))\n count[c - 'a']++;",
"Character.isLetter(c)",
"Character.isLetter",
"Character",
"c",
"count[c - 'a']++",
"count[c - 'a']",
"count",
"c - 'a'",
"c",
"'a'",
"for(int i = 0; i < count.length; i++){\n sb.append((char)('a' + i));\n sb.append(\" : \").append(count[i]).append(\"\\n\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count.length",
"i",
"count.length",
"count",
"count.length",
"i++",
"i++",
"i",
"{\n sb.append((char)('a' + i));\n sb.append(\" : \").append(count[i]).append(\"\\n\");\n }",
"{\n sb.append((char)('a' + i));\n sb.append(\" : \").append(count[i]).append(\"\\n\");\n }",
"sb.append((char)('a' + i))",
"sb.append",
"sb",
"(char)('a' + i)",
"'a'",
"i",
"sb.append(\" : \").append(count[i]).append(\"\\n\")",
"sb.append(\" : \").append(count[i]).append",
"sb.append(\" : \").append(count[i])",
"sb.append(\" : \").append",
"sb.append(\" : \")",
"sb.append",
"sb",
"\" : \"",
"count[i]",
"count",
"i",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args"
]
| /* ITP1_8_C */
import java.io.*;
class Main
{
static final int ALPHABET = 26;
public static void main(String[] args)
{
int[] count = new int[ALPHABET];
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
String str = "";
while((str = br.readLine()) != null){
str = str.toLowerCase();
for(char c : str.toCharArray()){
if(Character.isLetter(c))
count[c - 'a']++;
}
}
for(int i = 0; i < count.length; i++){
sb.append((char)('a' + i));
sb.append(" : ").append(count[i]).append("\n");
}
System.out.print(sb);
}catch(Exception e){
System.out.println(e);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
13,
11,
1,
41,
13,
17,
41,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
14,
2,
2,
17,
13,
2,
13,
17,
40,
18,
13,
2,
13,
17,
14,
2,
2,
17,
13,
2,
13,
17,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
4,
18,
18,
13,
13,
17,
2,
17,
13,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
28,
38
],
[
38,
39
],
[
38,
40
],
[
28,
41
],
[
41,
42
],
[
42,
43
],
[
28,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
51,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
91,
97
],
[
97,
98
],
[
97,
99
],
[
91,
100
],
[
100,
101
],
[
100,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] a = new int[26];\n while(sc.hasNextLine()) {\n char[] c = sc.nextLine().toCharArray();\n for (int i = 0, l = c.length; i < l; ++i) {\n char _c = c[i];\n if (97 <= _c && _c <= 122) ++a[_c - 'a'];\n else if (65 <= _c && _c <= 90) ++a[_c - 'A'];\n }\n }\n for (int i = 0; i < 26; ++i) System.out.printf(\"%c : %d\\n\", 'a' + i, a[i]);\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] a = new int[26];\n while(sc.hasNextLine()) {\n char[] c = sc.nextLine().toCharArray();\n for (int i = 0, l = c.length; i < l; ++i) {\n char _c = c[i];\n if (97 <= _c && _c <= 122) ++a[_c - 'a'];\n else if (65 <= _c && _c <= 90) ++a[_c - 'A'];\n }\n }\n for (int i = 0; i < 26; ++i) System.out.printf(\"%c : %d\\n\", 'a' + i, a[i]);\n }\n\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] a = new int[26];\n while(sc.hasNextLine()) {\n char[] c = sc.nextLine().toCharArray();\n for (int i = 0, l = c.length; i < l; ++i) {\n char _c = c[i];\n if (97 <= _c && _c <= 122) ++a[_c - 'a'];\n else if (65 <= _c && _c <= 90) ++a[_c - 'A'];\n }\n }\n for (int i = 0; i < 26; ++i) System.out.printf(\"%c : %d\\n\", 'a' + i, a[i]);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] a = new int[26];\n while(sc.hasNextLine()) {\n char[] c = sc.nextLine().toCharArray();\n for (int i = 0, l = c.length; i < l; ++i) {\n char _c = c[i];\n if (97 <= _c && _c <= 122) ++a[_c - 'a'];\n else if (65 <= _c && _c <= 90) ++a[_c - 'A'];\n }\n }\n for (int i = 0; i < 26; ++i) System.out.printf(\"%c : %d\\n\", 'a' + i, a[i]);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] a = new int[26];",
"a",
"new int[26]",
"26",
"while(sc.hasNextLine()) {\n char[] c = sc.nextLine().toCharArray();\n for (int i = 0, l = c.length; i < l; ++i) {\n char _c = c[i];\n if (97 <= _c && _c <= 122) ++a[_c - 'a'];\n else if (65 <= _c && _c <= 90) ++a[_c - 'A'];\n }\n }",
"sc.hasNextLine()",
"sc.hasNextLine",
"sc",
"{\n char[] c = sc.nextLine().toCharArray();\n for (int i = 0, l = c.length; i < l; ++i) {\n char _c = c[i];\n if (97 <= _c && _c <= 122) ++a[_c - 'a'];\n else if (65 <= _c && _c <= 90) ++a[_c - 'A'];\n }\n }",
"char[] c = sc.nextLine().toCharArray();",
"c",
"sc.nextLine().toCharArray()",
"sc.nextLine().toCharArray",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int i = 0, l = c.length; i < l; ++i) {\n char _c = c[i];\n if (97 <= _c && _c <= 122) ++a[_c - 'a'];\n else if (65 <= _c && _c <= 90) ++a[_c - 'A'];\n }",
"int i = 0, l = c.length;",
"int i = 0",
"i",
"0",
"l = c.length;",
"l",
"c.length",
"c",
"c.length",
"i < l",
"i",
"l",
"++i",
"++i",
"i",
"{\n char _c = c[i];\n if (97 <= _c && _c <= 122) ++a[_c - 'a'];\n else if (65 <= _c && _c <= 90) ++a[_c - 'A'];\n }",
"{\n char _c = c[i];\n if (97 <= _c && _c <= 122) ++a[_c - 'a'];\n else if (65 <= _c && _c <= 90) ++a[_c - 'A'];\n }",
"char _c = c[i];",
"_c",
"c[i]",
"c",
"i",
"if (97 <= _c && _c <= 122) ++a[_c - 'a'];\n else if (65 <= _c && _c <= 90) ++a[_c - 'A'];",
"97 <= _c && _c <= 122",
"97 <= _c",
"97",
"_c",
"_c <= 122",
"_c",
"122",
"++a[_c - 'a']",
"a[_c - 'a']",
"a",
"_c - 'a'",
"_c",
"'a'",
"if (65 <= _c && _c <= 90) ++a[_c - 'A'];",
"65 <= _c && _c <= 90",
"65 <= _c",
"65",
"_c",
"_c <= 90",
"_c",
"90",
"++a[_c - 'A']",
"a[_c - 'A']",
"a",
"_c - 'A'",
"_c",
"'A'",
"for (int i = 0; i < 26; ++i) System.out.printf(\"%c : %d\\n\", 'a' + i, a[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"++i",
"++i",
"i",
"System.out.printf(\"%c : %d\\n\", 'a' + i, a[i]);",
"System.out.printf(\"%c : %d\\n\", 'a' + i, a[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"'a' + i",
"'a'",
"i",
"a[i]",
"a",
"i",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] a = new int[26];\n while(sc.hasNextLine()) {\n char[] c = sc.nextLine().toCharArray();\n for (int i = 0, l = c.length; i < l; ++i) {\n char _c = c[i];\n if (97 <= _c && _c <= 122) ++a[_c - 'a'];\n else if (65 <= _c && _c <= 90) ++a[_c - 'A'];\n }\n }\n for (int i = 0; i < 26; ++i) System.out.printf(\"%c : %d\\n\", 'a' + i, a[i]);\n }\n\n}",
"public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] a = new int[26];\n while(sc.hasNextLine()) {\n char[] c = sc.nextLine().toCharArray();\n for (int i = 0, l = c.length; i < l; ++i) {\n char _c = c[i];\n if (97 <= _c && _c <= 122) ++a[_c - 'a'];\n else if (65 <= _c && _c <= 90) ++a[_c - 'A'];\n }\n }\n for (int i = 0; i < 26; ++i) System.out.printf(\"%c : %d\\n\", 'a' + i, a[i]);\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int[] a = new int[26];
while(sc.hasNextLine()) {
char[] c = sc.nextLine().toCharArray();
for (int i = 0, l = c.length; i < l; ++i) {
char _c = c[i];
if (97 <= _c && _c <= 122) ++a[_c - 'a'];
else if (65 <= _c && _c <= 90) ++a[_c - 'A'];
}
}
for (int i = 0; i < 26; ++i) System.out.printf("%c : %d\n", 'a' + i, a[i]);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
101,
5
],
[
101,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
19,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
23,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
34,
44
],
[
44,
45
],
[
45,
46
],
[
34,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
48,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
69,
79
],
[
79,
80
],
[
80,
81
],
[
69,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
6,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int chcnt[] = new int[26];\n String str = \"\";\n while(sc.hasNext()){\n str = sc.nextLine();\n str = str.toLowerCase();\n for(int i = 0; i < str.length(); i++ ){\n char ch = str.charAt(i);\n if(ch <= 'z' && ch >= 'a') chcnt[ch - 'a']++;\n }\n }\n for(int i = 0; i < chcnt.length; i++){\n System.out.println((char)('a' + i) + \" : \" + chcnt[i]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int chcnt[] = new int[26];\n String str = \"\";\n while(sc.hasNext()){\n str = sc.nextLine();\n str = str.toLowerCase();\n for(int i = 0; i < str.length(); i++ ){\n char ch = str.charAt(i);\n if(ch <= 'z' && ch >= 'a') chcnt[ch - 'a']++;\n }\n }\n for(int i = 0; i < chcnt.length; i++){\n System.out.println((char)('a' + i) + \" : \" + chcnt[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int chcnt[] = new int[26];\n String str = \"\";\n while(sc.hasNext()){\n str = sc.nextLine();\n str = str.toLowerCase();\n for(int i = 0; i < str.length(); i++ ){\n char ch = str.charAt(i);\n if(ch <= 'z' && ch >= 'a') chcnt[ch - 'a']++;\n }\n }\n for(int i = 0; i < chcnt.length; i++){\n System.out.println((char)('a' + i) + \" : \" + chcnt[i]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int chcnt[] = new int[26];\n String str = \"\";\n while(sc.hasNext()){\n str = sc.nextLine();\n str = str.toLowerCase();\n for(int i = 0; i < str.length(); i++ ){\n char ch = str.charAt(i);\n if(ch <= 'z' && ch >= 'a') chcnt[ch - 'a']++;\n }\n }\n for(int i = 0; i < chcnt.length; i++){\n System.out.println((char)('a' + i) + \" : \" + chcnt[i]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int chcnt[] = new int[26];",
"chcnt",
"new int[26]",
"26",
"String str = \"\";",
"str",
"\"\"",
"while(sc.hasNext()){\n str = sc.nextLine();\n str = str.toLowerCase();\n for(int i = 0; i < str.length(); i++ ){\n char ch = str.charAt(i);\n if(ch <= 'z' && ch >= 'a') chcnt[ch - 'a']++;\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n str = sc.nextLine();\n str = str.toLowerCase();\n for(int i = 0; i < str.length(); i++ ){\n char ch = str.charAt(i);\n if(ch <= 'z' && ch >= 'a') chcnt[ch - 'a']++;\n }\n }",
"str = sc.nextLine()",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"for(int i = 0; i < str.length(); i++ ){\n char ch = str.charAt(i);\n if(ch <= 'z' && ch >= 'a') chcnt[ch - 'a']++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n char ch = str.charAt(i);\n if(ch <= 'z' && ch >= 'a') chcnt[ch - 'a']++;\n }",
"{\n char ch = str.charAt(i);\n if(ch <= 'z' && ch >= 'a') chcnt[ch - 'a']++;\n }",
"char ch = str.charAt(i);",
"ch",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if(ch <= 'z' && ch >= 'a') chcnt[ch - 'a']++;",
"ch <= 'z' && ch >= 'a'",
"ch <= 'z'",
"ch",
"'z'",
"ch >= 'a'",
"ch",
"'a'",
"chcnt[ch - 'a']++",
"chcnt[ch - 'a']",
"chcnt",
"ch - 'a'",
"ch",
"'a'",
"for(int i = 0; i < chcnt.length; i++){\n System.out.println((char)('a' + i) + \" : \" + chcnt[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < chcnt.length",
"i",
"chcnt.length",
"chcnt",
"chcnt.length",
"i++",
"i++",
"i",
"{\n System.out.println((char)('a' + i) + \" : \" + chcnt[i]);\n }",
"{\n System.out.println((char)('a' + i) + \" : \" + chcnt[i]);\n }",
"System.out.println((char)('a' + i) + \" : \" + chcnt[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)('a' + i) + \" : \" + chcnt[i]",
"(char)('a' + i) + \" : \" + chcnt[i]",
"(char)('a' + i)",
"'a'",
"i",
"\" : \"",
"chcnt[i]",
"chcnt",
"i",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int chcnt[] = new int[26];\n String str = \"\";\n while(sc.hasNext()){\n str = sc.nextLine();\n str = str.toLowerCase();\n for(int i = 0; i < str.length(); i++ ){\n char ch = str.charAt(i);\n if(ch <= 'z' && ch >= 'a') chcnt[ch - 'a']++;\n }\n }\n for(int i = 0; i < chcnt.length; i++){\n System.out.println((char)('a' + i) + \" : \" + chcnt[i]);\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int chcnt[] = new int[26];\n String str = \"\";\n while(sc.hasNext()){\n str = sc.nextLine();\n str = str.toLowerCase();\n for(int i = 0; i < str.length(); i++ ){\n char ch = str.charAt(i);\n if(ch <= 'z' && ch >= 'a') chcnt[ch - 'a']++;\n }\n }\n for(int i = 0; i < chcnt.length; i++){\n System.out.println((char)('a' + i) + \" : \" + chcnt[i]);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int chcnt[] = new int[26];
String str = "";
while(sc.hasNext()){
str = sc.nextLine();
str = str.toLowerCase();
for(int i = 0; i < str.length(); i++ ){
char ch = str.charAt(i);
if(ch <= 'z' && ch >= 'a') chcnt[ch - 'a']++;
}
}
for(int i = 0; i < chcnt.length; i++){
System.out.println((char)('a' + i) + " : " + chcnt[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
17,
41,
13,
20,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
30,
41,
13,
2,
2,
13,
17,
17,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
4,
18,
4,
18,
13,
2,
13,
17,
17,
18,
13,
13,
14,
2,
13,
2,
18,
13,
13,
17,
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
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
35,
45
],
[
45,
46
],
[
46,
47
],
[
35,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
49,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
56,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
84,
94
],
[
94,
95
],
[
95,
96
],
[
84,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
99,
110
],
[
110,
111
],
[
110,
112
],
[
98,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
8,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
131,
132
],
[
6,
133
],
[
133,
134
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n StringBuilder output = new StringBuilder();\n String crlf = System.getProperty(\"line.separator\");\n int[] alphabet = new int[26];\n \n while (in.hasNext()) {\n String input = in.next();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i); \n if ((ch >= 'A' && (int)ch <= 'Z') || (ch >= 'a' && ch <= 'z')) {\n int count = ch % 32 - 1;\n alphabet[count]++;\n }\n }\n }\n \n for (int i = 0; i < alphabet.length; i++) {\n output.append((char)(i + 'a')).append(\" : \").append(alphabet[i]);\n if (i != alphabet.length - 1) output.append(crlf);\n }\n System.out.println(output.toString());\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n StringBuilder output = new StringBuilder();\n String crlf = System.getProperty(\"line.separator\");\n int[] alphabet = new int[26];\n \n while (in.hasNext()) {\n String input = in.next();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i); \n if ((ch >= 'A' && (int)ch <= 'Z') || (ch >= 'a' && ch <= 'z')) {\n int count = ch % 32 - 1;\n alphabet[count]++;\n }\n }\n }\n \n for (int i = 0; i < alphabet.length; i++) {\n output.append((char)(i + 'a')).append(\" : \").append(alphabet[i]);\n if (i != alphabet.length - 1) output.append(crlf);\n }\n System.out.println(output.toString());\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n StringBuilder output = new StringBuilder();\n String crlf = System.getProperty(\"line.separator\");\n int[] alphabet = new int[26];\n \n while (in.hasNext()) {\n String input = in.next();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i); \n if ((ch >= 'A' && (int)ch <= 'Z') || (ch >= 'a' && ch <= 'z')) {\n int count = ch % 32 - 1;\n alphabet[count]++;\n }\n }\n }\n \n for (int i = 0; i < alphabet.length; i++) {\n output.append((char)(i + 'a')).append(\" : \").append(alphabet[i]);\n if (i != alphabet.length - 1) output.append(crlf);\n }\n System.out.println(output.toString());\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n StringBuilder output = new StringBuilder();\n String crlf = System.getProperty(\"line.separator\");\n int[] alphabet = new int[26];\n \n while (in.hasNext()) {\n String input = in.next();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i); \n if ((ch >= 'A' && (int)ch <= 'Z') || (ch >= 'a' && ch <= 'z')) {\n int count = ch % 32 - 1;\n alphabet[count]++;\n }\n }\n }\n \n for (int i = 0; i < alphabet.length; i++) {\n output.append((char)(i + 'a')).append(\" : \").append(alphabet[i]);\n if (i != alphabet.length - 1) output.append(crlf);\n }\n System.out.println(output.toString());\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"StringBuilder output = new StringBuilder();",
"output",
"new StringBuilder()",
"String crlf = System.getProperty(\"line.separator\");",
"crlf",
"System.getProperty(\"line.separator\")",
"System.getProperty",
"System",
"\"line.separator\"",
"int[] alphabet = new int[26];",
"alphabet",
"new int[26]",
"26",
"while (in.hasNext()) {\n String input = in.next();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i); \n if ((ch >= 'A' && (int)ch <= 'Z') || (ch >= 'a' && ch <= 'z')) {\n int count = ch % 32 - 1;\n alphabet[count]++;\n }\n }\n }",
"in.hasNext()",
"in.hasNext",
"in",
"{\n String input = in.next();\n for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i); \n if ((ch >= 'A' && (int)ch <= 'Z') || (ch >= 'a' && ch <= 'z')) {\n int count = ch % 32 - 1;\n alphabet[count]++;\n }\n }\n }",
"String input = in.next();",
"input",
"in.next()",
"in.next",
"in",
"for (int i = 0; i < input.length(); i++) {\n char ch = input.charAt(i); \n if ((ch >= 'A' && (int)ch <= 'Z') || (ch >= 'a' && ch <= 'z')) {\n int count = ch % 32 - 1;\n alphabet[count]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < input.length()",
"i",
"input.length()",
"input.length",
"input",
"i++",
"i++",
"i",
"{\n char ch = input.charAt(i); \n if ((ch >= 'A' && (int)ch <= 'Z') || (ch >= 'a' && ch <= 'z')) {\n int count = ch % 32 - 1;\n alphabet[count]++;\n }\n }",
"{\n char ch = input.charAt(i); \n if ((ch >= 'A' && (int)ch <= 'Z') || (ch >= 'a' && ch <= 'z')) {\n int count = ch % 32 - 1;\n alphabet[count]++;\n }\n }",
"char ch = input.charAt(i);",
"ch",
"input.charAt(i)",
"input.charAt",
"input",
"i",
"if ((ch >= 'A' && (int)ch <= 'Z') || (ch >= 'a' && ch <= 'z')) {\n int count = ch % 32 - 1;\n alphabet[count]++;\n }",
"(ch >= 'A' && (int)ch <= 'Z') || (ch >= 'a' && ch <= 'z')",
"(ch >= 'A' && (int)ch <= 'Z')",
"ch >= 'A'",
"ch",
"'A'",
"(int)ch <= 'Z'",
"(int)ch",
"'Z'",
"(ch >= 'a' && ch <= 'z')",
"ch >= 'a'",
"ch",
"'a'",
"ch <= 'z'",
"ch",
"'z'",
"{\n int count = ch % 32 - 1;\n alphabet[count]++;\n }",
"int count = ch % 32 - 1;",
"count",
"ch % 32 - 1",
"ch % 32",
"ch",
"32",
"1",
"alphabet[count]++",
"alphabet[count]",
"alphabet",
"count",
"for (int i = 0; i < alphabet.length; i++) {\n output.append((char)(i + 'a')).append(\" : \").append(alphabet[i]);\n if (i != alphabet.length - 1) output.append(crlf);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < alphabet.length",
"i",
"alphabet.length",
"alphabet",
"alphabet.length",
"i++",
"i++",
"i",
"{\n output.append((char)(i + 'a')).append(\" : \").append(alphabet[i]);\n if (i != alphabet.length - 1) output.append(crlf);\n }",
"{\n output.append((char)(i + 'a')).append(\" : \").append(alphabet[i]);\n if (i != alphabet.length - 1) output.append(crlf);\n }",
"output.append((char)(i + 'a')).append(\" : \").append(alphabet[i])",
"output.append((char)(i + 'a')).append(\" : \").append",
"output.append((char)(i + 'a')).append(\" : \")",
"output.append((char)(i + 'a')).append",
"output.append((char)(i + 'a'))",
"output.append",
"output",
"(char)(i + 'a')",
"i",
"'a'",
"\" : \"",
"alphabet[i]",
"alphabet",
"i",
"if (i != alphabet.length - 1) output.append(crlf);",
"i != alphabet.length - 1",
"i",
"alphabet.length - 1",
"alphabet.length",
"alphabet",
"alphabet.length",
"1",
"output.append(crlf)",
"output.append",
"output",
"crlf",
"System.out.println(output.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"output.toString()",
"output.toString",
"output",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
StringBuilder output = new StringBuilder();
String crlf = System.getProperty("line.separator");
int[] alphabet = new int[26];
while (in.hasNext()) {
String input = in.next();
for (int i = 0; i < input.length(); i++) {
char ch = input.charAt(i);
if ((ch >= 'A' && (int)ch <= 'Z') || (ch >= 'a' && ch <= 'z')) {
int count = ch % 32 - 1;
alphabet[count]++;
}
}
}
for (int i = 0; i < alphabet.length; i++) {
output.append((char)(i + 'a')).append(" : ").append(alphabet[i]);
if (i != alphabet.length - 1) output.append(crlf);
}
System.out.println(output.toString());
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
42,
2,
17,
0,
13,
4,
18,
13,
30,
28,
13,
4,
18,
13,
30,
30,
0,
13,
8,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
8,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
40,
18,
13,
13,
41,
13,
17,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
40,
13,
17,
17,
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
],
[
102,
11
],
[
102,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
22
],
[
22,
23
],
[
14,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
33,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
50,
52
],
[
42,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
61,
63
],
[
53,
64
],
[
39,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
14,
78
],
[
78,
79
],
[
78,
80
],
[
14,
81
],
[
81,
82
],
[
81,
83
],
[
81,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
92,
97
],
[
92,
98
],
[
12,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\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[] alphabetList = new int[26];\n String line;\n while (null != (line = br.readLine())) {\n for (int c : line.toCharArray()) {\n c = c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c;\n if (c >= 0 && c <= 26) {\n alphabetList[c]++;\n }\n }\n }\n int n = 0;\n for (int i : alphabetList) {\n System.out.println((char) (++n + 96) + \" : \" + i);\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[] alphabetList = new int[26];\n String line;\n while (null != (line = br.readLine())) {\n for (int c : line.toCharArray()) {\n c = c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c;\n if (c >= 0 && c <= 26) {\n alphabetList[c]++;\n }\n }\n }\n int n = 0;\n for (int i : alphabetList) {\n System.out.println((char) (++n + 96) + \" : \" + i);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[] alphabetList = new int[26];\n String line;\n while (null != (line = br.readLine())) {\n for (int c : line.toCharArray()) {\n c = c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c;\n if (c >= 0 && c <= 26) {\n alphabetList[c]++;\n }\n }\n }\n int n = 0;\n for (int i : alphabetList) {\n System.out.println((char) (++n + 96) + \" : \" + i);\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[] alphabetList = new int[26];\n String line;\n while (null != (line = br.readLine())) {\n for (int c : line.toCharArray()) {\n c = c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c;\n if (c >= 0 && c <= 26) {\n alphabetList[c]++;\n }\n }\n }\n int n = 0;\n for (int i : alphabetList) {\n System.out.println((char) (++n + 96) + \" : \" + i);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int[] alphabetList = new int[26];",
"alphabetList",
"new int[26]",
"26",
"String line;",
"line",
"while (null != (line = br.readLine())) {\n for (int c : line.toCharArray()) {\n c = c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c;\n if (c >= 0 && c <= 26) {\n alphabetList[c]++;\n }\n }\n }",
"null != (line = br.readLine())",
"null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"{\n for (int c : line.toCharArray()) {\n c = c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c;\n if (c >= 0 && c <= 26) {\n alphabetList[c]++;\n }\n }\n }",
"for (int c : line.toCharArray()) {\n c = c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c;\n if (c >= 0 && c <= 26) {\n alphabetList[c]++;\n }\n }",
"int c",
"line.toCharArray()",
"line.toCharArray",
"line",
"{\n c = c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c;\n if (c >= 0 && c <= 26) {\n alphabetList[c]++;\n }\n }",
"{\n c = c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c;\n if (c >= 0 && c <= 26) {\n alphabetList[c]++;\n }\n }",
"c = c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c",
"c",
"c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c",
"c >= 65 && c <= 90",
"c >= 65",
"c",
"65",
"c <= 90",
"c",
"90",
"c - 65",
"c",
"65",
"c >= 97 && c <= 122 ? c - 97 : c",
"c >= 97 && c <= 122",
"c >= 97",
"c",
"97",
"c <= 122",
"c",
"122",
"c - 97",
"c",
"97",
"c",
"if (c >= 0 && c <= 26) {\n alphabetList[c]++;\n }",
"c >= 0 && c <= 26",
"c >= 0",
"c",
"0",
"c <= 26",
"c",
"26",
"{\n alphabetList[c]++;\n }",
"alphabetList[c]++",
"alphabetList[c]",
"alphabetList",
"c",
"int n = 0;",
"n",
"0",
"for (int i : alphabetList) {\n System.out.println((char) (++n + 96) + \" : \" + i);\n }",
"int i",
"alphabetList",
"{\n System.out.println((char) (++n + 96) + \" : \" + i);\n }",
"{\n System.out.println((char) (++n + 96) + \" : \" + i);\n }",
"System.out.println((char) (++n + 96) + \" : \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"(char) (++n + 96) + \" : \" + i",
"(char) (++n + 96) + \" : \" + i",
"(char) (++n + 96)",
"++n",
"n",
"96",
"\" : \"",
"i",
"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[] alphabetList = new int[26];\n String line;\n while (null != (line = br.readLine())) {\n for (int c : line.toCharArray()) {\n c = c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c;\n if (c >= 0 && c <= 26) {\n alphabetList[c]++;\n }\n }\n }\n int n = 0;\n for (int i : alphabetList) {\n System.out.println((char) (++n + 96) + \" : \" + i);\n }\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[] alphabetList = new int[26];\n String line;\n while (null != (line = br.readLine())) {\n for (int c : line.toCharArray()) {\n c = c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c;\n if (c >= 0 && c <= 26) {\n alphabetList[c]++;\n }\n }\n }\n int n = 0;\n for (int i : alphabetList) {\n System.out.println((char) (++n + 96) + \" : \" + i);\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] alphabetList = new int[26];
String line;
while (null != (line = br.readLine())) {
for (int c : line.toCharArray()) {
c = c >= 65 && c <= 90 ? c - 65 : c >= 97 && c <= 122 ? c - 97 : c;
if (c >= 0 && c <= 26) {
alphabetList[c]++;
}
}
}
int n = 0;
for (int i : alphabetList) {
System.out.println((char) (++n + 96) + " : " + i);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
2,
4,
18,
13,
17,
30,
3,
0,
13,
4,
18,
13,
28,
13,
13,
30,
30,
14,
4,
18,
13,
13,
30,
0,
13,
2,
13,
17,
40,
18,
13,
13,
14,
4,
18,
13,
13,
30,
0,
13,
2,
13,
17,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
117,
8
],
[
117,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
11,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
35,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
35,
49
],
[
49,
50
],
[
49,
51
],
[
49,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
54,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
69,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
11,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
108,
108
],
[
108,
109
],
[
108,
110
],
[
108,
111
],
[
111,
112
],
[
111,
113
],
[
9,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tchar ch[] = new char[1200];\n\t\tint exist[] = new int[26];\n\t\tint index;\n\t\tString str;\n\t\t\n\t\twhile((str = buf.readLine()) != null){\n\t\t\tif(str.length() >= 1200){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tch = str.toCharArray();\n\t\t\t\n\t\t\tfor(char c : ch){\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tindex = (int)(c - 'A');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(c)){\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + exist[i]);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tchar ch[] = new char[1200];\n\t\tint exist[] = new int[26];\n\t\tint index;\n\t\tString str;\n\t\t\n\t\twhile((str = buf.readLine()) != null){\n\t\t\tif(str.length() >= 1200){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tch = str.toCharArray();\n\t\t\t\n\t\t\tfor(char c : ch){\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tindex = (int)(c - 'A');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(c)){\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + exist[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tchar ch[] = new char[1200];\n\t\tint exist[] = new int[26];\n\t\tint index;\n\t\tString str;\n\t\t\n\t\twhile((str = buf.readLine()) != null){\n\t\t\tif(str.length() >= 1200){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tch = str.toCharArray();\n\t\t\t\n\t\t\tfor(char c : ch){\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tindex = (int)(c - 'A');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(c)){\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + exist[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tchar ch[] = new char[1200];\n\t\tint exist[] = new int[26];\n\t\tint index;\n\t\tString str;\n\t\t\n\t\twhile((str = buf.readLine()) != null){\n\t\t\tif(str.length() >= 1200){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tch = str.toCharArray();\n\t\t\t\n\t\t\tfor(char c : ch){\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tindex = (int)(c - 'A');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(c)){\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + exist[i]);\n\t\t}\n\t}",
"BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));",
"buf",
"new BufferedReader(new InputStreamReader(System.in))",
"char ch[] = new char[1200];",
"ch",
"new char[1200]",
"1200",
"int exist[] = new int[26];",
"exist",
"new int[26]",
"26",
"int index;",
"index",
"String str;",
"str",
"while((str = buf.readLine()) != null){\n\t\t\tif(str.length() >= 1200){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tch = str.toCharArray();\n\t\t\t\n\t\t\tfor(char c : ch){\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tindex = (int)(c - 'A');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(c)){\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"(str = buf.readLine()) != null",
"(str = buf.readLine())",
"str",
"buf.readLine()",
"buf.readLine",
"buf",
"null",
"{\n\t\t\tif(str.length() >= 1200){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tch = str.toCharArray();\n\t\t\t\n\t\t\tfor(char c : ch){\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tindex = (int)(c - 'A');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(c)){\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if(str.length() >= 1200){\n\t\t\t\tbreak;\n\t\t\t}",
"str.length() >= 1200",
"str.length()",
"str.length",
"str",
"1200",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"ch = str.toCharArray()",
"ch",
"str.toCharArray()",
"str.toCharArray",
"str",
"for(char c : ch){\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tindex = (int)(c - 'A');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(c)){\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t}",
"char c",
"ch",
"{\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tindex = (int)(c - 'A');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(c)){\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tindex = (int)(c - 'A');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(c)){\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t}",
"if(Character.isUpperCase(c)){\n\t\t\t\t\tindex = (int)(c - 'A');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(c)){\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}",
"Character.isUpperCase(c)",
"Character.isUpperCase",
"Character",
"c",
"{\n\t\t\t\t\tindex = (int)(c - 'A');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}",
"index = (int)(c - 'A')",
"index",
"(int)(c - 'A')",
"c",
"'A'",
"exist[index] ++",
"exist[index]",
"exist",
"index",
"if(Character.isLowerCase(c)){\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}",
"Character.isLowerCase(c)",
"Character.isLowerCase",
"Character",
"c",
"{\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}",
"index = (int)(c - 'a')",
"index",
"(int)(c - 'a')",
"c",
"'a'",
"exist[index] ++",
"exist[index]",
"exist",
"index",
"for(int i = 0; i < 26; i++){\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + exist[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + exist[i]);\n\t\t}",
"{\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + exist[i]);\n\t\t}",
"char c = (char)('a' + i);",
"c",
"(char)('a' + i)",
"'a'",
"i",
"System.out.println(c + \" : \" + exist[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c + \" : \" + exist[i]",
"c + \" : \" + exist[i]",
"c",
"\" : \"",
"exist[i]",
"exist",
"i",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tchar ch[] = new char[1200];\n\t\tint exist[] = new int[26];\n\t\tint index;\n\t\tString str;\n\t\t\n\t\twhile((str = buf.readLine()) != null){\n\t\t\tif(str.length() >= 1200){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tch = str.toCharArray();\n\t\t\t\n\t\t\tfor(char c : ch){\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tindex = (int)(c - 'A');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(c)){\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + exist[i]);\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tchar ch[] = new char[1200];\n\t\tint exist[] = new int[26];\n\t\tint index;\n\t\tString str;\n\t\t\n\t\twhile((str = buf.readLine()) != null){\n\t\t\tif(str.length() >= 1200){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tch = str.toCharArray();\n\t\t\t\n\t\t\tfor(char c : ch){\n\t\t\t\tif(Character.isUpperCase(c)){\n\t\t\t\t\tindex = (int)(c - 'A');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(c)){\n\t\t\t\t\tindex = (int)(c - 'a');\n\t\t\t\t\texist[index] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + exist[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main{
public static void main(String args[]) throws IOException{
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
char ch[] = new char[1200];
int exist[] = new int[26];
int index;
String str;
while((str = buf.readLine()) != null){
if(str.length() >= 1200){
break;
}
ch = str.toCharArray();
for(char c : ch){
if(Character.isUpperCase(c)){
index = (int)(c - 'A');
exist[index] ++;
}
else if(Character.isLowerCase(c)){
index = (int)(c - 'a');
exist[index] ++;
}
}
}
for(int i = 0; i < 26; i++){
char c = (char)('a' + i);
System.out.println(c + " : " + exist[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
13,
30,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
100,
5
],
[
100,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
26,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
40,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
91,
91
],
[
91,
92
],
[
91,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
6,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] chars = new int[256];\n while(sc.hasNextLine()){\n String line= sc.nextLine();\n for(int i=0;i<line.length();i++){\n char ch =Character.toLowerCase(line.charAt(i));\n for(char search ='a';search<='z';search++){\n if(search == ch){\n chars[search]++;\n }\n }\n }\n}\n for(char ch ='a';ch<='z';ch++){\n System.out.println(ch +\" : \"+ chars[ch]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] chars = new int[256];\n while(sc.hasNextLine()){\n String line= sc.nextLine();\n for(int i=0;i<line.length();i++){\n char ch =Character.toLowerCase(line.charAt(i));\n for(char search ='a';search<='z';search++){\n if(search == ch){\n chars[search]++;\n }\n }\n }\n}\n for(char ch ='a';ch<='z';ch++){\n System.out.println(ch +\" : \"+ chars[ch]);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] chars = new int[256];\n while(sc.hasNextLine()){\n String line= sc.nextLine();\n for(int i=0;i<line.length();i++){\n char ch =Character.toLowerCase(line.charAt(i));\n for(char search ='a';search<='z';search++){\n if(search == ch){\n chars[search]++;\n }\n }\n }\n}\n for(char ch ='a';ch<='z';ch++){\n System.out.println(ch +\" : \"+ chars[ch]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] chars = new int[256];\n while(sc.hasNextLine()){\n String line= sc.nextLine();\n for(int i=0;i<line.length();i++){\n char ch =Character.toLowerCase(line.charAt(i));\n for(char search ='a';search<='z';search++){\n if(search == ch){\n chars[search]++;\n }\n }\n }\n}\n for(char ch ='a';ch<='z';ch++){\n System.out.println(ch +\" : \"+ chars[ch]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] chars = new int[256];",
"chars",
"new int[256]",
"256",
"while(sc.hasNextLine()){\n String line= sc.nextLine();\n for(int i=0;i<line.length();i++){\n char ch =Character.toLowerCase(line.charAt(i));\n for(char search ='a';search<='z';search++){\n if(search == ch){\n chars[search]++;\n }\n }\n }\n}",
"sc.hasNextLine()",
"sc.hasNextLine",
"sc",
"{\n String line= sc.nextLine();\n for(int i=0;i<line.length();i++){\n char ch =Character.toLowerCase(line.charAt(i));\n for(char search ='a';search<='z';search++){\n if(search == ch){\n chars[search]++;\n }\n }\n }\n}",
"String line= sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int i=0;i<line.length();i++){\n char ch =Character.toLowerCase(line.charAt(i));\n for(char search ='a';search<='z';search++){\n if(search == ch){\n chars[search]++;\n }\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<line.length()",
"i",
"line.length()",
"line.length",
"line",
"i++",
"i++",
"i",
"{\n char ch =Character.toLowerCase(line.charAt(i));\n for(char search ='a';search<='z';search++){\n if(search == ch){\n chars[search]++;\n }\n }\n }",
"{\n char ch =Character.toLowerCase(line.charAt(i));\n for(char search ='a';search<='z';search++){\n if(search == ch){\n chars[search]++;\n }\n }\n }",
"char ch =Character.toLowerCase(line.charAt(i));",
"ch",
"Character.toLowerCase(line.charAt(i))",
"Character.toLowerCase",
"Character",
"line.charAt(i)",
"line.charAt",
"line",
"i",
"for(char search ='a';search<='z';search++){\n if(search == ch){\n chars[search]++;\n }\n }",
"char search ='a';",
"char search ='a';",
"search",
"'a'",
"search<='z'",
"search",
"'z'",
"search++",
"search++",
"search",
"{\n if(search == ch){\n chars[search]++;\n }\n }",
"{\n if(search == ch){\n chars[search]++;\n }\n }",
"if(search == ch){\n chars[search]++;\n }",
"search == ch",
"search",
"ch",
"{\n chars[search]++;\n }",
"chars[search]++",
"chars[search]",
"chars",
"search",
"for(char ch ='a';ch<='z';ch++){\n System.out.println(ch +\" : \"+ chars[ch]);\n }",
"char ch ='a';",
"char ch ='a';",
"ch",
"'a'",
"ch<='z'",
"ch",
"'z'",
"ch++",
"ch++",
"ch",
"{\n System.out.println(ch +\" : \"+ chars[ch]);\n }",
"{\n System.out.println(ch +\" : \"+ chars[ch]);\n }",
"System.out.println(ch +\" : \"+ chars[ch])",
"System.out.println",
"System.out",
"System",
"System.out",
"ch +\" : \"+ chars[ch]",
"ch +\" : \"+ chars[ch]",
"ch",
"\" : \"",
"chars[ch]",
"chars",
"ch",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] chars = new int[256];\n while(sc.hasNextLine()){\n String line= sc.nextLine();\n for(int i=0;i<line.length();i++){\n char ch =Character.toLowerCase(line.charAt(i));\n for(char search ='a';search<='z';search++){\n if(search == ch){\n chars[search]++;\n }\n }\n }\n}\n for(char ch ='a';ch<='z';ch++){\n System.out.println(ch +\" : \"+ chars[ch]);\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] chars = new int[256];\n while(sc.hasNextLine()){\n String line= sc.nextLine();\n for(int i=0;i<line.length();i++){\n char ch =Character.toLowerCase(line.charAt(i));\n for(char search ='a';search<='z';search++){\n if(search == ch){\n chars[search]++;\n }\n }\n }\n}\n for(char ch ='a';ch<='z';ch++){\n System.out.println(ch +\" : \"+ chars[ch]);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int[] chars = new int[256];
while(sc.hasNextLine()){
String line= sc.nextLine();
for(int i=0;i<line.length();i++){
char ch =Character.toLowerCase(line.charAt(i));
for(char search ='a';search<='z';search++){
if(search == ch){
chars[search]++;
}
}
}
}
for(char ch ='a';ch<='z';ch++){
System.out.println(ch +" : "+ chars[ch]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
41,
13,
2,
2,
17,
17,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
122,
5
],
[
122,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
17,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
38,
48
],
[
48,
49
],
[
49,
50
],
[
38,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
52,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
52,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
89,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
113,
113
],
[
113,
114
],
[
113,
115
],
[
113,
116
],
[
116,
117
],
[
116,
118
],
[
6,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString line = sc.nextLine();\n\t\twhile (sc.hasNext()) {\n\t\t\tline += sc.nextLine();\n\t\t}\n\t\tint len = 'z'-'a'+1;\n\t\tint cnt[] = new int[len];\n\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\tchar c = line.charAt(i);\n\t\t\tif (c >= 'a' && c <= 'z') {\n\t\t\t\tcnt[c-'a']++;\n\t\t\t}\n\t\t\tif (c >= 'A' && c <= 'Z') {\n\t\t\t\tcnt[c-'A']++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + cnt[i]);\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString line = sc.nextLine();\n\t\twhile (sc.hasNext()) {\n\t\t\tline += sc.nextLine();\n\t\t}\n\t\tint len = 'z'-'a'+1;\n\t\tint cnt[] = new int[len];\n\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\tchar c = line.charAt(i);\n\t\t\tif (c >= 'a' && c <= 'z') {\n\t\t\t\tcnt[c-'a']++;\n\t\t\t}\n\t\t\tif (c >= 'A' && c <= 'Z') {\n\t\t\t\tcnt[c-'A']++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + cnt[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString line = sc.nextLine();\n\t\twhile (sc.hasNext()) {\n\t\t\tline += sc.nextLine();\n\t\t}\n\t\tint len = 'z'-'a'+1;\n\t\tint cnt[] = new int[len];\n\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\tchar c = line.charAt(i);\n\t\t\tif (c >= 'a' && c <= 'z') {\n\t\t\t\tcnt[c-'a']++;\n\t\t\t}\n\t\t\tif (c >= 'A' && c <= 'Z') {\n\t\t\t\tcnt[c-'A']++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + cnt[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString line = sc.nextLine();\n\t\twhile (sc.hasNext()) {\n\t\t\tline += sc.nextLine();\n\t\t}\n\t\tint len = 'z'-'a'+1;\n\t\tint cnt[] = new int[len];\n\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\tchar c = line.charAt(i);\n\t\t\tif (c >= 'a' && c <= 'z') {\n\t\t\t\tcnt[c-'a']++;\n\t\t\t}\n\t\t\tif (c >= 'A' && c <= 'Z') {\n\t\t\t\tcnt[c-'A']++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + cnt[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"while (sc.hasNext()) {\n\t\t\tline += sc.nextLine();\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tline += sc.nextLine();\n\t\t}",
"line += sc.nextLine()",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int len = 'z'-'a'+1;",
"len",
"'z'-'a'+1",
"'z'-'a'",
"'z'",
"'a'",
"1",
"int cnt[] = new int[len];",
"cnt",
"new int[len]",
"len",
"for (int i = 0; i < line.length(); i++) {\n\t\t\tchar c = line.charAt(i);\n\t\t\tif (c >= 'a' && c <= 'z') {\n\t\t\t\tcnt[c-'a']++;\n\t\t\t}\n\t\t\tif (c >= 'A' && c <= 'Z') {\n\t\t\t\tcnt[c-'A']++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < line.length()",
"i",
"line.length()",
"line.length",
"line",
"i++",
"i++",
"i",
"{\n\t\t\tchar c = line.charAt(i);\n\t\t\tif (c >= 'a' && c <= 'z') {\n\t\t\t\tcnt[c-'a']++;\n\t\t\t}\n\t\t\tif (c >= 'A' && c <= 'Z') {\n\t\t\t\tcnt[c-'A']++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tchar c = line.charAt(i);\n\t\t\tif (c >= 'a' && c <= 'z') {\n\t\t\t\tcnt[c-'a']++;\n\t\t\t}\n\t\t\tif (c >= 'A' && c <= 'Z') {\n\t\t\t\tcnt[c-'A']++;\n\t\t\t}\n\t\t}",
"char c = line.charAt(i);",
"c",
"line.charAt(i)",
"line.charAt",
"line",
"i",
"if (c >= 'a' && c <= 'z') {\n\t\t\t\tcnt[c-'a']++;\n\t\t\t}",
"c >= 'a' && c <= 'z'",
"c >= 'a'",
"c",
"'a'",
"c <= 'z'",
"c",
"'z'",
"{\n\t\t\t\tcnt[c-'a']++;\n\t\t\t}",
"cnt[c-'a']++",
"cnt[c-'a']",
"cnt",
"c-'a'",
"c",
"'a'",
"if (c >= 'A' && c <= 'Z') {\n\t\t\t\tcnt[c-'A']++;\n\t\t\t}",
"c >= 'A' && c <= 'Z'",
"c >= 'A'",
"c",
"'A'",
"c <= 'Z'",
"c",
"'Z'",
"{\n\t\t\t\tcnt[c-'A']++;\n\t\t\t}",
"cnt[c-'A']++",
"cnt[c-'A']",
"cnt",
"c-'A'",
"c",
"'A'",
"for (int i = 0; i < len; i++) {\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + cnt[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < len",
"i",
"len",
"i++",
"i++",
"i",
"{\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + cnt[i]);\n\t\t}",
"{\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + cnt[i]);\n\t\t}",
"char c = (char)('a' + i);",
"c",
"(char)('a' + i)",
"'a'",
"i",
"System.out.println(c + \" : \" + cnt[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c + \" : \" + cnt[i]",
"c + \" : \" + cnt[i]",
"c",
"\" : \"",
"cnt[i]",
"cnt",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString line = sc.nextLine();\n\t\twhile (sc.hasNext()) {\n\t\t\tline += sc.nextLine();\n\t\t}\n\t\tint len = 'z'-'a'+1;\n\t\tint cnt[] = new int[len];\n\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\tchar c = line.charAt(i);\n\t\t\tif (c >= 'a' && c <= 'z') {\n\t\t\t\tcnt[c-'a']++;\n\t\t\t}\n\t\t\tif (c >= 'A' && c <= 'Z') {\n\t\t\t\tcnt[c-'A']++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + cnt[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString line = sc.nextLine();\n\t\twhile (sc.hasNext()) {\n\t\t\tline += sc.nextLine();\n\t\t}\n\t\tint len = 'z'-'a'+1;\n\t\tint cnt[] = new int[len];\n\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\tchar c = line.charAt(i);\n\t\t\tif (c >= 'a' && c <= 'z') {\n\t\t\t\tcnt[c-'a']++;\n\t\t\t}\n\t\t\tif (c >= 'A' && c <= 'Z') {\n\t\t\t\tcnt[c-'A']++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tchar c = (char)('a' + i);\n\t\t\tSystem.out.println(c + \" : \" + cnt[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
while (sc.hasNext()) {
line += sc.nextLine();
}
int len = 'z'-'a'+1;
int cnt[] = new int[len];
for (int i = 0; i < line.length(); i++) {
char c = line.charAt(i);
if (c >= 'a' && c <= 'z') {
cnt[c-'a']++;
}
if (c >= 'A' && c <= 'Z') {
cnt[c-'A']++;
}
}
for (int i = 0; i < len; i++) {
char c = (char)('a' + i);
System.out.println(c + " : " + cnt[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
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
],
[
151,
8
],
[
151,
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
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
35,
38
],
[
35,
39
],
[
35,
40
],
[
35,
41
],
[
35,
42
],
[
35,
43
],
[
35,
44
],
[
35,
45
],
[
35,
46
],
[
35,
47
],
[
35,
48
],
[
35,
49
],
[
35,
50
],
[
35,
51
],
[
35,
52
],
[
35,
53
],
[
35,
54
],
[
35,
55
],
[
35,
56
],
[
35,
57
],
[
35,
58
],
[
35,
59
],
[
35,
60
],
[
35,
61
],
[
11,
62
],
[
62,
63
],
[
62,
64
],
[
11,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
66,
76
],
[
76,
77
],
[
77,
78
],
[
66,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
80,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
11,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
11,
145
],
[
145,
146
],
[
146,
147
],
[
9,
148
],
[
148,
149
],
[
0,
150
],
[
150,
151
],
[
150,
152
]
]
| [
"import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = \"\";\n\n\t\twhile(sc.hasNext()){\n\t\t\tline += sc.nextLine();\n\t\t}\n\n\t\tchar[] ca = line.toCharArray();\n\t\tchar[] al = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'\n\t\t\t\t, 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't'\n\t\t\t\t, 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\tint[] count = new int[26];\n\n\t\tfor(int i=0;i<ca.length;i++) {\n\t\t\tca[i] = Character.toLowerCase(ca[i]);\n\t\t\tfor(int j=0;j<26;j++) {\n\t\t\t\tif(ca[i]==al[j]) {\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tSystem.out.println(al[i] + \" : \" + count[i]);\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = \"\";\n\n\t\twhile(sc.hasNext()){\n\t\t\tline += sc.nextLine();\n\t\t}\n\n\t\tchar[] ca = line.toCharArray();\n\t\tchar[] al = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'\n\t\t\t\t, 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't'\n\t\t\t\t, 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\tint[] count = new int[26];\n\n\t\tfor(int i=0;i<ca.length;i++) {\n\t\t\tca[i] = Character.toLowerCase(ca[i]);\n\t\t\tfor(int j=0;j<26;j++) {\n\t\t\t\tif(ca[i]==al[j]) {\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tSystem.out.println(al[i] + \" : \" + count[i]);\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = \"\";\n\n\t\twhile(sc.hasNext()){\n\t\t\tline += sc.nextLine();\n\t\t}\n\n\t\tchar[] ca = line.toCharArray();\n\t\tchar[] al = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'\n\t\t\t\t, 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't'\n\t\t\t\t, 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\tint[] count = new int[26];\n\n\t\tfor(int i=0;i<ca.length;i++) {\n\t\t\tca[i] = Character.toLowerCase(ca[i]);\n\t\t\tfor(int j=0;j<26;j++) {\n\t\t\t\tif(ca[i]==al[j]) {\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tSystem.out.println(al[i] + \" : \" + count[i]);\n\t\t}\n\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = \"\";\n\n\t\twhile(sc.hasNext()){\n\t\t\tline += sc.nextLine();\n\t\t}\n\n\t\tchar[] ca = line.toCharArray();\n\t\tchar[] al = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'\n\t\t\t\t, 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't'\n\t\t\t\t, 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\tint[] count = new int[26];\n\n\t\tfor(int i=0;i<ca.length;i++) {\n\t\t\tca[i] = Character.toLowerCase(ca[i]);\n\t\t\tfor(int j=0;j<26;j++) {\n\t\t\t\tif(ca[i]==al[j]) {\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tSystem.out.println(al[i] + \" : \" + count[i]);\n\t\t}\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = \"\";",
"line",
"\"\"",
"while(sc.hasNext()){\n\t\t\tline += sc.nextLine();\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tline += sc.nextLine();\n\t\t}",
"line += sc.nextLine()",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"char[] ca = line.toCharArray();",
"ca",
"line.toCharArray()",
"line.toCharArray",
"line",
"char[] al = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'\n\t\t\t\t, 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't'\n\t\t\t\t, 'u', 'v', 'w', 'x', 'y', 'z'};",
"al",
"{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'\n\t\t\t\t, 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't'\n\t\t\t\t, 'u', 'v', 'w', 'x', 'y', 'z'}",
"'a'",
"'b'",
"'c'",
"'d'",
"'e'",
"'f'",
"'g'",
"'h'",
"'i'",
"'j'",
"'k'",
"'l'",
"'m'",
"'n'",
"'o'",
"'p'",
"'q'",
"'r'",
"'s'",
"'t'",
"'u'",
"'v'",
"'w'",
"'x'",
"'y'",
"'z'",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"for(int i=0;i<ca.length;i++) {\n\t\t\tca[i] = Character.toLowerCase(ca[i]);\n\t\t\tfor(int j=0;j<26;j++) {\n\t\t\t\tif(ca[i]==al[j]) {\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<ca.length",
"i",
"ca.length",
"ca",
"ca.length",
"i++",
"i++",
"i",
"{\n\t\t\tca[i] = Character.toLowerCase(ca[i]);\n\t\t\tfor(int j=0;j<26;j++) {\n\t\t\t\tif(ca[i]==al[j]) {\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tca[i] = Character.toLowerCase(ca[i]);\n\t\t\tfor(int j=0;j<26;j++) {\n\t\t\t\tif(ca[i]==al[j]) {\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"ca[i] = Character.toLowerCase(ca[i])",
"ca[i]",
"ca",
"i",
"Character.toLowerCase(ca[i])",
"Character.toLowerCase",
"Character",
"ca[i]",
"ca",
"i",
"for(int j=0;j<26;j++) {\n\t\t\t\tif(ca[i]==al[j]) {\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<26",
"j",
"26",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(ca[i]==al[j]) {\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(ca[i]==al[j]) {\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}\n\t\t\t}",
"if(ca[i]==al[j]) {\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}",
"ca[i]==al[j]",
"ca[i]",
"ca",
"i",
"al[j]",
"al",
"j",
"{\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}",
"count[j]+=1",
"count[j]",
"count",
"j",
"1",
"for(int i=0;i<26;i++) {\n\t\t\tSystem.out.println(al[i] + \" : \" + count[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(al[i] + \" : \" + count[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(al[i] + \" : \" + count[i]);\n\t\t}",
"System.out.println(al[i] + \" : \" + count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"al[i] + \" : \" + count[i]",
"al[i] + \" : \" + count[i]",
"al[i]",
"al",
"i",
"\" : \"",
"count[i]",
"count",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = \"\";\n\n\t\twhile(sc.hasNext()){\n\t\t\tline += sc.nextLine();\n\t\t}\n\n\t\tchar[] ca = line.toCharArray();\n\t\tchar[] al = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'\n\t\t\t\t, 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't'\n\t\t\t\t, 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\tint[] count = new int[26];\n\n\t\tfor(int i=0;i<ca.length;i++) {\n\t\t\tca[i] = Character.toLowerCase(ca[i]);\n\t\t\tfor(int j=0;j<26;j++) {\n\t\t\t\tif(ca[i]==al[j]) {\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tSystem.out.println(al[i] + \" : \" + count[i]);\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = \"\";\n\n\t\twhile(sc.hasNext()){\n\t\t\tline += sc.nextLine();\n\t\t}\n\n\t\tchar[] ca = line.toCharArray();\n\t\tchar[] al = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'\n\t\t\t\t, 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't'\n\t\t\t\t, 'u', 'v', 'w', 'x', 'y', 'z'};\n\t\tint[] count = new int[26];\n\n\t\tfor(int i=0;i<ca.length;i++) {\n\t\t\tca[i] = Character.toLowerCase(ca[i]);\n\t\t\tfor(int j=0;j<26;j++) {\n\t\t\t\tif(ca[i]==al[j]) {\n\t\t\t\t\tcount[j]+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tSystem.out.println(al[i] + \" : \" + count[i]);\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"Main"
]
| import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException{
Scanner sc = new Scanner(System.in);
String line = "";
while(sc.hasNext()){
line += sc.nextLine();
}
char[] ca = line.toCharArray();
char[] al = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'
, 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't'
, 'u', 'v', 'w', 'x', 'y', 'z'};
int[] count = new int[26];
for(int i=0;i<ca.length;i++) {
ca[i] = Character.toLowerCase(ca[i]);
for(int j=0;j<26;j++) {
if(ca[i]==al[j]) {
count[j]+=1;
}
}
}
for(int i=0;i<26;i++) {
System.out.println(al[i] + " : " + count[i]);
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
4,
18,
13,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
2,
4,
18,
13,
13,
17,
2,
17,
4,
18,
13,
13,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
14,
2,
2,
4,
18,
13,
13,
17,
2,
17,
4,
18,
13,
13,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
124,
5
],
[
124,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
16,
19
],
[
16,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
47,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
46,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
46,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
72,
77
],
[
71,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
70,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
88,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
113,
113
],
[
113,
114
],
[
113,
115
],
[
113,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
118,
120
],
[
6,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
]
| [
"\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint[] english = new int[26];\n\t\tArrays.fill(english,0);\n\t\t\n\t\twhile(stdIn.hasNext()){\n\t\t\tString str = stdIn.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(str.charAt(i)>='a' && 'z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'a']++;\n\t\t\t\t}\n\t\t\t\telse if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tfor(int i=(int)'a';i<=(int)'z';i++){\n\t\t\tSystem.out.println((char)i+\" : \"+english[i-(int)'a']);\n\t\t}\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint[] english = new int[26];\n\t\tArrays.fill(english,0);\n\t\t\n\t\twhile(stdIn.hasNext()){\n\t\t\tString str = stdIn.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(str.charAt(i)>='a' && 'z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'a']++;\n\t\t\t\t}\n\t\t\t\telse if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tfor(int i=(int)'a';i<=(int)'z';i++){\n\t\t\tSystem.out.println((char)i+\" : \"+english[i-(int)'a']);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint[] english = new int[26];\n\t\tArrays.fill(english,0);\n\t\t\n\t\twhile(stdIn.hasNext()){\n\t\t\tString str = stdIn.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(str.charAt(i)>='a' && 'z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'a']++;\n\t\t\t\t}\n\t\t\t\telse if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tfor(int i=(int)'a';i<=(int)'z';i++){\n\t\t\tSystem.out.println((char)i+\" : \"+english[i-(int)'a']);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint[] english = new int[26];\n\t\tArrays.fill(english,0);\n\t\t\n\t\twhile(stdIn.hasNext()){\n\t\t\tString str = stdIn.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(str.charAt(i)>='a' && 'z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'a']++;\n\t\t\t\t}\n\t\t\t\telse if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tfor(int i=(int)'a';i<=(int)'z';i++){\n\t\t\tSystem.out.println((char)i+\" : \"+english[i-(int)'a']);\n\t\t}\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int[] english = new int[26];",
"english",
"new int[26]",
"26",
"Arrays.fill(english,0)",
"Arrays.fill",
"Arrays",
"english",
"0",
"while(stdIn.hasNext()){\n\t\t\tString str = stdIn.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(str.charAt(i)>='a' && 'z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'a']++;\n\t\t\t\t}\n\t\t\t\telse if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}",
"stdIn.hasNext()",
"stdIn.hasNext",
"stdIn",
"{\n\t\t\tString str = stdIn.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(str.charAt(i)>='a' && 'z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'a']++;\n\t\t\t\t}\n\t\t\t\telse if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}",
"String str = stdIn.nextLine();",
"str",
"stdIn.nextLine()",
"stdIn.nextLine",
"stdIn",
"for(int i=0;i<str.length();i++){\n\t\t\t\tif(str.charAt(i)>='a' && 'z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'a']++;\n\t\t\t\t}\n\t\t\t\telse if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(str.charAt(i)>='a' && 'z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'a']++;\n\t\t\t\t}\n\t\t\t\telse if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(str.charAt(i)>='a' && 'z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'a']++;\n\t\t\t\t}\n\t\t\t\telse if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}\n\t\t\t}",
"if(str.charAt(i)>='a' && 'z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'a']++;\n\t\t\t\t}\n\t\t\t\telse if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}",
"str.charAt(i)>='a' && 'z'>=str.charAt(i)",
"str.charAt(i)>='a'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'a'",
"'z'>=str.charAt(i)",
"'z'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"{\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'a']++;\n\t\t\t\t}",
"english[(int)str.charAt(i)-(int)'a']++",
"english[(int)str.charAt(i)-(int)'a']",
"english",
"(int)str.charAt(i)-(int)'a'",
"(int)str.charAt(i)",
"str.charAt",
"str",
"i",
"(int)'a'",
"if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}",
"str.charAt(i)>='A' && 'Z'>=str.charAt(i)",
"str.charAt(i)>='A'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'A'",
"'Z'>=str.charAt(i)",
"'Z'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"{\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}",
"english[(int)str.charAt(i)-(int)'A']++",
"english[(int)str.charAt(i)-(int)'A']",
"english",
"(int)str.charAt(i)-(int)'A'",
"(int)str.charAt(i)",
"str.charAt",
"str",
"i",
"(int)'A'",
"for(int i=(int)'a';i<=(int)'z';i++){\n\t\t\tSystem.out.println((char)i+\" : \"+english[i-(int)'a']);\n\t\t}",
"int i=(int)'a';",
"int i=(int)'a';",
"i",
"(int)'a'",
"i<=(int)'z'",
"i",
"(int)'z'",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println((char)i+\" : \"+english[i-(int)'a']);\n\t\t}",
"{\n\t\t\tSystem.out.println((char)i+\" : \"+english[i-(int)'a']);\n\t\t}",
"System.out.println((char)i+\" : \"+english[i-(int)'a'])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)i+\" : \"+english[i-(int)'a']",
"(char)i+\" : \"+english[i-(int)'a']",
"(char)i",
"\" : \"",
"english[i-(int)'a']",
"english",
"i-(int)'a'",
"i",
"(int)'a'",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint[] english = new int[26];\n\t\tArrays.fill(english,0);\n\t\t\n\t\twhile(stdIn.hasNext()){\n\t\t\tString str = stdIn.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(str.charAt(i)>='a' && 'z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'a']++;\n\t\t\t\t}\n\t\t\t\telse if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tfor(int i=(int)'a';i<=(int)'z';i++){\n\t\t\tSystem.out.println((char)i+\" : \"+english[i-(int)'a']);\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint[] english = new int[26];\n\t\tArrays.fill(english,0);\n\t\t\n\t\twhile(stdIn.hasNext()){\n\t\t\tString str = stdIn.nextLine();\n\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\tif(str.charAt(i)>='a' && 'z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'a']++;\n\t\t\t\t}\n\t\t\t\telse if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){\n\t\t\t\t\tenglish[(int)str.charAt(i)-(int)'A']++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tfor(int i=(int)'a';i<=(int)'z';i++){\n\t\t\tSystem.out.println((char)i+\" : \"+english[i-(int)'a']);\n\t\t}\n\t}\n\n}",
"Main"
]
|
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int[] english = new int[26];
Arrays.fill(english,0);
while(stdIn.hasNext()){
String str = stdIn.nextLine();
for(int i=0;i<str.length();i++){
if(str.charAt(i)>='a' && 'z'>=str.charAt(i)){
english[(int)str.charAt(i)-(int)'a']++;
}
else if(str.charAt(i)>='A' && 'Z'>=str.charAt(i)){
english[(int)str.charAt(i)-(int)'A']++;
}
}
}
for(int i=(int)'a';i<=(int)'z';i++){
System.out.println((char)i+" : "+english[i-(int)'a']);
}
}
} |
[
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,
20,
41,
13,
4,
18,
17,
28,
13,
13,
30,
30,
4,
18,
13,
13,
17,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
4,
18,
13,
28,
13,
13,
30,
30,
14,
4,
18,
13,
13,
30,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
105,
17
],
[
105,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
20,
35
],
[
35,
36
],
[
35,
37
],
[
35,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
20,
45
],
[
45,
46
],
[
20,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
55,
63
],
[
63,
64
],
[
63,
65
],
[
63,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
68,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
20,
84
],
[
84,
85
],
[
84,
86
],
[
84,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
95,
95
],
[
95,
96
],
[
95,
97
],
[
95,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
18,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\t// map????????????\n\t\tMap<Character, Integer> answer = new HashMap<Character, Integer>();\n\t\tchar[] keyList = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\t\tfor (char key : keyList) {\n\t\t\tanswer.put(key, 0);\n\t\t}\n\t\tString input;\n\t\twhile ((input = br.readLine()) != null) {\n\t\t\tchar[] list = input.toLowerCase().toCharArray();\n\n\t\t\tfor(char character : list) {\n\t\t\t\tif (answer.containsKey(character)) {\n\t\t\t\t\tanswer.put(character, answer.get(character) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (char character : keyList) {\n\t\t\tSystem.out.println(character + \" : \" + answer.get(character));\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\t// map????????????\n\t\tMap<Character, Integer> answer = new HashMap<Character, Integer>();\n\t\tchar[] keyList = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\t\tfor (char key : keyList) {\n\t\t\tanswer.put(key, 0);\n\t\t}\n\t\tString input;\n\t\twhile ((input = br.readLine()) != null) {\n\t\t\tchar[] list = input.toLowerCase().toCharArray();\n\n\t\t\tfor(char character : list) {\n\t\t\t\tif (answer.containsKey(character)) {\n\t\t\t\t\tanswer.put(character, answer.get(character) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (char character : keyList) {\n\t\t\tSystem.out.println(character + \" : \" + answer.get(character));\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\t// map????????????\n\t\tMap<Character, Integer> answer = new HashMap<Character, Integer>();\n\t\tchar[] keyList = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\t\tfor (char key : keyList) {\n\t\t\tanswer.put(key, 0);\n\t\t}\n\t\tString input;\n\t\twhile ((input = br.readLine()) != null) {\n\t\t\tchar[] list = input.toLowerCase().toCharArray();\n\n\t\t\tfor(char character : list) {\n\t\t\t\tif (answer.containsKey(character)) {\n\t\t\t\t\tanswer.put(character, answer.get(character) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (char character : keyList) {\n\t\t\tSystem.out.println(character + \" : \" + answer.get(character));\n\t\t}\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\t// map????????????\n\t\tMap<Character, Integer> answer = new HashMap<Character, Integer>();\n\t\tchar[] keyList = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\t\tfor (char key : keyList) {\n\t\t\tanswer.put(key, 0);\n\t\t}\n\t\tString input;\n\t\twhile ((input = br.readLine()) != null) {\n\t\t\tchar[] list = input.toLowerCase().toCharArray();\n\n\t\t\tfor(char character : list) {\n\t\t\t\tif (answer.containsKey(character)) {\n\t\t\t\t\tanswer.put(character, answer.get(character) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (char character : keyList) {\n\t\t\tSystem.out.println(character + \" : \" + answer.get(character));\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuffer sb = new StringBuffer();",
"sb",
"new StringBuffer()",
"Map<Character, Integer> answer = new HashMap<Character, Integer>();",
"answer",
"new HashMap<Character, Integer>()",
"char[] keyList = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();",
"keyList",
"\"abcdefghijklmnopqrstuvwxyz\".toCharArray()",
"\"abcdefghijklmnopqrstuvwxyz\".toCharArray",
"\"abcdefghijklmnopqrstuvwxyz\"",
"for (char key : keyList) {\n\t\t\tanswer.put(key, 0);\n\t\t}",
"char key",
"keyList",
"{\n\t\t\tanswer.put(key, 0);\n\t\t}",
"{\n\t\t\tanswer.put(key, 0);\n\t\t}",
"answer.put(key, 0)",
"answer.put",
"answer",
"key",
"0",
"String input;",
"input",
"while ((input = br.readLine()) != null) {\n\t\t\tchar[] list = input.toLowerCase().toCharArray();\n\n\t\t\tfor(char character : list) {\n\t\t\t\tif (answer.containsKey(character)) {\n\t\t\t\t\tanswer.put(character, answer.get(character) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"(input = br.readLine()) != null",
"(input = br.readLine())",
"input",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tchar[] list = input.toLowerCase().toCharArray();\n\n\t\t\tfor(char character : list) {\n\t\t\t\tif (answer.containsKey(character)) {\n\t\t\t\t\tanswer.put(character, answer.get(character) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"char[] list = input.toLowerCase().toCharArray();",
"list",
"input.toLowerCase().toCharArray()",
"input.toLowerCase().toCharArray",
"input.toLowerCase()",
"input.toLowerCase",
"input",
"for(char character : list) {\n\t\t\t\tif (answer.containsKey(character)) {\n\t\t\t\t\tanswer.put(character, answer.get(character) + 1);\n\t\t\t\t}\n\t\t\t}",
"char character",
"list",
"{\n\t\t\t\tif (answer.containsKey(character)) {\n\t\t\t\t\tanswer.put(character, answer.get(character) + 1);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (answer.containsKey(character)) {\n\t\t\t\t\tanswer.put(character, answer.get(character) + 1);\n\t\t\t\t}\n\t\t\t}",
"if (answer.containsKey(character)) {\n\t\t\t\t\tanswer.put(character, answer.get(character) + 1);\n\t\t\t\t}",
"answer.containsKey(character)",
"answer.containsKey",
"answer",
"character",
"{\n\t\t\t\t\tanswer.put(character, answer.get(character) + 1);\n\t\t\t\t}",
"answer.put(character, answer.get(character) + 1)",
"answer.put",
"answer",
"character",
"answer.get(character) + 1",
"answer.get(character)",
"answer.get",
"answer",
"character",
"1",
"for (char character : keyList) {\n\t\t\tSystem.out.println(character + \" : \" + answer.get(character));\n\t\t}",
"char character",
"keyList",
"{\n\t\t\tSystem.out.println(character + \" : \" + answer.get(character));\n\t\t}",
"{\n\t\t\tSystem.out.println(character + \" : \" + answer.get(character));\n\t\t}",
"System.out.println(character + \" : \" + answer.get(character))",
"System.out.println",
"System.out",
"System",
"System.out",
"character + \" : \" + answer.get(character)",
"character + \" : \" + answer.get(character)",
"character",
"\" : \"",
"answer.get(character)",
"answer.get",
"answer",
"character",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\t// map????????????\n\t\tMap<Character, Integer> answer = new HashMap<Character, Integer>();\n\t\tchar[] keyList = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\t\tfor (char key : keyList) {\n\t\t\tanswer.put(key, 0);\n\t\t}\n\t\tString input;\n\t\twhile ((input = br.readLine()) != null) {\n\t\t\tchar[] list = input.toLowerCase().toCharArray();\n\n\t\t\tfor(char character : list) {\n\t\t\t\tif (answer.containsKey(character)) {\n\t\t\t\t\tanswer.put(character, answer.get(character) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (char character : keyList) {\n\t\t\tSystem.out.println(character + \" : \" + answer.get(character));\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\t// map????????????\n\t\tMap<Character, Integer> answer = new HashMap<Character, Integer>();\n\t\tchar[] keyList = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\t\tfor (char key : keyList) {\n\t\t\tanswer.put(key, 0);\n\t\t}\n\t\tString input;\n\t\twhile ((input = br.readLine()) != null) {\n\t\t\tchar[] list = input.toLowerCase().toCharArray();\n\n\t\t\tfor(char character : list) {\n\t\t\t\tif (answer.containsKey(character)) {\n\t\t\t\t\tanswer.put(character, answer.get(character) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (char character : keyList) {\n\t\t\tSystem.out.println(character + \" : \" + answer.get(character));\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuffer sb = new StringBuffer();
// map????????????
Map<Character, Integer> answer = new HashMap<Character, Integer>();
char[] keyList = "abcdefghijklmnopqrstuvwxyz".toCharArray();
for (char key : keyList) {
answer.put(key, 0);
}
String input;
while ((input = br.readLine()) != null) {
char[] list = input.toLowerCase().toCharArray();
for(char character : list) {
if (answer.containsKey(character)) {
answer.put(character, answer.get(character) + 1);
}
}
}
for (char character : keyList) {
System.out.println(character + " : " + answer.get(character));
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
17,
41,
13,
20,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
17,
13,
4,
18,
18,
13,
13,
17,
13,
18,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
33,
43
],
[
43,
44
],
[
44,
45
],
[
33,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
47,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
66,
76
],
[
76,
77
],
[
77,
78
],
[
66,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
86,
92
],
[
86,
93
],
[
93,
94
],
[
93,
95
],
[
6,
96
],
[
96,
97
]
]
| [
"import java.util.Scanner;\n \nclass Main{\n public static void main(String[] arg){\n String input;\n int [] count = new int[26];\n \n Scanner in = new Scanner(System.in);\n\n while(in.hasNext()){\n input = in.nextLine();\n String tmp = input.toLowerCase();\n\n for(int i=0; i<tmp.length(); i++){\n \n int ch = tmp.charAt(i);\n if(Character.isAlphabetic(ch)){\n // debug int index = ch - 'a';\n // debug System.out.println(index);\n count[ch-'a']++;\n }\n }\n }\n\n for(int i=0; i<count.length; i++){\n\n int ch = 'a' + i;\n System.out.printf(\"%c : %d\\n\", ch, count[i]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] arg){\n String input;\n int [] count = new int[26];\n \n Scanner in = new Scanner(System.in);\n\n while(in.hasNext()){\n input = in.nextLine();\n String tmp = input.toLowerCase();\n\n for(int i=0; i<tmp.length(); i++){\n \n int ch = tmp.charAt(i);\n if(Character.isAlphabetic(ch)){\n // debug int index = ch - 'a';\n // debug System.out.println(index);\n count[ch-'a']++;\n }\n }\n }\n\n for(int i=0; i<count.length; i++){\n\n int ch = 'a' + i;\n System.out.printf(\"%c : %d\\n\", ch, count[i]);\n }\n }\n}",
"Main",
"public static void main(String[] arg){\n String input;\n int [] count = new int[26];\n \n Scanner in = new Scanner(System.in);\n\n while(in.hasNext()){\n input = in.nextLine();\n String tmp = input.toLowerCase();\n\n for(int i=0; i<tmp.length(); i++){\n \n int ch = tmp.charAt(i);\n if(Character.isAlphabetic(ch)){\n // debug int index = ch - 'a';\n // debug System.out.println(index);\n count[ch-'a']++;\n }\n }\n }\n\n for(int i=0; i<count.length; i++){\n\n int ch = 'a' + i;\n System.out.printf(\"%c : %d\\n\", ch, count[i]);\n }\n }",
"main",
"{\n String input;\n int [] count = new int[26];\n \n Scanner in = new Scanner(System.in);\n\n while(in.hasNext()){\n input = in.nextLine();\n String tmp = input.toLowerCase();\n\n for(int i=0; i<tmp.length(); i++){\n \n int ch = tmp.charAt(i);\n if(Character.isAlphabetic(ch)){\n // debug int index = ch - 'a';\n // debug System.out.println(index);\n count[ch-'a']++;\n }\n }\n }\n\n for(int i=0; i<count.length; i++){\n\n int ch = 'a' + i;\n System.out.printf(\"%c : %d\\n\", ch, count[i]);\n }\n }",
"String input;",
"input",
"int [] count = new int[26];",
"count",
"new int[26]",
"26",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"while(in.hasNext()){\n input = in.nextLine();\n String tmp = input.toLowerCase();\n\n for(int i=0; i<tmp.length(); i++){\n \n int ch = tmp.charAt(i);\n if(Character.isAlphabetic(ch)){\n // debug int index = ch - 'a';\n // debug System.out.println(index);\n count[ch-'a']++;\n }\n }\n }",
"in.hasNext()",
"in.hasNext",
"in",
"{\n input = in.nextLine();\n String tmp = input.toLowerCase();\n\n for(int i=0; i<tmp.length(); i++){\n \n int ch = tmp.charAt(i);\n if(Character.isAlphabetic(ch)){\n // debug int index = ch - 'a';\n // debug System.out.println(index);\n count[ch-'a']++;\n }\n }\n }",
"input = in.nextLine()",
"input",
"in.nextLine()",
"in.nextLine",
"in",
"String tmp = input.toLowerCase();",
"tmp",
"input.toLowerCase()",
"input.toLowerCase",
"input",
"for(int i=0; i<tmp.length(); i++){\n \n int ch = tmp.charAt(i);\n if(Character.isAlphabetic(ch)){\n // debug int index = ch - 'a';\n // debug System.out.println(index);\n count[ch-'a']++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<tmp.length()",
"i",
"tmp.length()",
"tmp.length",
"tmp",
"i++",
"i++",
"i",
"{\n \n int ch = tmp.charAt(i);\n if(Character.isAlphabetic(ch)){\n // debug int index = ch - 'a';\n // debug System.out.println(index);\n count[ch-'a']++;\n }\n }",
"{\n \n int ch = tmp.charAt(i);\n if(Character.isAlphabetic(ch)){\n // debug int index = ch - 'a';\n // debug System.out.println(index);\n count[ch-'a']++;\n }\n }",
"int ch = tmp.charAt(i);",
"ch",
"tmp.charAt(i)",
"tmp.charAt",
"tmp",
"i",
"if(Character.isAlphabetic(ch)){\n // debug int index = ch - 'a';\n // debug System.out.println(index);\n count[ch-'a']++;\n }",
"Character.isAlphabetic(ch)",
"Character.isAlphabetic",
"Character",
"ch",
"{\n // debug int index = ch - 'a';\n // debug System.out.println(index);\n count[ch-'a']++;\n }",
"count[ch-'a']++",
"count[ch-'a']",
"count",
"ch-'a'",
"ch",
"'a'",
"for(int i=0; i<count.length; i++){\n\n int ch = 'a' + i;\n System.out.printf(\"%c : %d\\n\", ch, count[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<count.length",
"i",
"count.length",
"count",
"count.length",
"i++",
"i++",
"i",
"{\n\n int ch = 'a' + i;\n System.out.printf(\"%c : %d\\n\", ch, count[i]);\n }",
"{\n\n int ch = 'a' + i;\n System.out.printf(\"%c : %d\\n\", ch, count[i]);\n }",
"int ch = 'a' + i;",
"ch",
"'a' + i",
"'a'",
"i",
"System.out.printf(\"%c : %d\\n\", ch, count[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"ch",
"count[i]",
"count",
"i",
"String[] arg",
"arg"
]
| import java.util.Scanner;
class Main{
public static void main(String[] arg){
String input;
int [] count = new int[26];
Scanner in = new Scanner(System.in);
while(in.hasNext()){
input = in.nextLine();
String tmp = input.toLowerCase();
for(int i=0; i<tmp.length(); i++){
int ch = tmp.charAt(i);
if(Character.isAlphabetic(ch)){
// debug int index = ch - 'a';
// debug System.out.println(index);
count[ch-'a']++;
}
}
}
for(int i=0; i<count.length; i++){
int ch = 'a' + i;
System.out.printf("%c : %d\n", ch, count[i]);
}
}
} |
[
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,
17,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
28,
13,
13,
30,
30,
14,
2,
40,
4,
13,
13,
40,
4,
13,
13,
9,
40,
18,
13,
2,
4,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
104,
17
],
[
104,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
44,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
49,
59
],
[
48,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
20,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
68,
78
],
[
78,
79
],
[
79,
80
],
[
68,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
82,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
18,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
]
| [
"import static java.lang.Character.isLowerCase;\nimport static java.lang.Character.isUpperCase;\nimport static java.lang.Character.toLowerCase;\n\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] cnt = new int[26];\n\t\tString line;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tchar[] chars = line.toCharArray();\n\t\t\tfor (char c : chars) {\n\t\t\t\tif (!isLowerCase(c) && !isUpperCase(c))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tcnt[toLowerCase(c) - 'a']++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.print((char) ('a' + i));\n\t\t\tSystem.out.println(\" : \" + cnt[i]);\n\t\t}\n\t}\n}",
"import static java.lang.Character.isLowerCase;",
"import static java.lang.Character.isLowerCase;",
"import static java.lang.Character.isLowerCase;",
"import static java.lang.Character.isUpperCase;",
"import static java.lang.Character.isUpperCase;",
"import static java.lang.Character.isUpperCase;",
"import static java.lang.Character.toLowerCase;",
"import static java.lang.Character.toLowerCase;",
"import static java.lang.Character.toLowerCase;",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] cnt = new int[26];\n\t\tString line;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tchar[] chars = line.toCharArray();\n\t\t\tfor (char c : chars) {\n\t\t\t\tif (!isLowerCase(c) && !isUpperCase(c))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tcnt[toLowerCase(c) - 'a']++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.print((char) ('a' + i));\n\t\t\tSystem.out.println(\" : \" + cnt[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] cnt = new int[26];\n\t\tString line;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tchar[] chars = line.toCharArray();\n\t\t\tfor (char c : chars) {\n\t\t\t\tif (!isLowerCase(c) && !isUpperCase(c))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tcnt[toLowerCase(c) - 'a']++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.print((char) ('a' + i));\n\t\t\tSystem.out.println(\" : \" + cnt[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] cnt = new int[26];\n\t\tString line;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tchar[] chars = line.toCharArray();\n\t\t\tfor (char c : chars) {\n\t\t\t\tif (!isLowerCase(c) && !isUpperCase(c))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tcnt[toLowerCase(c) - 'a']++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.print((char) ('a' + i));\n\t\t\tSystem.out.println(\" : \" + cnt[i]);\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int[] cnt = new int[26];",
"cnt",
"new int[26]",
"26",
"String line;",
"line",
"while ((line = br.readLine()) != null) {\n\t\t\tchar[] chars = line.toCharArray();\n\t\t\tfor (char c : chars) {\n\t\t\t\tif (!isLowerCase(c) && !isUpperCase(c))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tcnt[toLowerCase(c) - 'a']++;\n\t\t\t}\n\t\t}",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tchar[] chars = line.toCharArray();\n\t\t\tfor (char c : chars) {\n\t\t\t\tif (!isLowerCase(c) && !isUpperCase(c))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tcnt[toLowerCase(c) - 'a']++;\n\t\t\t}\n\t\t}",
"char[] chars = line.toCharArray();",
"chars",
"line.toCharArray()",
"line.toCharArray",
"line",
"for (char c : chars) {\n\t\t\t\tif (!isLowerCase(c) && !isUpperCase(c))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tcnt[toLowerCase(c) - 'a']++;\n\t\t\t}",
"char c",
"chars",
"{\n\t\t\t\tif (!isLowerCase(c) && !isUpperCase(c))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tcnt[toLowerCase(c) - 'a']++;\n\t\t\t}",
"{\n\t\t\t\tif (!isLowerCase(c) && !isUpperCase(c))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tcnt[toLowerCase(c) - 'a']++;\n\t\t\t}",
"if (!isLowerCase(c) && !isUpperCase(c))\n\t\t\t\t\tcontinue;",
"!isLowerCase(c) && !isUpperCase(c)",
"!isLowerCase(c)",
"isLowerCase(c)",
"isLowerCase",
"c",
"!isUpperCase(c)",
"isUpperCase(c)",
"isUpperCase",
"c",
"continue;",
"cnt[toLowerCase(c) - 'a']++",
"cnt[toLowerCase(c) - 'a']",
"cnt",
"toLowerCase(c) - 'a'",
"toLowerCase(c)",
"toLowerCase",
"c",
"'a'",
"for (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.print((char) ('a' + i));\n\t\t\tSystem.out.println(\" : \" + cnt[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cnt.length",
"i",
"cnt.length",
"cnt",
"cnt.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.print((char) ('a' + i));\n\t\t\tSystem.out.println(\" : \" + cnt[i]);\n\t\t}",
"{\n\t\t\tSystem.out.print((char) ('a' + i));\n\t\t\tSystem.out.println(\" : \" + cnt[i]);\n\t\t}",
"System.out.print((char) ('a' + i))",
"System.out.print",
"System.out",
"System",
"System.out",
"(char) ('a' + i)",
"'a'",
"i",
"System.out.println(\" : \" + cnt[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"\" : \" + cnt[i]",
"\" : \"",
"cnt[i]",
"cnt",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] cnt = new int[26];\n\t\tString line;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tchar[] chars = line.toCharArray();\n\t\t\tfor (char c : chars) {\n\t\t\t\tif (!isLowerCase(c) && !isUpperCase(c))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tcnt[toLowerCase(c) - 'a']++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.print((char) ('a' + i));\n\t\t\tSystem.out.println(\" : \" + cnt[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] cnt = new int[26];\n\t\tString line;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tchar[] chars = line.toCharArray();\n\t\t\tfor (char c : chars) {\n\t\t\t\tif (!isLowerCase(c) && !isUpperCase(c))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tcnt[toLowerCase(c) - 'a']++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.print((char) ('a' + i));\n\t\t\tSystem.out.println(\" : \" + cnt[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import static java.lang.Character.isLowerCase;
import static java.lang.Character.isUpperCase;
import static java.lang.Character.toLowerCase;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] cnt = new int[26];
String line;
while ((line = br.readLine()) != null) {
char[] chars = line.toCharArray();
for (char c : chars) {
if (!isLowerCase(c) && !isUpperCase(c))
continue;
cnt[toLowerCase(c) - 'a']++;
}
}
for (int i = 0; i < cnt.length; i++) {
System.out.print((char) ('a' + i));
System.out.println(" : " + cnt[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
40,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
2,
17,
13,
2,
18,
13,
2,
17,
13,
18,
13,
2,
2,
17,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
121,
5
],
[
121,
6
],
[
6,
7
],
[
6,
8
],
[
121,
9
],
[
9,
10
],
[
9,
11
],
[
121,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
22,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
14,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
14,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
14,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
61,
71
],
[
71,
72
],
[
72,
73
],
[
61,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
14,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
83,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
96,
102
],
[
102,
103
],
[
102,
104
],
[
96,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
105,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
12,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint table[] = new int[128];\n\n\t\tfor(int i = 0; i < table.length; i++){\n\t\t\ttable[i] = 0;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(scanner.hasNext()){\n\t\t\tsb.append(scanner.nextLine());\n\t\t}\n\n\t\tString line = sb.toString();\n\n\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\ttable[line.charAt(i)]++;\n\t\t}\n\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a'+i,table['a'+i]+table['a'+i-32]);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint table[] = new int[128];\n\n\t\tfor(int i = 0; i < table.length; i++){\n\t\t\ttable[i] = 0;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(scanner.hasNext()){\n\t\t\tsb.append(scanner.nextLine());\n\t\t}\n\n\t\tString line = sb.toString();\n\n\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\ttable[line.charAt(i)]++;\n\t\t}\n\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a'+i,table['a'+i]+table['a'+i-32]);\n\t\t}\n\t}\n}",
"Main",
"public static final int BIG_NUM = 2000000000;",
"BIG_NUM",
"2000000000",
"public static final int MOD = 1000000007;",
"MOD",
"1000000007",
"public static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint table[] = new int[128];\n\n\t\tfor(int i = 0; i < table.length; i++){\n\t\t\ttable[i] = 0;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(scanner.hasNext()){\n\t\t\tsb.append(scanner.nextLine());\n\t\t}\n\n\t\tString line = sb.toString();\n\n\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\ttable[line.charAt(i)]++;\n\t\t}\n\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a'+i,table['a'+i]+table['a'+i-32]);\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint table[] = new int[128];\n\n\t\tfor(int i = 0; i < table.length; i++){\n\t\t\ttable[i] = 0;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(scanner.hasNext()){\n\t\t\tsb.append(scanner.nextLine());\n\t\t}\n\n\t\tString line = sb.toString();\n\n\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\ttable[line.charAt(i)]++;\n\t\t}\n\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a'+i,table['a'+i]+table['a'+i-32]);\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int table[] = new int[128];",
"table",
"new int[128]",
"128",
"for(int i = 0; i < table.length; i++){\n\t\t\ttable[i] = 0;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < table.length",
"i",
"table.length",
"table",
"table.length",
"i++",
"i++",
"i",
"{\n\t\t\ttable[i] = 0;\n\t\t}",
"{\n\t\t\ttable[i] = 0;\n\t\t}",
"table[i] = 0",
"table[i]",
"table",
"i",
"0",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while(scanner.hasNext()){\n\t\t\tsb.append(scanner.nextLine());\n\t\t}",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\n\t\t\tsb.append(scanner.nextLine());\n\t\t}",
"sb.append(scanner.nextLine())",
"sb.append",
"sb",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"String line = sb.toString();",
"line",
"sb.toString()",
"sb.toString",
"sb",
"for(int i = 0; i < line.length(); i++){\n\t\t\ttable[line.charAt(i)]++;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < line.length()",
"i",
"line.length()",
"line.length",
"line",
"i++",
"i++",
"i",
"{\n\t\t\ttable[line.charAt(i)]++;\n\t\t}",
"{\n\t\t\ttable[line.charAt(i)]++;\n\t\t}",
"table[line.charAt(i)]++",
"table[line.charAt(i)]",
"table",
"line.charAt(i)",
"line.charAt",
"line",
"i",
"for(int i = 0; i < 26; i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a'+i,table['a'+i]+table['a'+i-32]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a'+i,table['a'+i]+table['a'+i-32]);\n\t\t}",
"{\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a'+i,table['a'+i]+table['a'+i-32]);\n\t\t}",
"System.out.printf(\"%c : %d\\n\", 'a'+i,table['a'+i]+table['a'+i-32])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"'a'+i",
"'a'",
"i",
"table['a'+i]+table['a'+i-32]",
"table['a'+i]",
"table",
"'a'+i",
"'a'",
"i",
"table['a'+i-32]",
"table",
"'a'+i-32",
"'a'+i",
"'a'",
"i",
"32",
"String[] args",
"args",
"public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint table[] = new int[128];\n\n\t\tfor(int i = 0; i < table.length; i++){\n\t\t\ttable[i] = 0;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(scanner.hasNext()){\n\t\t\tsb.append(scanner.nextLine());\n\t\t}\n\n\t\tString line = sb.toString();\n\n\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\ttable[line.charAt(i)]++;\n\t\t}\n\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a'+i,table['a'+i]+table['a'+i-32]);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint table[] = new int[128];\n\n\t\tfor(int i = 0; i < table.length; i++){\n\t\t\ttable[i] = 0;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(scanner.hasNext()){\n\t\t\tsb.append(scanner.nextLine());\n\t\t}\n\n\t\tString line = sb.toString();\n\n\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\ttable[line.charAt(i)]++;\n\t\t}\n\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a'+i,table['a'+i]+table['a'+i-32]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static final int BIG_NUM = 2000000000;
public static final int MOD = 1000000007;
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int table[] = new int[128];
for(int i = 0; i < table.length; i++){
table[i] = 0;
}
StringBuilder sb = new StringBuilder();
while(scanner.hasNext()){
sb.append(scanner.nextLine());
}
String line = sb.toString();
for(int i = 0; i < line.length(); i++){
table[line.charAt(i)]++;
}
for(int i = 0; i < 26; i++){
System.out.printf("%c : %d\n", 'a'+i,table['a'+i]+table['a'+i-32]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
2,
4,
18,
13,
13,
17,
2,
4,
18,
13,
13,
17,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
2,
13,
17,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
101,
5
],
[
101,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
47,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
46,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
83,
89
],
[
89,
90
],
[
89,
91
],
[
83,
92
],
[
92,
93
],
[
92,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
6,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int[] cnt = new int[26];\n while(sc.hasNext()){\n\n String str = sc.nextLine();\n str = str.toLowerCase();\n\n for(int i=0;i<str.length();i++){\n if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){\n cnt[str.charAt(i)-'a']++;\n }\n }\n }\n for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a',cnt[i]);\n }\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int[] cnt = new int[26];\n while(sc.hasNext()){\n\n String str = sc.nextLine();\n str = str.toLowerCase();\n\n for(int i=0;i<str.length();i++){\n if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){\n cnt[str.charAt(i)-'a']++;\n }\n }\n }\n for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a',cnt[i]);\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int[] cnt = new int[26];\n while(sc.hasNext()){\n\n String str = sc.nextLine();\n str = str.toLowerCase();\n\n for(int i=0;i<str.length();i++){\n if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){\n cnt[str.charAt(i)-'a']++;\n }\n }\n }\n for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a',cnt[i]);\n }\n sc.close();\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int[] cnt = new int[26];\n while(sc.hasNext()){\n\n String str = sc.nextLine();\n str = str.toLowerCase();\n\n for(int i=0;i<str.length();i++){\n if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){\n cnt[str.charAt(i)-'a']++;\n }\n }\n }\n for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a',cnt[i]);\n }\n sc.close();\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] cnt = new int[26];",
"cnt",
"new int[26]",
"26",
"while(sc.hasNext()){\n\n String str = sc.nextLine();\n str = str.toLowerCase();\n\n for(int i=0;i<str.length();i++){\n if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){\n cnt[str.charAt(i)-'a']++;\n }\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\n String str = sc.nextLine();\n str = str.toLowerCase();\n\n for(int i=0;i<str.length();i++){\n if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){\n cnt[str.charAt(i)-'a']++;\n }\n }\n }",
"String str = sc.nextLine();",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"for(int i=0;i<str.length();i++){\n if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){\n cnt[str.charAt(i)-'a']++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){\n cnt[str.charAt(i)-'a']++;\n }\n }",
"{\n if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){\n cnt[str.charAt(i)-'a']++;\n }\n }",
"if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){\n cnt[str.charAt(i)-'a']++;\n }",
"str.charAt(i) >= 'a' && str.charAt(i) <= 'z'",
"str.charAt(i) >= 'a'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'a'",
"str.charAt(i) <= 'z'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'z'",
"{\n cnt[str.charAt(i)-'a']++;\n }",
"cnt[str.charAt(i)-'a']++",
"cnt[str.charAt(i)-'a']",
"cnt",
"str.charAt(i)-'a'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'a'",
"for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a',cnt[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.printf(\"%c : %d\\n\", i+'a',cnt[i]);\n }",
"{\n System.out.printf(\"%c : %d\\n\", i+'a',cnt[i]);\n }",
"System.out.printf(\"%c : %d\\n\", i+'a',cnt[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"i+'a'",
"i",
"'a'",
"cnt[i]",
"cnt",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int[] cnt = new int[26];\n while(sc.hasNext()){\n\n String str = sc.nextLine();\n str = str.toLowerCase();\n\n for(int i=0;i<str.length();i++){\n if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){\n cnt[str.charAt(i)-'a']++;\n }\n }\n }\n for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a',cnt[i]);\n }\n sc.close();\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int[] cnt = new int[26];\n while(sc.hasNext()){\n\n String str = sc.nextLine();\n str = str.toLowerCase();\n\n for(int i=0;i<str.length();i++){\n if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){\n cnt[str.charAt(i)-'a']++;\n }\n }\n }\n for(int i=0;i<26;i++){\n System.out.printf(\"%c : %d\\n\", i+'a',cnt[i]);\n }\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int[] cnt = new int[26];
while(sc.hasNext()){
String str = sc.nextLine();
str = str.toLowerCase();
for(int i=0;i<str.length();i++){
if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){
cnt[str.charAt(i)-'a']++;
}
}
}
for(int i=0;i<26;i++){
System.out.printf("%c : %d\n", i+'a',cnt[i]);
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
41,
13,
2,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
13,
17,
17,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
105,
5
],
[
105,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
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
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
48,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
48,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
6,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\n\t\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint ans[] = new int[26];\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\t//??\\??????????????±?????????????????¢???????????????????????°????¨??????????\n\t\t\tString moji = scan.nextLine();\n\t\t\t\n\t\t\tmoji = moji.toLowerCase();\n\t\t\n\t\t\tint moji_len = moji.length();\n\t\t\t\n\t\t\t//??\\????????????????????????????????????????????????????????§\n\t\t\tfor(int cnt_len = 0; cnt_len < moji_len; cnt_len++){\n\t\t\t\n\t\t\t\tchar moji_one = moji.charAt(cnt_len);\n\t\t\t\n\t\t\t\t//????????????????????????a~Z??????????????¨?????´????????????????????????\n\t\t\t\tint num = moji_one - 'a'; // ???????????????\n\t\t\t\tif(num >= 0 && num <= 26)\n\t\t\t\t\tans[num]++; \n\t\t\t}\n\t\t}\n\t\t//???????????¨???\n\t\tfor(int cnt_arp = 0; cnt_arp < 26; cnt_arp++){\n\t\t\t\n\t\t\tSystem.out.println((char)(cnt_arp + 'a') + \" : \" + ans[cnt_arp]);\n\t\t}\n\t\t//????§????\n\t\tscan.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\n\t\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint ans[] = new int[26];\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\t//??\\??????????????±?????????????????¢???????????????????????°????¨??????????\n\t\t\tString moji = scan.nextLine();\n\t\t\t\n\t\t\tmoji = moji.toLowerCase();\n\t\t\n\t\t\tint moji_len = moji.length();\n\t\t\t\n\t\t\t//??\\????????????????????????????????????????????????????????§\n\t\t\tfor(int cnt_len = 0; cnt_len < moji_len; cnt_len++){\n\t\t\t\n\t\t\t\tchar moji_one = moji.charAt(cnt_len);\n\t\t\t\n\t\t\t\t//????????????????????????a~Z??????????????¨?????´????????????????????????\n\t\t\t\tint num = moji_one - 'a'; // ???????????????\n\t\t\t\tif(num >= 0 && num <= 26)\n\t\t\t\t\tans[num]++; \n\t\t\t}\n\t\t}\n\t\t//???????????¨???\n\t\tfor(int cnt_arp = 0; cnt_arp < 26; cnt_arp++){\n\t\t\t\n\t\t\tSystem.out.println((char)(cnt_arp + 'a') + \" : \" + ans[cnt_arp]);\n\t\t}\n\t\t//????§????\n\t\tscan.close();\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint ans[] = new int[26];\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\t//??\\??????????????±?????????????????¢???????????????????????°????¨??????????\n\t\t\tString moji = scan.nextLine();\n\t\t\t\n\t\t\tmoji = moji.toLowerCase();\n\t\t\n\t\t\tint moji_len = moji.length();\n\t\t\t\n\t\t\t//??\\????????????????????????????????????????????????????????§\n\t\t\tfor(int cnt_len = 0; cnt_len < moji_len; cnt_len++){\n\t\t\t\n\t\t\t\tchar moji_one = moji.charAt(cnt_len);\n\t\t\t\n\t\t\t\t//????????????????????????a~Z??????????????¨?????´????????????????????????\n\t\t\t\tint num = moji_one - 'a'; // ???????????????\n\t\t\t\tif(num >= 0 && num <= 26)\n\t\t\t\t\tans[num]++; \n\t\t\t}\n\t\t}\n\t\t//???????????¨???\n\t\tfor(int cnt_arp = 0; cnt_arp < 26; cnt_arp++){\n\t\t\t\n\t\t\tSystem.out.println((char)(cnt_arp + 'a') + \" : \" + ans[cnt_arp]);\n\t\t}\n\t\t//????§????\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint ans[] = new int[26];\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\t//??\\??????????????±?????????????????¢???????????????????????°????¨??????????\n\t\t\tString moji = scan.nextLine();\n\t\t\t\n\t\t\tmoji = moji.toLowerCase();\n\t\t\n\t\t\tint moji_len = moji.length();\n\t\t\t\n\t\t\t//??\\????????????????????????????????????????????????????????§\n\t\t\tfor(int cnt_len = 0; cnt_len < moji_len; cnt_len++){\n\t\t\t\n\t\t\t\tchar moji_one = moji.charAt(cnt_len);\n\t\t\t\n\t\t\t\t//????????????????????????a~Z??????????????¨?????´????????????????????????\n\t\t\t\tint num = moji_one - 'a'; // ???????????????\n\t\t\t\tif(num >= 0 && num <= 26)\n\t\t\t\t\tans[num]++; \n\t\t\t}\n\t\t}\n\t\t//???????????¨???\n\t\tfor(int cnt_arp = 0; cnt_arp < 26; cnt_arp++){\n\t\t\t\n\t\t\tSystem.out.println((char)(cnt_arp + 'a') + \" : \" + ans[cnt_arp]);\n\t\t}\n\t\t//????§????\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int ans[] = new int[26];",
"ans",
"new int[26]",
"26",
"while(scan.hasNext()){\n\t\t\t//??\\??????????????±?????????????????¢???????????????????????°????¨??????????\n\t\t\tString moji = scan.nextLine();\n\t\t\t\n\t\t\tmoji = moji.toLowerCase();\n\t\t\n\t\t\tint moji_len = moji.length();\n\t\t\t\n\t\t\t//??\\????????????????????????????????????????????????????????§\n\t\t\tfor(int cnt_len = 0; cnt_len < moji_len; cnt_len++){\n\t\t\t\n\t\t\t\tchar moji_one = moji.charAt(cnt_len);\n\t\t\t\n\t\t\t\t//????????????????????????a~Z??????????????¨?????´????????????????????????\n\t\t\t\tint num = moji_one - 'a'; // ???????????????\n\t\t\t\tif(num >= 0 && num <= 26)\n\t\t\t\t\tans[num]++; \n\t\t\t}\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\t//??\\??????????????±?????????????????¢???????????????????????°????¨??????????\n\t\t\tString moji = scan.nextLine();\n\t\t\t\n\t\t\tmoji = moji.toLowerCase();\n\t\t\n\t\t\tint moji_len = moji.length();\n\t\t\t\n\t\t\t//??\\????????????????????????????????????????????????????????§\n\t\t\tfor(int cnt_len = 0; cnt_len < moji_len; cnt_len++){\n\t\t\t\n\t\t\t\tchar moji_one = moji.charAt(cnt_len);\n\t\t\t\n\t\t\t\t//????????????????????????a~Z??????????????¨?????´????????????????????????\n\t\t\t\tint num = moji_one - 'a'; // ???????????????\n\t\t\t\tif(num >= 0 && num <= 26)\n\t\t\t\t\tans[num]++; \n\t\t\t}\n\t\t}",
"String moji = scan.nextLine();",
"moji",
"scan.nextLine()",
"scan.nextLine",
"scan",
"moji = moji.toLowerCase()",
"moji",
"moji.toLowerCase()",
"moji.toLowerCase",
"moji",
"int moji_len = moji.length();",
"moji_len",
"moji.length()",
"moji.length",
"moji",
"for(int cnt_len = 0; cnt_len < moji_len; cnt_len++){\n\t\t\t\n\t\t\t\tchar moji_one = moji.charAt(cnt_len);\n\t\t\t\n\t\t\t\t//????????????????????????a~Z??????????????¨?????´????????????????????????\n\t\t\t\tint num = moji_one - 'a'; // ???????????????\n\t\t\t\tif(num >= 0 && num <= 26)\n\t\t\t\t\tans[num]++; \n\t\t\t}",
"int cnt_len = 0;",
"int cnt_len = 0;",
"cnt_len",
"0",
"cnt_len < moji_len",
"cnt_len",
"moji_len",
"cnt_len++",
"cnt_len++",
"cnt_len",
"{\n\t\t\t\n\t\t\t\tchar moji_one = moji.charAt(cnt_len);\n\t\t\t\n\t\t\t\t//????????????????????????a~Z??????????????¨?????´????????????????????????\n\t\t\t\tint num = moji_one - 'a'; // ???????????????\n\t\t\t\tif(num >= 0 && num <= 26)\n\t\t\t\t\tans[num]++; \n\t\t\t}",
"{\n\t\t\t\n\t\t\t\tchar moji_one = moji.charAt(cnt_len);\n\t\t\t\n\t\t\t\t//????????????????????????a~Z??????????????¨?????´????????????????????????\n\t\t\t\tint num = moji_one - 'a'; // ???????????????\n\t\t\t\tif(num >= 0 && num <= 26)\n\t\t\t\t\tans[num]++; \n\t\t\t}",
"char moji_one = moji.charAt(cnt_len);",
"moji_one",
"moji.charAt(cnt_len)",
"moji.charAt",
"moji",
"cnt_len",
"int num = moji_one - 'a';",
"num",
"moji_one - 'a'",
"moji_one",
"'a'",
"if(num >= 0 && num <= 26)\n\t\t\t\t\tans[num]++;",
"num >= 0 && num <= 26",
"num >= 0",
"num",
"0",
"num <= 26",
"num",
"26",
"ans[num]++",
"ans[num]",
"ans",
"num",
"for(int cnt_arp = 0; cnt_arp < 26; cnt_arp++){\n\t\t\t\n\t\t\tSystem.out.println((char)(cnt_arp + 'a') + \" : \" + ans[cnt_arp]);\n\t\t}",
"int cnt_arp = 0;",
"int cnt_arp = 0;",
"cnt_arp",
"0",
"cnt_arp < 26",
"cnt_arp",
"26",
"cnt_arp++",
"cnt_arp++",
"cnt_arp",
"{\n\t\t\t\n\t\t\tSystem.out.println((char)(cnt_arp + 'a') + \" : \" + ans[cnt_arp]);\n\t\t}",
"{\n\t\t\t\n\t\t\tSystem.out.println((char)(cnt_arp + 'a') + \" : \" + ans[cnt_arp]);\n\t\t}",
"System.out.println((char)(cnt_arp + 'a') + \" : \" + ans[cnt_arp])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)(cnt_arp + 'a') + \" : \" + ans[cnt_arp]",
"(char)(cnt_arp + 'a') + \" : \" + ans[cnt_arp]",
"(char)(cnt_arp + 'a')",
"cnt_arp",
"'a'",
"\" : \"",
"ans[cnt_arp]",
"ans",
"cnt_arp",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\n\n\t\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint ans[] = new int[26];\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\t//??\\??????????????±?????????????????¢???????????????????????°????¨??????????\n\t\t\tString moji = scan.nextLine();\n\t\t\t\n\t\t\tmoji = moji.toLowerCase();\n\t\t\n\t\t\tint moji_len = moji.length();\n\t\t\t\n\t\t\t//??\\????????????????????????????????????????????????????????§\n\t\t\tfor(int cnt_len = 0; cnt_len < moji_len; cnt_len++){\n\t\t\t\n\t\t\t\tchar moji_one = moji.charAt(cnt_len);\n\t\t\t\n\t\t\t\t//????????????????????????a~Z??????????????¨?????´????????????????????????\n\t\t\t\tint num = moji_one - 'a'; // ???????????????\n\t\t\t\tif(num >= 0 && num <= 26)\n\t\t\t\t\tans[num]++; \n\t\t\t}\n\t\t}\n\t\t//???????????¨???\n\t\tfor(int cnt_arp = 0; cnt_arp < 26; cnt_arp++){\n\t\t\t\n\t\t\tSystem.out.println((char)(cnt_arp + 'a') + \" : \" + ans[cnt_arp]);\n\t\t}\n\t\t//????§????\n\t\tscan.close();\n\t}\n}",
"public class Main {\n\n\n\t\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint ans[] = new int[26];\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\t//??\\??????????????±?????????????????¢???????????????????????°????¨??????????\n\t\t\tString moji = scan.nextLine();\n\t\t\t\n\t\t\tmoji = moji.toLowerCase();\n\t\t\n\t\t\tint moji_len = moji.length();\n\t\t\t\n\t\t\t//??\\????????????????????????????????????????????????????????§\n\t\t\tfor(int cnt_len = 0; cnt_len < moji_len; cnt_len++){\n\t\t\t\n\t\t\t\tchar moji_one = moji.charAt(cnt_len);\n\t\t\t\n\t\t\t\t//????????????????????????a~Z??????????????¨?????´????????????????????????\n\t\t\t\tint num = moji_one - 'a'; // ???????????????\n\t\t\t\tif(num >= 0 && num <= 26)\n\t\t\t\t\tans[num]++; \n\t\t\t}\n\t\t}\n\t\t//???????????¨???\n\t\tfor(int cnt_arp = 0; cnt_arp < 26; cnt_arp++){\n\t\t\t\n\t\t\tSystem.out.println((char)(cnt_arp + 'a') + \" : \" + ans[cnt_arp]);\n\t\t}\n\t\t//????§????\n\t\tscan.close();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int ans[] = new int[26];
while(scan.hasNext()){
//??\??????????????±?????????????????¢???????????????????????°????¨??????????
String moji = scan.nextLine();
moji = moji.toLowerCase();
int moji_len = moji.length();
//??\????????????????????????????????????????????????????????§
for(int cnt_len = 0; cnt_len < moji_len; cnt_len++){
char moji_one = moji.charAt(cnt_len);
//????????????????????????a~Z??????????????¨?????´????????????????????????
int num = moji_one - 'a'; // ???????????????
if(num >= 0 && num <= 26)
ans[num]++;
}
}
//???????????¨???
for(int cnt_arp = 0; cnt_arp < 26; cnt_arp++){
System.out.println((char)(cnt_arp + 'a') + " : " + ans[cnt_arp]);
}
//????§????
scan.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
38,
30,
14,
2,
13,
17,
30,
4,
18,
13,
30,
0,
13,
20,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
13,
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,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
4,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
14,
2,
4,
18,
13,
13,
40,
17,
30,
0,
13,
2,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
13,
40,
17,
30,
0,
13,
2,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
181,
8
],
[
181,
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
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
18,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
11,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
11,
51
],
[
51,
52
],
[
51,
53
],
[
11,
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
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
11,
75
],
[
75,
76
],
[
75,
77
],
[
11,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
78,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
92,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
105,
105
],
[
105,
106
],
[
105,
107
],
[
105,
108
],
[
108,
109
],
[
108,
110
],
[
108,
111
],
[
9,
112
],
[
112,
113
],
[
181,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
121,
126
],
[
126,
127
],
[
120,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
133,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
133,
139
],
[
131,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
116,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
116,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
151,
156
],
[
156,
157
],
[
150,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
163,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
163,
169
],
[
161,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
116,
174
],
[
174,
175
],
[
114,
176
],
[
176,
177
],
[
114,
178
],
[
178,
179
],
[
0,
180
],
[
180,
181
],
[
180,
182
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t */\n\tpublic static void main(String[] args){\n\n Scanner s = null;\n String message = \"\";\n\n try {\n s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\n while (s.hasNext()) {\n message += s.next();\n }\n } finally {\n if (s != null) {\n s.close();\n }\n }\n\t\tchar[] chars = message.toCharArray();\n\t\tArrays.sort(chars);\n\t\tArrayList<Character> chars_arraylist = new ArrayList<Character>();\n\t\tfor(int i = 0; i < chars.length; i++){\n\t\t\tchars_arraylist.add(chars[i]);\n\t\t}\n\t\tString alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tfor(int i=0; i < alphabet.length(); i++){\n\t\t\tCharacter c = alphabet.charAt(i);\n\t\t\tSystem.out.println(c + \" : \" + get_count(chars_arraylist, c));\n\t\t}\n\t}\n\n\tprivate static Integer get_count(ArrayList<Character> chars_arraylist, Character c){\n\t\t\tInteger count = 0;\n\t\tif(chars_arraylist.indexOf(c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);\n\t\t}\n\t\tCharacter upper_c = Character.toUpperCase(c);\n\t\tif(chars_arraylist.indexOf(upper_c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);\n\t\t}\n\t\treturn count;\n\t}\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t */\n\tpublic static void main(String[] args){\n\n Scanner s = null;\n String message = \"\";\n\n try {\n s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\n while (s.hasNext()) {\n message += s.next();\n }\n } finally {\n if (s != null) {\n s.close();\n }\n }\n\t\tchar[] chars = message.toCharArray();\n\t\tArrays.sort(chars);\n\t\tArrayList<Character> chars_arraylist = new ArrayList<Character>();\n\t\tfor(int i = 0; i < chars.length; i++){\n\t\t\tchars_arraylist.add(chars[i]);\n\t\t}\n\t\tString alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tfor(int i=0; i < alphabet.length(); i++){\n\t\t\tCharacter c = alphabet.charAt(i);\n\t\t\tSystem.out.println(c + \" : \" + get_count(chars_arraylist, c));\n\t\t}\n\t}\n\n\tprivate static Integer get_count(ArrayList<Character> chars_arraylist, Character c){\n\t\t\tInteger count = 0;\n\t\tif(chars_arraylist.indexOf(c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);\n\t\t}\n\t\tCharacter upper_c = Character.toUpperCase(c);\n\t\tif(chars_arraylist.indexOf(upper_c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);\n\t\t}\n\t\treturn count;\n\t}\n\n}",
"Main",
"/**\n\t * @param args\n\t * @throws IOException \n\t */\n\tpublic static void main(String[] args){\n\n Scanner s = null;\n String message = \"\";\n\n try {\n s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\n while (s.hasNext()) {\n message += s.next();\n }\n } finally {\n if (s != null) {\n s.close();\n }\n }\n\t\tchar[] chars = message.toCharArray();\n\t\tArrays.sort(chars);\n\t\tArrayList<Character> chars_arraylist = new ArrayList<Character>();\n\t\tfor(int i = 0; i < chars.length; i++){\n\t\t\tchars_arraylist.add(chars[i]);\n\t\t}\n\t\tString alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tfor(int i=0; i < alphabet.length(); i++){\n\t\t\tCharacter c = alphabet.charAt(i);\n\t\t\tSystem.out.println(c + \" : \" + get_count(chars_arraylist, c));\n\t\t}\n\t}",
"main",
"{\n\n Scanner s = null;\n String message = \"\";\n\n try {\n s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\n while (s.hasNext()) {\n message += s.next();\n }\n } finally {\n if (s != null) {\n s.close();\n }\n }\n\t\tchar[] chars = message.toCharArray();\n\t\tArrays.sort(chars);\n\t\tArrayList<Character> chars_arraylist = new ArrayList<Character>();\n\t\tfor(int i = 0; i < chars.length; i++){\n\t\t\tchars_arraylist.add(chars[i]);\n\t\t}\n\t\tString alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tfor(int i=0; i < alphabet.length(); i++){\n\t\t\tCharacter c = alphabet.charAt(i);\n\t\t\tSystem.out.println(c + \" : \" + get_count(chars_arraylist, c));\n\t\t}\n\t}",
"Scanner s = null;",
"s",
"null",
"String message = \"\";",
"message",
"\"\"",
"try {\n s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\n while (s.hasNext()) {\n message += s.next();\n }\n } finally {\n if (s != null) {\n s.close();\n }\n }",
"{\n if (s != null) {\n s.close();\n }\n }",
"if (s != null) {\n s.close();\n }",
"s != null",
"s",
"null",
"{\n s.close();\n }",
"s.close()",
"s.close",
"s",
"{\n s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\n while (s.hasNext()) {\n message += s.next();\n }\n }",
"s = new Scanner(new BufferedReader(new InputStreamReader(System.in)))",
"s",
"new Scanner(new BufferedReader(new InputStreamReader(System.in)))",
"while (s.hasNext()) {\n message += s.next();\n }",
"s.hasNext()",
"s.hasNext",
"s",
"{\n message += s.next();\n }",
"message += s.next()",
"message",
"s.next()",
"s.next",
"s",
"char[] chars = message.toCharArray();",
"chars",
"message.toCharArray()",
"message.toCharArray",
"message",
"Arrays.sort(chars)",
"Arrays.sort",
"Arrays",
"chars",
"ArrayList<Character> chars_arraylist = new ArrayList<Character>();",
"chars_arraylist",
"new ArrayList<Character>()",
"for(int i = 0; i < chars.length; i++){\n\t\t\tchars_arraylist.add(chars[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < chars.length",
"i",
"chars.length",
"chars",
"chars.length",
"i++",
"i++",
"i",
"{\n\t\t\tchars_arraylist.add(chars[i]);\n\t\t}",
"{\n\t\t\tchars_arraylist.add(chars[i]);\n\t\t}",
"chars_arraylist.add(chars[i])",
"chars_arraylist.add",
"chars_arraylist",
"chars[i]",
"chars",
"i",
"String alphabet = \"abcdefghijklmnopqrstuvwxyz\";",
"alphabet",
"\"abcdefghijklmnopqrstuvwxyz\"",
"for(int i=0; i < alphabet.length(); i++){\n\t\t\tCharacter c = alphabet.charAt(i);\n\t\t\tSystem.out.println(c + \" : \" + get_count(chars_arraylist, c));\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i < alphabet.length()",
"i",
"alphabet.length()",
"alphabet.length",
"alphabet",
"i++",
"i++",
"i",
"{\n\t\t\tCharacter c = alphabet.charAt(i);\n\t\t\tSystem.out.println(c + \" : \" + get_count(chars_arraylist, c));\n\t\t}",
"{\n\t\t\tCharacter c = alphabet.charAt(i);\n\t\t\tSystem.out.println(c + \" : \" + get_count(chars_arraylist, c));\n\t\t}",
"Character c = alphabet.charAt(i);",
"c",
"alphabet.charAt(i)",
"alphabet.charAt",
"alphabet",
"i",
"System.out.println(c + \" : \" + get_count(chars_arraylist, c))",
"System.out.println",
"System.out",
"System",
"System.out",
"c + \" : \" + get_count(chars_arraylist, c)",
"c + \" : \" + get_count(chars_arraylist, c)",
"c",
"\" : \"",
"get_count(chars_arraylist, c)",
"get_count",
"chars_arraylist",
"c",
"String[] args",
"args",
"private static Integer get_count(ArrayList<Character> chars_arraylist, Character c){\n\t\t\tInteger count = 0;\n\t\tif(chars_arraylist.indexOf(c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);\n\t\t}\n\t\tCharacter upper_c = Character.toUpperCase(c);\n\t\tif(chars_arraylist.indexOf(upper_c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);\n\t\t}\n\t\treturn count;\n\t}",
"get_count",
"{\n\t\t\tInteger count = 0;\n\t\tif(chars_arraylist.indexOf(c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);\n\t\t}\n\t\tCharacter upper_c = Character.toUpperCase(c);\n\t\tif(chars_arraylist.indexOf(upper_c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);\n\t\t}\n\t\treturn count;\n\t}",
"Integer count = 0;",
"count",
"0",
"if(chars_arraylist.indexOf(c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);\n\t\t}",
"chars_arraylist.indexOf(c) != -1",
"chars_arraylist.indexOf(c)",
"chars_arraylist.indexOf",
"chars_arraylist",
"c",
"-1",
"1",
"{\n\t\t\tcount = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);\n\t\t}",
"count = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c)",
"count",
"count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c)",
"count + chars_arraylist.lastIndexOf(c) + 1",
"count + chars_arraylist.lastIndexOf(c) + 1",
"count",
"chars_arraylist.lastIndexOf(c)",
"chars_arraylist.lastIndexOf",
"chars_arraylist",
"c",
"1",
"chars_arraylist.indexOf(c)",
"chars_arraylist.indexOf",
"chars_arraylist",
"c",
"Character upper_c = Character.toUpperCase(c);",
"upper_c",
"Character.toUpperCase(c)",
"Character.toUpperCase",
"Character",
"c",
"if(chars_arraylist.indexOf(upper_c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);\n\t\t}",
"chars_arraylist.indexOf(upper_c) != -1",
"chars_arraylist.indexOf(upper_c)",
"chars_arraylist.indexOf",
"chars_arraylist",
"upper_c",
"-1",
"1",
"{\n\t\t\tcount = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);\n\t\t}",
"count = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c)",
"count",
"count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c)",
"count + chars_arraylist.lastIndexOf(upper_c) + 1",
"count + chars_arraylist.lastIndexOf(upper_c) + 1",
"count",
"chars_arraylist.lastIndexOf(upper_c)",
"chars_arraylist.lastIndexOf",
"chars_arraylist",
"upper_c",
"1",
"chars_arraylist.indexOf(upper_c)",
"chars_arraylist.indexOf",
"chars_arraylist",
"upper_c",
"return count;",
"count",
"ArrayList<Character> chars_arraylist",
"chars_arraylist",
"Character c",
"c",
"public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t */\n\tpublic static void main(String[] args){\n\n Scanner s = null;\n String message = \"\";\n\n try {\n s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\n while (s.hasNext()) {\n message += s.next();\n }\n } finally {\n if (s != null) {\n s.close();\n }\n }\n\t\tchar[] chars = message.toCharArray();\n\t\tArrays.sort(chars);\n\t\tArrayList<Character> chars_arraylist = new ArrayList<Character>();\n\t\tfor(int i = 0; i < chars.length; i++){\n\t\t\tchars_arraylist.add(chars[i]);\n\t\t}\n\t\tString alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tfor(int i=0; i < alphabet.length(); i++){\n\t\t\tCharacter c = alphabet.charAt(i);\n\t\t\tSystem.out.println(c + \" : \" + get_count(chars_arraylist, c));\n\t\t}\n\t}\n\n\tprivate static Integer get_count(ArrayList<Character> chars_arraylist, Character c){\n\t\t\tInteger count = 0;\n\t\tif(chars_arraylist.indexOf(c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);\n\t\t}\n\t\tCharacter upper_c = Character.toUpperCase(c);\n\t\tif(chars_arraylist.indexOf(upper_c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);\n\t\t}\n\t\treturn count;\n\t}\n\n}",
"public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t */\n\tpublic static void main(String[] args){\n\n Scanner s = null;\n String message = \"\";\n\n try {\n s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\n while (s.hasNext()) {\n message += s.next();\n }\n } finally {\n if (s != null) {\n s.close();\n }\n }\n\t\tchar[] chars = message.toCharArray();\n\t\tArrays.sort(chars);\n\t\tArrayList<Character> chars_arraylist = new ArrayList<Character>();\n\t\tfor(int i = 0; i < chars.length; i++){\n\t\t\tchars_arraylist.add(chars[i]);\n\t\t}\n\t\tString alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tfor(int i=0; i < alphabet.length(); i++){\n\t\t\tCharacter c = alphabet.charAt(i);\n\t\t\tSystem.out.println(c + \" : \" + get_count(chars_arraylist, c));\n\t\t}\n\t}\n\n\tprivate static Integer get_count(ArrayList<Character> chars_arraylist, Character c){\n\t\t\tInteger count = 0;\n\t\tif(chars_arraylist.indexOf(c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);\n\t\t}\n\t\tCharacter upper_c = Character.toUpperCase(c);\n\t\tif(chars_arraylist.indexOf(upper_c) != -1){\n\t\t\tcount = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);\n\t\t}\n\t\treturn count;\n\t}\n\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args){
Scanner s = null;
String message = "";
try {
s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
while (s.hasNext()) {
message += s.next();
}
} finally {
if (s != null) {
s.close();
}
}
char[] chars = message.toCharArray();
Arrays.sort(chars);
ArrayList<Character> chars_arraylist = new ArrayList<Character>();
for(int i = 0; i < chars.length; i++){
chars_arraylist.add(chars[i]);
}
String alphabet = "abcdefghijklmnopqrstuvwxyz";
for(int i=0; i < alphabet.length(); i++){
Character c = alphabet.charAt(i);
System.out.println(c + " : " + get_count(chars_arraylist, c));
}
}
private static Integer get_count(ArrayList<Character> chars_arraylist, Character c){
Integer count = 0;
if(chars_arraylist.indexOf(c) != -1){
count = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);
}
Character upper_c = Character.toUpperCase(c);
if(chars_arraylist.indexOf(upper_c) != -1){
count = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);
}
return count;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
17,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
3,
41,
13,
4,
18,
13,
28,
13,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
2,
17,
13,
2,
13,
2,
17,
13,
40,
18,
13,
13,
28,
13,
13,
30,
4,
18,
18,
13,
13,
17,
40,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
19
],
[
19,
20
],
[
19,
21
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
27,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
27,
43
],
[
43,
44
],
[
43,
45
],
[
43,
46
],
[
47,
47
],
[
47,
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
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
64,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
63,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
14,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
83,
89
],
[
89,
90
],
[
83,
91
],
[
12,
92
],
[
92,
93
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n\t\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint[] azArray = new int[26];\n\t\tchar ch = 'a';\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\twhile(true)\n\t\t{\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str==null) break;\n\n\t\t\tchar[] cArray = str.toCharArray();\n\n\t\t\tfor(int n : cArray)\n\t\t\t{\n\t\t\t\tfor(int i=0; i<azArray.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif(n==65+i || n==(97+i) ) azArray[i]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int n : azArray) System.out.printf(\"%c : %d\\n\",ch++,n);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main{\n\t\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint[] azArray = new int[26];\n\t\tchar ch = 'a';\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\twhile(true)\n\t\t{\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str==null) break;\n\n\t\t\tchar[] cArray = str.toCharArray();\n\n\t\t\tfor(int n : cArray)\n\t\t\t{\n\t\t\t\tfor(int i=0; i<azArray.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif(n==65+i || n==(97+i) ) azArray[i]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int n : azArray) System.out.printf(\"%c : %d\\n\",ch++,n);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException\n\t{\n\t\tint[] azArray = new int[26];\n\t\tchar ch = 'a';\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\twhile(true)\n\t\t{\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str==null) break;\n\n\t\t\tchar[] cArray = str.toCharArray();\n\n\t\t\tfor(int n : cArray)\n\t\t\t{\n\t\t\t\tfor(int i=0; i<azArray.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif(n==65+i || n==(97+i) ) azArray[i]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int n : azArray) System.out.printf(\"%c : %d\\n\",ch++,n);\n\t}",
"main",
"{\n\t\tint[] azArray = new int[26];\n\t\tchar ch = 'a';\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\twhile(true)\n\t\t{\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str==null) break;\n\n\t\t\tchar[] cArray = str.toCharArray();\n\n\t\t\tfor(int n : cArray)\n\t\t\t{\n\t\t\t\tfor(int i=0; i<azArray.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif(n==65+i || n==(97+i) ) azArray[i]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int n : azArray) System.out.printf(\"%c : %d\\n\",ch++,n);\n\t}",
"int[] azArray = new int[26];",
"azArray",
"new int[26]",
"26",
"char ch = 'a';",
"ch",
"'a'",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );",
"br",
"new BufferedReader(new InputStreamReader(System.in) )",
"while(true)\n\t\t{\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str==null) break;\n\n\t\t\tchar[] cArray = str.toCharArray();\n\n\t\t\tfor(int n : cArray)\n\t\t\t{\n\t\t\t\tfor(int i=0; i<azArray.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif(n==65+i || n==(97+i) ) azArray[i]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str==null) break;\n\n\t\t\tchar[] cArray = str.toCharArray();\n\n\t\t\tfor(int n : cArray)\n\t\t\t{\n\t\t\t\tfor(int i=0; i<azArray.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif(n==65+i || n==(97+i) ) azArray[i]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"if(str==null) break;",
"str==null",
"str",
"null",
"break;",
"char[] cArray = str.toCharArray();",
"cArray",
"str.toCharArray()",
"str.toCharArray",
"str",
"for(int n : cArray)\n\t\t\t{\n\t\t\t\tfor(int i=0; i<azArray.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif(n==65+i || n==(97+i) ) azArray[i]++;\n\t\t\t\t}\n\t\t\t}",
"int n",
"cArray",
"{\n\t\t\t\tfor(int i=0; i<azArray.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif(n==65+i || n==(97+i) ) azArray[i]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int i=0; i<azArray.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif(n==65+i || n==(97+i) ) azArray[i]++;\n\t\t\t\t}\n\t\t\t}",
"for(int i=0; i<azArray.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif(n==65+i || n==(97+i) ) azArray[i]++;\n\t\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<azArray.length",
"i",
"azArray.length",
"azArray",
"azArray.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tif(n==65+i || n==(97+i) ) azArray[i]++;\n\t\t\t\t}",
"{\n\t\t\t\t\tif(n==65+i || n==(97+i) ) azArray[i]++;\n\t\t\t\t}",
"if(n==65+i || n==(97+i) ) azArray[i]++;",
"n==65+i || n==(97+i)",
"n==65+i",
"n",
"65+i",
"65",
"i",
"n==(97+i)",
"n",
"(97+i)",
"97",
"i",
"azArray[i]++",
"azArray[i]",
"azArray",
"i",
"for(int n : azArray) System.out.printf(\"%c : %d\\n\",ch++,n);",
"int n",
"azArray",
"System.out.printf(\"%c : %d\\n\",ch++,n);",
"System.out.printf(\"%c : %d\\n\",ch++,n)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"ch++",
"ch",
"n",
"String[] args",
"args"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String[] args) throws IOException
{
int[] azArray = new int[26];
char ch = 'a';
BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );
while(true)
{
String str = br.readLine();
if(str==null) break;
char[] cArray = str.toCharArray();
for(int n : cArray)
{
for(int i=0; i<azArray.length; i++)
{
if(n==65+i || n==(97+i) ) azArray[i]++;
}
}
}
for(int n : azArray) System.out.printf("%c : %d\n",ch++,n);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
42,
2,
13,
17,
30,
0,
13,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
13,
13,
17,
14,
40,
2,
2,
17,
13,
2,
13,
17,
30,
9,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
2,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
129,
8
],
[
129,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
21,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
11,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
11,
55
],
[
55,
56
],
[
11,
57
],
[
57,
58
],
[
57,
59
],
[
11,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
61,
71
],
[
71,
72
],
[
72,
73
],
[
61,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
75,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
84,
93
],
[
93,
94
],
[
75,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
11,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
99,
109
],
[
109,
110
],
[
110,
111
],
[
99,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
114,
120
],
[
120,
121
],
[
120,
122
],
[
114,
123
],
[
123,
124
],
[
123,
125
],
[
9,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
]
| [
"import java.util.Scanner;\nimport java.io.*;\npublic class Main{\n\tpublic static void main(String [] args){\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);\n\t\tString work = \"\";\n\t\tString input = \"\";\n\t\t\n\t\ttry{\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\twork = work.toLowerCase();\n\t\tint code;\n\t\tint count[] = new int[26];\n\t\tfor(int i = 0; i < work.length(); i++){\n\t\t\tcode = ((int)work.charAt(i)) - 97;\n\t\t\tif(!(0 <= code && code <= 25)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcount[code]++;\n\t\t}\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\t\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,count[i]);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tpublic static void main(String [] args){\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);\n\t\tString work = \"\";\n\t\tString input = \"\";\n\t\t\n\t\ttry{\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\twork = work.toLowerCase();\n\t\tint code;\n\t\tint count[] = new int[26];\n\t\tfor(int i = 0; i < work.length(); i++){\n\t\t\tcode = ((int)work.charAt(i)) - 97;\n\t\t\tif(!(0 <= code && code <= 25)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcount[code]++;\n\t\t}\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\t\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,count[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String [] args){\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);\n\t\tString work = \"\";\n\t\tString input = \"\";\n\t\t\n\t\ttry{\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\twork = work.toLowerCase();\n\t\tint code;\n\t\tint count[] = new int[26];\n\t\tfor(int i = 0; i < work.length(); i++){\n\t\t\tcode = ((int)work.charAt(i)) - 97;\n\t\t\tif(!(0 <= code && code <= 25)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcount[code]++;\n\t\t}\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\t\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,count[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);\n\t\tString work = \"\";\n\t\tString input = \"\";\n\t\t\n\t\ttry{\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\twork = work.toLowerCase();\n\t\tint code;\n\t\tint count[] = new int[26];\n\t\tfor(int i = 0; i < work.length(); i++){\n\t\t\tcode = ((int)work.charAt(i)) - 97;\n\t\t\tif(!(0 <= code && code <= 25)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcount[code]++;\n\t\t}\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\t\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,count[i]);\n\t\t}\n\t}",
"BufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);",
"r",
"new BufferedReader(new InputStreamReader(System.in),1200)",
"String work = \"\";",
"work",
"\"\"",
"String input = \"\";",
"input",
"\"\"",
"try{\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\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\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}",
"input = r.readLine()",
"input",
"r.readLine()",
"r.readLine",
"r",
"while(input != null){\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}",
"input != null",
"input",
"null",
"{\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}",
"work += input",
"work",
"input",
"input = r.readLine()",
"input",
"r.readLine()",
"r.readLine",
"r",
"work = work.toLowerCase()",
"work",
"work.toLowerCase()",
"work.toLowerCase",
"work",
"int code;",
"code",
"int count[] = new int[26];",
"count",
"new int[26]",
"26",
"for(int i = 0; i < work.length(); i++){\n\t\t\tcode = ((int)work.charAt(i)) - 97;\n\t\t\tif(!(0 <= code && code <= 25)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcount[code]++;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < work.length()",
"i",
"work.length()",
"work.length",
"work",
"i++",
"i++",
"i",
"{\n\t\t\tcode = ((int)work.charAt(i)) - 97;\n\t\t\tif(!(0 <= code && code <= 25)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcount[code]++;\n\t\t}",
"{\n\t\t\tcode = ((int)work.charAt(i)) - 97;\n\t\t\tif(!(0 <= code && code <= 25)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcount[code]++;\n\t\t}",
"code = ((int)work.charAt(i)) - 97",
"code",
"((int)work.charAt(i)) - 97",
"((int)work.charAt(i))",
"work.charAt",
"work",
"i",
"97",
"if(!(0 <= code && code <= 25)){\n\t\t\t\tcontinue;\n\t\t\t}",
"!(0 <= code && code <= 25)",
"(0 <= code && code <= 25)",
"0 <= code",
"0",
"code",
"code <= 25",
"code",
"25",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"count[code]++",
"count[code]",
"count",
"code",
"for(int i = 0; i < count.length; i++){\n\t\t\t\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,count[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count.length",
"i",
"count.length",
"count",
"count.length",
"i++",
"i++",
"i",
"{\n\t\t\t\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,count[i]);\n\t\t}",
"{\n\t\t\t\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,count[i]);\n\t\t}",
"System.out.printf(\"%c : %d\\n\",i+97,count[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"i+97",
"i",
"97",
"count[i]",
"count",
"i",
"String [] args",
"args",
"public class Main{\n\tpublic static void main(String [] args){\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);\n\t\tString work = \"\";\n\t\tString input = \"\";\n\t\t\n\t\ttry{\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\twork = work.toLowerCase();\n\t\tint code;\n\t\tint count[] = new int[26];\n\t\tfor(int i = 0; i < work.length(); i++){\n\t\t\tcode = ((int)work.charAt(i)) - 97;\n\t\t\tif(!(0 <= code && code <= 25)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcount[code]++;\n\t\t}\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\t\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,count[i]);\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String [] args){\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);\n\t\tString work = \"\";\n\t\tString input = \"\";\n\t\t\n\t\ttry{\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\twork = work.toLowerCase();\n\t\tint code;\n\t\tint count[] = new int[26];\n\t\tfor(int i = 0; i < work.length(); i++){\n\t\t\tcode = ((int)work.charAt(i)) - 97;\n\t\t\tif(!(0 <= code && code <= 25)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcount[code]++;\n\t\t}\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\t\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,count[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
import java.io.*;
public class Main{
public static void main(String [] args){
BufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);
String work = "";
String input = "";
try{
input = r.readLine();
while(input != null){
work += input;
input = r.readLine();
}
}catch(Exception e){
System.out.println(e);
}
work = work.toLowerCase();
int code;
int count[] = new int[26];
for(int i = 0; i < work.length(); i++){
code = ((int)work.charAt(i)) - 97;
if(!(0 <= code && code <= 25)){
continue;
}
count[code]++;
}
for(int i = 0; i < count.length; i++){
System.out.printf("%c : %d\n",i+97,count[i]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
42,
2,
0,
13,
4,
18,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
13,
30,
40,
18,
13,
13,
40,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
40,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
132,
8
],
[
132,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
45,
55
],
[
55,
56
],
[
56,
57
],
[
45,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
62,
67
],
[
59,
68
],
[
68,
69
],
[
68,
70
],
[
59,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
71,
81
],
[
81,
82
],
[
82,
83
],
[
71,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
85,
95
],
[
95,
96
],
[
35,
97
],
[
97,
98
],
[
97,
99
],
[
35,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
100,
110
],
[
110,
111
],
[
111,
112
],
[
100,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
121,
121
],
[
121,
122
],
[
121,
123
],
[
121,
124
],
[
124,
125
],
[
124,
126
],
[
114,
127
],
[
127,
128
],
[
9,
129
],
[
129,
130
],
[
0,
131
],
[
131,
132
],
[
131,
133
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tchar c;\n\t\tchar cc;\n\t\tint sum[] = new int[26];\n\t\ttry {\n\t\t\twhile((str=br.readLine()) !=null){\n\t\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\t\tc=str.toLowerCase().charAt(i);\n\t\t\t\t\tcc='a';\n\t\t\t\t\tfor(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcc='a';\n\t\t\tfor(int i = 0 ; i < sum.length;i++){\n\t\t\t\tSystem.out.println(cc+\" : \"+sum[i]);\n\t\t\t\tcc++;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tchar c;\n\t\tchar cc;\n\t\tint sum[] = new int[26];\n\t\ttry {\n\t\t\twhile((str=br.readLine()) !=null){\n\t\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\t\tc=str.toLowerCase().charAt(i);\n\t\t\t\t\tcc='a';\n\t\t\t\t\tfor(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcc='a';\n\t\t\tfor(int i = 0 ; i < sum.length;i++){\n\t\t\t\tSystem.out.println(cc+\" : \"+sum[i]);\n\t\t\t\tcc++;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tchar c;\n\t\tchar cc;\n\t\tint sum[] = new int[26];\n\t\ttry {\n\t\t\twhile((str=br.readLine()) !=null){\n\t\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\t\tc=str.toLowerCase().charAt(i);\n\t\t\t\t\tcc='a';\n\t\t\t\t\tfor(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcc='a';\n\t\t\tfor(int i = 0 ; i < sum.length;i++){\n\t\t\t\tSystem.out.println(cc+\" : \"+sum[i]);\n\t\t\t\tcc++;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tchar c;\n\t\tchar cc;\n\t\tint sum[] = new int[26];\n\t\ttry {\n\t\t\twhile((str=br.readLine()) !=null){\n\t\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\t\tc=str.toLowerCase().charAt(i);\n\t\t\t\t\tcc='a';\n\t\t\t\t\tfor(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcc='a';\n\t\t\tfor(int i = 0 ; i < sum.length;i++){\n\t\t\t\tSystem.out.println(cc+\" : \"+sum[i]);\n\t\t\t\tcc++;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"char c;",
"c",
"char cc;",
"cc",
"int sum[] = new int[26];",
"sum",
"new int[26]",
"26",
"try {\n\t\t\twhile((str=br.readLine()) !=null){\n\t\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\t\tc=str.toLowerCase().charAt(i);\n\t\t\t\t\tcc='a';\n\t\t\t\t\tfor(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcc='a';\n\t\t\tfor(int i = 0 ; i < sum.length;i++){\n\t\t\t\tSystem.out.println(cc+\" : \"+sum[i]);\n\t\t\t\tcc++;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}",
"catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}",
"Exception e",
"{\n\t\t\tSystem.err.println(e);\n\t\t}",
"System.err.println(e)",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n\t\t\twhile((str=br.readLine()) !=null){\n\t\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\t\tc=str.toLowerCase().charAt(i);\n\t\t\t\t\tcc='a';\n\t\t\t\t\tfor(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcc='a';\n\t\t\tfor(int i = 0 ; i < sum.length;i++){\n\t\t\t\tSystem.out.println(cc+\" : \"+sum[i]);\n\t\t\t\tcc++;\n\t\t\t}\n\t\t}",
"while((str=br.readLine()) !=null){\n\t\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\t\tc=str.toLowerCase().charAt(i);\n\t\t\t\t\tcc='a';\n\t\t\t\t\tfor(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"(str=br.readLine()) !=null",
"(str=br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\t\tc=str.toLowerCase().charAt(i);\n\t\t\t\t\tcc='a';\n\t\t\t\t\tfor(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for(int i=0;i<str.length();i++){\n\t\t\t\t\tc=str.toLowerCase().charAt(i);\n\t\t\t\t\tcc='a';\n\t\t\t\t\tfor(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}\n\t\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tc=str.toLowerCase().charAt(i);\n\t\t\t\t\tcc='a';\n\t\t\t\t\tfor(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tc=str.toLowerCase().charAt(i);\n\t\t\t\t\tcc='a';\n\t\t\t\t\tfor(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}\n\t\t\t\t}",
"c=str.toLowerCase().charAt(i)",
"c",
"str.toLowerCase().charAt(i)",
"str.toLowerCase().charAt",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"i",
"cc='a'",
"cc",
"'a'",
"for(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}",
"int j=0 ;",
"int j=0 ;",
"j",
"0",
"j<sum.length",
"j",
"sum.length",
"sum",
"sum.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}",
"if(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}",
"c==cc",
"c",
"cc",
"{\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}",
"sum[j]++",
"sum[j]",
"sum",
"j",
"cc++",
"cc",
"cc='a'",
"cc",
"'a'",
"for(int i = 0 ; i < sum.length;i++){\n\t\t\t\tSystem.out.println(cc+\" : \"+sum[i]);\n\t\t\t\tcc++;\n\t\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < sum.length",
"i",
"sum.length",
"sum",
"sum.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.println(cc+\" : \"+sum[i]);\n\t\t\t\tcc++;\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(cc+\" : \"+sum[i]);\n\t\t\t\tcc++;\n\t\t\t}",
"System.out.println(cc+\" : \"+sum[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"cc+\" : \"+sum[i]",
"cc+\" : \"+sum[i]",
"cc",
"\" : \"",
"sum[i]",
"sum",
"i",
"cc++",
"cc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tchar c;\n\t\tchar cc;\n\t\tint sum[] = new int[26];\n\t\ttry {\n\t\t\twhile((str=br.readLine()) !=null){\n\t\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\t\tc=str.toLowerCase().charAt(i);\n\t\t\t\t\tcc='a';\n\t\t\t\t\tfor(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcc='a';\n\t\t\tfor(int i = 0 ; i < sum.length;i++){\n\t\t\t\tSystem.out.println(cc+\" : \"+sum[i]);\n\t\t\t\tcc++;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tchar c;\n\t\tchar cc;\n\t\tint sum[] = new int[26];\n\t\ttry {\n\t\t\twhile((str=br.readLine()) !=null){\n\t\t\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\t\tc=str.toLowerCase().charAt(i);\n\t\t\t\t\tcc='a';\n\t\t\t\t\tfor(int j=0 ; j<sum.length;j++){\n\t\t\t\t\t\tif(c==cc){\n\t\t\t\t\t\t\tsum[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcc++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcc='a';\n\t\t\tfor(int i = 0 ; i < sum.length;i++){\n\t\t\t\tSystem.out.println(cc+\" : \"+sum[i]);\n\t\t\t\tcc++;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
char c;
char cc;
int sum[] = new int[26];
try {
while((str=br.readLine()) !=null){
for(int i=0;i<str.length();i++){
c=str.toLowerCase().charAt(i);
cc='a';
for(int j=0 ; j<sum.length;j++){
if(c==cc){
sum[j]++;
}
cc++;
}
}
}
cc='a';
for(int i = 0 ; i < sum.length;i++){
System.out.println(cc+" : "+sum[i]);
cc++;
}
} catch (Exception e) {
System.err.println(e);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
20,
17,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
30,
40,
18,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
40,
13,
17,
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
],
[
107,
11
],
[
107,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
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
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
57,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
14,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
76,
86
],
[
86,
87
],
[
87,
88
],
[
76,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
97,
101
],
[
101,
102
],
[
101,
103
],
[
12,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str,str1;\n int n[] = new int[26];\n char c = 'a';\n while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n int a = str1.charAt(i);\n if(Character.isAlphabetic(a)){\n n[a-c]++;\n }\n }\n }\n for(int i=0;i<n.length;i++){\n System.out.println(c++ +\" : \"+n[i]);\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str,str1;\n int n[] = new int[26];\n char c = 'a';\n while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n int a = str1.charAt(i);\n if(Character.isAlphabetic(a)){\n n[a-c]++;\n }\n }\n }\n for(int i=0;i<n.length;i++){\n System.out.println(c++ +\" : \"+n[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str,str1;\n int n[] = new int[26];\n char c = 'a';\n while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n int a = str1.charAt(i);\n if(Character.isAlphabetic(a)){\n n[a-c]++;\n }\n }\n }\n for(int i=0;i<n.length;i++){\n System.out.println(c++ +\" : \"+n[i]);\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str,str1;\n int n[] = new int[26];\n char c = 'a';\n while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n int a = str1.charAt(i);\n if(Character.isAlphabetic(a)){\n n[a-c]++;\n }\n }\n }\n for(int i=0;i<n.length;i++){\n System.out.println(c++ +\" : \"+n[i]);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str",
"str",
"str1;",
"str1",
"int n[] = new int[26];",
"n",
"new int[26]",
"26",
"char c = 'a';",
"c",
"'a'",
"while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n int a = str1.charAt(i);\n if(Character.isAlphabetic(a)){\n n[a-c]++;\n }\n }\n }",
"(str = br.readLine())!=null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n int a = str1.charAt(i);\n if(Character.isAlphabetic(a)){\n n[a-c]++;\n }\n }\n }",
"str1 = str.toLowerCase()",
"str1",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"for(int i=0;i<str1.length();i++){\n int a = str1.charAt(i);\n if(Character.isAlphabetic(a)){\n n[a-c]++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str1.length()",
"i",
"str1.length()",
"str1.length",
"str1",
"i++",
"i++",
"i",
"{\n int a = str1.charAt(i);\n if(Character.isAlphabetic(a)){\n n[a-c]++;\n }\n }",
"{\n int a = str1.charAt(i);\n if(Character.isAlphabetic(a)){\n n[a-c]++;\n }\n }",
"int a = str1.charAt(i);",
"a",
"str1.charAt(i)",
"str1.charAt",
"str1",
"i",
"if(Character.isAlphabetic(a)){\n n[a-c]++;\n }",
"Character.isAlphabetic(a)",
"Character.isAlphabetic",
"Character",
"a",
"{\n n[a-c]++;\n }",
"n[a-c]++",
"n[a-c]",
"n",
"a-c",
"a",
"c",
"for(int i=0;i<n.length;i++){\n System.out.println(c++ +\" : \"+n[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n.length",
"i",
"n.length",
"n",
"n.length",
"i++",
"i++",
"i",
"{\n System.out.println(c++ +\" : \"+n[i]);\n }",
"{\n System.out.println(c++ +\" : \"+n[i]);\n }",
"System.out.println(c++ +\" : \"+n[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c++ +\" : \"+n[i]",
"c++ +\" : \"+n[i]",
"c++",
"c",
"\" : \"",
"n[i]",
"n",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str,str1;\n int n[] = new int[26];\n char c = 'a';\n while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n int a = str1.charAt(i);\n if(Character.isAlphabetic(a)){\n n[a-c]++;\n }\n }\n }\n for(int i=0;i<n.length;i++){\n System.out.println(c++ +\" : \"+n[i]);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str,str1;\n int n[] = new int[26];\n char c = 'a';\n while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n int a = str1.charAt(i);\n if(Character.isAlphabetic(a)){\n n[a-c]++;\n }\n }\n }\n for(int i=0;i<n.length;i++){\n System.out.println(c++ +\" : \"+n[i]);\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str,str1;
int n[] = new int[26];
char c = 'a';
while((str = br.readLine())!=null){
str1 = str.toLowerCase();
for(int i=0;i<str1.length();i++){
int a = str1.charAt(i);
if(Character.isAlphabetic(a)){
n[a-c]++;
}
}
}
for(int i=0;i<n.length;i++){
System.out.println(c++ +" : "+n[i]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
17,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
40,
13,
41,
13,
20,
17,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
40,
18,
13,
13,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
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
],
[
154,
11
],
[
154,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
18,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
36,
46
],
[
46,
47
],
[
47,
48
],
[
36,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
28,
57
],
[
57,
58
],
[
57,
59
],
[
28,
61
],
[
61,
62
],
[
61,
63
],
[
28,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
65,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
80,
90
],
[
90,
91
],
[
91,
92
],
[
80,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
95,
105
],
[
105,
106
],
[
106,
107
],
[
95,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
28,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
124,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
143,
148
],
[
148,
149
],
[
148,
150
],
[
12,
151
],
[
151,
152
],
[
0,
153
],
[
153,
154
],
[
153,
155
]
]
| [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n// char[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n char[] alphabet = new char[26];\n char word = 'a';\n for (int x = 0; x <= ('z') - ('a'); x++) {\n alphabet[x] = word++;\n }\n\n int[] sum = new int[26];\n String line = null;\n while ((line = reader.readLine()) != null) {\n char[] chaAryLine = line.toLowerCase().toCharArray();\n\n for (int i = 0; i < line.length(); i++) {\n for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.println(alphabet[i] + \" : \" + sum[i]);\n }\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n// char[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n char[] alphabet = new char[26];\n char word = 'a';\n for (int x = 0; x <= ('z') - ('a'); x++) {\n alphabet[x] = word++;\n }\n\n int[] sum = new int[26];\n String line = null;\n while ((line = reader.readLine()) != null) {\n char[] chaAryLine = line.toLowerCase().toCharArray();\n\n for (int i = 0; i < line.length(); i++) {\n for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.println(alphabet[i] + \" : \" + sum[i]);\n }\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n// char[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n char[] alphabet = new char[26];\n char word = 'a';\n for (int x = 0; x <= ('z') - ('a'); x++) {\n alphabet[x] = word++;\n }\n\n int[] sum = new int[26];\n String line = null;\n while ((line = reader.readLine()) != null) {\n char[] chaAryLine = line.toLowerCase().toCharArray();\n\n for (int i = 0; i < line.length(); i++) {\n for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.println(alphabet[i] + \" : \" + sum[i]);\n }\n } catch (IOException e) {\n System.out.println(e);\n }\n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n// char[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n char[] alphabet = new char[26];\n char word = 'a';\n for (int x = 0; x <= ('z') - ('a'); x++) {\n alphabet[x] = word++;\n }\n\n int[] sum = new int[26];\n String line = null;\n while ((line = reader.readLine()) != null) {\n char[] chaAryLine = line.toLowerCase().toCharArray();\n\n for (int i = 0; i < line.length(); i++) {\n for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.println(alphabet[i] + \" : \" + sum[i]);\n }\n } catch (IOException e) {\n System.out.println(e);\n }\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n// char[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n char[] alphabet = new char[26];\n char word = 'a';\n for (int x = 0; x <= ('z') - ('a'); x++) {\n alphabet[x] = word++;\n }\n\n int[] sum = new int[26];\n String line = null;\n while ((line = reader.readLine()) != null) {\n char[] chaAryLine = line.toLowerCase().toCharArray();\n\n for (int i = 0; i < line.length(); i++) {\n for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.println(alphabet[i] + \" : \" + sum[i]);\n }\n } catch (IOException e) {\n System.out.println(e);\n }",
"catch (IOException e) {\n System.out.println(e);\n }",
"IOException e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n// char[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n char[] alphabet = new char[26];\n char word = 'a';\n for (int x = 0; x <= ('z') - ('a'); x++) {\n alphabet[x] = word++;\n }\n\n int[] sum = new int[26];\n String line = null;\n while ((line = reader.readLine()) != null) {\n char[] chaAryLine = line.toLowerCase().toCharArray();\n\n for (int i = 0; i < line.length(); i++) {\n for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.println(alphabet[i] + \" : \" + sum[i]);\n }\n }",
"char[] alphabet = new char[26];",
"alphabet",
"new char[26]",
"26",
"char word = 'a';",
"word",
"'a'",
"for (int x = 0; x <= ('z') - ('a'); x++) {\n alphabet[x] = word++;\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x <= ('z') - ('a')",
"x",
"('z') - ('a')",
"('z')",
"('a')",
"x++",
"x++",
"x",
"{\n alphabet[x] = word++;\n }",
"{\n alphabet[x] = word++;\n }",
"alphabet[x] = word++",
"alphabet[x]",
"alphabet",
"x",
"word++",
"word",
"int[] sum = new int[26];",
"sum",
"new int[26]",
"26",
"String line = null;",
"line",
"null",
"while ((line = reader.readLine()) != null) {\n char[] chaAryLine = line.toLowerCase().toCharArray();\n\n for (int i = 0; i < line.length(); i++) {\n for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }\n }\n }",
"(line = reader.readLine()) != null",
"(line = reader.readLine())",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"null",
"{\n char[] chaAryLine = line.toLowerCase().toCharArray();\n\n for (int i = 0; i < line.length(); i++) {\n for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }\n }\n }",
"char[] chaAryLine = line.toLowerCase().toCharArray();",
"chaAryLine",
"line.toLowerCase().toCharArray()",
"line.toLowerCase().toCharArray",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"for (int i = 0; i < line.length(); i++) {\n for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < line.length()",
"i",
"line.length()",
"line.length",
"line",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }\n }",
"{\n for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }\n }",
"for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < sum.length",
"j",
"sum.length",
"sum",
"sum.length",
"j++",
"j++",
"j",
"{\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }",
"{\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }",
"if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }",
"alphabet[j] == chaAryLine[i]",
"alphabet[j]",
"alphabet",
"j",
"chaAryLine[i]",
"chaAryLine",
"i",
"{\n sum[j]++;\n break;\n }",
"sum[j]++",
"sum[j]",
"sum",
"j",
"break;",
"for (int i = 0; i < 26; i++) {\n System.out.println(alphabet[i] + \" : \" + sum[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println(alphabet[i] + \" : \" + sum[i]);\n }",
"{\n System.out.println(alphabet[i] + \" : \" + sum[i]);\n }",
"System.out.println(alphabet[i] + \" : \" + sum[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alphabet[i] + \" : \" + sum[i]",
"alphabet[i] + \" : \" + sum[i]",
"alphabet[i]",
"alphabet",
"i",
"\" : \"",
"sum[i]",
"sum",
"i",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n// char[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n char[] alphabet = new char[26];\n char word = 'a';\n for (int x = 0; x <= ('z') - ('a'); x++) {\n alphabet[x] = word++;\n }\n\n int[] sum = new int[26];\n String line = null;\n while ((line = reader.readLine()) != null) {\n char[] chaAryLine = line.toLowerCase().toCharArray();\n\n for (int i = 0; i < line.length(); i++) {\n for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.println(alphabet[i] + \" : \" + sum[i]);\n }\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n// char[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n char[] alphabet = new char[26];\n char word = 'a';\n for (int x = 0; x <= ('z') - ('a'); x++) {\n alphabet[x] = word++;\n }\n\n int[] sum = new int[26];\n String line = null;\n while ((line = reader.readLine()) != null) {\n char[] chaAryLine = line.toLowerCase().toCharArray();\n\n for (int i = 0; i < line.length(); i++) {\n for (int j = 0; j < sum.length; j++) {\n if (alphabet[j] == chaAryLine[i]) {\n sum[j]++;\n break;\n }\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.println(alphabet[i] + \" : \" + sum[i]);\n }\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try {
// char[] alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
char[] alphabet = new char[26];
char word = 'a';
for (int x = 0; x <= ('z') - ('a'); x++) {
alphabet[x] = word++;
}
int[] sum = new int[26];
String line = null;
while ((line = reader.readLine()) != null) {
char[] chaAryLine = line.toLowerCase().toCharArray();
for (int i = 0; i < line.length(); i++) {
for (int j = 0; j < sum.length; j++) {
if (alphabet[j] == chaAryLine[i]) {
sum[j]++;
break;
}
}
}
}
for (int i = 0; i < 26; i++) {
System.out.println(alphabet[i] + " : " + sum[i]);
}
} catch (IOException e) {
System.out.println(e);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
38,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
2,
17,
2,
4,
18,
13,
13,
17,
2,
2,
4,
18,
13,
13,
17,
17,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
14,
2,
2,
17,
2,
4,
18,
13,
13,
17,
2,
2,
4,
18,
13,
13,
17,
17,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
2,
13,
17,
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,
13
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
44,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
53,
60
],
[
43,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
43,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
75,
80
],
[
72,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
82,
87
],
[
81,
88
],
[
71,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
93,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
112,
118
],
[
118,
119
],
[
118,
120
],
[
112,
121
],
[
121,
122
],
[
121,
123
],
[
6,
124
],
[
124,
125
]
]
| [
"import java.util.*;\n \nclass Main {\n public static void main(String args[]) {\n int[] ans = new int[26];\n try (Scanner sc = new Scanner(System.in)) {\n while (sc.hasNextLine()) {\n String S = sc.nextLine();\n for (int i = 0; i < S.length(); i++) {\n if (0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26) {\n ans[S.charAt(i) - 'a']++;\n } else if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {\n ans[S.charAt(i) - 'A']++;\n }\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', ans[i]);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String args[]) {\n int[] ans = new int[26];\n try (Scanner sc = new Scanner(System.in)) {\n while (sc.hasNextLine()) {\n String S = sc.nextLine();\n for (int i = 0; i < S.length(); i++) {\n if (0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26) {\n ans[S.charAt(i) - 'a']++;\n } else if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {\n ans[S.charAt(i) - 'A']++;\n }\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', ans[i]);\n }\n }\n}",
"Main",
"public static void main(String args[]) {\n int[] ans = new int[26];\n try (Scanner sc = new Scanner(System.in)) {\n while (sc.hasNextLine()) {\n String S = sc.nextLine();\n for (int i = 0; i < S.length(); i++) {\n if (0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26) {\n ans[S.charAt(i) - 'a']++;\n } else if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {\n ans[S.charAt(i) - 'A']++;\n }\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', ans[i]);\n }\n }",
"main",
"{\n int[] ans = new int[26];\n try (Scanner sc = new Scanner(System.in)) {\n while (sc.hasNextLine()) {\n String S = sc.nextLine();\n for (int i = 0; i < S.length(); i++) {\n if (0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26) {\n ans[S.charAt(i) - 'a']++;\n } else if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {\n ans[S.charAt(i) - 'A']++;\n }\n }\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', ans[i]);\n }\n }",
"int[] ans = new int[26];",
"ans",
"new int[26]",
"26",
"try (Scanner sc = new Scanner(System.in)) {\n while (sc.hasNextLine()) {\n String S = sc.nextLine();\n for (int i = 0; i < S.length(); i++) {\n if (0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26) {\n ans[S.charAt(i) - 'a']++;\n } else if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {\n ans[S.charAt(i) - 'A']++;\n }\n }\n }\n }",
"{\n while (sc.hasNextLine()) {\n String S = sc.nextLine();\n for (int i = 0; i < S.length(); i++) {\n if (0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26) {\n ans[S.charAt(i) - 'a']++;\n } else if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {\n ans[S.charAt(i) - 'A']++;\n }\n }\n }\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"while (sc.hasNextLine()) {\n String S = sc.nextLine();\n for (int i = 0; i < S.length(); i++) {\n if (0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26) {\n ans[S.charAt(i) - 'a']++;\n } else if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {\n ans[S.charAt(i) - 'A']++;\n }\n }\n }",
"sc.hasNextLine()",
"sc.hasNextLine",
"sc",
"{\n String S = sc.nextLine();\n for (int i = 0; i < S.length(); i++) {\n if (0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26) {\n ans[S.charAt(i) - 'a']++;\n } else if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {\n ans[S.charAt(i) - 'A']++;\n }\n }\n }",
"String S = sc.nextLine();",
"S",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int i = 0; i < S.length(); i++) {\n if (0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26) {\n ans[S.charAt(i) - 'a']++;\n } else if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {\n ans[S.charAt(i) - 'A']++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < S.length()",
"i",
"S.length()",
"S.length",
"S",
"i++",
"i++",
"i",
"{\n if (0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26) {\n ans[S.charAt(i) - 'a']++;\n } else if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {\n ans[S.charAt(i) - 'A']++;\n }\n }",
"{\n if (0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26) {\n ans[S.charAt(i) - 'a']++;\n } else if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {\n ans[S.charAt(i) - 'A']++;\n }\n }",
"if (0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26) {\n ans[S.charAt(i) - 'a']++;\n } else if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {\n ans[S.charAt(i) - 'A']++;\n }",
"0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26",
"0 <= S.charAt(i) - 'a'",
"0",
"S.charAt(i) - 'a'",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"'a'",
"S.charAt(i) - 'a' < 26",
"S.charAt(i) - 'a'",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"'a'",
"26",
"{\n ans[S.charAt(i) - 'a']++;\n }",
"ans[S.charAt(i) - 'a']++",
"ans[S.charAt(i) - 'a']",
"ans",
"S.charAt(i) - 'a'",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"'a'",
"if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {\n ans[S.charAt(i) - 'A']++;\n }",
"0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26",
"0 <= S.charAt(i) - 'A'",
"0",
"S.charAt(i) - 'A'",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"'A'",
"S.charAt(i) - 'A' < 26",
"S.charAt(i) - 'A'",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"'A'",
"26",
"{\n ans[S.charAt(i) - 'A']++;\n }",
"ans[S.charAt(i) - 'A']++",
"ans[S.charAt(i) - 'A']",
"ans",
"S.charAt(i) - 'A'",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"'A'",
"for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', ans[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.printf(\"%c : %d\\n\", i + 'a', ans[i]);\n }",
"{\n System.out.printf(\"%c : %d\\n\", i + 'a', ans[i]);\n }",
"System.out.printf(\"%c : %d\\n\", i + 'a', ans[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"i + 'a'",
"i",
"'a'",
"ans[i]",
"ans",
"i",
"String args[]",
"args"
]
| import java.util.*;
class Main {
public static void main(String args[]) {
int[] ans = new int[26];
try (Scanner sc = new Scanner(System.in)) {
while (sc.hasNextLine()) {
String S = sc.nextLine();
for (int i = 0; i < S.length(); i++) {
if (0 <= S.charAt(i) - 'a' && S.charAt(i) - 'a' < 26) {
ans[S.charAt(i) - 'a']++;
} else if (0 <= S.charAt(i) - 'A' && S.charAt(i) - 'A' < 26) {
ans[S.charAt(i) - 'A']++;
}
}
}
}
for (int i = 0; i < 26; i++) {
System.out.printf("%c : %d\n", i + 'a', ans[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
120,
5
],
[
120,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
48,
58
],
[
58,
59
],
[
59,
60
],
[
48,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
62,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
108,
108
],
[
108,
109
],
[
108,
110
],
[
108,
111
],
[
111,
112
],
[
111,
113
],
[
8,
114
],
[
114,
115
],
[
115,
116
],
[
6,
117
],
[
117,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line;\n\t\tint[] count = new int[26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\t\twhile (sc.hasNext()) {\n\t\t\tline = sc.next().toLowerCase();\n\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\tint ch = line.charAt(i) - 'a';\n\t\t\t\tif (ch >= 0 && ch < 26) {\n\t\t\t\t\tcount[ch]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tchar alp = (char) ('a' + i);\n\t\t\tSystem.out.println(alp + \" : \" + count[i]);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line;\n\t\tint[] count = new int[26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\t\twhile (sc.hasNext()) {\n\t\t\tline = sc.next().toLowerCase();\n\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\tint ch = line.charAt(i) - 'a';\n\t\t\t\tif (ch >= 0 && ch < 26) {\n\t\t\t\t\tcount[ch]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tchar alp = (char) ('a' + i);\n\t\t\tSystem.out.println(alp + \" : \" + count[i]);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line;\n\t\tint[] count = new int[26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\t\twhile (sc.hasNext()) {\n\t\t\tline = sc.next().toLowerCase();\n\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\tint ch = line.charAt(i) - 'a';\n\t\t\t\tif (ch >= 0 && ch < 26) {\n\t\t\t\t\tcount[ch]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tchar alp = (char) ('a' + i);\n\t\t\tSystem.out.println(alp + \" : \" + count[i]);\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line;\n\t\tint[] count = new int[26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\t\twhile (sc.hasNext()) {\n\t\t\tline = sc.next().toLowerCase();\n\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\tint ch = line.charAt(i) - 'a';\n\t\t\t\tif (ch >= 0 && ch < 26) {\n\t\t\t\t\tcount[ch]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tchar alp = (char) ('a' + i);\n\t\t\tSystem.out.println(alp + \" : \" + count[i]);\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line;",
"line",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"for (int i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tcount[i] = 0;\n\t\t}",
"{\n\t\t\tcount[i] = 0;\n\t\t}",
"count[i] = 0",
"count[i]",
"count",
"i",
"0",
"while (sc.hasNext()) {\n\t\t\tline = sc.next().toLowerCase();\n\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\tint ch = line.charAt(i) - 'a';\n\t\t\t\tif (ch >= 0 && ch < 26) {\n\t\t\t\t\tcount[ch]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tline = sc.next().toLowerCase();\n\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\tint ch = line.charAt(i) - 'a';\n\t\t\t\tif (ch >= 0 && ch < 26) {\n\t\t\t\t\tcount[ch]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"line = sc.next().toLowerCase()",
"line",
"sc.next().toLowerCase()",
"sc.next().toLowerCase",
"sc.next()",
"sc.next",
"sc",
"for (int i = 0; i < line.length(); i++) {\n\t\t\t\tint ch = line.charAt(i) - 'a';\n\t\t\t\tif (ch >= 0 && ch < 26) {\n\t\t\t\t\tcount[ch]++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < line.length()",
"i",
"line.length()",
"line.length",
"line",
"i++",
"i++",
"i",
"{\n\t\t\t\tint ch = line.charAt(i) - 'a';\n\t\t\t\tif (ch >= 0 && ch < 26) {\n\t\t\t\t\tcount[ch]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tint ch = line.charAt(i) - 'a';\n\t\t\t\tif (ch >= 0 && ch < 26) {\n\t\t\t\t\tcount[ch]++;\n\t\t\t\t}\n\t\t\t}",
"int ch = line.charAt(i) - 'a';",
"ch",
"line.charAt(i) - 'a'",
"line.charAt(i)",
"line.charAt",
"line",
"i",
"'a'",
"if (ch >= 0 && ch < 26) {\n\t\t\t\t\tcount[ch]++;\n\t\t\t\t}",
"ch >= 0 && ch < 26",
"ch >= 0",
"ch",
"0",
"ch < 26",
"ch",
"26",
"{\n\t\t\t\t\tcount[ch]++;\n\t\t\t\t}",
"count[ch]++",
"count[ch]",
"count",
"ch",
"for (int i = 0; i < 26; i++) {\n\t\t\tchar alp = (char) ('a' + i);\n\t\t\tSystem.out.println(alp + \" : \" + count[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tchar alp = (char) ('a' + i);\n\t\t\tSystem.out.println(alp + \" : \" + count[i]);\n\t\t}",
"{\n\t\t\tchar alp = (char) ('a' + i);\n\t\t\tSystem.out.println(alp + \" : \" + count[i]);\n\t\t}",
"char alp = (char) ('a' + i);",
"alp",
"(char) ('a' + i)",
"'a'",
"i",
"System.out.println(alp + \" : \" + count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alp + \" : \" + count[i]",
"alp + \" : \" + count[i]",
"alp",
"\" : \"",
"count[i]",
"count",
"i",
"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\tString line;\n\t\tint[] count = new int[26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\t\twhile (sc.hasNext()) {\n\t\t\tline = sc.next().toLowerCase();\n\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\tint ch = line.charAt(i) - 'a';\n\t\t\t\tif (ch >= 0 && ch < 26) {\n\t\t\t\t\tcount[ch]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tchar alp = (char) ('a' + i);\n\t\t\tSystem.out.println(alp + \" : \" + count[i]);\n\t\t}\n\t\tsc.close();\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 line;\n\t\tint[] count = new int[26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\t\twhile (sc.hasNext()) {\n\t\t\tline = sc.next().toLowerCase();\n\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\tint ch = line.charAt(i) - 'a';\n\t\t\t\tif (ch >= 0 && ch < 26) {\n\t\t\t\t\tcount[ch]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tchar alp = (char) ('a' + i);\n\t\t\tSystem.out.println(alp + \" : \" + count[i]);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line;
int[] count = new int[26];
for (int i = 0; i < 26; i++) {
count[i] = 0;
}
while (sc.hasNext()) {
line = sc.next().toLowerCase();
for (int i = 0; i < line.length(); i++) {
int ch = line.charAt(i) - 'a';
if (ch >= 0 && ch < 26) {
count[ch]++;
}
}
}
for (int i = 0; i < 26; i++) {
char alp = (char) ('a' + i);
System.out.println(alp + " : " + count[i]);
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
31,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
31,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
]
]
| [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String pre = sc.next();\n String pre2 = pre;\n String rear = sc.next();\n \n String join = pre.concat(pre2);\n if(join.contains(rear)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n \n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String pre = sc.next();\n String pre2 = pre;\n String rear = sc.next();\n \n String join = pre.concat(pre2);\n if(join.contains(rear)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n \n \n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String pre = sc.next();\n String pre2 = pre;\n String rear = sc.next();\n \n String join = pre.concat(pre2);\n if(join.contains(rear)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n \n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String pre = sc.next();\n String pre2 = pre;\n String rear = sc.next();\n \n String join = pre.concat(pre2);\n if(join.contains(rear)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n \n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String pre = sc.next();",
"pre",
"sc.next()",
"sc.next",
"sc",
"String pre2 = pre;",
"pre2",
"pre",
"String rear = sc.next();",
"rear",
"sc.next()",
"sc.next",
"sc",
"String join = pre.concat(pre2);",
"join",
"pre.concat(pre2)",
"pre.concat",
"pre",
"pre2",
"if(join.contains(rear)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }",
"join.contains(rear)",
"join.contains",
"join",
"rear",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String pre = sc.next();
String pre2 = pre;
String rear = sc.next();
String join = pre.concat(pre2);
if(join.contains(rear)){
System.out.println("Yes");
}else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
4,
18,
18,
13,
13,
17,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
41,
5
],
[
41,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
41,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
0,
40
],
[
40,
41
],
[
40,
42
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\t\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar[] array1 = scan.next().toCharArray();\n\t\tchar[] array2 = scan.next().toCharArray();\n\t\toutside : for(int i = 0; i < array1.length; i++) {\n\t\t\tif(array1[i] == array2[0]) {\n\t\t\t\tfor(int j = 1; j < array2.length; j++) {\n\t\t\t\t\tint tmp = i+j >= array1.length ? i+j-array1.length : i+j;\n\t\t\t\t\tif(array2[j] != array1[tmp]) continue outside;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar[] array1 = scan.next().toCharArray();\n\t\tchar[] array2 = scan.next().toCharArray();\n\t\toutside : for(int i = 0; i < array1.length; i++) {\n\t\t\tif(array1[i] == array2[0]) {\n\t\t\t\tfor(int j = 1; j < array2.length; j++) {\n\t\t\t\t\tint tmp = i+j >= array1.length ? i+j-array1.length : i+j;\n\t\t\t\t\tif(array2[j] != array1[tmp]) continue outside;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main",
"void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar[] array1 = scan.next().toCharArray();\n\t\tchar[] array2 = scan.next().toCharArray();\n\t\toutside : for(int i = 0; i < array1.length; i++) {\n\t\t\tif(array1[i] == array2[0]) {\n\t\t\t\tfor(int j = 1; j < array2.length; j++) {\n\t\t\t\t\tint tmp = i+j >= array1.length ? i+j-array1.length : i+j;\n\t\t\t\t\tif(array2[j] != array1[tmp]) continue outside;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}",
"run",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar[] array1 = scan.next().toCharArray();\n\t\tchar[] array2 = scan.next().toCharArray();\n\t\toutside : for(int i = 0; i < array1.length; i++) {\n\t\t\tif(array1[i] == array2[0]) {\n\t\t\t\tfor(int j = 1; j < array2.length; j++) {\n\t\t\t\t\tint tmp = i+j >= array1.length ? i+j-array1.length : i+j;\n\t\t\t\t\tif(array2[j] != array1[tmp]) continue outside;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"char[] array1 = scan.next().toCharArray();",
"array1",
"scan.next().toCharArray()",
"scan.next().toCharArray",
"scan.next()",
"scan.next",
"scan",
"char[] array2 = scan.next().toCharArray();",
"array2",
"scan.next().toCharArray()",
"scan.next().toCharArray",
"scan.next()",
"scan.next",
"scan",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"public static void main(String[] args) {\n\t\tnew Main().run();\n\t}",
"main",
"{\n\t\tnew Main().run();\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"public class Main {\n\t\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar[] array1 = scan.next().toCharArray();\n\t\tchar[] array2 = scan.next().toCharArray();\n\t\toutside : for(int i = 0; i < array1.length; i++) {\n\t\t\tif(array1[i] == array2[0]) {\n\t\t\t\tfor(int j = 1; j < array2.length; j++) {\n\t\t\t\t\tint tmp = i+j >= array1.length ? i+j-array1.length : i+j;\n\t\t\t\t\tif(array2[j] != array1[tmp]) continue outside;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"public class Main {\n\t\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar[] array1 = scan.next().toCharArray();\n\t\tchar[] array2 = scan.next().toCharArray();\n\t\toutside : for(int i = 0; i < array1.length; i++) {\n\t\t\tif(array1[i] == array2[0]) {\n\t\t\t\tfor(int j = 1; j < array2.length; j++) {\n\t\t\t\t\tint tmp = i+j >= array1.length ? i+j-array1.length : i+j;\n\t\t\t\t\tif(array2[j] != array1[tmp]) continue outside;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
void run() {
Scanner scan = new Scanner(System.in);
char[] array1 = scan.next().toCharArray();
char[] array2 = scan.next().toCharArray();
outside : for(int i = 0; i < array1.length; i++) {
if(array1[i] == array2[0]) {
for(int j = 1; j < array2.length; j++) {
int tmp = i+j >= array1.length ? i+j-array1.length : i+j;
if(array2[j] != array1[tmp]) continue outside;
}
System.out.println("Yes");
return;
}
}
System.out.println("No");
}
public static void main(String[] args) {
new Main().run();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
2,
4,
18,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
30,
0,
13,
17,
3,
14,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
34,
48
],
[
48,
49
],
[
49,
50
],
[
34,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
61,
65
],
[
53,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
8,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
6,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int i = 0;\n boolean flag = false;\n String s = sc.next();\n String p = sc.next();\n \n s = s.concat(s);\n \n for(i = 0; i < s.length() - p.length(); i++) {\n \tif(p.equals(s.substring(i, p.length() + i))) {\n \t\tflag = true;\n \t\tbreak;\n \t}\n }\n \n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int i = 0;\n boolean flag = false;\n String s = sc.next();\n String p = sc.next();\n \n s = s.concat(s);\n \n for(i = 0; i < s.length() - p.length(); i++) {\n \tif(p.equals(s.substring(i, p.length() + i))) {\n \t\tflag = true;\n \t\tbreak;\n \t}\n }\n \n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int i = 0;\n boolean flag = false;\n String s = sc.next();\n String p = sc.next();\n \n s = s.concat(s);\n \n for(i = 0; i < s.length() - p.length(); i++) {\n \tif(p.equals(s.substring(i, p.length() + i))) {\n \t\tflag = true;\n \t\tbreak;\n \t}\n }\n \n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int i = 0;\n boolean flag = false;\n String s = sc.next();\n String p = sc.next();\n \n s = s.concat(s);\n \n for(i = 0; i < s.length() - p.length(); i++) {\n \tif(p.equals(s.substring(i, p.length() + i))) {\n \t\tflag = true;\n \t\tbreak;\n \t}\n }\n \n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int i = 0;",
"i",
"0",
"boolean flag = false;",
"flag",
"false",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String p = sc.next();",
"p",
"sc.next()",
"sc.next",
"sc",
"s = s.concat(s)",
"s",
"s.concat(s)",
"s.concat",
"s",
"s",
"for(i = 0; i < s.length() - p.length(); i++) {\n \tif(p.equals(s.substring(i, p.length() + i))) {\n \t\tflag = true;\n \t\tbreak;\n \t}\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < s.length() - p.length()",
"i",
"s.length() - p.length()",
"s.length()",
"s.length",
"s",
"p.length()",
"p.length",
"p",
"i++",
"i++",
"i",
"{\n \tif(p.equals(s.substring(i, p.length() + i))) {\n \t\tflag = true;\n \t\tbreak;\n \t}\n }",
"{\n \tif(p.equals(s.substring(i, p.length() + i))) {\n \t\tflag = true;\n \t\tbreak;\n \t}\n }",
"if(p.equals(s.substring(i, p.length() + i))) {\n \t\tflag = true;\n \t\tbreak;\n \t}",
"p.equals(s.substring(i, p.length() + i))",
"p.equals",
"p",
"s.substring(i, p.length() + i)",
"s.substring",
"s",
"i",
"p.length() + i",
"p.length()",
"p.length",
"p",
"i",
"{\n \t\tflag = true;\n \t\tbreak;\n \t}",
"flag = true",
"flag",
"true",
"break;",
"if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");",
"flag",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int i = 0;\n boolean flag = false;\n String s = sc.next();\n String p = sc.next();\n \n s = s.concat(s);\n \n for(i = 0; i < s.length() - p.length(); i++) {\n \tif(p.equals(s.substring(i, p.length() + i))) {\n \t\tflag = true;\n \t\tbreak;\n \t}\n }\n \n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int i = 0;\n boolean flag = false;\n String s = sc.next();\n String p = sc.next();\n \n s = s.concat(s);\n \n for(i = 0; i < s.length() - p.length(); i++) {\n \tif(p.equals(s.substring(i, p.length() + i))) {\n \t\tflag = true;\n \t\tbreak;\n \t}\n }\n \n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i = 0;
boolean flag = false;
String s = sc.next();
String p = sc.next();
s = s.concat(s);
for(i = 0; i < s.length() - p.length(); i++) {
if(p.equals(s.substring(i, p.length() + i))) {
flag = true;
break;
}
}
if(flag) System.out.println("Yes");
else System.out.println("No");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
20,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
14,
4,
18,
13,
30,
4,
18,
13,
17,
30,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
76,
14
],
[
76,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
17,
36
],
[
36,
37
],
[
36,
38
],
[
17,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
17,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
17,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
51,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
17,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
15,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String s = br.readLine();\n\t String p = br.readLine();\n\n\t String targetStr = s + s;\n\t StringBuilder sb = new StringBuilder();\n Pattern ptn = Pattern.compile(p);\n Matcher matcher = ptn.matcher(targetStr);\n if(matcher.find()){\n sb.append(\"Yes\");\n }else{\n sb.append(\"No\");\n }\n System.out.println(sb.toString());\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.regex.Matcher;",
"Matcher",
"java.util.regex",
"import java.util.regex.Pattern;",
"Pattern",
"java.util.regex",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String s = br.readLine();\n\t String p = br.readLine();\n\n\t String targetStr = s + s;\n\t StringBuilder sb = new StringBuilder();\n Pattern ptn = Pattern.compile(p);\n Matcher matcher = ptn.matcher(targetStr);\n if(matcher.find()){\n sb.append(\"Yes\");\n }else{\n sb.append(\"No\");\n }\n System.out.println(sb.toString());\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String s = br.readLine();\n\t String p = br.readLine();\n\n\t String targetStr = s + s;\n\t StringBuilder sb = new StringBuilder();\n Pattern ptn = Pattern.compile(p);\n Matcher matcher = ptn.matcher(targetStr);\n if(matcher.find()){\n sb.append(\"Yes\");\n }else{\n sb.append(\"No\");\n }\n System.out.println(sb.toString());\n\t}",
"main",
"{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String s = br.readLine();\n\t String p = br.readLine();\n\n\t String targetStr = s + s;\n\t StringBuilder sb = new StringBuilder();\n Pattern ptn = Pattern.compile(p);\n Matcher matcher = ptn.matcher(targetStr);\n if(matcher.find()){\n sb.append(\"Yes\");\n }else{\n sb.append(\"No\");\n }\n System.out.println(sb.toString());\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String s = br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"String p = br.readLine();",
"p",
"br.readLine()",
"br.readLine",
"br",
"String targetStr = s + s;",
"targetStr",
"s + s",
"s",
"s",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"Pattern ptn = Pattern.compile(p);",
"ptn",
"Pattern.compile(p)",
"Pattern.compile",
"Pattern",
"p",
"Matcher matcher = ptn.matcher(targetStr);",
"matcher",
"ptn.matcher(targetStr)",
"ptn.matcher",
"ptn",
"targetStr",
"if(matcher.find()){\n sb.append(\"Yes\");\n }else{\n sb.append(\"No\");\n }",
"matcher.find()",
"matcher.find",
"matcher",
"{\n sb.append(\"Yes\");\n }",
"sb.append(\"Yes\")",
"sb.append",
"sb",
"\"Yes\"",
"{\n sb.append(\"No\");\n }",
"sb.append(\"No\")",
"sb.append",
"sb",
"\"No\"",
"System.out.println(sb.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String s = br.readLine();\n\t String p = br.readLine();\n\n\t String targetStr = s + s;\n\t StringBuilder sb = new StringBuilder();\n Pattern ptn = Pattern.compile(p);\n Matcher matcher = ptn.matcher(targetStr);\n if(matcher.find()){\n sb.append(\"Yes\");\n }else{\n sb.append(\"No\");\n }\n System.out.println(sb.toString());\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String s = br.readLine();\n\t String p = br.readLine();\n\n\t String targetStr = s + s;\n\t StringBuilder sb = new StringBuilder();\n Pattern ptn = Pattern.compile(p);\n Matcher matcher = ptn.matcher(targetStr);\n if(matcher.find()){\n sb.append(\"Yes\");\n }else{\n sb.append(\"No\");\n }\n System.out.println(sb.toString());\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String s = br.readLine();
String p = br.readLine();
String targetStr = s + s;
StringBuilder sb = new StringBuilder();
Pattern ptn = Pattern.compile(p);
Matcher matcher = ptn.matcher(targetStr);
if(matcher.find()){
sb.append("Yes");
}else{
sb.append("No");
}
System.out.println(sb.toString());
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
13,
4,
18,
18,
13,
13,
8,
4,
18,
13,
13,
17,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
40,
5
],
[
40,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
30,
35
],
[
30,
36
],
[
6,
37
],
[
37,
38
],
[
0,
39
],
[
39,
40
],
[
39,
41
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine(),p = sc.nextLine();\n s += s;\n System.out.println(s.contains(p) ? \"Yes\" : \"No\");\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine(),p = sc.nextLine();\n s += s;\n System.out.println(s.contains(p) ? \"Yes\" : \"No\");\n }\n\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine(),p = sc.nextLine();\n s += s;\n System.out.println(s.contains(p) ? \"Yes\" : \"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine(),p = sc.nextLine();\n s += s;\n System.out.println(s.contains(p) ? \"Yes\" : \"No\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.nextLine()",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"p = sc.nextLine();",
"p",
"sc.nextLine()",
"sc.nextLine",
"sc",
"s += s",
"s",
"s",
"System.out.println(s.contains(p) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.contains(p) ? \"Yes\" : \"No\"",
"s.contains(p)",
"s.contains",
"s",
"p",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine(),p = sc.nextLine();\n s += s;\n System.out.println(s.contains(p) ? \"Yes\" : \"No\");\n }\n\n}",
"public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine(),p = sc.nextLine();\n s += s;\n System.out.println(s.contains(p) ? \"Yes\" : \"No\");\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String s = sc.nextLine(),p = sc.nextLine();
s += s;
System.out.println(s.contains(p) ? "Yes" : "No");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
2,
2,
4,
18,
13,
17,
2,
4,
18,
13,
4,
18,
13,
2,
4,
18,
13,
17,
30,
0,
13,
2,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
92,
5
],
[
92,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
39,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
52,
56
],
[
37,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
66,
70
],
[
57,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
71,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
6,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = \"\";\n\t\tString p = \"\";\n\t\tString searched_line = \"\";\n\t\tboolean judge = false;\n\t\tint count = 0; // 一致している文字数をカウントするための変数\n\n\t\ts = sc.nextLine();\n\t\tp = sc.nextLine();\n\n\t\tif (p.length() >= 1 && s.length() >= p.length() && s.length() <= 100) {\n\n\t\t\tsearched_line = s + s.substring(0, p.length() - 1);\n\n\t\t\tout: for (int i = 0; i < s.length(); i++) {\n\t\t\t\tcount = 0;\n\t\t\t\tif ((\"\" + searched_line.charAt(i)).equals(\"\" + p.charAt(0))) { // if1\n\t\t\t\t\tcount++;\n\t\t\t\t\tin: for (int j = 1; j < p.length(); j++) {\n\t\t\t\t\t\tif ((\"\" + searched_line.charAt(i + j)).equals(\"\" // if2\n\t\t\t\t\t\t\t\t+ p.charAt(j)) == false) {\n\t\t\t\t\t\t\tbreak in;\n\t\t\t\t\t\t}// if2ここまで\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}// in: for文ここまで\n\n\t\t\t\t\tif (count == p.length()) { // if3\n\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}// if3ここまで\n\n\t\t\t\t} // if1ここまで\n\n\t\t\t}// out:for文ここまで\n\n\t\t\tif (judge == true) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = \"\";\n\t\tString p = \"\";\n\t\tString searched_line = \"\";\n\t\tboolean judge = false;\n\t\tint count = 0; // 一致している文字数をカウントするための変数\n\n\t\ts = sc.nextLine();\n\t\tp = sc.nextLine();\n\n\t\tif (p.length() >= 1 && s.length() >= p.length() && s.length() <= 100) {\n\n\t\t\tsearched_line = s + s.substring(0, p.length() - 1);\n\n\t\t\tout: for (int i = 0; i < s.length(); i++) {\n\t\t\t\tcount = 0;\n\t\t\t\tif ((\"\" + searched_line.charAt(i)).equals(\"\" + p.charAt(0))) { // if1\n\t\t\t\t\tcount++;\n\t\t\t\t\tin: for (int j = 1; j < p.length(); j++) {\n\t\t\t\t\t\tif ((\"\" + searched_line.charAt(i + j)).equals(\"\" // if2\n\t\t\t\t\t\t\t\t+ p.charAt(j)) == false) {\n\t\t\t\t\t\t\tbreak in;\n\t\t\t\t\t\t}// if2ここまで\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}// in: for文ここまで\n\n\t\t\t\t\tif (count == p.length()) { // if3\n\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}// if3ここまで\n\n\t\t\t\t} // if1ここまで\n\n\t\t\t}// out:for文ここまで\n\n\t\t\tif (judge == true) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = \"\";\n\t\tString p = \"\";\n\t\tString searched_line = \"\";\n\t\tboolean judge = false;\n\t\tint count = 0; // 一致している文字数をカウントするための変数\n\n\t\ts = sc.nextLine();\n\t\tp = sc.nextLine();\n\n\t\tif (p.length() >= 1 && s.length() >= p.length() && s.length() <= 100) {\n\n\t\t\tsearched_line = s + s.substring(0, p.length() - 1);\n\n\t\t\tout: for (int i = 0; i < s.length(); i++) {\n\t\t\t\tcount = 0;\n\t\t\t\tif ((\"\" + searched_line.charAt(i)).equals(\"\" + p.charAt(0))) { // if1\n\t\t\t\t\tcount++;\n\t\t\t\t\tin: for (int j = 1; j < p.length(); j++) {\n\t\t\t\t\t\tif ((\"\" + searched_line.charAt(i + j)).equals(\"\" // if2\n\t\t\t\t\t\t\t\t+ p.charAt(j)) == false) {\n\t\t\t\t\t\t\tbreak in;\n\t\t\t\t\t\t}// if2ここまで\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}// in: for文ここまで\n\n\t\t\t\t\tif (count == p.length()) { // if3\n\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}// if3ここまで\n\n\t\t\t\t} // if1ここまで\n\n\t\t\t}// out:for文ここまで\n\n\t\t\tif (judge == true) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = \"\";\n\t\tString p = \"\";\n\t\tString searched_line = \"\";\n\t\tboolean judge = false;\n\t\tint count = 0; // 一致している文字数をカウントするための変数\n\n\t\ts = sc.nextLine();\n\t\tp = sc.nextLine();\n\n\t\tif (p.length() >= 1 && s.length() >= p.length() && s.length() <= 100) {\n\n\t\t\tsearched_line = s + s.substring(0, p.length() - 1);\n\n\t\t\tout: for (int i = 0; i < s.length(); i++) {\n\t\t\t\tcount = 0;\n\t\t\t\tif ((\"\" + searched_line.charAt(i)).equals(\"\" + p.charAt(0))) { // if1\n\t\t\t\t\tcount++;\n\t\t\t\t\tin: for (int j = 1; j < p.length(); j++) {\n\t\t\t\t\t\tif ((\"\" + searched_line.charAt(i + j)).equals(\"\" // if2\n\t\t\t\t\t\t\t\t+ p.charAt(j)) == false) {\n\t\t\t\t\t\t\tbreak in;\n\t\t\t\t\t\t}// if2ここまで\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}// in: for文ここまで\n\n\t\t\t\t\tif (count == p.length()) { // if3\n\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}// if3ここまで\n\n\t\t\t\t} // if1ここまで\n\n\t\t\t}// out:for文ここまで\n\n\t\t\tif (judge == true) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = \"\";",
"s",
"\"\"",
"String p = \"\";",
"p",
"\"\"",
"String searched_line = \"\";",
"searched_line",
"\"\"",
"boolean judge = false;",
"judge",
"false",
"int count = 0;",
"count",
"0",
"s = sc.nextLine()",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"p = sc.nextLine()",
"p",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (p.length() >= 1 && s.length() >= p.length() && s.length() <= 100) {\n\n\t\t\tsearched_line = s + s.substring(0, p.length() - 1);\n\n\t\t\tout: for (int i = 0; i < s.length(); i++) {\n\t\t\t\tcount = 0;\n\t\t\t\tif ((\"\" + searched_line.charAt(i)).equals(\"\" + p.charAt(0))) { // if1\n\t\t\t\t\tcount++;\n\t\t\t\t\tin: for (int j = 1; j < p.length(); j++) {\n\t\t\t\t\t\tif ((\"\" + searched_line.charAt(i + j)).equals(\"\" // if2\n\t\t\t\t\t\t\t\t+ p.charAt(j)) == false) {\n\t\t\t\t\t\t\tbreak in;\n\t\t\t\t\t\t}// if2ここまで\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}// in: for文ここまで\n\n\t\t\t\t\tif (count == p.length()) { // if3\n\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}// if3ここまで\n\n\t\t\t\t} // if1ここまで\n\n\t\t\t}// out:for文ここまで\n\n\t\t\tif (judge == true) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}",
"p.length() >= 1 && s.length() >= p.length() && s.length() <= 100",
"p.length() >= 1 && s.length() >= p.length() && s.length() <= 100",
"p.length() >= 1",
"p.length()",
"p.length",
"p",
"1",
"s.length() >= p.length()",
"s.length()",
"s.length",
"s",
"p.length()",
"p.length",
"p",
"s.length() <= 100",
"s.length()",
"s.length",
"s",
"100",
"{\n\n\t\t\tsearched_line = s + s.substring(0, p.length() - 1);\n\n\t\t\tout: for (int i = 0; i < s.length(); i++) {\n\t\t\t\tcount = 0;\n\t\t\t\tif ((\"\" + searched_line.charAt(i)).equals(\"\" + p.charAt(0))) { // if1\n\t\t\t\t\tcount++;\n\t\t\t\t\tin: for (int j = 1; j < p.length(); j++) {\n\t\t\t\t\t\tif ((\"\" + searched_line.charAt(i + j)).equals(\"\" // if2\n\t\t\t\t\t\t\t\t+ p.charAt(j)) == false) {\n\t\t\t\t\t\t\tbreak in;\n\t\t\t\t\t\t}// if2ここまで\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}// in: for文ここまで\n\n\t\t\t\t\tif (count == p.length()) { // if3\n\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}// if3ここまで\n\n\t\t\t\t} // if1ここまで\n\n\t\t\t}// out:for文ここまで\n\n\t\t\tif (judge == true) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}",
"searched_line = s + s.substring(0, p.length() - 1)",
"searched_line",
"s + s.substring(0, p.length() - 1)",
"s",
"s.substring(0, p.length() - 1)",
"s.substring",
"s",
"0",
"p.length() - 1",
"p.length()",
"p.length",
"p",
"1",
"if (judge == true) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}",
"judge == true",
"judge",
"true",
"{\n\t\t\t\tSystem.out.println(\"Yes\");\n\n\t\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = \"\";\n\t\tString p = \"\";\n\t\tString searched_line = \"\";\n\t\tboolean judge = false;\n\t\tint count = 0; // 一致している文字数をカウントするための変数\n\n\t\ts = sc.nextLine();\n\t\tp = sc.nextLine();\n\n\t\tif (p.length() >= 1 && s.length() >= p.length() && s.length() <= 100) {\n\n\t\t\tsearched_line = s + s.substring(0, p.length() - 1);\n\n\t\t\tout: for (int i = 0; i < s.length(); i++) {\n\t\t\t\tcount = 0;\n\t\t\t\tif ((\"\" + searched_line.charAt(i)).equals(\"\" + p.charAt(0))) { // if1\n\t\t\t\t\tcount++;\n\t\t\t\t\tin: for (int j = 1; j < p.length(); j++) {\n\t\t\t\t\t\tif ((\"\" + searched_line.charAt(i + j)).equals(\"\" // if2\n\t\t\t\t\t\t\t\t+ p.charAt(j)) == false) {\n\t\t\t\t\t\t\tbreak in;\n\t\t\t\t\t\t}// if2ここまで\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}// in: for文ここまで\n\n\t\t\t\t\tif (count == p.length()) { // if3\n\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}// if3ここまで\n\n\t\t\t\t} // if1ここまで\n\n\t\t\t}// out:for文ここまで\n\n\t\t\tif (judge == true) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = \"\";\n\t\tString p = \"\";\n\t\tString searched_line = \"\";\n\t\tboolean judge = false;\n\t\tint count = 0; // 一致している文字数をカウントするための変数\n\n\t\ts = sc.nextLine();\n\t\tp = sc.nextLine();\n\n\t\tif (p.length() >= 1 && s.length() >= p.length() && s.length() <= 100) {\n\n\t\t\tsearched_line = s + s.substring(0, p.length() - 1);\n\n\t\t\tout: for (int i = 0; i < s.length(); i++) {\n\t\t\t\tcount = 0;\n\t\t\t\tif ((\"\" + searched_line.charAt(i)).equals(\"\" + p.charAt(0))) { // if1\n\t\t\t\t\tcount++;\n\t\t\t\t\tin: for (int j = 1; j < p.length(); j++) {\n\t\t\t\t\t\tif ((\"\" + searched_line.charAt(i + j)).equals(\"\" // if2\n\t\t\t\t\t\t\t\t+ p.charAt(j)) == false) {\n\t\t\t\t\t\t\tbreak in;\n\t\t\t\t\t\t}// if2ここまで\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}// in: for文ここまで\n\n\t\t\t\t\tif (count == p.length()) { // if3\n\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}// if3ここまで\n\n\t\t\t\t} // if1ここまで\n\n\t\t\t}// out:for文ここまで\n\n\t\t\tif (judge == true) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
String s = "";
String p = "";
String searched_line = "";
boolean judge = false;
int count = 0; // 一致している文字数をカウントするための変数
s = sc.nextLine();
p = sc.nextLine();
if (p.length() >= 1 && s.length() >= p.length() && s.length() <= 100) {
searched_line = s + s.substring(0, p.length() - 1);
out: for (int i = 0; i < s.length(); i++) {
count = 0;
if (("" + searched_line.charAt(i)).equals("" + p.charAt(0))) { // if1
count++;
in: for (int j = 1; j < p.length(); j++) {
if (("" + searched_line.charAt(i + j)).equals("" // if2
+ p.charAt(j)) == false) {
break in;
}// if2ここまで
count++;
}// in: for文ここまで
if (count == p.length()) { // if3
judge = true;
break out;
}// if3ここまで
} // if1ここまで
}// out:for文ここまで
if (judge == true) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
52,
8
],
[
52,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
31,
36
],
[
30,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
30,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
9,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main{\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n String s = in.nextLine(), str = s + s;\n String patt = in.nextLine();\n\n if(str.indexOf(patt) >= 0)System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n String s = in.nextLine(), str = s + s;\n String patt = in.nextLine();\n\n if(str.indexOf(patt) >= 0)System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n String s = in.nextLine(), str = s + s;\n String patt = in.nextLine();\n\n if(str.indexOf(patt) >= 0)System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n String s = in.nextLine(), str = s + s;\n String patt = in.nextLine();\n\n if(str.indexOf(patt) >= 0)System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String s = in.nextLine()",
"s",
"in.nextLine()",
"in.nextLine",
"in",
"str = s + s;",
"str",
"s + s",
"s",
"s",
"String patt = in.nextLine();",
"patt",
"in.nextLine()",
"in.nextLine",
"in",
"if(str.indexOf(patt) >= 0)System.out.println(\"Yes\");\n else System.out.println(\"No\");",
"str.indexOf(patt) >= 0",
"str.indexOf(patt)",
"str.indexOf",
"str",
"patt",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args",
"public class Main{\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n String s = in.nextLine(), str = s + s;\n String patt = in.nextLine();\n\n if(str.indexOf(patt) >= 0)System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"public class Main{\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n String s = in.nextLine(), str = s + s;\n String patt = in.nextLine();\n\n if(str.indexOf(patt) >= 0)System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main{
public static void main(String args[]){
Scanner in = new Scanner(System.in);
String s = in.nextLine(), str = s + s;
String patt = in.nextLine();
if(str.indexOf(patt) >= 0)System.out.println("Yes");
else System.out.println("No");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
2,
13,
13,
14,
2,
4,
18,
13,
13,
40,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
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
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
14,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
33,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
12,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
]
| [
"import java.io.*;\nimport java.util.Arrays;\nimport java.util.Scanner;\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\tString line1 = br.readLine();\n\t\tString line2 = br.readLine();\n\t\tline1 = line1 + line1;\n\t\tif (line1.indexOf(line2) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"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\tString line1 = br.readLine();\n\t\tString line2 = br.readLine();\n\t\tline1 = line1 + line1;\n\t\tif (line1.indexOf(line2) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString line2 = br.readLine();\n\t\tline1 = line1 + line1;\n\t\tif (line1.indexOf(line2) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString line2 = br.readLine();\n\t\tline1 = line1 + line1;\n\t\tif (line1.indexOf(line2) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line1 = br.readLine();",
"line1",
"br.readLine()",
"br.readLine",
"br",
"String line2 = br.readLine();",
"line2",
"br.readLine()",
"br.readLine",
"br",
"line1 = line1 + line1",
"line1",
"line1 + line1",
"line1",
"line1",
"if (line1.indexOf(line2) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"line1.indexOf(line2) != -1",
"line1.indexOf(line2)",
"line1.indexOf",
"line1",
"line2",
"-1",
"1",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"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\tString line1 = br.readLine();\n\t\tString line2 = br.readLine();\n\t\tline1 = line1 + line1;\n\t\tif (line1.indexOf(line2) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\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\tString line1 = br.readLine();\n\t\tString line2 = br.readLine();\n\t\tline1 = line1 + line1;\n\t\tif (line1.indexOf(line2) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.Arrays;
import java.util.Scanner;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line1 = br.readLine();
String line2 = br.readLine();
line1 = line1 + line1;
if (line1.indexOf(line2) != -1) {
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
17,
0,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
2,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
0,
13,
17,
3,
14,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
11,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
11,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
43,
47
],
[
11,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
60,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
72,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
11,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
82,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
9,
98
],
[
98,
99
]
]
| [
"import java.util.*;\nimport java.util.stream.*;\nclass Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String S,P;\n S = input.next();\n int n = S.length();\n P = input.next();\n boolean ans = false;\n S += S.substring(0,P.length()-1);\n for (int i = 0; i < n; i++){\n String tmp = S.substring(i,i+P.length());\n if (tmp.equals(P)){\n ans = true;\n break;\n }\n }\n if (ans){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.stream.*;",
"stream.*",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String S,P;\n S = input.next();\n int n = S.length();\n P = input.next();\n boolean ans = false;\n S += S.substring(0,P.length()-1);\n for (int i = 0; i < n; i++){\n String tmp = S.substring(i,i+P.length());\n if (tmp.equals(P)){\n ans = true;\n break;\n }\n }\n if (ans){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String S,P;\n S = input.next();\n int n = S.length();\n P = input.next();\n boolean ans = false;\n S += S.substring(0,P.length()-1);\n for (int i = 0; i < n; i++){\n String tmp = S.substring(i,i+P.length());\n if (tmp.equals(P)){\n ans = true;\n break;\n }\n }\n if (ans){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n String S,P;\n S = input.next();\n int n = S.length();\n P = input.next();\n boolean ans = false;\n S += S.substring(0,P.length()-1);\n for (int i = 0; i < n; i++){\n String tmp = S.substring(i,i+P.length());\n if (tmp.equals(P)){\n ans = true;\n break;\n }\n }\n if (ans){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"String S",
"S",
"P;",
"P",
"S = input.next()",
"S",
"input.next()",
"input.next",
"input",
"int n = S.length();",
"n",
"S.length()",
"S.length",
"S",
"P = input.next()",
"P",
"input.next()",
"input.next",
"input",
"boolean ans = false;",
"ans",
"false",
"S += S.substring(0,P.length()-1)",
"S",
"S.substring(0,P.length()-1)",
"S.substring",
"S",
"0",
"P.length()-1",
"P.length()",
"P.length",
"P",
"1",
"for (int i = 0; i < n; i++){\n String tmp = S.substring(i,i+P.length());\n if (tmp.equals(P)){\n ans = true;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String tmp = S.substring(i,i+P.length());\n if (tmp.equals(P)){\n ans = true;\n break;\n }\n }",
"{\n String tmp = S.substring(i,i+P.length());\n if (tmp.equals(P)){\n ans = true;\n break;\n }\n }",
"String tmp = S.substring(i,i+P.length());",
"tmp",
"S.substring(i,i+P.length())",
"S.substring",
"S",
"i",
"i+P.length()",
"i",
"P.length()",
"P.length",
"P",
"if (tmp.equals(P)){\n ans = true;\n break;\n }",
"tmp.equals(P)",
"tmp.equals",
"tmp",
"P",
"{\n ans = true;\n break;\n }",
"ans = true",
"ans",
"true",
"break;",
"if (ans){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"ans",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
]
| import java.util.*;
import java.util.stream.*;
class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String S,P;
S = input.next();
int n = S.length();
P = input.next();
boolean ans = false;
S += S.substring(0,P.length()-1);
for (int i = 0; i < n; i++){
String tmp = S.substring(i,i+P.length());
if (tmp.equals(P)){
ans = true;
break;
}
}
if (ans){
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
53,
8
],
[
53,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
28,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
28,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
9,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
]
| [
"import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString x = sc.nextLine();\n\t\tx += x;\n\t\tString y = sc.nextLine();\n\n\t\tif(x.contains(y)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString x = sc.nextLine();\n\t\tx += x;\n\t\tString y = sc.nextLine();\n\n\t\tif(x.contains(y)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString x = sc.nextLine();\n\t\tx += x;\n\t\tString y = sc.nextLine();\n\n\t\tif(x.contains(y)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString x = sc.nextLine();\n\t\tx += x;\n\t\tString y = sc.nextLine();\n\n\t\tif(x.contains(y)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String x = sc.nextLine();",
"x",
"sc.nextLine()",
"sc.nextLine",
"sc",
"x += x",
"x",
"x",
"String y = sc.nextLine();",
"y",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(x.contains(y)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"x.contains(y)",
"x.contains",
"x",
"y",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString x = sc.nextLine();\n\t\tx += x;\n\t\tString y = sc.nextLine();\n\n\t\tif(x.contains(y)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString x = sc.nextLine();\n\t\tx += x;\n\t\tString y = sc.nextLine();\n\n\t\tif(x.contains(y)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"Main"
]
| import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException{
Scanner sc = new Scanner(System.in);
String x = sc.nextLine();
x += x;
String y = sc.nextLine();
if(x.contains(y)) {
System.out.println("Yes");
}else {
System.out.println("No");
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
40,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
37,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
37,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String p, s;\n p= sc.next();\n s= sc.next();\n String st=p+p; \n int result = st.indexOf(s);\n if(result==-1)System.out.println(\"No\");\n else System.out.println(\"Yes\");\n }\n}",
"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 String p, s;\n p= sc.next();\n s= sc.next();\n String st=p+p; \n int result = st.indexOf(s);\n if(result==-1)System.out.println(\"No\");\n else System.out.println(\"Yes\");\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String p, s;\n p= sc.next();\n s= sc.next();\n String st=p+p; \n int result = st.indexOf(s);\n if(result==-1)System.out.println(\"No\");\n else System.out.println(\"Yes\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String p, s;\n p= sc.next();\n s= sc.next();\n String st=p+p; \n int result = st.indexOf(s);\n if(result==-1)System.out.println(\"No\");\n else System.out.println(\"Yes\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String p",
"p",
"s;",
"s",
"p= sc.next()",
"p",
"sc.next()",
"sc.next",
"sc",
"s= sc.next()",
"s",
"sc.next()",
"sc.next",
"sc",
"String st=p+p;",
"st",
"p+p",
"p",
"p",
"int result = st.indexOf(s);",
"result",
"st.indexOf(s)",
"st.indexOf",
"st",
"s",
"if(result==-1)System.out.println(\"No\");\n else System.out.println(\"Yes\");",
"result==-1",
"result",
"-1",
"1",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String p, s;\n p= sc.next();\n s= sc.next();\n String st=p+p; \n int result = st.indexOf(s);\n if(result==-1)System.out.println(\"No\");\n else System.out.println(\"Yes\");\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String p, s;\n p= sc.next();\n s= sc.next();\n String st=p+p; \n int result = st.indexOf(s);\n if(result==-1)System.out.println(\"No\");\n else System.out.println(\"Yes\");\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
String p, s;
p= sc.next();
s= sc.next();
String st=p+p;
int result = st.indexOf(s);
if(result==-1)System.out.println("No");
else System.out.println("Yes");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
41,
13,
17,
14,
4,
18,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n String checked = s + s.substring(0, p.length() - 1);\n String result = \"No\";\n if(checked.contains(p)) result=\"Yes\";\n System.out.println(result);\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n String checked = s + s.substring(0, p.length() - 1);\n String result = \"No\";\n if(checked.contains(p)) result=\"Yes\";\n System.out.println(result);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n String checked = s + s.substring(0, p.length() - 1);\n String result = \"No\";\n if(checked.contains(p)) result=\"Yes\";\n System.out.println(result);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n String checked = s + s.substring(0, p.length() - 1);\n String result = \"No\";\n if(checked.contains(p)) result=\"Yes\";\n System.out.println(result);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String p = sc.nextLine();",
"p",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String checked = s + s.substring(0, p.length() - 1);",
"checked",
"s + s.substring(0, p.length() - 1)",
"s",
"s.substring(0, p.length() - 1)",
"s.substring",
"s",
"0",
"p.length() - 1",
"p.length()",
"p.length",
"p",
"1",
"String result = \"No\";",
"result",
"\"No\"",
"if(checked.contains(p)) result=\"Yes\";",
"checked.contains(p)",
"checked.contains",
"checked",
"p",
"result=\"Yes\"",
"result",
"\"Yes\"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n String checked = s + s.substring(0, p.length() - 1);\n String result = \"No\";\n if(checked.contains(p)) result=\"Yes\";\n System.out.println(result);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n String checked = s + s.substring(0, p.length() - 1);\n String result = \"No\";\n if(checked.contains(p)) result=\"Yes\";\n System.out.println(result);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
String p = sc.nextLine();
String checked = s + s.substring(0, p.length() - 1);
String result = "No";
if(checked.contains(p)) result="Yes";
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
17,
30,
14,
2,
13,
17,
30,
11,
1,
41,
13,
13,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
17,
30,
0,
13,
17,
0,
13,
13,
3,
14,
2,
13,
17,
30,
3,
14,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
2,
2,
13,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
0,
13,
17,
40,
13,
3,
14,
2,
13,
17,
30,
0,
13,
17,
3,
14,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
152,
5
],
[
152,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
39,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
64,
71
],
[
38,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
34,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
83,
93
],
[
93,
94
],
[
94,
95
],
[
83,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
97,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
108,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
107,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
117,
123
],
[
82,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
8,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
133,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
6,
149
],
[
149,
150
],
[
0,
151
],
[
151,
152
],
[
151,
153
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString s= sc.next();\n\t\tString p=sc.next();\n\t\tint state=0;\n\t\tint a=0;\n\t\tboolean yn=false;\n\t\twhile(true){\n\t\t\tif(state==0){\n\t\t\t\tfor(int i=a;i<s.length();i++){\n\t\t\t\t\tif(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if(state==1){\n\t\t\t\tfor(int j=1;j<p.length();j++){\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==1){\n\t\t\t\t\tyn=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(yn){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString s= sc.next();\n\t\tString p=sc.next();\n\t\tint state=0;\n\t\tint a=0;\n\t\tboolean yn=false;\n\t\twhile(true){\n\t\t\tif(state==0){\n\t\t\t\tfor(int i=a;i<s.length();i++){\n\t\t\t\t\tif(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if(state==1){\n\t\t\t\tfor(int j=1;j<p.length();j++){\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==1){\n\t\t\t\t\tyn=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(yn){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString s= sc.next();\n\t\tString p=sc.next();\n\t\tint state=0;\n\t\tint a=0;\n\t\tboolean yn=false;\n\t\twhile(true){\n\t\t\tif(state==0){\n\t\t\t\tfor(int i=a;i<s.length();i++){\n\t\t\t\t\tif(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if(state==1){\n\t\t\t\tfor(int j=1;j<p.length();j++){\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==1){\n\t\t\t\t\tyn=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(yn){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString s= sc.next();\n\t\tString p=sc.next();\n\t\tint state=0;\n\t\tint a=0;\n\t\tboolean yn=false;\n\t\twhile(true){\n\t\t\tif(state==0){\n\t\t\t\tfor(int i=a;i<s.length();i++){\n\t\t\t\t\tif(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if(state==1){\n\t\t\t\tfor(int j=1;j<p.length();j++){\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==1){\n\t\t\t\t\tyn=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(yn){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s= sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String p=sc.next();",
"p",
"sc.next()",
"sc.next",
"sc",
"int state=0;",
"state",
"0",
"int a=0;",
"a",
"0",
"boolean yn=false;",
"yn",
"false",
"while(true){\n\t\t\tif(state==0){\n\t\t\t\tfor(int i=a;i<s.length();i++){\n\t\t\t\t\tif(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if(state==1){\n\t\t\t\tfor(int j=1;j<p.length();j++){\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==1){\n\t\t\t\t\tyn=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tif(state==0){\n\t\t\t\tfor(int i=a;i<s.length();i++){\n\t\t\t\t\tif(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if(state==1){\n\t\t\t\tfor(int j=1;j<p.length();j++){\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==1){\n\t\t\t\t\tyn=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if(state==0){\n\t\t\t\tfor(int i=a;i<s.length();i++){\n\t\t\t\t\tif(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if(state==1){\n\t\t\t\tfor(int j=1;j<p.length();j++){\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==1){\n\t\t\t\t\tyn=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"state==0",
"state",
"0",
"{\n\t\t\t\tfor(int i=a;i<s.length();i++){\n\t\t\t\t\tif(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"for(int i=a;i<s.length();i++){\n\t\t\t\t\tif(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"int i=a;",
"int i=a;",
"i",
"a",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tif(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"s.charAt(i)==p.charAt(0)",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"p.charAt(0)",
"p.charAt",
"p",
"0",
"{\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"state=1",
"state",
"1",
"a=i",
"a",
"i",
"break;",
"if(state==0){\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"state==0",
"state",
"0",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"if(state==1){\n\t\t\t\tfor(int j=1;j<p.length();j++){\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==1){\n\t\t\t\t\tyn=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"state==1",
"state",
"1",
"{\n\t\t\t\tfor(int j=1;j<p.length();j++){\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==1){\n\t\t\t\t\tyn=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"for(int j=1;j<p.length();j++){\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<p.length()",
"j",
"p.length()",
"p.length",
"p",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"int k=(a+j)%s.length();",
"k",
"(a+j)%s.length()",
"(a+j)",
"a",
"j",
"s.length()",
"s.length",
"s",
"if(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"s.charAt(k)!=p.charAt(j)",
"s.charAt(k)",
"s.charAt",
"s",
"k",
"p.charAt(j)",
"p.charAt",
"p",
"j",
"{\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"state=0",
"state",
"0",
"a++",
"a",
"break;",
"if(state==1){\n\t\t\t\t\tyn=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"state==1",
"state",
"1",
"{\n\t\t\t\t\tyn=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"yn=true",
"yn",
"true",
"break;",
"if(yn){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"yn",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString s= sc.next();\n\t\tString p=sc.next();\n\t\tint state=0;\n\t\tint a=0;\n\t\tboolean yn=false;\n\t\twhile(true){\n\t\t\tif(state==0){\n\t\t\t\tfor(int i=a;i<s.length();i++){\n\t\t\t\t\tif(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if(state==1){\n\t\t\t\tfor(int j=1;j<p.length();j++){\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==1){\n\t\t\t\t\tyn=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(yn){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString s= sc.next();\n\t\tString p=sc.next();\n\t\tint state=0;\n\t\tint a=0;\n\t\tboolean yn=false;\n\t\twhile(true){\n\t\t\tif(state==0){\n\t\t\t\tfor(int i=a;i<s.length();i++){\n\t\t\t\t\tif(s.charAt(i)==p.charAt(0)){\n\t\t\t\t\t\tstate=1;\n\t\t\t\t\t\ta=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if(state==1){\n\t\t\t\tfor(int j=1;j<p.length();j++){\n\t\t\t\t\tint k=(a+j)%s.length();\n\t\t\t\t\tif(s.charAt(k)!=p.charAt(j)){\n\t\t\t\t\t\tstate=0;\n\t\t\t\t\t\ta++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(state==1){\n\t\t\t\t\tyn=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(yn){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
String s= sc.next();
String p=sc.next();
int state=0;
int a=0;
boolean yn=false;
while(true){
if(state==0){
for(int i=a;i<s.length();i++){
if(s.charAt(i)==p.charAt(0)){
state=1;
a=i;
break;
}
}
if(state==0){
break;
}
}else if(state==1){
for(int j=1;j<p.length();j++){
int k=(a+j)%s.length();
if(s.charAt(k)!=p.charAt(j)){
state=0;
a++;
break;
}
}
if(state==1){
yn=true;
break;
}
}
}
if(yn){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
38,
30,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
2,
13,
13,
14,
2,
4,
18,
13,
13,
40,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
14,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
33,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tString DNA, RNA;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tDNA = sc.nextLine();\n\t\t\tRNA = sc.nextLine();\n\t\t\tDNA = DNA + DNA;\n\t\t\tif(DNA.indexOf(RNA) == -1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tString DNA, RNA;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tDNA = sc.nextLine();\n\t\t\tRNA = sc.nextLine();\n\t\t\tDNA = DNA + DNA;\n\t\t\tif(DNA.indexOf(RNA) == -1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tString DNA, RNA;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tDNA = sc.nextLine();\n\t\t\tRNA = sc.nextLine();\n\t\t\tDNA = DNA + DNA;\n\t\t\tif(DNA.indexOf(RNA) == -1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"main",
"{\n\t\tString DNA, RNA;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tDNA = sc.nextLine();\n\t\t\tRNA = sc.nextLine();\n\t\t\tDNA = DNA + DNA;\n\t\t\tif(DNA.indexOf(RNA) == -1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"String DNA",
"DNA",
"RNA;",
"RNA",
"try (Scanner sc = new Scanner(System.in)) {\n\t\t\tDNA = sc.nextLine();\n\t\t\tRNA = sc.nextLine();\n\t\t\tDNA = DNA + DNA;\n\t\t\tif(DNA.indexOf(RNA) == -1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t\t\tDNA = sc.nextLine();\n\t\t\tRNA = sc.nextLine();\n\t\t\tDNA = DNA + DNA;\n\t\t\tif(DNA.indexOf(RNA) == -1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\t\n\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"DNA = sc.nextLine()",
"DNA",
"sc.nextLine()",
"sc.nextLine",
"sc",
"RNA = sc.nextLine()",
"RNA",
"sc.nextLine()",
"sc.nextLine",
"sc",
"DNA = DNA + DNA",
"DNA",
"DNA + DNA",
"DNA",
"DNA",
"if(DNA.indexOf(RNA) == -1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}",
"DNA.indexOf(RNA) == -1",
"DNA.indexOf(RNA)",
"DNA.indexOf",
"DNA",
"RNA",
"-1",
"1",
"{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tString DNA, RNA;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tDNA = sc.nextLine();\n\t\t\tRNA = sc.nextLine();\n\t\t\tDNA = DNA + DNA;\n\t\t\tif(DNA.indexOf(RNA) == -1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tString DNA, RNA;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tDNA = sc.nextLine();\n\t\t\tRNA = sc.nextLine();\n\t\t\tDNA = DNA + DNA;\n\t\t\tif(DNA.indexOf(RNA) == -1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String DNA, RNA;
try (Scanner sc = new Scanner(System.in)) {
DNA = sc.nextLine();
RNA = sc.nextLine();
DNA = DNA + DNA;
if(DNA.indexOf(RNA) == -1) {
System.out.println("No");
}else {
System.out.println("Yes");
}
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.